Permalink
Browse files

Shell-escape gem name and version

  • Loading branch information...
1 parent 92d05df commit 6cb6a9258bb18f697de42575ebc79bf88f8f102b @cavalle committed Nov 21, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec/acceptance/rspec-1/acceptance_helper.rb
@@ -2,6 +2,7 @@
require 'rspec'
require File.dirname(__FILE__) + "/../../../lib/steak"
require 'tempfile'
+require 'shellwords'
module RSpec_1
module Factories
@@ -69,6 +70,7 @@ def steak_dir
def self.gemset_create(gemset, *gems)
`rvm gemset create #{gemset}`
gems.each do |name|
+ name = Shellwords.escape(name)
`rvm @#{gemset} gem search #{name} -i || rvm @#{gemset} gem install #{name}`
end
end

0 comments on commit 6cb6a92

Please sign in to comment.