lib/shared/adapters/helpers/ruby_env.rb in testbot-0.6.5 vs lib/shared/adapters/helpers/ruby_env.rb in testbot-0.6.6
- old
+ new
@@ -1,8 +1,8 @@
class RubyEnv
def self.bundler?(project_path)
- Gem.available?("bundler") && File.exists?("#{project_path}/Gemfile")
+ Gem::Specification.find_by_name("bundler") && File.exists?("#{project_path}/Gemfile") rescue false
end
def self.ruby_command(project_path, opts = {})
ruby_interpreter = opts[:ruby_interpreter] || "ruby"