gap 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gap/patch.rb +4 -3
  2. data/lib/gap.rb +1 -1
  3. 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
- value["set"].each { |attr, val| set attr, val}
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
- #value["set"].each { |attr, val| set attr, val }
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
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Gap
5
- VERSION = '0.0.18'
5
+ VERSION = '0.0.19'
6
6
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.18
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-01 00:00:00 Z
13
+ date: 2012-02-03 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdoc