testbot 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- 0.3.2
1
+ 0.3.3
2
2
 
3
3
  Fixed loading issue in rails 2, testbot depended on having rails installed as a gem.
4
4
 
data/README.markdown CHANGED
@@ -68,7 +68,7 @@ Using testbot with Rails 3:
68
68
 
69
69
  Using testbot with Rails 2:
70
70
 
71
- ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.3.2'
71
+ ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.3.3'
72
72
 
73
73
  The rails 2 config generator isn't done yet so you can look at the following examples instead:
74
74
  [lib/tasks/testbot.rake](https://gist.github.com/715836) and
data/lib/railtie.rb CHANGED
@@ -1,5 +1,13 @@
1
1
  require 'testbot'
2
- if (require('rails') rescue(nil))
2
+
3
+ begin
4
+ require 'rails'
5
+ @rails_loaded = true
6
+ rescue LoadError => ex
7
+ @rails_loaded = false
8
+ end
9
+
10
+ if @rails_loaded
3
11
  module Testbot
4
12
  class Railtie < Rails::Railtie
5
13
  rake_tasks do
data/lib/testbot.rb CHANGED
@@ -6,7 +6,7 @@ module Testbot
6
6
  require 'railtie' if defined?(Rails)
7
7
 
8
8
  # Don't forget to update readme and changelog
9
- VERSION = "0.3.2"
9
+ VERSION = "0.3.3"
10
10
 
11
11
  SERVER_PID = "/tmp/testbot_server.pid"
12
12
  RUNNER_PID = "/tmp/testbot_runner.pid"
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Joakim Kolsj\xC3\xB6"