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 +5 -5
- data/Gemfile +0 -1
- data/gemfiles/rails50.gemfile +0 -1
- data/gemfiles/rails51.gemfile +0 -1
- data/gemfiles/rails52.gemfile +1 -2
- data/lib/slonik_migration/command.rb +4 -2
- data/lib/slonik_migration/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 88866f0f2e20dc989b91af55ecfae3e0fe785490d0dfb104a2968ce16f1303f4
|
4
|
+
data.tar.gz: 7b816834a3e06b607293844cd4f7c3d520257e95d7ac550c8e66a4342be7e928
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a27ceb7b5d285bace90697e34b765e9acae70113da86718224e0a79813b8b7a90a8eef0897e7568b700132fa4a333a86812df3752a54e61dc07fd10c9e534fb1
|
7
|
+
data.tar.gz: a2474a66b7f71bc52125f94747eb8266579c26747051c7284592a926bb68afcc1a92a8fcd1364720b2922168908609272abce47a47b900f9405d9af1b341777b
|
data/Gemfile
CHANGED
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/gemfiles/rails52.gemfile
CHANGED
@@ -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.
|
21
|
-
|
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)
|
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.
|
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-
|
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.
|
143
|
+
rubygems_version: 2.7.4
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: A rails migration gem for slony
|