gap 0.0.18 → 0.0.19
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.
- data/lib/gap/patch.rb +4 -3
- data/lib/gap.rb +1 -1
- metadata +2 -2
data/lib/gap/patch.rb
CHANGED
|
@@ -45,17 +45,18 @@ module Capistrano
|
|
|
45
45
|
|
|
46
46
|
gap_config.each do |env,value|
|
|
47
47
|
|
|
48
|
+
variables = value["set"]
|
|
48
49
|
case env
|
|
49
50
|
when "global"
|
|
50
|
-
|
|
51
|
+
variables.each { |attr, val| set attr, val} if variables
|
|
51
52
|
when "local"
|
|
52
53
|
task(env) do
|
|
53
54
|
define_bulk_tasks value
|
|
54
|
-
|
|
55
|
+
variables.each { |attr, val| set attr, val } if variables
|
|
55
56
|
value.each do |app, commands|
|
|
56
57
|
task(app) do
|
|
57
58
|
commands["task"].each { |name, command|
|
|
58
|
-
task(name) { system(command)
|
|
59
|
+
task(name) { system("rvm-shell '#{rvm_ruby_string}' -c '#{command}'")}}
|
|
59
60
|
end
|
|
60
61
|
end
|
|
61
62
|
end
|
data/lib/gap.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: gap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.0.
|
|
5
|
+
version: 0.0.19
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Takashi Yaguchi
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2012-02-
|
|
13
|
+
date: 2012-02-03 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rdoc
|