refinerycms-authentication-devise 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +89 -0
  3. data/.travis.yml +15 -0
  4. data/Gemfile +50 -0
  5. data/Rakefile +20 -0
  6. data/app/controllers/refinery/authentication/devise/admin/users_controller.rb +147 -0
  7. data/app/controllers/refinery/authentication/devise/passwords_controller.rb +58 -0
  8. data/app/controllers/refinery/authentication/devise/sessions_controller.rb +39 -0
  9. data/app/controllers/refinery/authentication/devise/users_controller.rb +50 -0
  10. data/app/decorators/controllers/action_controller_base_decorator.rb +25 -0
  11. data/app/decorators/controllers/refinery/admin_controller_decorator.rb +20 -0
  12. data/app/decorators/controllers/refinery/application_controller_decorator.rb +7 -0
  13. data/app/mailers/refinery/authentication/devise/user_mailer.rb +26 -0
  14. data/app/models/refinery/authentication/devise/nil_user.rb +31 -0
  15. data/app/models/refinery/authentication/devise/role.rb +22 -0
  16. data/app/models/refinery/authentication/devise/roles_users.rb +12 -0
  17. data/app/models/refinery/authentication/devise/user.rb +166 -0
  18. data/app/models/refinery/authentication/devise/user_plugin.rb +11 -0
  19. data/app/views/refinery/authentication/devise/admin/users/_actions.html.erb +7 -0
  20. data/app/views/refinery/authentication/devise/admin/users/_form.html.erb +94 -0
  21. data/app/views/refinery/authentication/devise/admin/users/_records.html.erb +10 -0
  22. data/app/views/refinery/authentication/devise/admin/users/_user.html.erb +23 -0
  23. data/app/views/refinery/authentication/devise/admin/users/_users.html.erb +4 -0
  24. data/app/views/refinery/authentication/devise/admin/users/edit.html.erb +1 -0
  25. data/app/views/refinery/authentication/devise/admin/users/index.html.erb +6 -0
  26. data/app/views/refinery/authentication/devise/admin/users/new.html.erb +1 -0
  27. data/app/views/refinery/authentication/devise/passwords/edit.html.erb +26 -0
  28. data/app/views/refinery/authentication/devise/passwords/new.html.erb +17 -0
  29. data/app/views/refinery/authentication/devise/sessions/new.html.erb +27 -0
  30. data/app/views/refinery/authentication/devise/user_mailer/reset_notification.html.erb +12 -0
  31. data/app/views/refinery/authentication/devise/user_mailer/reset_notification.text.plain.erb +7 -0
  32. data/app/views/refinery/authentication/devise/users/new.html.erb +29 -0
  33. data/app/views/refinery/layouts/login.html.erb +22 -0
  34. data/bin/rails +5 -0
  35. data/bin/rake +21 -0
  36. data/bin/rspec +22 -0
  37. data/bin/spring +18 -0
  38. data/config/locales/bg.yml +73 -0
  39. data/config/locales/ca.yml +75 -0
  40. data/config/locales/cs.yml +77 -0
  41. data/config/locales/da.yml +73 -0
  42. data/config/locales/de.yml +73 -0
  43. data/config/locales/el.yml +73 -0
  44. data/config/locales/en.yml +77 -0
  45. data/config/locales/es.yml +73 -0
  46. data/config/locales/fi.yml +73 -0
  47. data/config/locales/fr.yml +73 -0
  48. data/config/locales/hu.yml +73 -0
  49. data/config/locales/it.yml +77 -0
  50. data/config/locales/ja.yml +73 -0
  51. data/config/locales/ko.yml +73 -0
  52. data/config/locales/lt.yml +56 -0
  53. data/config/locales/lv.yml +73 -0
  54. data/config/locales/nb.yml +73 -0
  55. data/config/locales/nl.yml +77 -0
  56. data/config/locales/pl.yml +73 -0
  57. data/config/locales/pt-BR.yml +69 -0
  58. data/config/locales/pt.yml +73 -0
  59. data/config/locales/rs.yml +73 -0
  60. data/config/locales/ru.yml +70 -0
  61. data/config/locales/sk.yml +73 -0
  62. data/config/locales/sl.yml +62 -0
  63. data/config/locales/sv.yml +65 -0
  64. data/config/locales/tr.yml +73 -0
  65. data/config/locales/uk.yml +71 -0
  66. data/config/locales/vi.yml +73 -0
  67. data/config/locales/zh-CN.yml +73 -0
  68. data/config/locales/zh-TW.yml +74 -0
  69. data/config/routes.rb +49 -0
  70. data/db/migrate/20100913234705_create_refinerycms_authentication_schema.rb +43 -0
  71. data/db/migrate/20120301234455_add_slug_to_refinery_users.rb +7 -0
  72. data/db/migrate/20130805143059_add_full_name_to_refinery_users.rb +5 -0
  73. data/db/migrate/20150503125200_rename_tables_to_new_namespace.rb +17 -0
  74. data/lib/generators/refinery/authentication/devise/generator.rb +18 -0
  75. data/lib/generators/refinery/authentication/devise/templates/config/initializers/refinery/authentication/devise.rb.erb +8 -0
  76. data/lib/refinery/authentication/devise/authorisation_adapter.rb +36 -0
  77. data/lib/refinery/authentication/devise/authorisation_manager.rb +30 -0
  78. data/lib/refinery/authentication/devise/configuration.rb +22 -0
  79. data/lib/refinery/authentication/devise/engine.rb +43 -0
  80. data/lib/refinery/authentication/devise/initialiser.rb +228 -0
  81. data/lib/refinery/authentication/devise/system.rb +63 -0
  82. data/lib/refinery/authentication/devise.rb +26 -0
  83. data/lib/refinerycms-authentication-devise.rb +1 -0
  84. data/license.md +21 -0
  85. data/readme.md +11 -0
  86. data/refinerycms-authentication-devise.gemspec +22 -0
  87. data/spec/controllers/refinery/authentication/devise/admin/users_controller_spec.rb +90 -0
  88. data/spec/factories/user.rb +27 -0
  89. data/spec/features/refinery/authentication/devise/admin/users_spec.rb +88 -0
  90. data/spec/features/refinery/authentication/devise/passwords_spec.rb +71 -0
  91. data/spec/features/refinery/authentication/devise/sessions_spec.rb +103 -0
  92. data/spec/lib/refinery/authentication/devise/configuration_spec.rb +41 -0
  93. data/spec/models/refinery/user_spec.rb +285 -0
  94. data/spec/spec_helper.rb +27 -0
  95. data/spec/support/refinery/authentication/devise/controller_macros.rb +48 -0
  96. data/spec/support/refinery/authentication/devise/feature_macros.rb +26 -0
  97. data/tasks/rspec.rake +4 -0
  98. metadata +225 -0
