devise 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of devise might be problematic. Click here for more details.

@@ -1,3 +1,9 @@
1
+ == 0.6.3
2
+
3
+ * bug fix
4
+ * Added trackable to migrations
5
+ * Allow inflections to work
6
+
1
7
  == 0.6.2
2
8
 
3
9
  * enhancements
data/Rakefile CHANGED
@@ -36,7 +36,7 @@ begin
36
36
  s.description = "Flexible authentication solution for Rails with Warden"
37
37
  s.authors = ['José Valim', 'Carlos Antônio']
38
38
  s.files = FileList["[A-Z]*", "{app,config,generators,lib}/**/*", "init.rb"]
39
- s.add_dependency("warden", "~> 0.6.3")
39
+ s.add_dependency("warden", "~> 0.6.4")
40
40
  end
41
41
 
42
42
  Jeweler::GemcutterTasks.new
@@ -5,6 +5,7 @@ class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
5
5
  t.confirmable
6
6
  t.recoverable
7
7
  t.rememberable
8
+ t.trackable
8
9
 
9
10
  t.timestamps
10
11
  end
@@ -1,4 +1,8 @@
1
1
  module Devise
2
+ autoload :Schema, 'devise/schema'
3
+ autoload :Mapping, 'devise/mapping'
4
+ autoload :FailureApp, 'devise/failure_app'
5
+
2
6
  ALL = [:authenticatable, :confirmable, :recoverable, :rememberable,
3
7
  :timeoutable, :trackable, :validatable].freeze
4
8
 
@@ -144,6 +148,8 @@ end
144
148
  # Set the default_scope to nil, so it's overwritten when the first route is declared.
145
149
  Warden::Manager.default_scope = nil
146
150
 
151
+ require 'devise/controllers'
152
+ require 'devise/encryptors'
147
153
  require 'devise/strategies/base'
148
154
  require 'devise/serializers/base'
149
155
  require 'devise/rails'
@@ -0,0 +1,7 @@
1
+ module Devise
2
+ module Controllers
3
+ autoload :Filters, 'devise/controllers/filters'
4
+ autoload :Helpers, 'devise/controllers/helpers'
5
+ autoload :UrlHelpers, 'devise/controllers/url_helpers'
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ module Devise
2
+ module Encryptors
3
+ autoload :AuthlogicSha512, 'devise/encryptors/authlogic_sha512'
4
+ autoload :AuthlogicSha1, 'devise/encryptors/authlogic_sha1'
5
+ autoload :RestfulAuthenticationSha1, 'devise/encryptors/restful_authentication_sha1'
6
+ autoload :Sha512, 'devise/encryptors/sha512'
7
+ autoload :Sha1, 'devise/encryptors/sha1'
8
+ end
9
+ end
@@ -6,6 +6,7 @@ module ActionController::Routing
6
6
  # helpers.
7
7
  def load_routes_with_devise!
8
8
  load_routes_without_devise!
9
+ return if Devise.mappings.empty?
9
10
 
10
11
  ActionController::Base.send :include, Devise::Controllers::Filters
11
12
  ActionController::Base.send :include, Devise::Controllers::UrlHelpers
@@ -1,3 +1,3 @@
1
1
  module Devise
2
- VERSION = "0.6.2".freeze
2
+ VERSION = "0.6.3".freeze
3
3
  end
@@ -0,0 +1,2 @@
1
+ ActiveSupport::Inflector.inflections do |inflect|
2
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jos\xC3\xA9 Valim"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-11-25 00:00:00 -02:00
13
+ date: 2009-12-02 00:00:00 -02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 0.6.3
24
+ version: 0.6.4
25
25
  version:
26
26
  description: Flexible authentication solution for Rails with Warden
27
27
  email: contact@plataformatec.com.br
@@ -60,9 +60,11 @@ files:
60
60
  - generators/devise_views/devise_views_generator.rb
61
61
  - init.rb
62
62
  - lib/devise.rb
63
+ - lib/devise/controllers.rb
63
64
  - lib/devise/controllers/filters.rb
64
65
  - lib/devise/controllers/helpers.rb
65
66
  - lib/devise/controllers/url_helpers.rb
67
+ - lib/devise/encryptors.rb
66
68
  - lib/devise/encryptors/authlogic_sha512.rb
