ridgepole-replace_db_task 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 913aaa5b3bf2e3bae60e0a3bd6f302cb561dfd631d7b83b6bba7093597d10b26
4
- data.tar.gz: 1556456d9b0d35edd56564c78c05522f2b84124ad6ce64de9e861050a26e62f3
3
+ metadata.gz: 53cedd2c95e52acc6a9d4ac961c3b205a6c8a5564a30471d763d539f87495f92
4
+ data.tar.gz: 07e74d2d4e6f8b9180b77f7d980295db67167d927cb1aa5dfa9e345aec3e9b17
5
5
  SHA512:
6
- metadata.gz: 1da72ee0afc4a7a22da039131fad6c394886ed55ab614557154310291afa0a9dd2e4537233d7142e272c51b7d83a6e7115c3649173294f3a2f68674428299fa8
7
- data.tar.gz: 7b249d396cc2845c0c08e059104fbaa59c6cfb8df8e4f09cf60ae2ca9becf9e49e2bc2a450fc5544d237aa9131c0516f75f56eaffec967b902c41356d8630a99
6
+ metadata.gz: da0c6612372642b7199aa4d622faa4e4b036e8af8c1cd1fb60cf6f4b29f96c5b4d9f44d13bfc1f1d59801d14b0edcec529cfc7db5694bb55ed2e2ce52c352c6c
7
+ data.tar.gz: 53fffd48addf32730d477cf135b5ee3d5a92a36f895443e9a92dcdb49ef814dded2aa35ef6c05ca272b0d352456ea96a1d3e6bf5b0cdb19c8147b0d82a447aa7
@@ -14,7 +14,7 @@ class Ridgepole::ReplaceDbTask::Executor
14
14
  -c #{Ridgepole::ReplaceDbTask.config.database_yml_path} \
15
15
  -f #{Ridgepole::ReplaceDbTask.config.schema_file_path} \
16
16
  #{ignore_tables_option} \
17
- #{skip_drop_table_option} \
17
+ #{drop_table_option} \
18
18
  #{@options} \
19
19
  -E #{@rails_env}
20
20
  EOD
@@ -50,8 +50,8 @@ EOD
50
50
  ignore_tables.present? ? '--ignore-tables ' + ignore_tables.map { |t| t.is_a?(Regexp) ? t.source : "^#{t}$" }.join(',') : ''
51
51
  end
52
52
 
53
- def skip_drop_table_option
53
+ def drop_table_option
54
54
  skip_drop_table = Ridgepole::ReplaceDbTask.config.skip_drop_table
55
- skip_drop_table ? '--skip-drop-table' : ''
55
+ skip_drop_table ? '' : '--drop-table'
56
56
  end
57
57
  end
@@ -1,5 +1,5 @@
1
1
  module Ridgepole
2
2
  module ReplaceDbTask
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
@@ -21,7 +21,7 @@ module Ridgepole
21
21
 
22
22
  configure do |config|
23
23
  config.ridgepole = 'bundle exec ridgepole'
24
- config.skip_drop_table = false
24
+ config.skip_drop_table = true
25
25
  config.ignore_tables = []
26
26
  config.multiple_migration_settings = {development: %i[test]}
27
27
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_dependency "railties", ">= 5.0"
24
24
  spec.add_dependency "activesupport", ">= 5.0"
25
- spec.add_dependency "ridgepole", ">= 0.7"
25
+ spec.add_dependency "ridgepole", ">= 1.0"
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 2.0"
28
28
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole-replace_db_task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0.7'
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0.7'
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement