dkdeploy-core 9.2.2 → 9.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 975be721872df804b63245d574ee7f8c0c52a04479b44f2dc75bc33c2839cf68
4
- data.tar.gz: 439049a3e552f4fb6d2dc783a2e0876db7564c5debd58394cb701614222a1911
3
+ metadata.gz: f49d3a4d8949d6001316422be38a3dbb279e53797d5d512003556ae5f91a8fa7
4
+ data.tar.gz: b30ffa5e5597750ba2a0da3e3e264ccba6cb854cf49d9dc21681995d6ee81e0a
5
5
  SHA512:
6
- metadata.gz: 4fab2c04628bf881b7148a2de2932295786117dcfa7a5f3a19b7eee2e84f9700b6ec4e5d297603ec7dcf822ca331b1671bdbf92131f8100f01880a7c44a5a68e
7
- data.tar.gz: cb26f718408624b56b744f6948a658ae4d339759b66744b36e64e596dbc2568142c8748be12f98453eb67123b5a74e45939ee39eedc682432e6b870a6734994d
6
+ metadata.gz: 5932401f1144b9024a17b376a4b586743d7798011d2b8b983ae78321b7051f4e1f93f946833182d82c5739d90adb319ca61d8cb4babeb54a84d730b5d2bc5e76
7
+ data.tar.gz: b07b51e05c51187417297c1e49a791587676c41e88ea6ad444b151d1738aef581ab5c0415e935bf08bdd7831219b10a0953c4da3f1b213d3c9737de621c8404e
data/CHANGELOG.md CHANGED
@@ -2,7 +2,15 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
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
+
5
12
  ## [9.2.2] - 2019-02-18
13
+ ### Summary
6
14
 
7
15
  - run tests and linter against Ruby 2.3
8
16
  - fixed bug in clean_up_temporary_sources
data/Vagrantfile CHANGED
@@ -46,7 +46,7 @@ Vagrant.configure(2) do |config|
46
46
  if Vagrant.has_plugin?('landrush')
47
47
  config.landrush.enabled = true
48
48
  config.landrush.guest_redirect_dns = false
49
- config.landrush.tld = 'dev'
49
+ config.landrush.tld = 'test'
50
50
  config.landrush.host domain, ip_address
51
51
  else
52
52
  config.vm.post_up_message = "Either install Vagrant plugin 'landrush' or add this entry to your host file: #{ip_address} #{domain}"
@@ -7,7 +7,7 @@ module Dkdeploy
7
7
  class Version
8
8
  MAJOR = 9
9
9
  MINOR = 2
10
- PATCH = 2
10
+ PATCH = 3
11
11
 
12
12
  def self.to_s
13
13
  [MAJOR, MINOR, PATCH].join('.')
@@ -30,7 +30,7 @@ module Dkdeploy
30
30
  return raise 'Unexpected data from stream. Can not send password to undefined stream' unless @mysql_error_seen
31
31
 
32
32
  # 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
34
34
  message = 'Error on executing MySQL command! Response (error code) is: '
35
35
  SSHKit.config.output.send(:error, "#{message}\n #{@return_message}")
36
36
  raise 'InteractionHandler caught a MySQL error'
@@ -46,7 +46,7 @@ namespace :assets do
46
46
  on release_roles :web do
47
47
  info I18n.t('directory.create', scope: :dkdeploy)
48
48
  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" }
50
50
  info I18n.t('tasks.assets.add_htpasswd.successfully_created', scope: :dkdeploy)
51
51
  end
52
52
  end
@@ -8,7 +8,7 @@ namespace :current_folder do
8
8
  desc "Delete current folder unless it's a symlink"
9
9
  task :remove_unlesss_symlinked do
10
10
  on release_roles :all do
11
- if test "[ -d #{current_path} && ! -L #{current_path} ]"
11
+ if test "[ -d #{current_path} ] && [ ! -L #{current_path} ]"
12
12
  execute :rm, '-rf', current_path
13
13
  else
14
14
  info I18n.t('info.ignoring_current_folder', scope: :dkdeploy)
@@ -146,7 +146,7 @@ namespace :db do
146
146
  execute :rm, '-f', remote_zipped_dump_file
147
147
 
148
148
  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}"
150
150
  end
151
151
 
152
152
  execute :mysqldump,
@@ -18,6 +18,8 @@ set :asset_default_content, %w[download]
18
18
  set :asset_exclude_file, 'config/assets_exclude_file.txt'
19
19
  set :asset_folders, %w[download]
20
20
 
21
+ set :additional_ignore_tables, %w[test_table]
22
+
21
23
  require 'dkdeploy/interaction_handler/mysql'
22
24
  namespace :db do
23
25
  task :sql_error do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dkdeploy-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.2
4
+ version: 9.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Webler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-18 00:00:00.000000000 Z
12
+ date: 2019-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aruba
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  requirements: []
280
- rubygems_version: 3.0.2
280
+ rubygems_version: 3.0.3
281
281
  signing_key:
282
282
  specification_version: 4
283
283
  summary: dkd basic deployment tasks and strategies