authkit 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -3
  3. data/Rakefile +3 -2
  4. data/lib/authkit/version.rb +1 -1
  5. data/lib/generators/authkit/install_generator.rb +181 -35
  6. data/lib/generators/authkit/templates/app/controllers/application_controller.rb +6 -0
  7. data/lib/generators/authkit/templates/app/controllers/auths_controller.rb +144 -0
  8. data/lib/generators/authkit/templates/app/controllers/email_confirmation_controller.rb +1 -1
  9. data/lib/generators/authkit/templates/app/controllers/password_reset_controller.rb +7 -1
  10. data/lib/generators/authkit/templates/app/controllers/sessions_controller.rb +11 -2
  11. data/lib/generators/authkit/templates/app/controllers/signup_controller.rb +4 -2
  12. data/lib/generators/authkit/templates/app/controllers/upload_controller.rb +78 -0
  13. data/lib/generators/authkit/templates/app/controllers/users_controller.rb +2 -2
  14. data/lib/generators/authkit/templates/app/forms/signup.rb +57 -7
  15. data/lib/generators/authkit/templates/app/helpers/auths_helper.rb +26 -0
  16. data/lib/generators/authkit/templates/app/helpers/upload_helper.rb +118 -0
  17. data/lib/generators/authkit/templates/app/models/auth.rb +81 -0
  18. data/lib/generators/authkit/templates/app/models/avatar.rb +45 -0
  19. data/lib/generators/authkit/templates/app/models/user.rb +53 -26
  20. data/lib/generators/authkit/templates/app/views/auths/connect.html.erb +34 -0
  21. data/lib/generators/authkit/templates/app/views/password_change/show.html.erb +9 -9
  22. data/lib/generators/authkit/templates/app/views/password_reset/show.html.erb +6 -6
  23. data/lib/generators/authkit/templates/app/views/sessions/new.html.erb +25 -7
  24. data/lib/generators/authkit/templates/app/views/signup/new.html.erb +44 -32
  25. data/lib/generators/authkit/templates/app/views/users/complete.html.erb +39 -0
  26. data/lib/generators/authkit/templates/app/views/users/edit.html.erb +31 -31
  27. data/lib/generators/authkit/templates/app/workers/avatar_import_worker.rb +12 -0
  28. data/lib/generators/authkit/templates/config/initializers/filter_parameter_logging.rb +2 -2
  29. data/lib/generators/authkit/templates/config/initializers/omniauth.rb +59 -0
  30. data/lib/generators/authkit/templates/config/initializers/paperclip.rb +68 -0
  31. data/lib/generators/authkit/templates/db/migrate/add_authkit_fields_to_users.rb +8 -6
  32. data/lib/generators/authkit/templates/db/migrate/create_auths.rb +24 -0
  33. data/lib/generators/authkit/templates/db/migrate/create_avatars.rb +27 -0
  34. data/lib/generators/authkit/templates/lib/full_name_splitter.rb +111 -0
  35. data/lib/generators/authkit/templates/lib/username_format_validator.rb +11 -0
  36. data/lib/generators/authkit/templates/spec/controllers/application_controller_spec.rb +31 -38
  37. data/lib/generators/authkit/templates/spec/controllers/auths_controller_spec.rb +72 -0
  38. data/lib/generators/authkit/templates/spec/controllers/email_confirmation_controller_spec.rb +25 -27
  39. data/lib/generators/authkit/templates/spec/controllers/password_change_controller_spec.rb +30 -30
  40. data/lib/generators/authkit/templates/spec/controllers/password_reset_controller_spec.rb +20 -20
  41. data/lib/generators/authkit/templates/spec/controllers/sessions_controller_spec.rb +33 -33
  42. data/lib/generators/authkit/templates/spec/controllers/signup_controller_spec.rb +19 -19
  43. data/lib/generators/authkit/templates/spec/controllers/users_controller_spec.rb +21 -21
  44. data/lib/generators/authkit/templates/spec/factories/user.rb +3 -3
  45. data/lib/generators/authkit/templates/spec/forms/signup_spec.rb +32 -31
  46. data/lib/generators/authkit/templates/spec/models/auth_spec.rb +18 -0
  47. data/lib/generators/authkit/templates/spec/models/user_spec.rb +72 -78
  48. data/spec/rails_helper.rb +50 -0
  49. data/spec/spec_helper.rb +70 -13
  50. metadata +35 -17
  51. data/lib/generators/authkit/templates/spec/spec_helper.rb +0 -4
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Rafter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-05 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: factory_girl_rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: active_model_otp
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Auth for your Rails application
@@ -87,7 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
90
+ - ".gitignore"
91
91
  - FEATURES.md
92
92
  - Gemfile
93
93
  - LICENSE.txt
@@ -101,24 +101,40 @@ files:
101
101
  - lib/generators/authkit/USAGE
102
102
  - lib/generators/authkit/install_generator.rb
103
103
  - lib/generators/authkit/templates/app/controllers/application_controller.rb
