Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added GOTGEMS. Release 0.1.9.

  • Loading branch information...
commit 0152bfdddc7d5af2fb934e6d2f6ecf3859da9586 1 parent 3a91e2d
@aslakhellesoy aslakhellesoy authored
Showing with 9 additions and 4 deletions.
  1. +3 −0  History.txt
  2. +1 −1  Rakefile
  3. +5 −3 lib/aruba/api.rb
View
3  History.txt
@@ -1,3 +1,6 @@
+== 0.1.9
+* If the GOTGEMS environment variable is set, bundler won't run (faster). (Aslak Hellesøy)
+
== 0.1.8
* Use // instead of "" for "I should see matching" step. (Aslak Hellesøy)
* Replace rvm gemset character '%' with '@' for rvm 0.1.24 (#5 Ashley Moran)
View
2  Rakefile
@@ -5,7 +5,7 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
- gem.version = "0.1.8"
+ gem.version = "0.1.9"
gem.name = "aruba"
gem.summary = %Q{CLI Steps for Cucumber}
gem.description = %Q{CLI Steps for Cucumber, hand-crafted for you in Aruba}
View
8 lib/aruba/api.rb
@@ -90,7 +90,7 @@ def use_rvm(rvm_ruby_version)
def use_rvm_gemset(rvm_gemset, empty_gemset)
@rvm_gemset = rvm_gemset
- if empty_gemset
+ if empty_gemset && ENV['GOTGEMS'].nil?
delete_rvm_gemset(rvm_gemset)
create_rvm_gemset(rvm_gemset)
end
@@ -108,8 +108,10 @@ def create_rvm_gemset(rvm_gemset)
def install_gems(gemfile)
create_file("Gemfile", gemfile)
- run("gem install bundler")
- run("bundle install")
+ if ENV['GOTGEMS'].nil?
+ run("gem install bundler")
+ run("bundle install")
+ end
end
def run(cmd, fail_on_error=true)
Please sign in to comment.
Something went wrong with that request. Please try again.