nyauth 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +1 -0
- data/Rakefile +26 -0
- data/app/assets/javascripts/nyauth/application.js +13 -0
- data/app/assets/stylesheets/nyauth/application.css +15 -0
- data/app/controllers/concerns/nyauth/session_concern.rb +71 -0
- data/app/controllers/nyauth/confirmation_requests_controller.rb +28 -0
- data/app/controllers/nyauth/confirmations_controller.rb +19 -0
- data/app/controllers/nyauth/new_password_requests_controller.rb +28 -0
- data/app/controllers/nyauth/new_passwords_controller.rb +26 -0
- data/app/controllers/nyauth/passwords_controller.rb +26 -0
- data/app/controllers/nyauth/registrations_controller.rb +26 -0
- data/app/controllers/nyauth/sessions_controller.rb +31 -0
- data/app/helpers/nyauth/application_helper.rb +4 -0
- data/app/mailers/nyauth/user_mailer.rb +15 -0
- data/app/models/concerns/nyauth/authenticatable.rb +18 -0
- data/app/models/concerns/nyauth/confirmable.rb +34 -0
- data/app/models/concerns/nyauth/new_password_ability.rb +35 -0
- data/app/models/concerns/nyauth/password_digest_ability.rb +40 -0
- data/app/responders/nyauth/app_responder.rb +6 -0
- data/app/responders/nyauth/confirmation_responder.rb +14 -0
- data/app/services/nyauth/confirmation_request_service.rb +15 -0
- data/app/services/nyauth/session_service.rb +21 -0
- data/app/views/layouts/nyauth/mailer.html.erb +1 -0
- data/app/views/layouts/nyauth/mailer.text.erb +1 -0
- data/app/views/nyauth/confirmation_requests/new.html.slim +5 -0
- data/app/views/nyauth/confirmations/edit.html.slim +5 -0
- data/app/views/nyauth/group_requests/edit.html.slim +0 -0
- data/app/views/nyauth/group_requests/new.html.slim +14 -0
- data/app/views/nyauth/groups/show.html.slim +0 -0
- data/app/views/nyauth/layouts/application.html.slim +15 -0
- data/app/views/nyauth/layouts/mailer.html.slim +1 -0
- data/app/views/nyauth/layouts/mailer.text.slim +1 -0
- data/app/views/nyauth/new_password_requests/new.html.slim +5 -0
- data/app/views/nyauth/new_passwords/edit.html.slim +11 -0
- data/app/views/nyauth/passwords/edit.html.slim +11 -0
- data/app/views/nyauth/registrations/new.html.slim +12 -0
- data/app/views/nyauth/sessions/new.html.slim +15 -0
- data/app/views/nyauth/user_mailer/request_confirmation.html.slim +2 -0
- data/app/views/nyauth/user_mailer/request_confirmation.text.erb +3 -0
- data/app/views/nyauth/user_mailer/request_new_password.html.slim +2 -0
- data/app/views/nyauth/user_mailer/request_new_password.text.erb +3 -0
- data/config/application.yml +1 -0
- data/config/locales/en.yml +46 -0
- data/config/routes.rb +10 -0
- data/lib/nyauth/encryptor.rb +26 -0
- data/lib/nyauth/engine.rb +21 -0
- data/lib/nyauth/version.rb +3 -0
- data/lib/nyauth.rb +5 -0
- data/lib/tasks/nyauth_tasks.rake +4 -0
- data/spec/controllers/application_controller_spec.rb +5 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +7 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/user.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +20 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +42 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +46 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150303135922_create_users.rb +18 -0
- data/spec/dummy/db/schema.rb +32 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1906 -0
- data/spec/dummy/log/test.log +6719 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/users.rb +21 -0
- data/spec/featrues/nyauth/confirmation_requests_spec.rb +35 -0
- data/spec/featrues/nyauth/new_password_requests_spec.rb +43 -0
- data/spec/featrues/nyauth/passwords_spec.rb +27 -0
- data/spec/featrues/nyauth/registrations_spec.rb +24 -0
- data/spec/featrues/nyauth/sessions_spec.rb +36 -0
- data/spec/models/user_spec.rb +9 -0
- data/spec/rails_helper.rb +41 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/support/controllers/nyauth/session_concern.rb +39 -0
- data/spec/support/macros/controller_macros.rb +3 -0
- data/spec/support/macros/feature_macros.rb +8 -0
- data/spec/support/models/nyauth/authenticatable.rb +36 -0
- data/spec/support/models/nyauth/confirmable.rb +27 -0
- data/spec/support/models/nyauth/new_password_ability.rb +13 -0
- data/spec/support/models/nyauth/password_digest_ability.rb +18 -0
- metadata +280 -0
metadata
ADDED
@@ -0,0 +1,280 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nyauth
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ppworks
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-14 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.0
|
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.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: responders
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: slim-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sprockets-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: email_validator
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.5'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.5'
|
83
|
+
description: Simple & modualbe authentication gem
|
84
|
+
email:
|
85
|
+
- koshikawa@ppworks.jp
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- MIT-LICENSE
|
91
|
+
- README.md
|
92
|
+
- Rakefile
|
93
|
+
- app/assets/javascripts/nyauth/application.js
|
94
|
+
- app/assets/stylesheets/nyauth/application.css
|
95
|
+
- app/controllers/concerns/nyauth/session_concern.rb
|
96
|
+
- app/controllers/nyauth/confirmation_requests_controller.rb
|
97
|
+
- app/controllers/nyauth/confirmations_controller.rb
|
98
|
+
- app/controllers/nyauth/new_password_requests_controller.rb
|
99
|
+
- app/controllers/nyauth/new_passwords_controller.rb
|
100
|
+
- app/controllers/nyauth/passwords_controller.rb
|
101
|
+
- app/controllers/nyauth/registrations_controller.rb
|
102
|
+
- app/controllers/nyauth/sessions_controller.rb
|
103
|
+
- app/helpers/nyauth/application_helper.rb
|
104
|
+
- app/mailers/nyauth/user_mailer.rb
|
105
|
+
- app/models/concerns/nyauth/authenticatable.rb
|
106
|
+
- app/models/concerns/nyauth/confirmable.rb
|
107
|
+
- app/models/concerns/nyauth/new_password_ability.rb
|
108
|
+
- app/models/concerns/nyauth/password_digest_ability.rb
|
109
|
+
- app/responders/nyauth/app_responder.rb
|
110
|
+
- app/responders/nyauth/confirmation_responder.rb
|
111
|
+
- app/services/nyauth/confirmation_request_service.rb
|
112
|
+
- app/services/nyauth/session_service.rb
|
113
|
+
- app/views/layouts/nyauth/mailer.html.erb
|
114
|
+
- app/views/layouts/nyauth/mailer.text.erb
|
115
|
+
- app/views/nyauth/confirmation_requests/new.html.slim
|
116
|
+
- app/views/nyauth/confirmations/edit.html.slim
|
117
|
+
- app/views/nyauth/group_requests/edit.html.slim
|
118
|
+
- app/views/nyauth/group_requests/new.html.slim
|
119
|
+
- app/views/nyauth/groups/show.html.slim
|
120
|
+
- app/views/nyauth/layouts/application.html.slim
|
121
|
+
- app/views/nyauth/layouts/mailer.html.slim
|
122
|
+
- app/views/nyauth/layouts/mailer.text.slim
|
123
|
+
- app/views/nyauth/new_password_requests/new.html.slim
|
124
|
+
- app/views/nyauth/new_passwords/edit.html.slim
|
125
|
+
- app/views/nyauth/passwords/edit.html.slim
|
126
|
+
- app/views/nyauth/registrations/new.html.slim
|
127
|
+
- app/views/nyauth/sessions/new.html.slim
|
128
|
+
- app/views/nyauth/user_mailer/request_confirmation.html.slim
|
129
|
+
- app/views/nyauth/user_mailer/request_confirmation.text.erb
|
130
|
+
- app/views/nyauth/user_mailer/request_new_password.html.slim
|
131
|
+
- app/views/nyauth/user_mailer/request_new_password.text.erb
|
132
|
+
- config/application.yml
|
133
|
+
- config/locales/en.yml
|
134
|
+
- config/routes.rb
|
135
|
+
- lib/nyauth.rb
|
136
|
+
- lib/nyauth/encryptor.rb
|
137
|
+
- lib/nyauth/engine.rb
|
138
|
+
- lib/nyauth/version.rb
|
139
|
+
- lib/tasks/nyauth_tasks.rake
|
140
|
+
- spec/controllers/application_controller_spec.rb
|
141
|
+
- spec/dummy/README.rdoc
|
142
|
+
- spec/dummy/Rakefile
|
143
|
+
- spec/dummy/app/assets/javascripts/application.js
|
144
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
145
|
+
- spec/dummy/app/controllers/application_controller.rb
|
146
|
+
- spec/dummy/app/helpers/application_helper.rb
|
147
|
+
- spec/dummy/app/models/user.rb
|
148
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
149
|
+
- spec/dummy/bin/bundle
|
150
|
+
- spec/dummy/bin/rails
|
151
|
+
- spec/dummy/bin/rake
|
152
|
+
- spec/dummy/bin/setup
|
153
|
+
- spec/dummy/config.ru
|
154
|
+
- spec/dummy/config/application.rb
|
155
|
+
- spec/dummy/config/boot.rb
|
156
|
+
- spec/dummy/config/database.yml
|
157
|
+
- spec/dummy/config/environment.rb
|
158
|
+
- spec/dummy/config/environments/development.rb
|
159
|
+
- spec/dummy/config/environments/production.rb
|
160
|
+
- spec/dummy/config/environments/test.rb
|
161
|
+
- spec/dummy/config/initializers/assets.rb
|
162
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
163
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
164
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
165
|
+
- spec/dummy/config/initializers/inflections.rb
|
166
|
+
- spec/dummy/config/initializers/mime_types.rb
|
167
|
+
- spec/dummy/config/initializers/session_store.rb
|
168
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
169
|
+
- spec/dummy/config/locales/en.yml
|
170
|
+
- spec/dummy/config/routes.rb
|
171
|
+
- spec/dummy/config/secrets.yml
|
172
|
+
- spec/dummy/db/development.sqlite3
|
173
|
+
- spec/dummy/db/migrate/20150303135922_create_users.rb
|
174
|
+
- spec/dummy/db/schema.rb
|
175
|
+
- spec/dummy/db/test.sqlite3
|
176
|
+
- spec/dummy/log/development.log
|
177
|
+
- spec/dummy/log/test.log
|
178
|
+
- spec/dummy/public/404.html
|
179
|
+
- spec/dummy/public/422.html
|
180
|
+
- spec/dummy/public/500.html
|
181
|
+
- spec/dummy/public/favicon.ico
|
182
|
+
- spec/factories/users.rb
|
183
|
+
- spec/featrues/nyauth/confirmation_requests_spec.rb
|
184
|
+
- spec/featrues/nyauth/new_password_requests_spec.rb
|
185
|
+
- spec/featrues/nyauth/passwords_spec.rb
|
186
|
+
- spec/featrues/nyauth/registrations_spec.rb
|
187
|
+
- spec/featrues/nyauth/sessions_spec.rb
|
188
|
+
- spec/models/user_spec.rb
|
189
|
+
- spec/rails_helper.rb
|
190
|
+
- spec/spec_helper.rb
|
191
|
+
- spec/support/controllers/nyauth/session_concern.rb
|
192
|
+
- spec/support/macros/controller_macros.rb
|
193
|
+
- spec/support/macros/feature_macros.rb
|
194
|
+
- spec/support/models/nyauth/authenticatable.rb
|
195
|
+
- spec/support/models/nyauth/confirmable.rb
|
196
|
+
- spec/support/models/nyauth/new_password_ability.rb
|
197
|
+
- spec/support/models/nyauth/password_digest_ability.rb
|
198
|
+
homepage: https://github.com/ppworks/nyauth
|
199
|
+
licenses:
|
200
|
+
- MIT
|
201
|
+
metadata: {}
|
202
|
+
post_install_message:
|
203
|
+
rdoc_options: []
|
204
|
+
require_paths:
|
205
|
+
- lib
|
206
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
requirements: []
|
217
|
+
rubyforge_project:
|
218
|
+
rubygems_version: 2.4.5
|
219
|
+
signing_key:
|
220
|
+
specification_version: 4
|
221
|
+
summary: Simple authentication
|
222
|
+
test_files:
|
223
|
+
- spec/controllers/application_controller_spec.rb
|
224
|
+
- spec/dummy/app/assets/javascripts/application.js
|
225
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
226
|
+
- spec/dummy/app/controllers/application_controller.rb
|
227
|
+
- spec/dummy/app/helpers/application_helper.rb
|
228
|
+
- spec/dummy/app/models/user.rb
|
229
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
230
|
+
- spec/dummy/bin/bundle
|
231
|
+
- spec/dummy/bin/rails
|
232
|
+
- spec/dummy/bin/rake
|
233
|
+
- spec/dummy/bin/setup
|
234
|
+
- spec/dummy/config/application.rb
|
235
|
+
- spec/dummy/config/boot.rb
|
236
|
+
- spec/dummy/config/database.yml
|
237
|
+
- spec/dummy/config/environment.rb
|
238
|
+
- spec/dummy/config/environments/development.rb
|
239
|
+
- spec/dummy/config/environments/production.rb
|
240
|
+
- spec/dummy/config/environments/test.rb
|
241
|
+
- spec/dummy/config/initializers/assets.rb
|
242
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
243
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
244
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
245
|
+
- spec/dummy/config/initializers/inflections.rb
|
246
|
+
- spec/dummy/config/initializers/mime_types.rb
|
247
|
+
- spec/dummy/config/initializers/session_store.rb
|
248
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
249
|
+
- spec/dummy/config/locales/en.yml
|
250
|
+
- spec/dummy/config/routes.rb
|
251
|
+
- spec/dummy/config/secrets.yml
|
252
|
+
- spec/dummy/config.ru
|
253
|
+
- spec/dummy/db/development.sqlite3
|
254
|
+
- spec/dummy/db/migrate/20150303135922_create_users.rb
|
255
|
+
- spec/dummy/db/schema.rb
|
256
|
+
- spec/dummy/db/test.sqlite3
|
257
|
+
- spec/dummy/log/development.log
|
258
|
+
- spec/dummy/log/test.log
|
259
|
+
- spec/dummy/public/404.html
|
260
|
+
- spec/dummy/public/422.html
|
261
|
+
- spec/dummy/public/500.html
|
262
|
+
- spec/dummy/public/favicon.ico
|
263
|
+
- spec/dummy/Rakefile
|
264
|
+
- spec/dummy/README.rdoc
|
265
|
+
- spec/factories/users.rb
|
266
|
+
- spec/featrues/nyauth/confirmation_requests_spec.rb
|
267
|
+
- spec/featrues/nyauth/new_password_requests_spec.rb
|
268
|
+
- spec/featrues/nyauth/passwords_spec.rb
|
269
|
+
- spec/featrues/nyauth/registrations_spec.rb
|
270
|
+
- spec/featrues/nyauth/sessions_spec.rb
|
271
|
+
- spec/models/user_spec.rb
|
272
|
+
- spec/rails_helper.rb
|
273
|
+
- spec/spec_helper.rb
|
274
|
+
- spec/support/controllers/nyauth/session_concern.rb
|
275
|
+
- spec/support/macros/controller_macros.rb
|
276
|
+
- spec/support/macros/feature_macros.rb
|
277
|
+
- spec/support/models/nyauth/authenticatable.rb
|
278
|
+
- spec/support/models/nyauth/confirmable.rb
|
279
|
+
- spec/support/models/nyauth/new_password_ability.rb
|
280
|
+
- spec/support/models/nyauth/password_digest_ability.rb
|