rails-identity 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/rails_identity/application.js +13 -0
  5. data/app/assets/javascripts/rails_identity/sessions.js +2 -0
  6. data/app/assets/javascripts/rails_identity/users.js +2 -0
  7. data/app/assets/stylesheets/rails_identity/application.css +15 -0
  8. data/app/assets/stylesheets/rails_identity/sessions.css +4 -0
  9. data/app/assets/stylesheets/rails_identity/users.css +4 -0
  10. data/app/controllers/rails_identity/application_controller.rb +200 -0
  11. data/app/controllers/rails_identity/sessions_controller.rb +108 -0
  12. data/app/controllers/rails_identity/users_controller.rb +168 -0
  13. data/app/helpers/rails_identity/application_helper.rb +19 -0
  14. data/app/helpers/rails_identity/sessions_helper.rb +4 -0
  15. data/app/helpers/rails_identity/users_helper.rb +4 -0
  16. data/app/jobs/rails_identity/sessions_cleanup_job.rb +13 -0
  17. data/app/mailers/application_mailer.rb +4 -0
  18. data/app/mailers/rails_identity/user_mailer.rb +14 -0
  19. data/app/models/rails_identity/session.rb +44 -0
  20. data/app/models/rails_identity/user.rb +48 -0
  21. data/app/views/layouts/mailer.html.erb +5 -0
  22. data/app/views/layouts/mailer.text.erb +1 -0
  23. data/app/views/layouts/rails_identity/application.html.erb +14 -0
  24. data/app/views/rails_identity/user_mailer/email_verification.html.erb +12 -0
  25. data/app/views/rails_identity/user_mailer/email_verification.text.erb +13 -0
  26. data/app/views/rails_identity/user_mailer/password_reset.html.erb +14 -0
  27. data/app/views/rails_identity/user_mailer/password_reset.text.erb +15 -0
  28. data/config/routes.rb +7 -0
  29. data/db/migrate/20160323210013_create_rails_identity_users.rb +13 -0
  30. data/db/migrate/20160323210017_create_rails_identity_sessions.rb +12 -0
  31. data/db/migrate/20160401223433_add_reset_token_to_users.rb +5 -0
  32. data/db/migrate/20160411215917_add_verification_token_to_users.rb +10 -0
  33. data/db/migrate/20160414145851_add_api_key_to_users.rb +5 -0
  34. data/lib/rails_identity/engine.rb +9 -0
  35. data/lib/rails_identity/version.rb +3 -0
  36. data/lib/rails_identity.rb +52 -0
  37. data/lib/tasks/rails_identity_tasks.rake +4 -0
  38. data/test/controllers/rails_identity/sessions_controller_test.rb +192 -0
  39. data/test/controllers/rails_identity/users_controller_test.rb +253 -0
  40. data/test/dummy/README.rdoc +28 -0
  41. data/test/dummy/Rakefile +6 -0
  42. data/test/dummy/app/assets/javascripts/application.js +13 -0
  43. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  44. data/test/dummy/app/controllers/application_controller.rb +5 -0
  45. data/test/dummy/app/helpers/application_helper.rb +2 -0
  46. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  47. data/test/dummy/bin/bundle +3 -0
  48. data/test/dummy/bin/rails +4 -0
  49. data/test/dummy/bin/rake +4 -0
  50. data/test/dummy/bin/setup +29 -0
  51. data/test/dummy/config/application.rb +26 -0
  52. data/test/dummy/config/boot.rb +5 -0
  53. data/test/dummy/config/database.yml +25 -0
  54. data/test/dummy/config/environment.rb +5 -0
  55. data/test/dummy/config/environments/development.rb +41 -0
  56. data/test/dummy/config/environments/production.rb +79 -0
  57. data/test/dummy/config/environments/test.rb +42 -0
  58. data/test/dummy/config/initializers/assets.rb +11 -0
  59. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  60. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  61. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  62. data/test/dummy/config/initializers/inflections.rb +16 -0
  63. data/test/dummy/config/initializers/mime_types.rb +4 -0
  64. data/test/dummy/config/initializers/session_store.rb +3 -0
  65. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  66. data/test/dummy/config/locales/en.yml +23 -0
  67. data/test/dummy/config/routes.rb +4 -0
  68. data/test/dummy/config/secrets.yml +22 -0
  69. data/test/dummy/config.ru +4 -0
  70. data/test/dummy/db/development.sqlite3 +0 -0
  71. data/test/dummy/db/schema.rb +42 -0
  72. data/test/dummy/db/test.sqlite3 +0 -0
  73. data/test/dummy/log/development.log +215 -0
  74. data/test/dummy/log/test.log +280622 -0
  75. data/test/dummy/public/404.html +67 -0
  76. data/test/dummy/public/422.html +67 -0
  77. data/test/dummy/public/500.html +66 -0
  78. data/test/dummy/public/favicon.ico +0 -0
  79. data/test/dummy/tmp/cache/A5C/3F0/rails-identity-0.0.1-session-1 +0 -0
  80. data/test/fixtures/rails_identity/sessions.yml +36 -0
  81. data/test/fixtures/rails_identity/users.yml +24 -0
  82. data/test/integration/navigation_test.rb +10 -0
  83. data/test/jobs/rails_identity/sessions_cleanup_job_test.rb +9 -0
  84. data/test/mailers/previews/rails_identity/user_mailer_preview.rb +6 -0
  85. data/test/mailers/rails_identity/user_mailer_test.rb +9 -0
  86. data/test/models/rails_identity/session_test.rb +26 -0
  87. data/test/models/rails_identity/user_test.rb +54 -0
  88. data/test/rails_identity_test.rb +7 -0
  89. data/test/test_helper.rb +33 -0
  90. metadata +297 -0
