devise 0.4.0 → 0.4.1
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.
- data/CHANGELOG.rdoc +8 -1
- data/generators/devise/templates/migration.rb +1 -1
- data/generators/devise_install/templates/devise.rb +1 -1
- data/lib/devise.rb +3 -0
- data/lib/devise/models.rb +0 -1
- data/lib/devise/version.rb +1 -1
- metadata +31 -31
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
== 0.4.1
|
2
|
+
|
3
|
+
* bug fix
|
4
|
+
* [#21] Ensure options can be set even if models were not loaded
|
5
|
+
|
6
|
+
== 0.4.0
|
7
|
+
|
1
8
|
* deprecations
|
2
9
|
* Notifier is deprecated, use DeviseMailer instead. Remember to rename
|
3
10
|
app/views/notifier to app/views/devise_mailer and I18n key from
|
@@ -5,7 +12,7 @@
|
|
5
12
|
* :authenticable calls are deprecated, use :authenticatable instead
|
6
13
|
|
7
14
|
* enhancements
|
8
|
-
* [#16] Allow devise to be more agnostic
|
15
|
+
* [#16] Allow devise to be more agnostic and do not require ActiveRecord to be loaded
|
9
16
|
* Allow Warden::Manager to be configured through Devise
|
10
17
|
* Created a generator which creates an initializer
|
11
18
|
|
@@ -22,7 +22,7 @@ Devise.setup do |config|
|
|
22
22
|
# you can configure them inside the config.warden block. The example below
|
23
23
|
# allows you to setup OAuth, using http://github.com/roman/warden_oauth
|
24
24
|
#
|
25
|
-
# config.
|
25
|
+
# config.warden do |manager|
|
26
26
|
# manager.oauth(:twitter) do |twitter|
|
27
27
|
# twitter.consumer_secret = <YOUR CONSUMER SECRET>
|
28
28
|
# twitter.consumer_key = <YOUR CONSUMER KEY>
|
data/lib/devise.rb
CHANGED
@@ -11,6 +11,9 @@ module Devise
|
|
11
11
|
STRATEGIES = [:rememberable, :authenticatable].freeze
|
12
12
|
TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE'].freeze
|
13
13
|
|
14
|
+
# Models configuration
|
15
|
+
mattr_accessor :pepper, :stretches, :remember_for, :confirm_within
|
16
|
+
|
14
17
|
class << self
|
15
18
|
# Default way to setup Devise. Run script/generate devise_install to create
|
16
19
|
# a fresh initializer with all configuration values.
|
data/lib/devise/models.rb
CHANGED
data/lib/devise/version.rb
CHANGED
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.4.
|
4
|
+
version: 0.4.1
|
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-
|
13
|
+
date: 2009-11-04 00:00:00 -02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -112,43 +112,43 @@ signing_key:
|
|
112
112
|
specification_version: 3
|
113
113
|
summary: Flexible authentication solution for Rails with Warden
|
114
114
|
test_files:
|
115
|
-
- test/rails_app/config/boot.rb
|
116
|
-
- test/rails_app/config/routes.rb
|
117
|
-
- test/rails_app/config/environments/development.rb
|
118
|
-
- test/rails_app/config/environments/production.rb
|
119
|
-
- test/rails_app/config/environments/test.rb
|
120
|
-
- test/rails_app/config/environment.rb
|
121
|
-
- test/rails_app/config/initializers/session_store.rb
|
122
|
-
- test/rails_app/config/initializers/new_rails_defaults.rb
|
123
|
-
- test/rails_app/app/controllers/users_controller.rb
|
124
|
-
- test/rails_app/app/controllers/application_controller.rb
|
125
|
-
- test/rails_app/app/controllers/admins_controller.rb
|
126
|
-
- test/rails_app/app/controllers/home_controller.rb
|
127
|
-
- test/rails_app/app/helpers/application_helper.rb
|
128
|
-
- test/rails_app/app/models/admin.rb
|
129
|
-
- test/rails_app/app/models/organizer.rb
|
130
|
-
- test/rails_app/app/models/account.rb
|
131
|
-
- test/rails_app/app/models/user.rb
|
132
|
-
- test/controllers/url_helpers_test.rb
|
133
|
-
- test/controllers/helpers_test.rb
|
134
115
|
- test/controllers/filters_test.rb
|
135
|
-
- test/
|
116
|
+
- test/controllers/helpers_test.rb
|
117
|
+
- test/controllers/url_helpers_test.rb
|
118
|
+
- test/devise_test.rb
|
119
|
+
- test/failure_test.rb
|
136
120
|
- test/integration/authenticatable_test.rb
|
137
|
-
- test/integration/rememberable_test.rb
|
138
|
-
- test/integration/recoverable_test.rb
|
139
121
|
- test/integration/confirmable_test.rb
|
122
|
+
- test/integration/recoverable_test.rb
|
123
|
+
- test/integration/rememberable_test.rb
|
140
124
|
- test/mailers/confirmation_instructions_test.rb
|
141
125
|
- test/mailers/reset_password_instructions_test.rb
|
126
|
+
- test/mapping_test.rb
|
142
127
|
- test/models/authenticatable_test.rb
|
143
|
-
- test/models/
|
128
|
+
- test/models/confirmable_test.rb
|
144
129
|
- test/models/recoverable_test.rb
|
130
|
+
- test/models/rememberable_test.rb
|
145
131
|
- test/models/validatable_test.rb
|
146
|
-
- test/
|
147
|
-
- test/
|
148
|
-
- test/
|
132
|
+
- test/models_test.rb
|
133
|
+
- test/rails_app/app/controllers/admins_controller.rb
|
134
|
+
- test/rails_app/app/controllers/application_controller.rb
|
135
|
+
- test/rails_app/app/controllers/home_controller.rb
|
136
|
+
- test/rails_app/app/controllers/users_controller.rb
|
137
|
+
- test/rails_app/app/helpers/application_helper.rb
|
138
|
+
- test/rails_app/app/models/account.rb
|
139
|
+
- test/rails_app/app/models/admin.rb
|
140
|
+
- test/rails_app/app/models/organizer.rb
|
141
|
+
- test/rails_app/app/models/user.rb
|
142
|
+
- test/rails_app/config/boot.rb
|
143
|
+
- test/rails_app/config/environment.rb
|
144
|
+
- test/rails_app/config/environments/development.rb
|
145
|
+
- test/rails_app/config/environments/production.rb
|
146
|
+
- test/rails_app/config/environments/test.rb
|
147
|
+
- test/rails_app/config/initializers/new_rails_defaults.rb
|
148
|
+
- test/rails_app/config/initializers/session_store.rb
|
149
|
+
- test/rails_app/config/routes.rb
|
150
|
+
- test/routes_test.rb
|
149
151
|
- test/support/assertions_helper.rb
|
150
152
|
- test/support/integration_tests_helper.rb
|
151
|
-
- test/
|
152
|
-
- test/routes_test.rb
|
153
|
+
- test/support/model_tests_helper.rb
|
153
154
|
- test/test_helper.rb
|
154
|
-
- test/mapping_test.rb
|