devise_g5_authenticatable 0.3.0 → 1.0.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rspec +1 -0
  4. data/.ruby-version +1 -1
  5. data/.travis.yml +29 -7
  6. data/Appraisals +21 -0
  7. data/CHANGELOG.md +24 -0
  8. data/Gemfile +11 -7
  9. data/README.md +6 -6
  10. data/Rakefile +6 -5
  11. data/app/controllers/devise_g5_authenticatable/registrations_controller.rb +3 -0
  12. data/app/controllers/devise_g5_authenticatable/sessions_controller.rb +9 -5
  13. data/config/initializers/devise_g5_authenticatable.rb +2 -0
  14. data/devise_g5_authenticatable.gemspec +6 -5
  15. data/gemfiles/rails_4.1.gemfile +26 -0
  16. data/gemfiles/rails_4.2.gemfile +26 -0
  17. data/gemfiles/rails_5.0.gemfile +26 -0
  18. data/gemfiles/rails_5.1.gemfile +26 -0
  19. data/lib/devise_g5_authenticatable/controllers/helpers.rb +5 -0
  20. data/lib/devise_g5_authenticatable/controllers/url_helpers.rb +3 -0
  21. data/lib/devise_g5_authenticatable/engine.rb +4 -1
  22. data/lib/devise_g5_authenticatable/g5/auth_password_validator.rb +6 -1
  23. data/lib/devise_g5_authenticatable/g5/auth_user_creator.rb +16 -15
  24. data/lib/devise_g5_authenticatable/g5/auth_user_updater.rb +11 -5
  25. data/lib/devise_g5_authenticatable/g5/user_exporter.rb +11 -6
  26. data/lib/devise_g5_authenticatable/g5.rb +2 -0
  27. data/lib/devise_g5_authenticatable/hooks/g5_authenticatable.rb +8 -3
  28. data/lib/devise_g5_authenticatable/models/g5_authenticatable.rb +38 -26
  29. data/lib/devise_g5_authenticatable/models/protected_attributes.rb +11 -2
  30. data/lib/devise_g5_authenticatable/omniauth.rb +8 -2
  31. data/lib/devise_g5_authenticatable/routes.rb +48 -35
  32. data/lib/devise_g5_authenticatable/version.rb +3 -1
  33. data/lib/devise_g5_authenticatable.rb +4 -1
  34. data/spec/controllers/helpers_spec.rb +54 -49
  35. data/spec/controllers/sessions_controller_spec.rb +67 -39
  36. data/spec/controllers/url_helpers_spec.rb +78 -78
  37. data/spec/dummy/app/views/{anonymous → devise}/new.html.erb +0 -0
  38. data/spec/dummy/config/environments/test.rb +20 -4
  39. data/spec/dummy/config/initializers/devise.rb +5 -1
  40. data/spec/dummy/config/initializers/rails_compatibility.rb +10 -0
  41. data/spec/dummy/db/migrate/20131230235849_devise_create_users.rb +3 -1
  42. data/spec/dummy/db/migrate/20140102213131_drop_database_authenticatable.rb +3 -1
  43. data/spec/dummy/db/migrate/20140103032308_drop_recoverable.rb +3 -1
  44. data/spec/dummy/db/migrate/20140103042329_drop_rememberable.rb +3 -1
  45. data/spec/dummy/db/migrate/20140103174810_add_omniauth_columns_to_users.rb +3 -1
  46. data/spec/dummy/db/migrate/20140103191601_add_email_back_to_user.rb +3 -1
  47. data/spec/dummy/db/migrate/20140113202948_devise_create_admins.rb +3 -1
  48. data/spec/dummy/db/migrate/20140113233821_add_provider_and_uid_to_admins.rb +3 -1
  49. data/spec/dummy/db/schema.rb +29 -29
  50. data/spec/factories/admin.rb +2 -0
  51. data/spec/factories/user.rb +2 -0
  52. data/spec/features/edit_registration_spec.rb +22 -13
  53. data/spec/features/registration_spec.rb +13 -8
  54. data/spec/features/sign_in_spec.rb +4 -2
  55. data/spec/features/sign_out_spec.rb +4 -2
  56. data/spec/features/token_validation_spec.rb +24 -14
  57. data/spec/g5/auth_password_validator_spec.rb +28 -15
  58. data/spec/g5/auth_user_creator_spec.rb +29 -22
  59. data/spec/g5/auth_user_updater_spec.rb +23 -16
  60. data/spec/g5/user_exporter_spec.rb +36 -31
  61. data/spec/models/g5_authenticatable_spec.rb +78 -38
  62. data/spec/models/protected_attributes_spec.rb +24 -19
  63. data/spec/rails_helper.rb +46 -0
  64. data/spec/routing/registrations_routing_spec.rb +43 -27
  65. data/spec/routing/sessions_routing_spec.rb +46 -29
  66. data/spec/spec_helper.rb +93 -27
  67. data/spec/support/controller_test_helpers.rb +15 -0
  68. data/spec/support/devise.rb +9 -1
  69. data/spec/support/shared_contexts/custom_router.rb +16 -0
  70. data/spec/support/shared_contexts/oauth_error.rb +4 -2
  71. data/spec/support/shared_contexts/rake.rb +10 -4
  72. data/spec/support/shared_examples/registration_error.rb +3 -1
  73. data/spec/support/{user_feature_methods.rb → user_omniauth_methods.rb} +9 -5
  74. data/spec/tasks/export_users_spec.rb +5 -3
  75. metadata +30 -26
  76. data/circle.yml +0 -4
  77. data/spec/support/omniauth.rb +0 -3
