sorcery 0.7.6 → 0.7.7

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

Potentially problematic release.


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

Files changed (31) hide show
  1. data/.travis.yml +2 -0
  2. data/Gemfile +2 -21
  3. data/Gemfile.lock +86 -52
  4. data/README.rdoc +4 -3
  5. data/VERSION +1 -1
  6. data/lib/generators/sorcery/install_generator.rb +6 -4
  7. data/lib/generators/sorcery/templates/initializer.rb +293 -127
  8. data/lib/sorcery/controller.rb +1 -0
  9. data/lib/sorcery/controller/submodules/external.rb +1 -1
  10. data/lib/sorcery/controller/submodules/external/protocols/oauth2.rb +2 -2
  11. data/lib/sorcery/controller/submodules/external/providers/facebook.rb +7 -2
  12. data/lib/sorcery/controller/submodules/external/providers/github.rb +4 -4
  13. data/lib/sorcery/controller/submodules/external/providers/google.rb +4 -4
  14. data/lib/sorcery/controller/submodules/external/providers/liveid.rb +1 -1
  15. data/lib/sorcery/model/adapters/mongo_mapper.rb +1 -1
  16. data/lib/sorcery/model/adapters/mongoid.rb +2 -2
  17. data/lib/sorcery/model/submodules/brute_force_protection.rb +2 -2
  18. data/lib/sorcery/model/submodules/reset_password.rb +10 -3
  19. data/lib/sorcery/model/submodules/user_activation.rb +14 -6
  20. data/sorcery.gemspec +15 -8
  21. data/spec/Gemfile.lock +15 -18
  22. data/spec/rails3/Gemfile +1 -0
  23. data/spec/rails3/Gemfile.lock +21 -23
  24. data/spec/rails3/spec/controller_oauth2_spec.rb +6 -4
  25. data/spec/rails3_mongo_mapper/Gemfile +1 -0
  26. data/spec/rails3_mongo_mapper/Gemfile.lock +31 -37
  27. data/spec/rails3_mongoid/Gemfile +1 -0
  28. data/spec/rails3_mongoid/Gemfile.lock +23 -24
  29. data/spec/shared_examples/user_activation_shared_examples.rb +71 -41
  30. data/spec/shared_examples/user_reset_password_shared_examples.rb +76 -31
  31. metadata +63 -40
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorcery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-03 00:00:00.000000000 Z
12
+ date: 2012-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: oauth
16
- requirement: &2167526780 !ruby/object:Gem::Requirement
15
+ name: sorcery
16
+ requirement: &2162867260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.4
21
+ version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2167526780
24
+ version_requirements: *2162867260
25
25
  - !ruby/object:Gem::Dependency
26
- name: oauth2
27
- requirement: &2167526240 !ruby/object:Gem::Requirement
26
+ name: bcrypt-ruby
27
+ requirement: &2162866480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 0.5.1
33
- type: :runtime
32
+ version: 3.0.0
33
+ type: :development
34
34
  prerelease: false