104
+ - lib/generators/authkit/templates/app/controllers/auths_controller.rb
104
105
  - lib/generators/authkit/templates/app/controllers/email_confirmation_controller.rb
105
106
  - lib/generators/authkit/templates/app/controllers/password_change_controller.rb
106
107
  - lib/generators/authkit/templates/app/controllers/password_reset_controller.rb
107
108
  - lib/generators/authkit/templates/app/controllers/sessions_controller.rb
108
109
  - lib/generators/authkit/templates/app/controllers/signup_controller.rb
110
+ - lib/generators/authkit/templates/app/controllers/upload_controller.rb
109
111
  - lib/generators/authkit/templates/app/controllers/users_controller.rb
110
112
  - lib/generators/authkit/templates/app/forms/signup.rb
113
+ - lib/generators/authkit/templates/app/helpers/auths_helper.rb
114
+ - lib/generators/authkit/templates/app/helpers/upload_helper.rb
115
+ - lib/generators/authkit/templates/app/models/auth.rb
116
+ - lib/generators/authkit/templates/app/models/avatar.rb
111
117
  - lib/generators/authkit/templates/app/models/user.rb
118
+ - lib/generators/authkit/templates/app/views/auths/connect.html.erb
112
119
  - lib/generators/authkit/templates/app/views/password_change/show.html.erb
113
120
  - lib/generators/authkit/templates/app/views/password_reset/show.html.erb
114
121
  - lib/generators/authkit/templates/app/views/sessions/new.html.erb
115
122
  - lib/generators/authkit/templates/app/views/signup/new.html.erb
123
+ - lib/generators/authkit/templates/app/views/users/complete.html.erb
116
124
  - lib/generators/authkit/templates/app/views/users/edit.html.erb
125
+ - lib/generators/authkit/templates/app/workers/avatar_import_worker.rb
117
126
  - lib/generators/authkit/templates/config/initializers/filter_parameter_logging.rb
127
+ - lib/generators/authkit/templates/config/initializers/omniauth.rb
128
+ - lib/generators/authkit/templates/config/initializers/paperclip.rb
118
129
  - lib/generators/authkit/templates/db/migrate/add_authkit_fields_to_users.rb
130
+ - lib/generators/authkit/templates/db/migrate/create_auths.rb
131
+ - lib/generators/authkit/templates/db/migrate/create_avatars.rb
119
132
  - lib/generators/authkit/templates/db/migrate/create_users.rb
120
133
  - lib/generators/authkit/templates/lib/email_format_validator.rb
134
+ - lib/generators/authkit/templates/lib/full_name_splitter.rb
135
+ - lib/generators/authkit/templates/lib/username_format_validator.rb
121
136
  - lib/generators/authkit/templates/spec/controllers/application_controller_spec.rb
137
+ - lib/generators/authkit/templates/spec/controllers/auths_controller_spec.rb
122
138
  - lib/generators/authkit/templates/spec/controllers/email_confirmation_controller_spec.rb
123
139
  - lib/generators/authkit/templates/spec/controllers/password_change_controller_spec.rb
124
140
  - lib/generators/authkit/templates/spec/controllers/password_reset_controller_spec.rb
@@ -127,8 +143,9 @@ files:
127
143
  - lib/generators/authkit/templates/spec/controllers/users_controller_spec.rb
128
144
  - lib/generators/authkit/templates/spec/factories/user.rb
129
145
  - lib/generators/authkit/templates/spec/forms/signup_spec.rb
146
+ - lib/generators/authkit/templates/spec/models/auth_spec.rb
130
147
  - lib/generators/authkit/templates/spec/models/user_spec.rb
131
- - lib/generators/authkit/templates/spec/spec_helper.rb
148
+ - spec/rails_helper.rb
132
149
  - spec/spec_helper.rb
133
150
  homepage: https://github.com/jeffrafter/authkit
134
151
  licenses:
@@ -140,19 +157,20 @@ require_paths:
140
157
  - lib
141
158
  required_ruby_version: !ruby/object:Gem::Requirement
142
159
  requirements:
143
- - - '>='
160
+ - - ">="
144
161
  - !ruby/object:Gem::Version
145
162
  version: '0'
146
163
  required_rubygems_version: !ruby/object:Gem::Requirement
147
164
  requirements:
148
- - - '>='
165
+ - - ">="
149
166
  - !ruby/object:Gem::Version
150
167
  version: '0'
151
168
  requirements: []
152
169
  rubyforge_project:
153
- rubygems_version: 2.0.3
170
+ rubygems_version: 2.2.2
154
171
  signing_key:
155
172
  specification_version: 4
156
173
  summary: Auth for your Rails application
157
174
  test_files:
175
+ - spec/rails_helper.rb
158
176
  - spec/spec_helper.rb
@@ -1,4 +0,0 @@
1
-
2
- # FactoryGirl allows you to quickly create template based objects
3
- # The syntax methods give you inline `create` and a `build` commands
4
- config.include FactoryGirl::Syntax::Methods