metadata CHANGED
@@ -1,49 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_g5_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.0.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maeve Revels
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.5.1
19
+ version: '4.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.5.1
26
+ version: '4.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: g5_authentication_client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.5'
34
- - - ">="
31
+ - - '='
35
32
  - !ruby/object:Gem::Version
36
- version: 0.5.4
33
+ version: 1.0.0.pre.4
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '0.5'
44
- - - ">="
38
+ - - '='
45
39
  - !ruby/object:Gem::Version
46
- version: 0.5.4
40
+ version: 1.0.0.pre.4
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: omniauth-g5
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -69,6 +63,7 @@ files:
69
63
  - ".rspec"
70
64
  - ".ruby-version"
71
65
  - ".travis.yml"
66
+ - Appraisals
72
67
  - CHANGELOG.md
73
68
  - Gemfile
74
69
  - LICENSE
@@ -76,10 +71,13 @@ files:
76
71
  - Rakefile
77
72
  - app/controllers/devise_g5_authenticatable/registrations_controller.rb
78
73
  - app/controllers/devise_g5_authenticatable/sessions_controller.rb
79
- - circle.yml
80
74
  - config/initializers/devise_g5_authenticatable.rb
81
75
  - config/locales/en.yml
82
76
  - devise_g5_authenticatable.gemspec
77
+ - gemfiles/rails_4.1.gemfile
78
+ - gemfiles/rails_4.2.gemfile
79
+ - gemfiles/rails_5.0.gemfile
80
+ - gemfiles/rails_5.1.gemfile
83
81
  - lib/devise_g5_authenticatable.rb
84
82
  - lib/devise_g5_authenticatable/controllers/helpers.rb
85
83
  - lib/devise_g5_authenticatable/controllers/url_helpers.rb
@@ -119,7 +117,7 @@ files:
119
117
  - spec/dummy/app/mailers/.gitkeep
120
118
  - spec/dummy/app/models/admin.rb
121
119
  - spec/dummy/app/models/user.rb
122
- - spec/dummy/app/views/anonymous/new.html.erb
120
+ - spec/dummy/app/views/devise/new.html.erb
123
121
  - spec/dummy/app/views/home/index.html.erb
124
122
  - spec/dummy/app/views/layouts/application.html.erb
125
123
  - spec/dummy/config.ru
@@ -134,6 +132,7 @@ files:
134
132
  - spec/dummy/config/initializers/devise.rb
135
133
  - spec/dummy/config/initializers/inflections.rb
136
134
  - spec/dummy/config/initializers/mime_types.rb
135
+ - spec/dummy/config/initializers/rails_compatibility.rb
137
136
  - spec/dummy/config/initializers/secret_token.rb
138
137
  - spec/dummy/config/initializers/session_store.rb
139
138
  - spec/dummy/config/initializers/wrap_parameters.rb
