slonik_migration 1.1.1 → 1.1.2

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
- SHA1:
3
- metadata.gz: e7f59b19e63ab08d448c89360b96bf1e8df8f972
4
- data.tar.gz: 7814afd531e95d7dc175d904e6a84274a3555005
2
+ SHA256:
3
+ metadata.gz: 88866f0f2e20dc989b91af55ecfae3e0fe785490d0dfb104a2968ce16f1303f4
4
+ data.tar.gz: 7b816834a3e06b607293844cd4f7c3d520257e95d7ac550c8e66a4342be7e928
5
5
  SHA512:
6
- metadata.gz: c6846939a8d285ec47c7986bc89d0e046efdb99972d19e95b03457e910ee9e617545a8d893528dfd7e89cb3db17330b26f65586d881af300d6425cce5b9fd2c5
7
- data.tar.gz: 75e95134b2bcb54b6b9e7dfc9e2dc70b2a7ad10e34bf1a4028174a540be5621c872fa19391c58fb663ab0de022f7c1e8dce2398c42526a92fb896cff1c3512b7
6
+ metadata.gz: a27ceb7b5d285bace90697e34b765e9acae70113da86718224e0a79813b8b7a90a8eef0897e7568b700132fa4a333a86812df3752a54e61dc07fd10c9e534fb1
7
+ data.tar.gz: a2474a66b7f71bc52125f94747eb8266579c26747051c7284592a926bb68afcc1a92a8fcd1364720b2922168908609272abce47a47b900f9405d9af1b341777b
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in slonik_migration.gemspec
4
3
  gemspec
@@ -3,5 +3,4 @@ source 'https://rubygems.org'
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "pg", "~> 0.18"
5
5
 
6
- # Specify your gem's dependencies in params_keeper_rails.gemspec
7
6
  gemspec path: "../"
@@ -3,5 +3,4 @@ source 'https://rubygems.org'
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "pg", "~> 0.18"
5
5
 
6
- # Specify your gem's dependencies in params_keeper_rails.gemspec
7
6
  gemspec path: "../"
@@ -1,6 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 5.2.0.rc1"
3
+ gem "rails", "~> 5.2.0"
4
4
 
5
- # Specify your gem's dependencies in params_keeper_rails.gemspec
6
5
  gemspec path: "../"
@@ -17,8 +17,10 @@ module SlonikMigration
17
17
 
18
18
  def build(sql, target: nil, name: nil, owner: nil)
19
19
  sql << %Q|; ALTER #{target} "#{name}" OWNER TO #{@config.owner}| if target && name && @config.owner
20
- @config.command.gsub(%r{\$SQL}, Shellwords.escape(sql))
21
- .gsub(%r{\$(\w+)}) { replace($1) }
20
+ command = @config.command.dup
21
+ command.gsub!(%r{\$SQL}) { Shellwords.escape(sql) }
22
+ command.gsub!(%r{\$(\w+)}) { replace($1) }
23
+ command
22
24
  end
23
25
 
24
26
  def replace(key)
@@ -1,3 +1,3 @@
1
1
  module SlonikMigration
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slonik_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.5.2.2
143
+ rubygems_version: 2.7.4
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: A rails migration gem for slony