67
69
  - lib/devise/encryptors/clearance_sha1.rb
68
70
  - lib/devise/encryptors/restful_authentication_sha1.rb
@@ -125,49 +127,50 @@ signing_key:
125
127
  specification_version: 3
126
128
  summary: Flexible authentication solution for Rails with Warden
127
129
  test_files:
128
- - test/rails_app/config/boot.rb
129
- - test/rails_app/config/routes.rb
130
- - test/rails_app/config/environments/development.rb
131
- - test/rails_app/config/environments/production.rb
132
- - test/rails_app/config/environments/test.rb
133
- - test/rails_app/config/environment.rb
134
- - test/rails_app/config/initializers/session_store.rb
135
- - test/rails_app/config/initializers/new_rails_defaults.rb
136
- - test/rails_app/app/controllers/users_controller.rb
137
- - test/rails_app/app/controllers/application_controller.rb
138
- - test/rails_app/app/controllers/admins_controller.rb
139
- - test/rails_app/app/controllers/home_controller.rb
140
- - test/rails_app/app/helpers/application_helper.rb
141
- - test/rails_app/app/models/admin.rb
142
- - test/rails_app/app/models/organizer.rb
143
- - test/rails_app/app/models/account.rb
144
- - test/rails_app/app/models/user.rb
145
- - test/controllers/url_helpers_test.rb
146
- - test/controllers/helpers_test.rb
147
130
  - test/controllers/filters_test.rb
148
- - test/models_test.rb
131
+ - test/controllers/helpers_test.rb
132
+ - test/controllers/url_helpers_test.rb
133
+ - test/devise_test.rb
134
+ - test/encryptors_test.rb
135
+ - test/failure_app_test.rb
149
136
  - test/integration/authenticatable_test.rb
150
- - test/integration/rememberable_test.rb
137
+ - test/integration/confirmable_test.rb
151
138
  - test/integration/recoverable_test.rb
139
+ - test/integration/rememberable_test.rb
152
140
  - test/integration/timeoutable_test.rb
153
141
  - test/integration/trackable_test.rb
154
- - test/integration/confirmable_test.rb
155
142
  - test/mailers/confirmation_instructions_test.rb
156
143
  - test/mailers/reset_password_instructions_test.rb
144
+ - test/mapping_test.rb
157
145
  - test/models/authenticatable_test.rb
158
- - test/models/rememberable_test.rb
146
+ - test/models/confirmable_test.rb
159
147
  - test/models/recoverable_test.rb
148
+ - test/models/rememberable_test.rb
160
149
  - test/models/timeoutable_test.rb
161
150
  - test/models/trackable_test.rb
162
151
  - test/models/validatable_test.rb
163
- - test/models/confirmable_test.rb
164
- - test/encryptors_test.rb
165
- - test/support/model_tests_helper.rb
152
+ - test/models_test.rb
153
+ - test/rails_app/app/controllers/admins_controller.rb
154
+ - test/rails_app/app/controllers/application_controller.rb
155
+ - test/rails_app/app/controllers/home_controller.rb
156
+ - test/rails_app/app/controllers/users_controller.rb
157
+ - test/rails_app/app/helpers/application_helper.rb
158
+ - test/rails_app/app/models/account.rb
159
+ - test/rails_app/app/models/admin.rb
160
+ - test/rails_app/app/models/organizer.rb
161
+ - test/rails_app/app/models/user.rb
162
+ - test/rails_app/config/boot.rb
163
+ - test/rails_app/config/environment.rb
164
+ - test/rails_app/config/environments/development.rb
165
+ - test/rails_app/config/environments/production.rb
166
+ - test/rails_app/config/environments/test.rb
167
+ - test/rails_app/config/initializers/inflections.rb
168
+ - test/rails_app/config/initializers/new_rails_defaults.rb
169
+ - test/rails_app/config/initializers/session_store.rb
170
+ - test/rails_app/config/routes.rb
171
+ - test/routes_test.rb
166
172
  - test/support/assertions_helper.rb
167
173
  - test/support/integration_tests_helper.rb
168
- - test/failure_app_test.rb
169
- - test/devise_test.rb
170
- - test/routes_test.rb
174
+ - test/support/model_tests_helper.rb
171
175
  - test/test_helper.rb
172
176
  - test/test_helpers_test.rb
173
- - test/mapping_test.rb