metadata ADDED
@@ -0,0 +1,225 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: refinerycms-authentication-devise
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Philip Arndt
8
+ - Rob Yurkowski
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-07-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: refinerycms-core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '3.0'
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 3.0.0
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - "~>"
29
+ - !ruby/object:Gem::Version
30
+ version: '3.0'
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.0
34
+ - !ruby/object:Gem::Dependency
35
+ name: actionmailer
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.2'
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 4.2.0
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '4.2'
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 4.2.0
54
+ - !ruby/object:Gem::Dependency
55
+ name: devise
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.0'
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 3.2.4
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '3.0'
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 3.2.4
74
+ - !ruby/object:Gem::Dependency
75
+ name: friendly_id
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: 5.1.0
81
+ type: :runtime
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: 5.1.0
88
+ description: A Devise authentication extension for Refinery CMS
89
+ email:
90
+ executables: []
91
+ extensions: []
92
+ extra_rdoc_files: []
93
+ files:
94
+ - ".gitignore"
95
+ - ".travis.yml"
96
+ - Gemfile
97
+ - Rakefile
98
+ - app/controllers/refinery/authentication/devise/admin/users_controller.rb
99
+ - app/controllers/refinery/authentication/devise/passwords_controller.rb
100
+ - app/controllers/refinery/authentication/devise/sessions_controller.rb
101
+ - app/controllers/refinery/authentication/devise/users_controller.rb
102
+ - app/decorators/controllers/action_controller_base_decorator.rb
103
+ - app/decorators/controllers/refinery/admin_controller_decorator.rb
104
+ - app/decorators/controllers/refinery/application_controller_decorator.rb
105
+ - app/mailers/refinery/authentication/devise/user_mailer.rb
106
+ - app/models/refinery/authentication/devise/nil_user.rb
107
+ - app/models/refinery/authentication/devise/role.rb
108
+ - app/models/refinery/authentication/devise/roles_users.rb
109
+ - app/models/refinery/authentication/devise/user.rb
110
+ - app/models/refinery/authentication/devise/user_plugin.rb
111
+ - app/views/refinery/authentication/devise/admin/users/_actions.html.erb
112
+ - app/views/refinery/authentication/devise/admin/users/_form.html.erb
113
+ - app/views/refinery/authentication/devise/admin/users/_records.html.erb
114
+ - app/views/refinery/authentication/devise/admin/users/_user.html.erb
115
+ - app/views/refinery/authentication/devise/admin/users/_users.html.erb
116
+ - app/views/refinery/authentication/devise/admin/users/edit.html.erb
117
+ - app/views/refinery/authentication/devise/admin/users/index.html.erb
118
+ - app/views/refinery/authentication/devise/admin/users/new.html.erb
119
+ - app/views/refinery/authentication/devise/passwords/edit.html.erb
120
+ - app/views/refinery/authentication/devise/passwords/new.html.erb
121
+ - app/views/refinery/authentication/devise/sessions/new.html.erb
122
+ - app/views/refinery/authentication/devise/user_mailer/reset_notification.html.erb
123
+ - app/views/refinery/authentication/devise/user_mailer/reset_notification.text.plain.erb
124
+ - app/views/refinery/authentication/devise/users/new.html.erb
125
+ - app/views/refinery/layouts/login.html.erb
126
+ - bin/rails
127
+ - bin/rake
128
+ - bin/rspec
129
+ - bin/spring
130
+ - config/locales/bg.yml
131
+ - config/locales/ca.yml
132
+ - config/locales/cs.yml
133
+ - config/locales/da.yml
134
+ - config/locales/de.yml
135
+ - config/locales/el.yml
136
+ - config/locales/en.yml
137
+ - config/locales/es.yml
138
+ - config/locales/fi.yml
139
+ - config/locales/fr.yml
140
+ - config/locales/hu.yml
141
+ - config/locales/it.yml
142
+ - config/locales/ja.yml
143
+ - config/locales/ko.yml
144
+ - config/locales/lt.yml
145
+ - config/locales/lv.yml
146
+ - config/locales/nb.yml
147
+ - config/locales/nl.yml
148
+ - config/locales/pl.yml
149
+ - config/locales/pt-BR.yml
150
+ - config/locales/pt.yml
151
+ - config/locales/rs.yml
152
+ - config/locales/ru.yml
153
+ - config/locales/sk.yml
154
+ - config/locales/sl.yml
155
+ - config/locales/sv.yml
156
+ - config/locales/tr.yml
157
+ - config/locales/uk.yml
158
+ - config/locales/vi.yml
159
+ - config/locales/zh-CN.yml
160
+ - config/locales/zh-TW.yml
161
+ - config/routes.rb
162
+ - db/migrate/20100913234705_create_refinerycms_authentication_schema.rb
163
+ - db/migrate/20120301234455_add_slug_to_refinery_users.rb
164
+ - db/migrate/20130805143059_add_full_name_to_refinery_users.rb
165
+ - db/migrate/20150503125200_rename_tables_to_new_namespace.rb
166
+ - lib/generators/refinery/authentication/devise/generator.rb
167
+ - lib/generators/refinery/authentication/devise/templates/config/initializers/refinery/authentication/devise.rb.erb
168
+ - lib/refinery/authentication/devise.rb
169
+ - lib/refinery/authentication/devise/authorisation_adapter.rb
170
+ - lib/refinery/authentication/devise/authorisation_manager.rb
171
+ - lib/refinery/authentication/devise/configuration.rb
172
+ - lib/refinery/authentication/devise/engine.rb
173
+ - lib/refinery/authentication/devise/initialiser.rb
174
+ - lib/refinery/authentication/devise/system.rb
175
+ - lib/refinerycms-authentication-devise.rb
176
+ - license.md
177
+ - readme.md
178
+ - refinerycms-authentication-devise.gemspec
179
+ - spec/controllers/refinery/authentication/devise/admin/users_controller_spec.rb
180
+ - spec/factories/user.rb
181
+ - spec/features/refinery/authentication/devise/admin/users_spec.rb
182
+ - spec/features/refinery/authentication/devise/passwords_spec.rb
183
+ - spec/features/refinery/authentication/devise/sessions_spec.rb
184
+ - spec/lib/refinery/authentication/devise/configuration_spec.rb
185
+ - spec/models/refinery/user_spec.rb
186
+ - spec/spec_helper.rb
187
+ - spec/support/refinery/authentication/devise/controller_macros.rb
188
+ - spec/support/refinery/authentication/devise/feature_macros.rb
189
+ - tasks/rspec.rake
190
+ homepage: http://refinerycms.com
191
+ licenses:
192
+ - MIT
193
+ metadata: {}
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: 2.0.0
203
+ required_rubygems_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ requirements: []
209
+ rubyforge_project:
210
+ rubygems_version: 2.4.6
211
+ signing_key:
212
+ specification_version: 4
213
+ summary: Devise based authentication extension for Refinery CMS
214
+ test_files:
215
+ - spec/controllers/refinery/authentication/devise/admin/users_controller_spec.rb
216
+ - spec/factories/user.rb
217
+ - spec/features/refinery/authentication/devise/admin/users_spec.rb
218
+ - spec/features/refinery/authentication/devise/passwords_spec.rb
219
+ - spec/features/refinery/authentication/devise/sessions_spec.rb
220
+ - spec/lib/refinery/authentication/devise/configuration_spec.rb
221
+ - spec/models/refinery/user_spec.rb
222
+ - spec/spec_helper.rb
223
+ - spec/support/refinery/authentication/devise/controller_macros.rb
224
+ - spec/support/refinery/authentication/devise/feature_macros.rb
225
+ has_rdoc: