thoughtbot-clearance 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.textile CHANGED
@@ -1,3 +1,9 @@
1
+ h2. 0.6.8 (06/24/2009)
2
+
3
+ * Added defined? checks for various Rails constants such as ActionController
4
+ for easier unit testing of Clearance extensions... particularly ActiveRecord
5
+ extensions... particularly strong_password. (Dan Croak)
6
+
1
7
  h2. 0.6.7 (06/13/2009)
2
8
 
3
9
  * [#30] Added sign_up, sign_in, sign_out named routes. (Dan Croak)
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'rake'
2
4
  require 'rake/testtask'
3
5
  require 'cucumber/rake/task'
@@ -51,7 +53,7 @@ task :default => ['test:all', 'test:features']
51
53
 
52
54
  gem_spec = Gem::Specification.new do |gem_spec|
53
55
  gem_spec.name = "clearance"
54
- gem_spec.version = "0.6.7"
56
+ gem_spec.version = "0.6.8"
55
57
  gem_spec.summary = "Rails authentication with email & password."
56
58
  gem_spec.email = "support@thoughtbot.com"
57
59
  gem_spec.homepage = "http://github.com/thoughtbot/clearance"
@@ -1,4 +1,6 @@
1
- module ActionController
2
- class Forbidden < StandardError
1
+ if defined?(ActionController)
2
+ module ActionController
3
+ class Forbidden < StandardError
4
+ end
3
5
  end
4
6
  end
@@ -1 +1,3 @@
1
- ActionController::Base.rescue_responses.update('ActionController::Forbidden' => :forbidden)
1
+ if defined?(ActionController::Base)
2
+ ActionController::Base.rescue_responses.update('ActionController::Forbidden' => :forbidden)
3
+ end
@@ -1,12 +1,14 @@
1
- class ActionController::Routing::RouteSet
2
- def load_routes_with_clearance!
3
- lib_path = File.dirname(__FILE__)
4
- clearance_routes = File.join(lib_path, *%w[.. .. .. config clearance_routes.rb])
5
- unless configuration_files.include?(clearance_routes)
6
- add_configuration_file(clearance_routes)
1
+ if defined?(ActionController::Routing::RouteSet)
2
+ class ActionController::Routing::RouteSet
3
+ def load_routes_with_clearance!
4
+ lib_path = File.dirname(__FILE__)
5
+ clearance_routes = File.join(lib_path, *%w[.. .. .. config clearance_routes.rb])
6
+ unless configuration_files.include?(clearance_routes)
7
+ add_configuration_file(clearance_routes)
8
+ end
9
+ load_routes_without_clearance!
7
10
  end
8
- load_routes_without_clearance!
9
- end
10
11
 
11
- alias_method_chain :load_routes!, :clearance
12
- end
12
+ alias_method_chain :load_routes!, :clearance
13
+ end
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thoughtbot-clearance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
@@ -24,7 +24,7 @@ autorequire:
24
24
  bindir: bin
25
25
  cert_chain: []
26
26
 
27
- date: 2009-06-12 21:00:00 -07:00
27
+ date: 2009-06-23 21:00:00 -07:00
28
28
  default_executable:
29
29
  dependencies: []
30
30