testbot 0.6.6 → 0.6.7

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/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.6.7
2
+
3
+ Fixed broken gem lookup in ruby 1.9.
4
+
1
5
  0.6.6
2
6
 
3
7
  The runner will now run config/testbot/before_run.rb if it exists.
data/README.markdown CHANGED
@@ -67,7 +67,7 @@ Using testbot with Rails 2:
67
67
 
68
68
  # Add testbot to your Gemfile if you use bundler. You also need the plugin because
69
69
  # Rails 2 does not load raketasks from gems.
70
- ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.6.6'
70
+ ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.6.7'
71
71
  script/generate testbot --connect 192.168.0.100
72
72
 
73
73
  rake testbot:spec (or :rspec, :test, :features)
@@ -1,7 +1,16 @@
1
1
  class RubyEnv
2
2
 
3
3
  def self.bundler?(project_path)
4
- Gem::Specification.find_by_name("bundler") && File.exists?("#{project_path}/Gemfile") rescue false
4
+ gem_exists?("bundler") && File.exists?("#{project_path}/Gemfile")
5
+ end
6
+
7
+ def self.gem_exists?(gem)
8
+ if Gem::Specification.respond_to?(:find_by_name)
9
+ Gem::Specification.find_by_name(gem) rescue false
10
+ else
11
+ # older depricated method
12
+ Gem.available?(gem)
13
+ end
5
14
  end
6
15
 
7
16
  def self.ruby_command(project_path, opts = {})
@@ -1,7 +1,7 @@
1
1
  module Testbot
2
2
  # Don't forget to update readme and changelog
3
3
  def self.version
4
- version = "0.6.6"
4
+ version = "0.6.7"
5
5
  dev_version_file = File.join(File.dirname(__FILE__), '..', '..', 'DEV_VERSION')
6
6
  if File.exists?(dev_version_file)
7
7
  version += File.read(dev_version_file)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testbot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 6
10
- version: 0.6.6
9
+ - 7
10
+ version: 0.6.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Joakim Kolsj\xC3\xB6"