metadata ADDED
@@ -0,0 +1,297 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-identity
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David An
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: bcrypt
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.7
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.7
41
+ - !ruby/object:Gem::Dependency
42
+ name: uuidtools
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.1.5
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.1.5
55
+ - !ruby/object:Gem::Dependency
56
+ name: jwt
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.5.4
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.5.4
69
+ - !ruby/object:Gem::Dependency
70
+ name: paranoia
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '2.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: See README.md
126
+ email:
127
+ - davidan1981@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - app/assets/javascripts/rails_identity/application.js
133
+ - app/assets/javascripts/rails_identity/sessions.js
134
+ - app/assets/javascripts/rails_identity/users.js
135
+ - app/assets/stylesheets/rails_identity/application.css
136
+ - app/assets/stylesheets/rails_identity/sessions.css
137
+ - app/assets/stylesheets/rails_identity/users.css
138
+ - app/controllers/rails_identity/application_controller.rb
139
+ - app/controllers/rails_identity/sessions_controller.rb
140
+ - app/controllers/rails_identity/users_controller.rb
141
+ - app/helpers/rails_identity/application_helper.rb
142
+ - app/helpers/rails_identity/sessions_helper.rb
143
+ - app/helpers/rails_identity/users_helper.rb
144
+ - app/jobs/rails_identity/sessions_cleanup_job.rb
145
+ - app/mailers/application_mailer.rb
146
+ - app/mailers/rails_identity/user_mailer.rb
147
+ - app/models/rails_identity/session.rb
148
+ - app/models/rails_identity/user.rb
149
+ - app/views/layouts/mailer.html.erb
150
+ - app/views/layouts/mailer.text.erb
151
+ - app/views/layouts/rails_identity/application.html.erb
152
+ - app/views/rails_identity/user_mailer/email_verification.html.erb
153
+ - app/views/rails_identity/user_mailer/email_verification.text.erb
154
+ - app/views/rails_identity/user_mailer/password_reset.html.erb
155
+ - app/views/rails_identity/user_mailer/password_reset.text.erb
156
+ - config/routes.rb
157
+ - db/migrate/20160323210013_create_rails_identity_users.rb
158
+ - db/migrate/20160323210017_create_rails_identity_sessions.rb
159
+ - db/migrate/20160401223433_add_reset_token_to_users.rb
160
+ - db/migrate/20160411215917_add_verification_token_to_users.rb
161
+ - db/migrate/20160414145851_add_api_key_to_users.rb
162
+ - lib/rails_identity/engine.rb
163
+ - lib/rails_identity/version.rb
164
+ - lib/rails_identity.rb
165
+ - lib/tasks/rails_identity_tasks.rake
166
+ - MIT-LICENSE
167
+ - Rakefile
168
+ - test/controllers/rails_identity/sessions_controller_test.rb
169
+ - test/controllers/rails_identity/users_controller_test.rb
170
+ - test/dummy/app/assets/javascripts/application.js
171
+ - test/dummy/app/assets/stylesheets/application.css
172
+ - test/dummy/app/controllers/application_controller.rb
173
+ - test/dummy/app/helpers/application_helper.rb
174
+ - test/dummy/app/views/layouts/application.html.erb
175
+ - test/dummy/bin/bundle
176
+ - test/dummy/bin/rails
177
+ - test/dummy/bin/rake
178
+ - test/dummy/bin/setup
179
+ - test/dummy/config/application.rb
180
+ - test/dummy/config/boot.rb
181
+ - test/dummy/config/database.yml
182
+ - test/dummy/config/environment.rb
183
+ - test/dummy/config/environments/development.rb
184
+ - test/dummy/config/environments/production.rb
185
+ - test/dummy/config/environments/test.rb
186
+ - test/dummy/config/initializers/assets.rb
187
+ - test/dummy/config/initializers/backtrace_silencers.rb
188
+ - test/dummy/config/initializers/cookies_serializer.rb
189
+ - test/dummy/config/initializers/filter_parameter_logging.rb
190
+ - test/dummy/config/initializers/inflections.rb
191
+ - test/dummy/config/initializers/mime_types.rb
192
+ - test/dummy/config/initializers/session_store.rb
193
+ - test/dummy/config/initializers/wrap_parameters.rb
194
+ - test/dummy/config/locales/en.yml
195
+ - test/dummy/config/routes.rb
196
+ - test/dummy/config/secrets.yml
197
+ - test/dummy/config.ru
198
+ - test/dummy/db/development.sqlite3
199
+ - test/dummy/db/schema.rb
200
+ - test/dummy/db/test.sqlite3
201
+ - test/dummy/log/development.log
202
+ - test/dummy/log/test.log
203
+ - test/dummy/public/404.html
204
+ - test/dummy/public/422.html
205
+ - test/dummy/public/500.html
206
+ - test/dummy/public/favicon.ico
207
+ - test/dummy/Rakefile
208
+ - test/dummy/README.rdoc
209
+ - test/dummy/tmp/cache/A5C/3F0/rails-identity-0.0.1-session-1
210
+ - test/fixtures/rails_identity/sessions.yml
211
+ - test/fixtures/rails_identity/users.yml
212
+ - test/integration/navigation_test.rb
213
+ - test/jobs/rails_identity/sessions_cleanup_job_test.rb
214
+ - test/mailers/previews/rails_identity/user_mailer_preview.rb
215
+ - test/mailers/rails_identity/user_mailer_test.rb
216
+ - test/models/rails_identity/session_test.rb
217
+ - test/models/rails_identity/user_test.rb
218
+ - test/rails_identity_test.rb
219
+ - test/test_helper.rb
220
+ homepage: https://github.com/davidan1981/rails_identity
221
+ licenses:
222
+ - MIT
223
+ metadata: {}
224
+ post_install_message:
225
+ rdoc_options: []
226
+ require_paths:
227
+ - lib
228
+ required_ruby_version: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
233
+ required_rubygems_version: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ requirements: []
239
+ rubyforge_project:
240
+ rubygems_version: 2.0.14
241
+ signing_key:
242
+ specification_version: 4
243
+ summary: rails-identity is a Rails engine that provides a simple JWT-based session
244
+ management service.
245
+ test_files:
246
+ - test/controllers/rails_identity/sessions_controller_test.rb
247
+ - test/controllers/rails_identity/users_controller_test.rb
248
+ - test/dummy/app/assets/javascripts/application.js
249
+ - test/dummy/app/assets/stylesheets/application.css
250
+ - test/dummy/app/controllers/application_controller.rb
251
+ - test/dummy/app/helpers/application_helper.rb
252
+ - test/dummy/app/views/layouts/application.html.erb
253
+ - test/dummy/bin/bundle
254
+ - test/dummy/bin/rails
255
+ - test/dummy/bin/rake
256
+ - test/dummy/bin/setup
257
+ - test/dummy/config/application.rb
258
+ - test/dummy/config/boot.rb
259
+ - test/dummy/config/database.yml
260
+ - test/dummy/config/environment.rb
261
+ - test/dummy/config/environments/development.rb
262
+ - test/dummy/config/environments/production.rb
263
+ - test/dummy/config/environments/test.rb
264
+ - test/dummy/config/initializers/assets.rb
265
+ - test/dummy/config/initializers/backtrace_silencers.rb
266
+ - test/dummy/config/initializers/cookies_serializer.rb
267
+ - test/dummy/config/initializers/filter_parameter_logging.rb
268
+ - test/dummy/config/initializers/inflections.rb
269
+ - test/dummy/config/initializers/mime_types.rb
270
+ - test/dummy/config/initializers/session_store.rb
271
+ - test/dummy/config/initializers/wrap_parameters.rb
272
+ - test/dummy/config/locales/en.yml
273
+ - test/dummy/config/routes.rb
274
+ - test/dummy/config/secrets.yml
275
+ - test/dummy/config.ru
276
+ - test/dummy/db/development.sqlite3
277
+ - test/dummy/db/schema.rb
278
+ - test/dummy/db/test.sqlite3
279
+ - test/dummy/log/development.log
280
+ - test/dummy/log/test.log
281
+ - test/dummy/public/404.html
282
+ - test/dummy/public/422.html
283
+ - test/dummy/public/500.html
284
+ - test/dummy/public/favicon.ico
285
+ - test/dummy/Rakefile
286
+ - test/dummy/README.rdoc
287
+ - test/dummy/tmp/cache/A5C/3F0/rails-identity-0.0.1-session-1
288
+ - test/fixtures/rails_identity/sessions.yml
289
+ - test/fixtures/rails_identity/users.yml
290
+ - test/integration/navigation_test.rb
291
+ - test/jobs/rails_identity/sessions_cleanup_job_test.rb
292
+ - test/mailers/previews/rails_identity/user_mailer_preview.rb
293
+ - test/mailers/rails_identity/user_mailer_test.rb
294
+ - test/models/rails_identity/session_test.rb
295
+ - test/models/rails_identity/user_test.rb
296
+ - test/rails_identity_test.rb
297
+ - test/test_helper.rb