ratchetio 0.7.0 → 0.7.1

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.
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ **0.7.1**
4
+ - Fix ratchetio:test rake task when project base controller is not called ApplicationController
5
+
3
6
  **0.7.0**
4
7
  - Exceptions in Rake tasks are now automatically reported.
5
8
 
@@ -12,8 +12,6 @@ namespace :ratchetio do
12
12
  config.logger = Rails.logger
13
13
  end
14
14
 
15
- require './app/controllers/application_controller'
16
-
17
15
  class RatchetioTestingException < RuntimeError; end
18
16
 
19
17
  unless Ratchetio.configuration.access_token
@@ -21,9 +19,14 @@ namespace :ratchetio do
21
19
  exit
22
20
  end
23
21
 
22
+ begin
23
+ require './app/controllers/application_controller'
24
+ rescue LoadError
25
+ end
26
+
24
27
  unless defined?(ApplicationController)
25
- puts "No ApplicationController found"
26
- exit
28
+ puts "No ApplicationController found, using ActionController::Base instead"
29
+ class ApplicationController < ActionController::Base; end
27
30
  end
28
31
 
29
32
  puts "Setting up the controller."
@@ -1,3 +1,3 @@
1
1
  module Ratchetio
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratchetio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-17 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json