@@ -175,15 +174,17 @@ files:
175
174
  - spec/g5/user_exporter_spec.rb
176
175
  - spec/models/g5_authenticatable_spec.rb
177
176
  - spec/models/protected_attributes_spec.rb
177
+ - spec/rails_helper.rb
178
178
  - spec/routing/registrations_routing_spec.rb
179
179
  - spec/routing/sessions_routing_spec.rb
180
180
  - spec/spec_helper.rb
181
+ - spec/support/controller_test_helpers.rb
181
182
  - spec/support/devise.rb
182
- - spec/support/omniauth.rb
183
+ - spec/support/shared_contexts/custom_router.rb
183
184
  - spec/support/shared_contexts/oauth_error.rb
184
185
  - spec/support/shared_contexts/rake.rb
185
186
  - spec/support/shared_examples/registration_error.rb
186
- - spec/support/user_feature_methods.rb
187
+ - spec/support/user_omniauth_methods.rb
187
188
  - spec/tasks/export_users_spec.rb
188
189
  homepage: https://github.com/G5/devise_g5_authenticatable
189
190
  licenses:
@@ -200,12 +201,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
201
  version: '0'
201
202
  required_rubygems_version: !ruby/object:Gem::Requirement
202
203
  requirements:
203
- - - ">="
204
+ - - ">"
204
205
  - !ruby/object:Gem::Version
205
- version: '0'
206
+ version: 1.3.1
206
207
  requirements: []
207
208
  rubyforge_project:
208
- rubygems_version: 2.5.1
209
+ rubygems_version: 2.5.2
209
210
  signing_key:
210
211
  specification_version: 4
211
212
  summary: Devise extension for the G5 Auth service
@@ -233,7 +234,7 @@ test_files:
233
234
  - spec/dummy/app/mailers/.gitkeep
234
235
  - spec/dummy/app/models/admin.rb
235
236
  - spec/dummy/app/models/user.rb
236
- - spec/dummy/app/views/anonymous/new.html.erb
237
+ - spec/dummy/app/views/devise/new.html.erb
237
238
  - spec/dummy/app/views/home/index.html.erb
238
239
  - spec/dummy/app/views/layouts/application.html.erb
239
240
  - spec/dummy/config.ru
@@ -248,6 +249,7 @@ test_files:
248
249
  - spec/dummy/config/initializers/devise.rb
249
250
  - spec/dummy/config/initializers/inflections.rb
250
251
  - spec/dummy/config/initializers/mime_types.rb
252
+ - spec/dummy/config/initializers/rails_compatibility.rb
251
253
  - spec/dummy/config/initializers/secret_token.rb
252
254
  - spec/dummy/config/initializers/session_store.rb
253
255
  - spec/dummy/config/initializers/wrap_parameters.rb
@@ -289,13 +291,15 @@ test_files:
289
291
  - spec/g5/user_exporter_spec.rb
290
292
  - spec/models/g5_authenticatable_spec.rb
291
293
  - spec/models/protected_attributes_spec.rb
294
+ - spec/rails_helper.rb
292
295
  - spec/routing/registrations_routing_spec.rb
293
296
  - spec/routing/sessions_routing_spec.rb
294
297
  - spec/spec_helper.rb
298
+ - spec/support/controller_test_helpers.rb
295
299
  - spec/support/devise.rb
296
- - spec/support/omniauth.rb
300
+ - spec/support/shared_contexts/custom_router.rb
297
301
  - spec/support/shared_contexts/oauth_error.rb
298
302
  - spec/support/shared_contexts/rake.rb
299
303
  - spec/support/shared_examples/registration_error.rb
300
- - spec/support/user_feature_methods.rb
304
+ - spec/support/user_omniauth_methods.rb
301
305
  - spec/tasks/export_users_spec.rb
data/circle.yml DELETED
@@ -1,4 +0,0 @@
1
- database:
2
- override:
3
- - cp spec/dummy/config/database.yml.ci spec/dummy/config/database.yml
4
- - RAILS_ENV=test bundle exec rake app:db:setup
@@ -1,3 +0,0 @@
1
- RSpec.configure do |config|
2
- config.before(:all) { OmniAuth.config.logger = Logger.new('/dev/null') }
3
- end