35
- version_requirements: *2167526240
35
+ version_requirements: *2162866480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &2167525680 !ruby/object:Gem::Requirement
38
+ requirement: &2162865760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2167525680
46
+ version_requirements: *2162865760
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: json
49
- requirement: &2167525080 !ruby/object:Gem::Requirement
49
+ requirement: &2162865240 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.5.1
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2167525080
57
+ version_requirements: *2162865240
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &2167524560 !ruby/object:Gem::Requirement
60
+ requirement: &2162864520 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.5.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2167524560
68
+ version_requirements: *2162864520
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-rails
71
- requirement: &2167523940 !ruby/object:Gem::Requirement
71
+ requirement: &2162863780 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 2.5.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2167523940
79
+ version_requirements: *2162863780
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: ruby-debug19
82
- requirement: &2167523240 !ruby/object:Gem::Requirement
82
+ requirement: &2162862940 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2167523240
90
+ version_requirements: *2162862940
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: sqlite3-ruby
93
- requirement: &2167522520 !ruby/object:Gem::Requirement
93
+ requirement: &2162878700 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2167522520
101
+ version_requirements: *2162878700
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: yard
104
- requirement: &2167521040 !ruby/object:Gem::Requirement
104
+ requirement: &2162877900 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.6.0
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2167521040
112
+ version_requirements: *2162877900
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: bundler
115
- requirement: &2167520500 !ruby/object:Gem::Requirement
115
+ requirement: &2162877220 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 1.0.0
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2167520500
123
+ version_requirements: *2162877220
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: jeweler
126
- requirement: &2167519980 !ruby/object:Gem::Requirement
126
+ requirement: &2162876680 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 1.5.2
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *2167519980
134
+ version_requirements: *2162876680
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: simplecov
137
- requirement: &2167519240 !ruby/object:Gem::Requirement
137
+ requirement: &2162876020 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,32 @@ dependencies:
142
142
  version: 0.3.8
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *2167519240
145
+ version_requirements: *2162876020
146
+ - !ruby/object:Gem::Dependency
147
+ name: capybara
148
+ requirement: &2162875300 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: 1.1.2
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: *2162875300
157
+ - !ruby/object:Gem::Dependency
158
+ name: mongoid
159
+ requirement: &2162874020 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ~>
163
+ - !ruby/object:Gem::Version
164
+ version: 2.4.4
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: *2162874020
146
168
  - !ruby/object:Gem::Dependency
147
169
  name: timecop
148
- requirement: &2167534360 !ruby/object:Gem::Requirement
170
+ requirement: &2162873480 !ruby/object:Gem::Requirement
149
171
  none: false
150
172
  requirements:
151
173
  - - ! '>='
@@ -153,10 +175,10 @@ dependencies:
153
175
  version: '0'
154
176
  type: :development
155
177
  prerelease: false
156
- version_requirements: *2167534360
178
+ version_requirements: *2162873480
157
179
  - !ruby/object:Gem::Dependency
158
180
  name: bcrypt-ruby
159
- requirement: &2167533100 !ruby/object:Gem::Requirement
181
+ requirement: &2162872800 !ruby/object:Gem::Requirement
160
182
  none: false
161
183
  requirements:
162
184
  - - ~>
@@ -164,10 +186,10 @@ dependencies:
164
186
  version: 3.0.0
165
187
  type: :runtime
166
188
  prerelease: false
167
- version_requirements: *2167533100
189
+ version_requirements: *2162872800
168
190
  - !ruby/object:Gem::Dependency
169
191
  name: oauth
170
- requirement: &2167531820 !ruby/object:Gem::Requirement
192
+ requirement: &2162872000 !ruby/object:Gem::Requirement
171
193
  none: false
172
194
  requirements:
173
195
  - - ~>
@@ -175,10 +197,10 @@ dependencies:
175
197
  version: 0.4.4
176
198
  type: :runtime
177
199
  prerelease: false
178
- version_requirements: *2167531820
200
+ version_requirements: *2162872000
179
201
  - !ruby/object:Gem::Dependency
180
202
  name: oauth2
181
- requirement: &2167531300 !ruby/object:Gem::Requirement
203
+ requirement: &2162871360 !ruby/object:Gem::Requirement
182
204
  none: false
183
205
  requirements:
184
206
  - - ~>
@@ -186,7 +208,7 @@ dependencies:
186
208
  version: 0.5.1
187
209
  type: :runtime
188
210
  prerelease: false
189
- version_requirements: *2167531300
211
+ version_requirements: *2162871360
190
212
  description: Provides common authentication needs such as signing in/out, activating
191
213
  by email and resetting password.
192
214
  email: nbenari@gmail.com
@@ -198,6 +220,7 @@ extra_rdoc_files:
198
220
  files:
199
221
  - .document
200
222
  - .rspec
223
+ - .travis.yml
201
224
  - Gemfile
202
225
  - Gemfile.lock
203
226
  - LICENSE.txt