Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit 980baa6

Browse files
authored
Merge pull request #57 from dkdeploy/hotfix/9.2.3
Hotfix/9.2.3
2 parents 53ffaa0 + ce604de commit 980baa6

8 files changed

Lines changed: 16 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [9.2.3] - 2019-05-29
6+
### Summary
7+
8+
- Remove frozen string error
9+
- Update interaction handler for new `htpasswd` versions
10+
- Use correct test statement for task "remove_unless_symlinked"
11+
512
## [9.2.2] - 2019-02-18
13+
### Summary
614

715
- run tests and linter against Ruby 2.3
816
- fixed bug in clean_up_temporary_sources

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Vagrant.configure(2) do |config|
4646
if Vagrant.has_plugin?('landrush')
4747
config.landrush.enabled = true
4848
config.landrush.guest_redirect_dns = false
49-
config.landrush.tld = 'dev'
49+
config.landrush.tld = 'test'
5050
config.landrush.host domain, ip_address
5151
else
5252
config.vm.post_up_message = "Either install Vagrant plugin 'landrush' or add this entry to your host file: #{ip_address} #{domain}"

lib/dkdeploy/core/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Core
77
class Version
88
MAJOR = 9
99
MINOR = 2
10-
PATCH = 2
10+
PATCH = 3
1111

1212
def self.to_s
1313
[MAJOR, MINOR, PATCH].join('.')

lib/dkdeploy/interaction_handler/mysql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def on_data(_command, _stream_name, data, channel)
3030
return raise 'Unexpected data from stream. Can not send password to undefined stream' unless @mysql_error_seen
3131

3232
# combine the multiple lines from error message. The fact that the error message will be shown multiple times is simply ignored
33-
@return_message << data
33+
@return_message += data
3434
message = 'Error on executing MySQL command! Response (error code) is: '
3535
SSHKit.config.output.send(:error, "#{message}\n #{@return_message}")
3636
raise 'InteractionHandler caught a MySQL error'

lib/dkdeploy/tasks/assets.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace :assets do
4646
on release_roles :web do
4747
info I18n.t('directory.create', scope: :dkdeploy)
4848
execute :mkdir, '-p', shared_path
49-
execute :htpasswd, '-c', htpasswd_path, username, interaction_handler: Dkdeploy::InteractionHandler::Password.new(password)
49+
execute :htpasswd, '-c', htpasswd_path, username, interaction_handler: { /.*password.*/i => "#{password}\n" }
5050
info I18n.t('tasks.assets.add_htpasswd.successfully_created', scope: :dkdeploy)
5151
end
5252
end

lib/dkdeploy/tasks/current_folder.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace :current_folder do
88
desc "Delete current folder unless it's a symlink"
99
task :remove_unlesss_symlinked do
1010
on release_roles :all do
11-
if test "[ -d #{current_path} && ! -L #{current_path} ]"
11+
if test "[ -d #{current_path} ] && [ ! -L #{current_path} ]"
1212
execute :rm, '-rf', current_path
1313
else
1414
info I18n.t('info.ignoring_current_folder', scope: :dkdeploy)

lib/dkdeploy/tasks/db.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ namespace :db do
146146
execute :rm, '-f', remote_zipped_dump_file
147147

148148
ignore_tables_command_line = ignore_tables.inject('') do |command_line, table|
149-
command_line << " --ignore-table=#{db_settings.fetch('name')}.#{table}"
149+
command_line + " --ignore-table=#{db_settings.fetch('name')}.#{table}"
150150
end
151151

152152
execute :mysqldump,

spec/fixtures/application/config/deploy.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
set :asset_exclude_file, 'config/assets_exclude_file.txt'
1919
set :asset_folders, %w[download]
2020

21+
set :additional_ignore_tables, %w[test_table]
22+
2123
require 'dkdeploy/interaction_handler/mysql'
2224
namespace :db do
2325
task :sql_error do

0 commit comments

Comments
 (0)