clearance 1.0.0.rc7 → 1.0.0.rc8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of clearance might be problematic. Click here for more details.

Files changed (55) hide show
  1. checksums.yaml +6 -14
  2. data/.gitignore +3 -3
  3. data/.travis.yml +0 -17
  4. data/Appraisals +2 -6
  5. data/Gemfile +16 -1
  6. data/Gemfile.lock +116 -107
  7. data/NEWS.md +7 -3
  8. data/README.md +195 -129
  9. data/Rakefile +5 -9
  10. data/app/views/layouts/application.html.erb +1 -1
  11. data/clearance.gemspec +20 -17
  12. data/config/locales/clearance.en.yml +2 -1
  13. data/config/routes.rb +2 -2
  14. data/features/add_migrations_to_project.feature +7 -37
  15. data/features/integration_with_rspec.feature +5 -4
  16. data/features/integration_with_test_unit.feature +11 -38
  17. data/features/step_definitions/configuration_steps.rb +94 -8
  18. data/features/step_definitions/gem_file_steps.rb +8 -0
  19. data/features/support/env.rb +7 -0
  20. data/lib/clearance/authorization.rb +16 -3
  21. data/lib/clearance/configuration.rb +2 -0
  22. data/lib/clearance/engine.rb +1 -1
  23. data/lib/clearance/session.rb +12 -11
  24. data/lib/clearance/testing.rb +0 -4
  25. data/lib/clearance/testing/application.rb +23 -24
  26. data/lib/clearance/testing/helpers.rb +1 -1
  27. data/lib/clearance/user.rb +17 -10
  28. data/lib/clearance/version.rb +1 -1
  29. data/lib/generators/clearance/specs/templates/{integration → features}/clearance/user_signs_out_spec.rb +0 -0
  30. data/lib/generators/clearance/specs/templates/{integration → features}/clearance/visitor_resets_password_spec.rb +24 -0
  31. data/lib/generators/clearance/specs/templates/{integration → features}/clearance/visitor_signs_in_spec.rb +0 -0
  32. data/lib/generators/clearance/specs/templates/{integration → features}/clearance/visitor_signs_up_spec.rb +8 -0
  33. data/lib/generators/clearance/specs/templates/{integration → features}/clearance/visitor_updates_password_spec.rb +0 -0
  34. data/lib/generators/clearance/specs/templates/support/features.rb +5 -0
  35. data/lib/generators/clearance/specs/templates/support/{integration → features}/clearance_helpers.rb +1 -1
  36. data/spec/clearance/session_spec.rb +27 -0
  37. data/spec/controllers/apis_controller_spec.rb +36 -0
  38. data/spec/controllers/passwords_controller_spec.rb +13 -11
  39. data/spec/controllers/sessions_controller_spec.rb +13 -27
  40. data/spec/controllers/users_controller_spec.rb +6 -2
  41. data/spec/factories.rb +5 -0
  42. data/spec/models/user_spec.rb +13 -19
  43. data/spec/support/clearance.rb +9 -0
  44. metadata +36 -218
  45. data/gemfiles/3.0.20.gemfile +0 -7
  46. data/gemfiles/3.0.20.gemfile.lock +0 -173
  47. data/gemfiles/3.1.11.gemfile +0 -7
  48. data/gemfiles/3.1.11.gemfile.lock +0 -183
  49. data/gemfiles/3.2.12.gemfile +0 -7
  50. data/gemfiles/3.2.12.gemfile.lock +0 -182
  51. data/gemfiles/3.2.13.rc2.gemfile +0 -7
  52. data/gemfiles/3.2.13.rc2.gemfile.lock +0 -182
  53. data/lib/clearance/password_strategies/fake.rb +0 -23
  54. data/lib/generators/clearance/specs/templates/support/integration.rb +0 -6
  55. data/lib/generators/clearance/specs/templates/support/integration/action_mailer_helpers.rb +0 -19
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "3.0.20"
6
-
7
- gemspec :path=>"../"
@@ -1,173 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- clearance (1.0.0.rc7)
5
- bcrypt-ruby
6
- email_validator
7
- rails (>= 3.0)
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- abstract (1.0.0)
13
- actionmailer (3.0.20)
14
- actionpack (= 3.0.20)
15
- mail (~> 2.2.19)
16
- actionpack (3.0.20)
17
- activemodel (= 3.0.20)
18
- activesupport (= 3.0.20)
19
- builder (~> 2.1.2)
20
- erubis (~> 2.6.6)
21
- i18n (~> 0.5.0)
22
- rack (~> 1.2.5)
23
- rack-mount (~> 0.6.14)
24
- rack-test (~> 0.5.7)
25
- tzinfo (~> 0.3.23)
26
- activemodel (3.0.20)
27
- activesupport (= 3.0.20)
28
- builder (~> 2.1.2)
29
- i18n (~> 0.5.0)
30
- activerecord (3.0.20)
31
- activemodel (= 3.0.20)
32
- activesupport (= 3.0.20)
33
- arel (~> 2.0.10)
34
- tzinfo (~> 0.3.23)
35
- activeresource (3.0.20)
36
- activemodel (= 3.0.20)
37
- activesupport (= 3.0.20)
38
- activesupport (3.0.20)
39
- appraisal (0.4.1)
40
- bundler
41
- rake
42
- arel (2.0.10)
43
- aruba (0.4.11)
44
- childprocess (>= 0.2.3)
45
- cucumber (>= 1.1.1)
46
- ffi (>= 1.0.11)
47
- rspec (>= 2.7.0)
48
- bcrypt-ruby (3.0.1)
49
- bourne (1.3.0)
50
- mocha (= 0.13.0)
51
- builder (2.1.2)
52
- capybara (1.1.2)
53
- mime-types (>= 1.16)
54
- nokogiri (>= 1.3.3)
55
- rack (>= 1.0.0)
56
- rack-test (>= 0.5.4)
57
- selenium-webdriver (~> 2.0)
58
- xpath (~> 0.1.4)
59
- childprocess (0.3.7)
60
- ffi (~> 1.0, >= 1.0.6)
61
- cucumber (1.2.1)
62
- builder (>= 2.1.2)
63
- diff-lcs (>= 1.1.3)
64
- gherkin (~> 2.11.0)
65
- json (>= 1.4.6)
66
- cucumber-rails (1.1.1)
67
- capybara (>= 1.1.1)
68
- cucumber (>= 1.1.0)
69
- nokogiri (>= 1.5.0)
70
- database_cleaner (0.8.0)
71
- diff-lcs (1.1.3)
72
- email_validator (1.3.0)
73
- activemodel
74
- erubis (2.6.6)
75
- abstract (>= 1.0.0)
76
- factory_girl (3.5.0)
77
- activesupport (>= 3.0.0)
78
- factory_girl_rails (3.5.0)
79
- factory_girl (~> 3.5.0)
80
- railties (>= 3.0.0)
81
- ffi (1.3.1)
82
- gherkin (2.11.5)
83
- json (>= 1.4.6)
84
- i18n (0.5.0)
85
- json (1.7.6)
86
- mail (2.2.19)
87
- activesupport (>= 2.3.6)
88
- i18n (>= 0.4.0)
89
- mime-types (~> 1.16)
90
- treetop (~> 1.4.8)
91
- metaclass (0.0.1)
92
- mime-types (1.19)
93
- mocha (0.13.0)
94
- metaclass (~> 0.0.1)
95
- multi_json (1.5.0)
96
- nokogiri (1.5.6)
97
- polyglot (0.3.3)
98
- psych (1.3.4)
99
- rack (1.2.7)
100
- rack-mount (0.6.14)
101
- rack (>= 1.0.0)
102
- rack-test (0.5.7)
103
- rack (>= 1.0)
104
- rails (3.0.20)
105
- actionmailer (= 3.0.20)
106
- actionpack (= 3.0.20)
107
- activerecord (= 3.0.20)
108
- activeresource (= 3.0.20)
109
- activesupport (= 3.0.20)
110
- bundler (~> 1.0)
111
- railties (= 3.0.20)
112
- railties (3.0.20)
113
- actionpack (= 3.0.20)
114
- activesupport (= 3.0.20)
115
- rake (>= 0.8.7)
116
- rdoc (~> 3.4)
117
- thor (~> 0.14.4)
118
- rake (10.0.3)
119
- rdoc (3.12)
120
- json (~> 1.4)
121
- rspec (2.12.0)
122
- rspec-core (~> 2.12.0)
123
- rspec-expectations (~> 2.12.0)
124
- rspec-mocks (~> 2.12.0)
125
- rspec-core (2.12.2)
126
- rspec-expectations (2.12.1)
127
- diff-lcs (~> 1.1.3)
128
- rspec-mocks (2.12.2)
129
- rspec-rails (2.12.2)
130
- actionpack (>= 3.0)
131
- activesupport (>= 3.0)
132
- railties (>= 3.0)
133
- rspec-core (~> 2.12.0)
134
- rspec-expectations (~> 2.12.0)
135
- rspec-mocks (~> 2.12.0)
136
- rubyzip (0.9.9)
137
- selenium-webdriver (2.29.0)
138
- childprocess (>= 0.2.5)
139
- multi_json (~> 1.0)
140
- rubyzip
141
- websocket (~> 1.0.4)
142
- shoulda-matchers (1.2.0)
143
- activesupport (>= 3.0.0)
144
- sqlite3 (1.3.6)
145
- thor (0.14.6)
146
- timecop (0.3.5)
147
- treetop (1.4.12)
148
- polyglot
149
- polyglot (>= 0.3.1)
150
- tzinfo (0.3.35)
151
- websocket (1.0.7)
152
- xpath (0.1.4)
153
- nokogiri (~> 1.3)
154
-
155
- PLATFORMS
156
- ruby
157
-
158
- DEPENDENCIES
159
- appraisal (= 0.4.1)
160
- aruba (= 0.4.11)
161
- bourne (= 1.3.0)
162
- bundler (~> 1.1)
163
- capybara (= 1.1.2)
164
- clearance!
165
- cucumber-rails (= 1.1.1)
166
- database_cleaner (= 0.8.0)
167
- factory_girl_rails (= 3.5.0)
168
- psych (~> 1.3.4)
169
- rails (= 3.0.20)
170
- rspec-rails (= 2.12.2)
171
- shoulda-matchers (= 1.2.0)
172
- sqlite3 (= 1.3.6)
173
- timecop (= 0.3.5)
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "3.1.11"
6
-
7
- gemspec :path=>"../"
@@ -1,183 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- clearance (1.0.0.rc7)
5
- bcrypt-ruby
6
- email_validator
7
- rails (>= 3.0)
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- actionmailer (3.1.11)
13
- actionpack (= 3.1.11)
14
- mail (~> 2.3.3)
15
- actionpack (3.1.11)
16
- activemodel (= 3.1.11)
17
- activesupport (= 3.1.11)
18
- builder (~> 3.0.0)
19
- erubis (~> 2.7.0)
20
- i18n (~> 0.6)
21
- rack (~> 1.3.6)
22
- rack-cache (~> 1.2)
23
- rack-mount (~> 0.8.2)
24
- rack-test (~> 0.6.1)
25
- sprockets (~> 2.0.4)
26
- activemodel (3.1.11)
27
- activesupport (= 3.1.11)
28
- builder (~> 3.0.0)
29
- i18n (~> 0.6)
30
- activerecord (3.1.11)
31
- activemodel (= 3.1.11)
32
- activesupport (= 3.1.11)
33
- arel (~> 2.2.3)
34
- tzinfo (~> 0.3.29)
35
- activeresource (3.1.11)
36
- activemodel (= 3.1.11)
37
- activesupport (= 3.1.11)
38
- activesupport (3.1.11)
39
- multi_json (~> 1.0)
40
- appraisal (0.4.1)
41
- bundler
42
- rake
43
- arel (2.2.3)
44
- aruba (0.4.11)
45
- childprocess (>= 0.2.3)
46
- cucumber (>= 1.1.1)
47
- ffi (>= 1.0.11)
48
- rspec (>= 2.7.0)
49
- bcrypt-ruby (3.0.1)
50
- bourne (1.3.0)
51
- mocha (= 0.13.0)
52
- builder (3.0.4)
53
- capybara (1.1.2)
54
- mime-types (>= 1.16)
55
- nokogiri (>= 1.3.3)
56
- rack (>= 1.0.0)
57
- rack-test (>= 0.5.4)
58
- selenium-webdriver (~> 2.0)
59
- xpath (~> 0.1.4)
60
- childprocess (0.3.8)
61
- ffi (~> 1.0, >= 1.0.11)
62
- cucumber (1.2.1)
63
- builder (>= 2.1.2)
64
- diff-lcs (>= 1.1.3)
65
- gherkin (~> 2.11.0)
66
- json (>= 1.4.6)
67
- cucumber-rails (1.1.1)
68
- capybara (>= 1.1.1)
69
- cucumber (>= 1.1.0)
70
- nokogiri (>= 1.5.0)
71
- database_cleaner (0.8.0)
72
- diff-lcs (1.1.3)
73
- email_validator (1.3.0)
74
- activemodel
75
- erubis (2.7.0)
76
- factory_girl (3.5.0)
77
- activesupport (>= 3.0.0)
78
- factory_girl_rails (3.5.0)
79
- factory_girl (~> 3.5.0)
80
- railties (>= 3.0.0)
81
- ffi (1.3.1)
82
- gherkin (2.11.6)
83
- json (>= 1.7.6)
84
- hike (1.2.1)
85
- i18n (0.6.1)
86
- json (1.7.7)
87
- mail (2.3.3)
88
- i18n (>= 0.4.0)
89
- mime-types (~> 1.16)
90
- treetop (~> 1.4.8)
91
- metaclass (0.0.1)
92
- mime-types (1.21)
93
- mocha (0.13.0)
94
- metaclass (~> 0.0.1)
95
- multi_json (1.6.0)
96
- nokogiri (1.5.6)
97
- polyglot (0.3.3)
98
- psych (1.3.4)
99
- rack (1.3.10)
100
- rack-cache (1.2)
101
- rack (>= 0.4)
102
- rack-mount (0.8.3)
103
- rack (>= 1.0.0)
104
- rack-ssl (1.3.3)
105
- rack
106
- rack-test (0.6.2)
107
- rack (>= 1.0)
108
- rails (3.1.11)
109
- actionmailer (= 3.1.11)
110
- actionpack (= 3.1.11)
111
- activerecord (= 3.1.11)
112
- activeresource (= 3.1.11)
113
- activesupport (= 3.1.11)
114
- bundler (~> 1.0)
115
- railties (= 3.1.11)
116
- railties (3.1.11)
117
- actionpack (= 3.1.11)
118
- activesupport (= 3.1.11)
119
- rack-ssl (~> 1.3.2)
120
- rake (>= 0.8.7)
121
- rdoc (~> 3.4)
122
- thor (~> 0.14.6)
123
- rake (10.0.3)
124
- rdoc (3.12.1)
125
- json (~> 1.4)
126
- rspec (2.12.0)
127
- rspec-core (~> 2.12.0)
128
- rspec-expectations (~> 2.12.0)
129
- rspec-mocks (~> 2.12.0)
130
- rspec-core (2.12.2)
131
- rspec-expectations (2.12.1)
132
- diff-lcs (~> 1.1.3)
133
- rspec-mocks (2.12.2)
134
- rspec-rails (2.12.2)
135
- actionpack (>= 3.0)
136
- activesupport (>= 3.0)
137
- railties (>= 3.0)
138
- rspec-core (~> 2.12.0)
139
- rspec-expectations (~> 2.12.0)
140
- rspec-mocks (~> 2.12.0)
141
- rubyzip (0.9.9)
142
- selenium-webdriver (2.29.0)
143
- childprocess (>= 0.2.5)
144
- multi_json (~> 1.0)
145
- rubyzip
146
- websocket (~> 1.0.4)
147
- shoulda-matchers (1.2.0)
148
- activesupport (>= 3.0.0)
149
- sprockets (2.0.4)
150
- hike (~> 1.2)
151
- rack (~> 1.0)
152
- tilt (~> 1.1, != 1.3.0)
153
- sqlite3 (1.3.6)
154
- thor (0.14.6)
155
- tilt (1.3.3)
156
- timecop (0.3.5)
157
- treetop (1.4.12)
158
- polyglot
159
- polyglot (>= 0.3.1)
160
- tzinfo (0.3.35)
161
- websocket (1.0.7)
162
- xpath (0.1.4)
163
- nokogiri (~> 1.3)
164
-
165
- PLATFORMS
166
- ruby
167
-
168
- DEPENDENCIES
169
- appraisal (= 0.4.1)
170
- aruba (= 0.4.11)
171
- bourne (= 1.3.0)
172
- bundler (~> 1.1)
173
- capybara (= 1.1.2)
174
- clearance!
175
- cucumber-rails (= 1.1.1)
176
- database_cleaner (= 0.8.0)
177
- factory_girl_rails (= 3.5.0)
178
- psych (~> 1.3.4)
179
- rails (= 3.1.11)
180
- rspec-rails (= 2.12.2)
181
- shoulda-matchers (= 1.2.0)
182
- sqlite3 (= 1.3.6)
183
- timecop (= 0.3.5)
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "3.2.12"
6
-
7
- gemspec :path=>"../"
@@ -1,182 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- clearance (1.0.0.rc7)
5
- bcrypt-ruby
6
- email_validator
7
- rails (>= 3.0)
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- actionmailer (3.2.12)
13
- actionpack (= 3.2.12)
14
- mail (~> 2.4.4)
15
- actionpack (3.2.12)
16
- activemodel (= 3.2.12)
17
- activesupport (= 3.2.12)
18
- builder (~> 3.0.0)
19
- erubis (~> 2.7.0)
20
- journey (~> 1.0.4)
21
- rack (~> 1.4.5)
22
- rack-cache (~> 1.2)
23
- rack-test (~> 0.6.1)
24
- sprockets (~> 2.2.1)
25
- activemodel (3.2.12)
26
- activesupport (= 3.2.12)
27
- builder (~> 3.0.0)
28
- activerecord (3.2.12)
29
- activemodel (= 3.2.12)
30
- activesupport (= 3.2.12)
31
- arel (~> 3.0.2)
32
- tzinfo (~> 0.3.29)
33
- activeresource (3.2.12)
34
- activemodel (= 3.2.12)
35
- activesupport (= 3.2.12)
36
- activesupport (3.2.12)
37
- i18n (~> 0.6)
38
- multi_json (~> 1.0)
39
- appraisal (0.4.1)
40
- bundler
41
- rake
42
- arel (3.0.2)
43
- aruba (0.4.11)
44
- childprocess (>= 0.2.3)
45
- cucumber (>= 1.1.1)
46
- ffi (>= 1.0.11)
47
- rspec (>= 2.7.0)
48
- bcrypt-ruby (3.0.1)
49
- bourne (1.3.0)
50
- mocha (= 0.13.0)
51
- builder (3.0.4)
52
- capybara (1.1.2)
53
- mime-types (>= 1.16)
54
- nokogiri (>= 1.3.3)
55
- rack (>= 1.0.0)
56
- rack-test (>= 0.5.4)
57
- selenium-webdriver (~> 2.0)
58
- xpath (~> 0.1.4)
59
- childprocess (0.3.8)
60
- ffi (~> 1.0, >= 1.0.11)
61
- cucumber (1.2.1)
62
- builder (>= 2.1.2)
63
- diff-lcs (>= 1.1.3)
64
- gherkin (~> 2.11.0)
65
- json (>= 1.4.6)
66
- cucumber-rails (1.1.1)
67
- capybara (>= 1.1.1)
68
- cucumber (>= 1.1.0)
69
- nokogiri (>= 1.5.0)
70
- database_cleaner (0.8.0)
71
- diff-lcs (1.1.3)
72
- email_validator (1.3.0)
73
- activemodel
74
- erubis (2.7.0)
75
- factory_girl (3.5.0)
76
- activesupport (>= 3.0.0)
77
- factory_girl_rails (3.5.0)
78
- factory_girl (~> 3.5.0)
79
- railties (>= 3.0.0)
80
- ffi (1.3.1)
81
- gherkin (2.11.6)
82
- json (>= 1.7.6)
83
- hike (1.2.1)
84
- i18n (0.6.1)
85
- journey (1.0.4)
86
- json (1.7.7)
87
- mail (2.4.4)
88
- i18n (>= 0.4.0)
89
- mime-types (~> 1.16)
90
- treetop (~> 1.4.8)
91
- metaclass (0.0.1)
92
- mime-types (1.21)
93
- mocha (0.13.0)
94
- metaclass (~> 0.0.1)
95
- multi_json (1.6.0)
96
- nokogiri (1.5.6)
97
- polyglot (0.3.3)
98
- psych (1.3.4)
99
- rack (1.4.5)
100
- rack-cache (1.2)
101
- rack (>= 0.4)
102
- rack-ssl (1.3.3)
103
- rack
104
- rack-test (0.6.2)
105
- rack (>= 1.0)
106
- rails (3.2.12)
107
- actionmailer (= 3.2.12)
108
- actionpack (= 3.2.12)
109
- activerecord (= 3.2.12)
110
- activeresource (= 3.2.12)
111
- activesupport (= 3.2.12)
112
- bundler (~> 1.0)
113
- railties (= 3.2.12)
114
- railties (3.2.12)
115
- actionpack (= 3.2.12)
116
- activesupport (= 3.2.12)
117
- rack-ssl (~> 1.3.2)
118
- rake (>= 0.8.7)
119
- rdoc (~> 3.4)
120
- thor (>= 0.14.6, < 2.0)
121
- rake (10.0.3)
122
- rdoc (3.12.1)
123
- json (~> 1.4)
124
- rspec (2.12.0)
125
- rspec-core (~> 2.12.0)
126
- rspec-expectations (~> 2.12.0)
127
- rspec-mocks (~> 2.12.0)
128
- rspec-core (2.12.2)
129
- rspec-expectations (2.12.1)
130
- diff-lcs (~> 1.1.3)
131
- rspec-mocks (2.12.2)
132
- rspec-rails (2.12.2)
133
- actionpack (>= 3.0)
134
- activesupport (>= 3.0)
135
- railties (>= 3.0)
136
- rspec-core (~> 2.12.0)
137
- rspec-expectations (~> 2.12.0)
138
- rspec-mocks (~> 2.12.0)
139
- rubyzip (0.9.9)
140
- selenium-webdriver (2.29.0)
141
- childprocess (>= 0.2.5)
142
- multi_json (~> 1.0)
143
- rubyzip
144
- websocket (~> 1.0.4)
145
- shoulda-matchers (1.2.0)
146
- activesupport (>= 3.0.0)
147
- sprockets (2.2.2)
148
- hike (~> 1.2)
149
- multi_json (~> 1.0)
150
- rack (~> 1.0)
151
- tilt (~> 1.1, != 1.3.0)
152
- sqlite3 (1.3.6)
153
- thor (0.17.0)
154
- tilt (1.3.3)
155
- timecop (0.3.5)
156
- treetop (1.4.12)
157
- polyglot
158
- polyglot (>= 0.3.1)
159
- tzinfo (0.3.35)
160
- websocket (1.0.7)
161
- xpath (0.1.4)
162
- nokogiri (~> 1.3)
163
-
164
- PLATFORMS
165
- ruby
166
-
167
- DEPENDENCIES
168
- appraisal (= 0.4.1)
169
- aruba (= 0.4.11)
170
- bourne (= 1.3.0)
171
- bundler (~> 1.1)
172
- capybara (= 1.1.2)
173
- clearance!
174
- cucumber-rails (= 1.1.1)
175
- database_cleaner (= 0.8.0)
176
- factory_girl_rails (= 3.5.0)
177
- psych (~> 1.3.4)
178
- rails (= 3.2.12)
179
- rspec-rails (= 2.12.2)
180
- shoulda-matchers (= 1.2.0)
181
- sqlite3 (= 1.3.6)
182
- timecop (= 0.3.5)