devise 3.5.2 → 4.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +259 -1086
- data/MIT-LICENSE +1 -1
- data/README.md +254 -67
- data/app/controllers/devise/confirmations_controller.rb +3 -1
- data/app/controllers/devise/omniauth_callbacks_controller.rb +8 -6
- data/app/controllers/devise/passwords_controller.rb +8 -4
- data/app/controllers/devise/registrations_controller.rb +39 -18
- data/app/controllers/devise/sessions_controller.rb +9 -7
- data/app/controllers/devise/unlocks_controller.rb +4 -2
- data/app/controllers/devise_controller.rb +23 -10
- data/app/helpers/devise_helper.rb +12 -19
- data/app/mailers/devise/mailer.rb +10 -0
- data/app/views/devise/confirmations/new.html.erb +2 -2
- data/app/views/devise/mailer/email_changed.html.erb +7 -0
- data/app/views/devise/mailer/password_change.html.erb +3 -0
- data/app/views/devise/passwords/edit.html.erb +3 -3
- data/app/views/devise/passwords/new.html.erb +2 -2
- data/app/views/devise/registrations/edit.html.erb +9 -5
- data/app/views/devise/registrations/new.html.erb +4 -4
- data/app/views/devise/sessions/new.html.erb +4 -4
- data/app/views/devise/shared/_error_messages.html.erb +15 -0
- data/app/views/devise/shared/_links.html.erb +8 -8
- data/app/views/devise/unlocks/new.html.erb +2 -2
- data/config/locales/en.yml +6 -1
- data/lib/devise/controllers/helpers.rb +35 -26
- data/lib/devise/controllers/rememberable.rb +11 -2
- data/lib/devise/controllers/scoped_views.rb +2 -0
- data/lib/devise/controllers/sign_in_out.rb +34 -11
- data/lib/devise/controllers/store_location.rb +25 -7
- data/lib/devise/controllers/url_helpers.rb +2 -0
- data/lib/devise/delegator.rb +2 -0
- data/lib/devise/encryptor.rb +6 -4
- data/lib/devise/failure_app.rb +84 -32
- data/lib/devise/hooks/activatable.rb +2 -0
- data/lib/devise/hooks/csrf_cleaner.rb +2 -0
- data/lib/devise/hooks/forgetable.rb +2 -0
- data/lib/devise/hooks/lockable.rb +6 -1
- data/lib/devise/hooks/proxy.rb +3 -1
- data/lib/devise/hooks/rememberable.rb +2 -0
- data/lib/devise/hooks/timeoutable.rb +7 -3
- data/lib/devise/hooks/trackable.rb +2 -0
- data/lib/devise/mailers/helpers.rb +7 -4
- data/lib/devise/mapping.rb +2 -0
- data/lib/devise/models/authenticatable.rb +51 -26
- data/lib/devise/models/confirmable.rb +89 -27
- data/lib/devise/models/database_authenticatable.rb +97 -20
- data/lib/devise/models/lockable.rb +15 -5
- data/lib/devise/models/omniauthable.rb +2 -0
- data/lib/devise/models/recoverable.rb +32 -24
- data/lib/devise/models/registerable.rb +4 -0
- data/lib/devise/models/rememberable.rb +42 -26
- data/lib/devise/models/timeoutable.rb +2 -6
- data/lib/devise/models/trackable.rb +15 -1
- data/lib/devise/models/validatable.rb +10 -3
- data/lib/devise/models.rb +3 -1
- data/lib/devise/modules.rb +2 -0
- data/lib/devise/omniauth/config.rb +2 -0
- data/lib/devise/omniauth/url_helpers.rb +14 -5
- data/lib/devise/omniauth.rb +2 -0
- data/lib/devise/orm/active_record.rb +5 -1
- data/lib/devise/orm/mongoid.rb +6 -2
- data/lib/devise/parameter_filter.rb +4 -0
- data/lib/devise/parameter_sanitizer.rb +139 -65
- data/lib/devise/rails/routes.rb +59 -34
- data/lib/devise/rails/warden_compat.rb +3 -10
- data/lib/devise/rails.rb +7 -16
- data/lib/devise/secret_key_finder.rb +27 -0
- data/lib/devise/strategies/authenticatable.rb +4 -2
- data/lib/devise/strategies/base.rb +2 -0
- data/lib/devise/strategies/database_authenticatable.rb +11 -4
- data/lib/devise/strategies/rememberable.rb +5 -6
- data/lib/devise/test/controller_helpers.rb +165 -0
- data/lib/devise/test/integration_helpers.rb +63 -0
- data/lib/devise/test_helpers.rb +7 -124
- data/lib/devise/time_inflector.rb +2 -0
- data/lib/devise/token_generator.rb +3 -41
- data/lib/devise/version.rb +3 -1
- data/lib/devise.rb +72 -42
- data/lib/generators/active_record/devise_generator.rb +29 -10
- data/lib/generators/active_record/templates/migration.rb +4 -2
- data/lib/generators/active_record/templates/migration_existing.rb +4 -2
- data/lib/generators/devise/controllers_generator.rb +3 -1
- data/lib/generators/devise/devise_generator.rb +4 -2
- data/lib/generators/devise/install_generator.rb +17 -0
- data/lib/generators/devise/orm_helpers.rb +10 -21
- data/lib/generators/devise/views_generator.rb +21 -11
- data/lib/generators/mongoid/devise_generator.rb +7 -5
- data/lib/generators/templates/README +1 -8
- data/lib/generators/templates/controllers/confirmations_controller.rb +2 -0
- data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +2 -0
- data/lib/generators/templates/controllers/passwords_controller.rb +2 -0
- data/lib/generators/templates/controllers/registrations_controller.rb +6 -4
- data/lib/generators/templates/controllers/sessions_controller.rb +4 -2
- data/lib/generators/templates/controllers/unlocks_controller.rb +2 -0
- data/lib/generators/templates/devise.rb +52 -19
- data/lib/generators/templates/markerb/confirmation_instructions.markerb +1 -1
- data/lib/generators/templates/markerb/email_changed.markerb +7 -0
- data/lib/generators/templates/markerb/password_change.markerb +3 -0
- data/lib/generators/templates/markerb/reset_password_instructions.markerb +1 -1
- data/lib/generators/templates/markerb/unlock_instructions.markerb +1 -1
- data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +5 -1
- data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +10 -2
- data/lib/generators/templates/simple_form_for/passwords/new.html.erb +4 -1
- data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +11 -3
- data/lib/generators/templates/simple_form_for/registrations/new.html.erb +11 -3
- data/lib/generators/templates/simple_form_for/sessions/new.html.erb +7 -2
- data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +4 -1
- metadata +27 -313
- data/.gitignore +0 -10
- data/.travis.yml +0 -45
- data/.yardopts +0 -9
- data/CONTRIBUTING.md +0 -14
- data/Gemfile +0 -29
- data/Gemfile.lock +0 -183
- data/Rakefile +0 -36
- data/devise.gemspec +0 -27
- data/devise.png +0 -0
- data/gemfiles/Gemfile.rails-3.2-stable +0 -29
- data/gemfiles/Gemfile.rails-3.2-stable.lock +0 -169
- data/gemfiles/Gemfile.rails-4.0-stable +0 -29
- data/gemfiles/Gemfile.rails-4.0-stable.lock +0 -163
- data/gemfiles/Gemfile.rails-4.1-stable +0 -29
- data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -169
- data/gemfiles/Gemfile.rails-4.2-stable +0 -29
- data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -191
- data/script/cached-bundle +0 -49
- data/script/s3-put +0 -71
- data/test/controllers/custom_registrations_controller_test.rb +0 -40
- data/test/controllers/custom_strategy_test.rb +0 -62
- data/test/controllers/helpers_test.rb +0 -316
- data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -51
- data/test/controllers/internal_helpers_test.rb +0 -129
- data/test/controllers/load_hooks_controller_test.rb +0 -19
- data/test/controllers/passwords_controller_test.rb +0 -31
- data/test/controllers/sessions_controller_test.rb +0 -103
- data/test/controllers/url_helpers_test.rb +0 -65
- data/test/delegator_test.rb +0 -19
- data/test/devise_test.rb +0 -107
- data/test/failure_app_test.rb +0 -298
- data/test/generators/active_record_generator_test.rb +0 -109
- data/test/generators/controllers_generator_test.rb +0 -48
- data/test/generators/devise_generator_test.rb +0 -39
- data/test/generators/install_generator_test.rb +0 -13
- data/test/generators/mongoid_generator_test.rb +0 -23
- data/test/generators/views_generator_test.rb +0 -96
- data/test/helpers/devise_helper_test.rb +0 -49
- data/test/integration/authenticatable_test.rb +0 -729
- data/test/integration/confirmable_test.rb +0 -324
- data/test/integration/database_authenticatable_test.rb +0 -95
- data/test/integration/http_authenticatable_test.rb +0 -105
- data/test/integration/lockable_test.rb +0 -239
- data/test/integration/omniauthable_test.rb +0 -133
- data/test/integration/recoverable_test.rb +0 -347
- data/test/integration/registerable_test.rb +0 -359
- data/test/integration/rememberable_test.rb +0 -176
- data/test/integration/timeoutable_test.rb +0 -172
- data/test/integration/trackable_test.rb +0 -92
- data/test/mailers/confirmation_instructions_test.rb +0 -115
- data/test/mailers/reset_password_instructions_test.rb +0 -96
- data/test/mailers/unlock_instructions_test.rb +0 -91
- data/test/mapping_test.rb +0 -134
- data/test/models/authenticatable_test.rb +0 -23
- data/test/models/confirmable_test.rb +0 -479
- data/test/models/database_authenticatable_test.rb +0 -249
- data/test/models/lockable_test.rb +0 -328
- data/test/models/omniauthable_test.rb +0 -7
- data/test/models/recoverable_test.rb +0 -228
- data/test/models/registerable_test.rb +0 -7
- data/test/models/rememberable_test.rb +0 -204
- data/test/models/serializable_test.rb +0 -49
- data/test/models/timeoutable_test.rb +0 -51
- data/test/models/trackable_test.rb +0 -41
- data/test/models/validatable_test.rb +0 -127
- data/test/models_test.rb +0 -144
- data/test/omniauth/config_test.rb +0 -57
- data/test/omniauth/url_helpers_test.rb +0 -54
- data/test/orm/active_record.rb +0 -10
- data/test/orm/mongoid.rb +0 -13
- data/test/parameter_sanitizer_test.rb +0 -81
- data/test/rails_app/Rakefile +0 -6
- data/test/rails_app/app/active_record/admin.rb +0 -6
- data/test/rails_app/app/active_record/shim.rb +0 -2
- data/test/rails_app/app/active_record/user.rb +0 -6
- data/test/rails_app/app/active_record/user_on_engine.rb +0 -7
- data/test/rails_app/app/active_record/user_on_main_app.rb +0 -7
- data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -6
- data/test/rails_app/app/controllers/admins_controller.rb +0 -6
- data/test/rails_app/app/controllers/application_controller.rb +0 -12
- data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -30
- data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -31
- data/test/rails_app/app/controllers/home_controller.rb +0 -25
- data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -2
- data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -2
- data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -14
- data/test/rails_app/app/controllers/users_controller.rb +0 -31
- data/test/rails_app/app/helpers/application_helper.rb +0 -3
- data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -3
- data/test/rails_app/app/mailers/users/mailer.rb +0 -3
- data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -4
- data/test/rails_app/app/mongoid/admin.rb +0 -29
- data/test/rails_app/app/mongoid/shim.rb +0 -23
- data/test/rails_app/app/mongoid/user.rb +0 -39
- data/test/rails_app/app/mongoid/user_on_engine.rb +0 -39
- data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -39
- data/test/rails_app/app/views/admins/index.html.erb +0 -1
- data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
- data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
- data/test/rails_app/app/views/home/index.html.erb +0 -1
- data/test/rails_app/app/views/home/join.html.erb +0 -1
- data/test/rails_app/app/views/home/private.html.erb +0 -1
- data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
- data/test/rails_app/app/views/layouts/application.html.erb +0 -24
- data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
- data/test/rails_app/app/views/users/index.html.erb +0 -1
- data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
- data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
- data/test/rails_app/bin/bundle +0 -3
- data/test/rails_app/bin/rails +0 -4
- data/test/rails_app/bin/rake +0 -4
- data/test/rails_app/config/application.rb +0 -40
- data/test/rails_app/config/boot.rb +0 -14
- data/test/rails_app/config/database.yml +0 -18
- data/test/rails_app/config/environment.rb +0 -5
- data/test/rails_app/config/environments/development.rb +0 -30
- data/test/rails_app/config/environments/production.rb +0 -84
- data/test/rails_app/config/environments/test.rb +0 -41
- data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/rails_app/config/initializers/devise.rb +0 -180
- data/test/rails_app/config/initializers/inflections.rb +0 -2
- data/test/rails_app/config/initializers/secret_token.rb +0 -8
- data/test/rails_app/config/initializers/session_store.rb +0 -1
- data/test/rails_app/config/routes.rb +0 -120
- data/test/rails_app/config.ru +0 -4
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -71
- data/test/rails_app/db/schema.rb +0 -55
- data/test/rails_app/lib/shared_admin.rb +0 -17
- data/test/rails_app/lib/shared_user.rb +0 -29
- data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -13
- data/test/rails_app/public/404.html +0 -26
- data/test/rails_app/public/422.html +0 -26
- data/test/rails_app/public/500.html +0 -26
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_test.rb +0 -9
- data/test/routes_test.rb +0 -264
- data/test/support/action_controller/record_identifier.rb +0 -10
- data/test/support/assertions.rb +0 -39
- data/test/support/helpers.rb +0 -73
- data/test/support/integration.rb +0 -92
- data/test/support/locale/en.yml +0 -8
- data/test/support/mongoid.yml +0 -6
- data/test/support/webrat/integrations/rails.rb +0 -24
- data/test/test_helper.rb +0 -34
- data/test/test_helpers_test.rb +0 -178
- data/test/test_models.rb +0 -33
data/Gemfile.lock
DELETED
@@ -1,183 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
devise (3.5.2)
|
5
|
-
bcrypt (~> 3.0)
|
6
|
-
orm_adapter (~> 0.1)
|
7
|
-
railties (>= 3.2.6, < 5)
|
8
|
-
responders
|
9
|
-
thread_safe (~> 0.1)
|
10
|
-
warden (~> 1.2.3)
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: https://rubygems.org/
|
14
|
-
specs:
|
15
|
-
actionmailer (4.2.2)
|
16
|
-
actionpack (= 4.2.2)
|
17
|
-
actionview (= 4.2.2)
|
18
|
-
activejob (= 4.2.2)
|
19
|
-
mail (~> 2.5, >= 2.5.4)
|
20
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
21
|
-
actionpack (4.2.2)
|
22
|
-
actionview (= 4.2.2)
|
23
|
-
activesupport (= 4.2.2)
|
24
|
-
rack (~> 1.6)
|
25
|
-
rack-test (~> 0.6.2)
|
26
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
27
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
28
|
-
actionview (4.2.2)
|
29
|
-
activesupport (= 4.2.2)
|
30
|
-
builder (~> 3.1)
|
31
|
-
erubis (~> 2.7.0)
|
32
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
33
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
34
|
-
activejob (4.2.2)
|
35
|
-
activesupport (= 4.2.2)
|
36
|
-
globalid (>= 0.3.0)
|
37
|
-
activemodel (4.2.2)
|
38
|
-
activesupport (= 4.2.2)
|
39
|
-
builder (~> 3.1)
|
40
|
-
activerecord (4.2.2)
|
41
|
-
activemodel (= 4.2.2)
|
42
|
-
activesupport (= 4.2.2)
|
43
|
-
arel (~> 6.0)
|
44
|
-
activesupport (4.2.2)
|
45
|
-
i18n (~> 0.7)
|
46
|
-
json (~> 1.7, >= 1.7.7)
|
47
|
-
minitest (~> 5.1)
|
48
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
49
|
-
tzinfo (~> 1.1)
|
50
|
-
arel (6.0.0)
|
51
|
-
bcrypt (3.1.10)
|
52
|
-
bson (3.1.2)
|
53
|
-
builder (3.2.2)
|
54
|
-
connection_pool (2.2.0)
|
55
|
-
erubis (2.7.0)
|
56
|
-
faraday (0.9.1)
|
57
|
-
multipart-post (>= 1.2, < 3)
|
58
|
-
globalid (0.3.5)
|
59
|
-
activesupport (>= 4.1.0)
|
60
|
-
hashie (3.4.0)
|
61
|
-
i18n (0.7.0)
|
62
|
-
json (1.8.3)
|
63
|
-
jwt (1.4.1)
|
64
|
-
loofah (2.0.2)
|
65
|
-
nokogiri (>= 1.5.9)
|
66
|
-
mail (2.6.3)
|
67
|
-
mime-types (>= 1.16, < 3)
|
68
|
-
metaclass (0.0.4)
|
69
|
-
mime-types (2.6.1)
|
70
|
-
mini_portile (0.6.2)
|
71
|
-
minitest (5.7.0)
|
72
|
-
mocha (1.1.0)
|
73
|
-
metaclass (~> 0.0.1)
|
74
|
-
mongoid (4.0.2)
|
75
|
-
activemodel (~> 4.0)
|
76
|
-
moped (~> 2.0.0)
|
77
|
-
origin (~> 2.1)
|
78
|
-
tzinfo (>= 0.3.37)
|
79
|
-
moped (2.0.6)
|
80
|
-
bson (~> 3.0)
|
81
|
-
connection_pool (~> 2.0)
|
82
|
-
optionable (~> 0.2.0)
|
83
|
-
multi_json (1.11.1)
|
84
|
-
multi_xml (0.5.5)
|
85
|
-
multipart-post (2.0.0)
|
86
|
-
nokogiri (1.6.6.2)
|
87
|
-
mini_portile (~> 0.6.0)
|
88
|
-
oauth2 (0.9.4)
|
89
|
-
faraday (>= 0.8, < 0.10)
|
90
|
-
jwt (~> 1.0)
|
91
|
-
multi_json (~> 1.3)
|
92
|
-
multi_xml (~> 0.5)
|
93
|
-
rack (~> 1.2)
|
94
|
-
omniauth (1.2.2)
|
95
|
-
hashie (>= 1.2, < 4)
|
96
|
-
rack (~> 1.0)
|
97
|
-
omniauth-facebook (1.6.0)
|
98
|
-
omniauth-oauth2 (~> 1.1)
|
99
|
-
omniauth-oauth2 (1.1.2)
|
100
|
-
faraday (>= 0.8, < 0.10)
|
101
|
-
multi_json (~> 1.3)
|
102
|
-
oauth2 (~> 0.9.3)
|
103
|
-
omniauth (~> 1.2)
|
104
|
-
omniauth-openid (1.0.1)
|
105
|
-
omniauth (~> 1.0)
|
106
|
-
rack-openid (~> 1.3.1)
|
107
|
-
optionable (0.2.0)
|
108
|
-
origin (2.1.1)
|
109
|
-
orm_adapter (0.5.0)
|
110
|
-
rack (1.6.2)
|
111
|
-
rack-openid (1.3.1)
|
112
|
-
rack (>= 1.1.0)
|
113
|
-
ruby-openid (>= 2.1.8)
|
114
|
-
rack-test (0.6.3)
|
115
|
-
rack (>= 1.0)
|
116
|
-
rails (4.2.2)
|
117
|
-
actionmailer (= 4.2.2)
|
118
|
-
actionpack (= 4.2.2)
|
119
|
-
actionview (= 4.2.2)
|
120
|
-
activejob (= 4.2.2)
|
121
|
-
activemodel (= 4.2.2)
|
122
|
-
activerecord (= 4.2.2)
|
123
|
-
activesupport (= 4.2.2)
|
124
|
-
bundler (>= 1.3.0, < 2.0)
|
125
|
-
railties (= 4.2.2)
|
126
|
-
sprockets-rails
|
127
|
-
rails-deprecated_sanitizer (1.0.3)
|
128
|
-
activesupport (>= 4.2.0.alpha)
|
129
|
-
rails-dom-testing (1.0.6)
|
130
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
131
|
-
nokogiri (~> 1.6.0)
|
132
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
133
|
-
rails-html-sanitizer (1.0.2)
|
134
|
-
loofah (~> 2.0)
|
135
|
-
railties (4.2.2)
|
136
|
-
actionpack (= 4.2.2)
|
137
|
-
activesupport (= 4.2.2)
|
138
|
-
rake (>= 0.8.7)
|
139
|
-
thor (>= 0.18.1, < 2.0)
|
140
|
-
rake (10.4.2)
|
141
|
-
rdoc (4.2.0)
|
142
|
-
responders (2.1.0)
|
143
|
-
railties (>= 4.2.0, < 5)
|
144
|
-
ruby-openid (2.7.0)
|
145
|
-
sprockets (3.2.0)
|
146
|
-
rack (~> 1.0)
|
147
|
-
sprockets-rails (2.3.1)
|
148
|
-
actionpack (>= 3.0)
|
149
|
-
activesupport (>= 3.0)
|
150
|
-
sprockets (>= 2.8, < 4.0)
|
151
|
-
sqlite3 (1.3.10)
|
152
|
-
thor (0.19.1)
|
153
|
-
thread_safe (0.3.5)
|
154
|
-
tzinfo (1.2.2)
|
155
|
-
thread_safe (~> 0.1)
|
156
|
-
warden (1.2.3)
|
157
|
-
rack (>= 1.0)
|
158
|
-
webrat (0.7.3)
|
159
|
-
nokogiri (>= 1.2.0)
|
160
|
-
rack (>= 1.0)
|
161
|
-
rack-test (>= 0.5.3)
|
162
|
-
|
163
|
-
PLATFORMS
|
164
|
-
ruby
|
165
|
-
|
166
|
-
DEPENDENCIES
|
167
|
-
activerecord-jdbc-adapter
|
168
|
-
activerecord-jdbcsqlite3-adapter
|
169
|
-
devise!
|
170
|
-
jruby-openssl
|
171
|
-
mocha (~> 1.1)
|
172
|
-
mongoid (~> 4.0)
|
173
|
-
omniauth (~> 1.2.0)
|
174
|
-
omniauth-facebook
|
175
|
-
omniauth-oauth2 (~> 1.1.0)
|
176
|
-
omniauth-openid (~> 1.0.1)
|
177
|
-
rails (= 4.2.2)
|
178
|
-
rdoc
|
179
|
-
sqlite3
|
180
|
-
webrat (= 0.7.3)
|
181
|
-
|
182
|
-
BUNDLED WITH
|
183
|
-
1.10.6
|
data/Rakefile
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
require 'bundler/gem_tasks'
|
4
|
-
require 'rake/testtask'
|
5
|
-
require 'rdoc/task'
|
6
|
-
|
7
|
-
desc 'Default: run tests for all ORMs.'
|
8
|
-
task default: :test
|
9
|
-
|
10
|
-
desc 'Run Devise tests for all ORMs.'
|
11
|
-
task :pre_commit do
|
12
|
-
Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
|
13
|
-
orm = File.basename(file).split(".").first
|
14
|
-
# "Some day, my son, rake's inner wisdom will reveal itself. Until then,
|
15
|
-
# take this `system` -- may its brute force protect you well."
|
16
|
-
exit 1 unless system "rake test DEVISE_ORM=#{orm}"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
desc 'Run Devise unit tests.'
|
21
|
-
Rake::TestTask.new(:test) do |t|
|
22
|
-
t.libs << 'lib'
|
23
|
-
t.libs << 'test'
|
24
|
-
t.pattern = 'test/**/*_test.rb'
|
25
|
-
t.verbose = true
|
26
|
-
t.warning = false
|
27
|
-
end
|
28
|
-
|
29
|
-
desc 'Generate documentation for Devise.'
|
30
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
31
|
-
rdoc.rdoc_dir = 'rdoc'
|
32
|
-
rdoc.title = 'Devise'
|
33
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
34
|
-
rdoc.rdoc_files.include('README.md')
|
35
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
36
|
-
end
|
data/devise.gemspec
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "devise/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = "devise"
|
7
|
-
s.version = Devise::VERSION.dup
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
|
-
s.licenses = ["MIT"]
|
10
|
-
s.summary = "Flexible authentication solution for Rails with Warden"
|
11
|
-
s.email = "contact@plataformatec.com.br"
|
12
|
-
s.homepage = "https://github.com/plataformatec/devise"
|
13
|
-
s.description = "Flexible authentication solution for Rails with Warden"
|
14
|
-
s.authors = ['José Valim', 'Carlos Antônio']
|
15
|
-
|
16
|
-
s.files = `git ls-files`.split("\n")
|
17
|
-
s.test_files = `git ls-files -- test/*`.split("\n")
|
18
|
-
s.require_paths = ["lib"]
|
19
|
-
s.required_ruby_version = '>= 1.9.3'
|
20
|
-
|
21
|
-
s.add_dependency("warden", "~> 1.2.3")
|
22
|
-
s.add_dependency("orm_adapter", "~> 0.1")
|
23
|
-
s.add_dependency("bcrypt", "~> 3.0")
|
24
|
-
s.add_dependency("thread_safe", "~> 0.1")
|
25
|
-
s.add_dependency("railties", ">= 3.2.6", "< 5")
|
26
|
-
s.add_dependency("responders")
|
27
|
-
end
|
data/devise.png
DELETED
Binary file
|
@@ -1,29 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gemspec path: '..'
|
4
|
-
|
5
|
-
gem "rails", github: 'rails/rails', branch: '3-2-stable'
|
6
|
-
gem "omniauth", "~> 1.2.0"
|
7
|
-
gem "omniauth-oauth2", "~> 1.1.0"
|
8
|
-
gem "rdoc"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
gem "omniauth-facebook"
|
12
|
-
gem "omniauth-openid", "~> 1.0.1"
|
13
|
-
gem "webrat", "0.7.3", require: false
|
14
|
-
gem "mocha", "~> 1.1", require: false
|
15
|
-
end
|
16
|
-
|
17
|
-
platforms :jruby do
|
18
|
-
gem "activerecord-jdbc-adapter"
|
19
|
-
gem "activerecord-jdbcsqlite3-adapter"
|
20
|
-
gem "jruby-openssl"
|
21
|
-
end
|
22
|
-
|
23
|
-
platforms :ruby do
|
24
|
-
gem "sqlite3"
|
25
|
-
end
|
26
|
-
|
27
|
-
group :mongoid do
|
28
|
-
gem "mongoid", "~> 3.0"
|
29
|
-
end
|
@@ -1,169 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git://github.com/rails/rails.git
|
3
|
-
revision: b344986bc3d94ca7821fc5e0eef1874882ac6cbb
|
4
|
-
branch: 3-2-stable
|
5
|
-
specs:
|
6
|
-
actionmailer (3.2.21)
|
7
|
-
actionpack (= 3.2.21)
|
8
|
-
mail (~> 2.5.4)
|
9
|
-
actionpack (3.2.21)
|
10
|
-
activemodel (= 3.2.21)
|
11
|
-
activesupport (= 3.2.21)
|
12
|
-
builder (~> 3.0.0)
|
13
|
-
erubis (~> 2.7.0)
|
14
|
-
journey (~> 1.0.4)
|
15
|
-
rack (~> 1.4.5)
|
16
|
-
rack-cache (~> 1.2)
|
17
|
-
rack-test (~> 0.6.1)
|
18
|
-
sprockets (~> 2.2.1)
|
19
|
-
activemodel (3.2.21)
|
20
|
-
activesupport (= 3.2.21)
|
21
|
-
builder (~> 3.0.0)
|
22
|
-
activerecord (3.2.21)
|
23
|
-
activemodel (= 3.2.21)
|
24
|
-
activesupport (= 3.2.21)
|
25
|
-
arel (~> 3.0.2)
|
26
|
-
tzinfo (~> 0.3.29)
|
27
|
-
activeresource (3.2.21)
|
28
|
-
activemodel (= 3.2.21)
|
29
|
-
activesupport (= 3.2.21)
|
30
|
-
activesupport (3.2.21)
|
31
|
-
i18n (~> 0.6, >= 0.6.4)
|
32
|
-
multi_json (~> 1.0)
|
33
|
-
rails (3.2.21)
|
34
|
-
actionmailer (= 3.2.21)
|
35
|
-
actionpack (= 3.2.21)
|
36
|
-
activerecord (= 3.2.21)
|
37
|
-
activeresource (= 3.2.21)
|
38
|
-
activesupport (= 3.2.21)
|
39
|
-
bundler (~> 1.0)
|
40
|
-
railties (= 3.2.21)
|
41
|
-
railties (3.2.21)
|
42
|
-
actionpack (= 3.2.21)
|
43
|
-
activesupport (= 3.2.21)
|
44
|
-
rack-ssl (~> 1.3.2)
|
45
|
-
rake (>= 0.8.7)
|
46
|
-
rdoc (~> 3.4)
|
47
|
-
thor (>= 0.14.6, < 2.0)
|
48
|
-
|
49
|
-
PATH
|
50
|
-
remote: ..
|
51
|
-
specs:
|
52
|
-
devise (3.4.1)
|
53
|
-
bcrypt (~> 3.0)
|
54
|
-
orm_adapter (~> 0.1)
|
55
|
-
railties (>= 3.2.6, < 5)
|
56
|
-
responders
|
57
|
-
thread_safe (~> 0.1)
|
58
|
-
warden (~> 1.2.3)
|
59
|
-
|
60
|
-
GEM
|
61
|
-
remote: https://rubygems.org/
|
62
|
-
specs:
|
63
|
-
arel (3.0.3)
|
64
|
-
bcrypt (3.1.10)
|
65
|
-
builder (3.0.4)
|
66
|
-
erubis (2.7.0)
|
67
|
-
faraday (0.9.1)
|
68
|
-
multipart-post (>= 1.2, < 3)
|
69
|
-
hashie (3.4.0)
|
70
|
-
hike (1.2.3)
|
71
|
-
i18n (0.7.0)
|
72
|
-
journey (1.0.4)
|
73
|
-
json (1.8.2)
|
74
|
-
jwt (1.4.1)
|
75
|
-
mail (2.5.4)
|
76
|
-
mime-types (~> 1.16)
|
77
|
-
treetop (~> 1.4.8)
|
78
|
-
metaclass (0.0.4)
|
79
|
-
mime-types (1.25.1)
|
80
|
-
mini_portile (0.6.2)
|
81
|
-
mocha (1.1.0)
|
82
|
-
metaclass (~> 0.0.1)
|
83
|
-
mongoid (3.1.6)
|
84
|
-
activemodel (~> 3.2)
|
85
|
-
moped (~> 1.4)
|
86
|
-
origin (~> 1.0)
|
87
|
-
tzinfo (~> 0.3.29)
|
88
|
-
moped (1.5.2)
|
89
|
-
multi_json (1.11.0)
|
90
|
-
multi_xml (0.5.5)
|
91
|
-
multipart-post (2.0.0)
|
92
|
-
nokogiri (1.6.6.2)
|
93
|
-
mini_portile (~> 0.6.0)
|
94
|
-
oauth2 (0.9.4)
|
95
|
-
faraday (>= 0.8, < 0.10)
|
96
|
-
jwt (~> 1.0)
|
97
|
-
multi_json (~> 1.3)
|
98
|
-
multi_xml (~> 0.5)
|
99
|
-
rack (~> 1.2)
|
100
|
-
omniauth (1.2.2)
|
101
|
-
hashie (>= 1.2, < 4)
|
102
|
-
rack (~> 1.0)
|
103
|
-
omniauth-facebook (1.6.0)
|
104
|
-
omniauth-oauth2 (~> 1.1)
|
105
|
-
omniauth-oauth2 (1.1.2)
|
106
|
-
faraday (>= 0.8, < 0.10)
|
107
|
-
multi_json (~> 1.3)
|
108
|
-
oauth2 (~> 0.9.3)
|
109
|
-
omniauth (~> 1.2)
|
110
|
-
omniauth-openid (1.0.1)
|
111
|
-
omniauth (~> 1.0)
|
112
|
-
rack-openid (~> 1.3.1)
|
113
|
-
origin (1.1.0)
|
114
|
-
orm_adapter (0.5.0)
|
115
|
-
polyglot (0.3.5)
|
116
|
-
rack (1.4.5)
|
117
|
-
rack-cache (1.2)
|
118
|
-
rack (>= 0.4)
|
119
|
-
rack-openid (1.3.1)
|
120
|
-
rack (>= 1.1.0)
|
121
|
-
ruby-openid (>= 2.1.8)
|
122
|
-
rack-ssl (1.3.4)
|
123
|
-
rack
|
124
|
-
rack-test (0.6.3)
|
125
|
-
rack (>= 1.0)
|
126
|
-
rake (10.4.2)
|
127
|
-
rdoc (3.12.2)
|
128
|
-
json (~> 1.4)
|
129
|
-
responders (1.1.2)
|
130
|
-
railties (>= 3.2, < 4.2)
|
131
|
-
ruby-openid (2.7.0)
|
132
|
-
sprockets (2.2.3)
|
133
|
-
hike (~> 1.2)
|
134
|
-
multi_json (~> 1.0)
|
135
|
-
rack (~> 1.0)
|
136
|
-
tilt (~> 1.1, != 1.3.0)
|
137
|
-
sqlite3 (1.3.10)
|
138
|
-
thor (0.19.1)
|
139
|
-
thread_safe (0.3.5)
|
140
|
-
tilt (1.4.1)
|
141
|
-
treetop (1.4.15)
|
142
|
-
polyglot
|
143
|
-
polyglot (>= 0.3.1)
|
144
|
-
tzinfo (0.3.43)
|
145
|
-
warden (1.2.3)
|
146
|
-
rack (>= 1.0)
|
147
|
-
webrat (0.7.3)
|
148
|
-
nokogiri (>= 1.2.0)
|
149
|
-
rack (>= 1.0)
|
150
|
-
rack-test (>= 0.5.3)
|
151
|
-
|
152
|
-
PLATFORMS
|
153
|
-
ruby
|
154
|
-
|
155
|
-
DEPENDENCIES
|
156
|
-
activerecord-jdbc-adapter
|
157
|
-
activerecord-jdbcsqlite3-adapter
|
158
|
-
devise!
|
159
|
-
jruby-openssl
|
160
|
-
mocha (~> 1.1)
|
161
|
-
mongoid (~> 3.0)
|
162
|
-
omniauth (~> 1.2.0)
|
163
|
-
omniauth-facebook
|
164
|
-
omniauth-oauth2 (~> 1.1.0)
|
165
|
-
omniauth-openid (~> 1.0.1)
|
166
|
-
rails!
|
167
|
-
rdoc
|
168
|
-
sqlite3
|
169
|
-
webrat (= 0.7.3)
|
@@ -1,29 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gemspec path: '..'
|
4
|
-
|
5
|
-
gem "rails", github: 'rails/rails', branch: '4-0-stable'
|
6
|
-
gem "omniauth", "~> 1.2.0"
|
7
|
-
gem "omniauth-oauth2", "~> 1.1.0"
|
8
|
-
gem "rdoc"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
gem "omniauth-facebook"
|
12
|
-
gem "omniauth-openid", "~> 1.0.1"
|
13
|
-
gem "webrat", "0.7.3", require: false
|
14
|
-
gem "mocha", "~> 1.1", require: false
|
15
|
-
end
|
16
|
-
|
17
|
-
platforms :jruby do
|
18
|
-
gem "activerecord-jdbc-adapter"
|
19
|
-
gem "activerecord-jdbcsqlite3-adapter"
|
20
|
-
gem "jruby-openssl"
|
21
|
-
end
|
22
|
-
|
23
|
-
platforms :ruby do
|
24
|
-
gem "sqlite3"
|
25
|
-
end
|
26
|
-
|
27
|
-
group :mongoid do
|
28
|
-
gem "mongoid", "~> 4.0.0"
|
29
|
-
end
|
@@ -1,163 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git://github.com/rails/rails.git
|
3
|
-
revision: 7ec9c9635bf4d57009135ed11e89d8bf32306d73
|
4
|
-
branch: 4-0-stable
|
5
|
-
specs:
|
6
|
-
actionmailer (4.0.13)
|
7
|
-
actionpack (= 4.0.13)
|
8
|
-
mail (~> 2.5, >= 2.5.4)
|
9
|
-
actionpack (4.0.13)
|
10
|
-
activesupport (= 4.0.13)
|
11
|
-
builder (~> 3.1.0)
|
12
|
-
erubis (~> 2.7.0)
|
13
|
-
rack (~> 1.5.2)
|
14
|
-
rack-test (~> 0.6.2)
|
15
|
-
activemodel (4.0.13)
|
16
|
-
activesupport (= 4.0.13)
|
17
|
-
builder (~> 3.1.0)
|
18
|
-
activerecord (4.0.13)
|
19
|
-
activemodel (= 4.0.13)
|
20
|
-
activerecord-deprecated_finders (~> 1.0.2)
|
21
|
-
activesupport (= 4.0.13)
|
22
|
-
arel (~> 4.0.0)
|
23
|
-
activesupport (4.0.13)
|
24
|
-
i18n (~> 0.6, >= 0.6.9)
|
25
|
-
minitest (~> 4.2)
|
26
|
-
multi_json (~> 1.3)
|
27
|
-
thread_safe (~> 0.1)
|
28
|
-
tzinfo (~> 0.3.37)
|
29
|
-
rails (4.0.13)
|
30
|
-
actionmailer (= 4.0.13)
|
31
|
-
actionpack (= 4.0.13)
|
32
|
-
activerecord (= 4.0.13)
|
33
|
-
activesupport (= 4.0.13)
|
34
|
-
bundler (>= 1.3.0, < 2.0)
|
35
|
-
railties (= 4.0.13)
|
36
|
-
sprockets-rails (~> 2.0)
|
37
|
-
railties (4.0.13)
|
38
|
-
actionpack (= 4.0.13)
|
39
|
-
activesupport (= 4.0.13)
|
40
|
-
rake (>= 0.8.7)
|
41
|
-
thor (>= 0.18.1, < 2.0)
|
42
|
-
|
43
|
-
PATH
|
44
|
-
remote: ..
|
45
|
-
specs:
|
46
|
-
devise (3.4.1)
|
47
|
-
bcrypt (~> 3.0)
|
48
|
-
orm_adapter (~> 0.1)
|
49
|
-
railties (>= 3.2.6, < 5)
|
50
|
-
responders
|
51
|
-
thread_safe (~> 0.1)
|
52
|
-
warden (~> 1.2.3)
|
53
|
-
|
54
|
-
GEM
|
55
|
-
remote: https://rubygems.org/
|
56
|
-
specs:
|
57
|
-
activerecord-deprecated_finders (1.0.3)
|
58
|
-
arel (4.0.2)
|
59
|
-
bcrypt (3.1.10)
|
60
|
-
bson (2.3.0)
|
61
|
-
builder (3.1.4)
|
62
|
-
connection_pool (2.1.3)
|
63
|
-
erubis (2.7.0)
|
64
|
-
faraday (0.9.1)
|
65
|
-
multipart-post (>= 1.2, < 3)
|
66
|
-
hashie (3.4.0)
|
67
|
-
hike (1.2.3)
|
68
|
-
i18n (0.7.0)
|
69
|
-
jwt (1.4.1)
|
70
|
-
mail (2.6.3)
|
71
|
-
mime-types (>= 1.16, < 3)
|
72
|
-
metaclass (0.0.4)
|
73
|
-
mime-types (2.4.3)
|
74
|
-
mini_portile (0.6.2)
|
75
|
-
minitest (4.7.5)
|
76
|
-
mocha (1.1.0)
|
77
|
-
metaclass (~> 0.0.1)
|
78
|
-
mongoid (4.0.2)
|
79
|
-
activemodel (~> 4.0)
|
80
|
-
moped (~> 2.0.0)
|
81
|
-
origin (~> 2.1)
|
82
|
-
tzinfo (>= 0.3.37)
|
83
|
-
moped (2.0.4)
|
84
|
-
bson (~> 2.2)
|
85
|
-
connection_pool (~> 2.0)
|
86
|
-
optionable (~> 0.2.0)
|
87
|
-
multi_json (1.11.0)
|
88
|
-
multi_xml (0.5.5)
|
89
|
-
multipart-post (2.0.0)
|
90
|
-
nokogiri (1.6.6.2)
|
91
|
-
mini_portile (~> 0.6.0)
|
92
|
-
oauth2 (0.9.4)
|
93
|
-
faraday (>= 0.8, < 0.10)
|
94
|
-
jwt (~> 1.0)
|
95
|
-
multi_json (~> 1.3)
|
96
|
-
multi_xml (~> 0.5)
|
97
|
-
rack (~> 1.2)
|
98
|
-
omniauth (1.2.2)
|
99
|
-
hashie (>= 1.2, < 4)
|
100
|
-
rack (~> 1.0)
|
101
|
-
omniauth-facebook (1.6.0)
|
102
|
-
omniauth-oauth2 (~> 1.1)
|
103
|
-
omniauth-oauth2 (1.1.2)
|
104
|
-
faraday (>= 0.8, < 0.10)
|
105
|
-
multi_json (~> 1.3)
|
106
|
-
oauth2 (~> 0.9.3)
|
107
|
-
omniauth (~> 1.2)
|
108
|
-
omniauth-openid (1.0.1)
|
109
|
-
omniauth (~> 1.0)
|
110
|
-
rack-openid (~> 1.3.1)
|
111
|
-
optionable (0.2.0)
|
112
|
-
origin (2.1.1)
|
113
|
-
orm_adapter (0.5.0)
|
114
|
-
rack (1.5.2)
|
115
|
-
rack-openid (1.3.1)
|
116
|
-
rack (>= 1.1.0)
|
117
|
-
ruby-openid (>= 2.1.8)
|
118
|
-
rack-test (0.6.3)
|
119
|
-
rack (>= 1.0)
|
120
|
-
rake (10.4.2)
|
121
|
-
rdoc (4.2.0)
|
122
|
-
responders (1.1.2)
|
123
|
-
railties (>= 3.2, < 4.2)
|
124
|
-
ruby-openid (2.7.0)
|
125
|
-
sprockets (2.12.3)
|
126
|
-
hike (~> 1.2)
|
127
|
-
multi_json (~> 1.0)
|
128
|
-
rack (~> 1.0)
|
129
|
-
tilt (~> 1.1, != 1.3.0)
|
130
|
-
sprockets-rails (2.2.4)
|
131
|
-
actionpack (>= 3.0)
|
132
|
-
activesupport (>= 3.0)
|
133
|
-
sprockets (>= 2.8, < 4.0)
|
134
|
-
sqlite3 (1.3.10)
|
135
|
-
thor (0.19.1)
|
136
|
-
thread_safe (0.3.5)
|
137
|
-
tilt (1.4.1)
|
138
|
-
tzinfo (0.3.43)
|
139
|
-
warden (1.2.3)
|
140
|
-
rack (>= 1.0)
|
141
|
-
webrat (0.7.3)
|
142
|
-
nokogiri (>= 1.2.0)
|
143
|
-
rack (>= 1.0)
|
144
|
-
rack-test (>= 0.5.3)
|
145
|
-
|
146
|
-
PLATFORMS
|
147
|
-
ruby
|
148
|
-
|
149
|
-
DEPENDENCIES
|
150
|
-
activerecord-jdbc-adapter
|
151
|
-
activerecord-jdbcsqlite3-adapter
|
152
|
-
devise!
|
153
|
-
jruby-openssl
|
154
|
-
mocha (~> 1.1)
|
155
|
-
mongoid (~> 4.0.0)
|
156
|
-
omniauth (~> 1.2.0)
|
157
|
-
omniauth-facebook
|
158
|
-
omniauth-oauth2 (~> 1.1.0)
|
159
|
-
omniauth-openid (~> 1.0.1)
|
160
|
-
rails!
|
161
|
-
rdoc
|
162
|
-
sqlite3
|
163
|
-
webrat (= 0.7.3)
|
@@ -1,29 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gemspec path: '..'
|
4
|
-
|
5
|
-
gem "rails", github: 'rails/rails', branch: '4-1-stable'
|
6
|
-
gem "omniauth", "~> 1.2.0"
|
7
|
-
gem "omniauth-oauth2", "~> 1.1.0"
|
8
|
-
gem "rdoc"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
gem "omniauth-facebook"
|
12
|
-
gem "omniauth-openid", "~> 1.0.1"
|
13
|
-
gem "webrat", "0.7.3", require: false
|
14
|
-
gem "mocha", "~> 1.1", require: false
|
15
|
-
end
|
16
|
-
|
17
|
-
platforms :jruby do
|
18
|
-
gem "activerecord-jdbc-adapter"
|
19
|
-
gem "activerecord-jdbcsqlite3-adapter"
|
20
|
-
gem "jruby-openssl"
|
21
|
-
end
|
22
|
-
|
23
|
-
platforms :ruby do
|
24
|
-
gem "sqlite3"
|
25
|
-
end
|
26
|
-
|
27
|
-
group :mongoid do
|
28
|
-
gem "mongoid", "~> 4.0.0"
|
29
|
-
end
|