socialite 0.1.0.pre.4 → 0.1.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/socialite.rb +3 -14
- data/lib/socialite/ext/omniauth/identity/model.rb +20 -22
- data/lib/socialite/models/user_concern.rb +0 -9
- data/lib/socialite/version.rb +1 -1
- metadata +102 -143
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 47169664caee3fd761cc4d1f36008e7539a099f3
|
4
|
+
data.tar.gz: 8f57aed1133b3c8fccc9146bbc41d27c3d26dbb2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6f46c8c1b4a86827ade860a5fa23ddb856c76bf89bafd0f57de5a764055f3cf4621fb713ef2d21e4533716545146fdc477dd1b098d950f4cd79e1c9e7a15e2d6
|
7
|
+
data.tar.gz: e663c6e8582dca08e4a9a2e099ebbb1ac0c228c452b4cce16fb83d97bf59fbed5c5441e9113dd604c0a47431c6274e9c43161a303fd2f09cc5a2ee732ce5036a
|
data/lib/socialite.rb
CHANGED
@@ -1,20 +1,9 @@
|
|
1
|
+
require 'socialite/controllers/helpers'
|
2
|
+
require 'socialite/models/identity_concern'
|
3
|
+
require 'socialite/models/user_concern'
|
1
4
|
require 'socialite/engine'
|
2
5
|
|
3
|
-
require 'haml'
|
4
|
-
require 'omniauth'
|
5
|
-
|
6
6
|
module Socialite
|
7
|
-
autoload :ControllerSupport, 'socialite/controller_support'
|
8
|
-
|
9
|
-
module Controllers
|
10
|
-
autoload :Helpers, 'socialite/controllers/helpers'
|
11
|
-
end
|
12
|
-
|
13
|
-
module Models
|
14
|
-
autoload :IdentityConcern, 'socialite/models/identity_concern'
|
15
|
-
autoload :UserConcern, 'socialite/models/user_concern'
|
16
|
-
end
|
17
|
-
|
18
7
|
def self.setup
|
19
8
|
yield self if block_given?
|
20
9
|
end
|
@@ -1,29 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'omniauth/identity/secure_password'
|
1
|
+
require 'omniauth/identity/model'
|
2
|
+
require 'omniauth/identity/secure_password'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
4
|
+
module OmniAuth
|
5
|
+
module Identity
|
6
|
+
module Model
|
7
|
+
extend ActiveSupport::Concern
|
8
|
+
# class << self
|
9
|
+
# # alias_method :old_included, :included
|
10
|
+
# extend ActiveSupport::Concern
|
11
|
+
# end
|
14
12
|
end
|
15
13
|
end
|
14
|
+
end
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
16
|
+
module OmniAuth
|
17
|
+
module Identity
|
18
|
+
module SecurePassword
|
19
|
+
extend ActiveSupport::Concern
|
20
|
+
# class << self
|
21
|
+
# # alias_method :old_included, :included
|
22
|
+
# extend ActiveSupport::Concern
|
23
|
+
# end
|
26
24
|
end
|
27
25
|
end
|
28
|
-
|
29
26
|
end
|
27
|
+
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'omniauth-identity'
|
2
1
|
require 'socialite/ext/omniauth/identity/model'
|
3
2
|
|
4
3
|
module Socialite
|
@@ -25,9 +24,6 @@ module Socialite
|
|
25
24
|
end
|
26
25
|
|
27
26
|
module ClassMethods
|
28
|
-
# include OmniAuth::Identity::Model#::ClassMethods
|
29
|
-
# include OmniAuth::Identity::SecurePassword::ClassMethods
|
30
|
-
|
31
27
|
def find_from_omniauth(auth)
|
32
28
|
if auth['info']['email']
|
33
29
|
find_by_email(auth['info']['email'])
|
@@ -51,11 +47,6 @@ module Socialite
|
|
51
47
|
|
52
48
|
def auth_key; :email; end
|
53
49
|
|
54
|
-
# def auth_key=(key)
|
55
|
-
# super
|
56
|
-
# validates_uniqueness_of key, :case_sensitive => false
|
57
|
-
# end
|
58
|
-
|
59
50
|
def locate(search_hash)
|
60
51
|
where(search_hash).first
|
61
52
|
end
|
data/lib/socialite/version.rb
CHANGED
metadata
CHANGED
@@ -1,304 +1,267 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.1.0.pre.4
|
4
|
+
version: 0.1.0.pre.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Justin Smestad
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
11
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
|
-
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.2.12
|
22
|
-
|
23
|
-
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - ~>
|
26
25
|
- !ruby/object:Gem::Version
|
27
26
|
version: 3.2.12
|
28
|
-
prerelease: false
|
29
|
-
type: :runtime
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sass-rails
|
32
|
-
version_requirements: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
29
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
30
|
requirements:
|
41
|
-
- -
|
31
|
+
- - '>='
|
42
32
|
- !ruby/object:Gem::Version
|
43
33
|
version: '0'
|
44
|
-
prerelease: false
|
45
34
|
type: :runtime
|
46
|
-
|
47
|
-
name: haml
|
35
|
+
prerelease: false
|
48
36
|
version_requirements: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
37
|
requirements:
|
51
|
-
- -
|
38
|
+
- - '>='
|
52
39
|
- !ruby/object:Gem::Version
|
53
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: haml
|
54
43
|
requirement: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
44
|
requirements:
|
57
|
-
- -
|
45
|
+
- - '>='
|
58
46
|
- !ruby/object:Gem::Version
|
59
47
|
version: '0'
|
60
|
-
prerelease: false
|
61
48
|
type: :runtime
|
62
|
-
|
63
|
-
name: omniauth
|
49
|
+
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
51
|
requirements:
|
67
|
-
- -
|
52
|
+
- - '>='
|
68
53
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: omniauth
|
70
57
|
requirement: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
58
|
requirements:
|
73
59
|
- - ~>
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: 1.1.0
|
76
|
-
prerelease: false
|
77
62
|
type: :runtime
|
78
|
-
|
79
|
-
name: bcrypt-ruby
|
63
|
+
prerelease: false
|
80
64
|
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
65
|
requirements:
|
83
|
-
- -
|
66
|
+
- - ~>
|
84
67
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
68
|
+
version: 1.1.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bcrypt-ruby
|
86
71
|
requirement: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
72
|
requirements:
|
89
|
-
- -
|
73
|
+
- - '>='
|
90
74
|
- !ruby/object:Gem::Version
|
91
75
|
version: 3.0.0
|
92
|
-
prerelease: false
|
93
76
|
type: :development
|
94
|
-
|
95
|
-
name: simple_form
|
77
|
+
prerelease: false
|
96
78
|
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
79
|
requirements:
|
99
|
-
- -
|
80
|
+
- - '>='
|
100
81
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
82
|
+
version: 3.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simple_form
|
102
85
|
requirement: !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
86
|
requirements:
|
105
|
-
- -
|
87
|
+
- - '>='
|
106
88
|
- !ruby/object:Gem::Version
|
107
89
|
version: '0'
|
108
|
-
prerelease: false
|
109
90
|
type: :development
|
110
|
-
|
111
|
-
name: omniauth-identity
|
91
|
+
prerelease: false
|
112
92
|
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
93
|
requirements:
|
115
|
-
- -
|
94
|
+
- - '>='
|
116
95
|
- !ruby/object:Gem::Version
|
117
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: omniauth-identity
|
118
99
|
requirement: !ruby/object:Gem::Requirement
|
119
|
-
none: false
|
120
100
|
requirements:
|
121
|
-
- -
|
101
|
+
- - '>='
|
122
102
|
- !ruby/object:Gem::Version
|
123
103
|
version: '0'
|
124
|
-
prerelease: false
|
125
104
|
type: :development
|
126
|
-
|
127
|
-
name: omniauth-facebook
|
105
|
+
prerelease: false
|
128
106
|
version_requirements: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
107
|
requirements:
|
131
|
-
- -
|
108
|
+
- - '>='
|
132
109
|
- !ruby/object:Gem::Version
|
133
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: omniauth-facebook
|
134
113
|
requirement: !ruby/object:Gem::Requirement
|
135
|
-
none: false
|
136
114
|
requirements:
|
137
|
-
- -
|
115
|
+
- - '>='
|
138
116
|
- !ruby/object:Gem::Version
|
139
117
|
version: '0'
|
140
|
-
prerelease: false
|
141
118
|
type: :development
|
142
|
-
|
143
|
-
name: omniauth-twitter
|
119
|
+
prerelease: false
|
144
120
|
version_requirements: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
121
|
requirements:
|
147
|
-
- -
|
122
|
+
- - '>='
|
148
123
|
- !ruby/object:Gem::Version
|
149
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: omniauth-twitter
|
150
127
|
requirement: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
128
|
requirements:
|
153
|
-
- -
|
129
|
+
- - '>='
|
154
130
|
- !ruby/object:Gem::Version
|
155
131
|
version: '0'
|
156
|
-
prerelease: false
|
157
132
|
type: :development
|
158
|
-
|
159
|
-
name: sqlite3
|
133
|
+
prerelease: false
|
160
134
|
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
135
|
requirements:
|
163
|
-
- -
|
136
|
+
- - '>='
|
164
137
|
- !ruby/object:Gem::Version
|
165
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sqlite3
|
166
141
|
requirement: !ruby/object:Gem::Requirement
|
167
|
-
none: false
|
168
142
|
requirements:
|
169
|
-
- -
|
143
|
+
- - '>='
|
170
144
|
- !ruby/object:Gem::Version
|
171
145
|
version: '0'
|
172
|
-
prerelease: false
|
173
146
|
type: :development
|
174
|
-
|
175
|
-
name: yard
|
147
|
+
prerelease: false
|
176
148
|
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
149
|
requirements:
|
179
|
-
- -
|
150
|
+
- - '>='
|
180
151
|
- !ruby/object:Gem::Version
|
181
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: yard
|
182
155
|
requirement: !ruby/object:Gem::Requirement
|
183
|
-
none: false
|
184
156
|
requirements:
|
185
|
-
- -
|
157
|
+
- - '>='
|
186
158
|
- !ruby/object:Gem::Version
|
187
159
|
version: '0'
|
188
|
-
prerelease: false
|
189
160
|
type: :development
|
190
|
-
|
191
|
-
name: rspec-rails
|
161
|
+
prerelease: false
|
192
162
|
version_requirements: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
163
|
requirements:
|
195
|
-
- -
|
164
|
+
- - '>='
|
196
165
|
- !ruby/object:Gem::Version
|
197
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rspec-rails
|
198
169
|
requirement: !ruby/object:Gem::Requirement
|
199
|
-
none: false
|
200
170
|
requirements:
|
201
|
-
- -
|
171
|
+
- - '>='
|
202
172
|
- !ruby/object:Gem::Version
|
203
173
|
version: '0'
|
204
|
-
prerelease: false
|
205
174
|
type: :development
|
206
|
-
|
207
|
-
name: factory_girl_rails
|
175
|
+
prerelease: false
|
208
176
|
version_requirements: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
177
|
requirements:
|
211
|
-
- -
|
178
|
+
- - '>='
|
212
179
|
- !ruby/object:Gem::Version
|
213
180
|
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: factory_girl_rails
|
214
183
|
requirement: !ruby/object:Gem::Requirement
|
215
|
-
none: false
|
216
184
|
requirements:
|
217
|
-
- -
|
185
|
+
- - '>='
|
218
186
|
- !ruby/object:Gem::Version
|
219
187
|
version: '0'
|
220
|
-
prerelease: false
|
221
188
|
type: :development
|
222
|
-
|
223
|
-
name: ffaker
|
189
|
+
prerelease: false
|
224
190
|
version_requirements: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
191
|
requirements:
|
227
|
-
- -
|
192
|
+
- - '>='
|
228
193
|
- !ruby/object:Gem::Version
|
229
194
|
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: ffaker
|
230
197
|
requirement: !ruby/object:Gem::Requirement
|
231
|
-
none: false
|
232
198
|
requirements:
|
233
|
-
- -
|
199
|
+
- - '>='
|
234
200
|
- !ruby/object:Gem::Version
|
235
201
|
version: '0'
|
236
|
-
prerelease: false
|
237
202
|
type: :development
|
238
|
-
|
239
|
-
name: shoulda-matchers
|
203
|
+
prerelease: false
|
240
204
|
version_requirements: !ruby/object:Gem::Requirement
|
241
|
-
none: false
|
242
205
|
requirements:
|
243
|
-
- -
|
206
|
+
- - '>='
|
244
207
|
- !ruby/object:Gem::Version
|
245
208
|
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: shoulda-matchers
|
246
211
|
requirement: !ruby/object:Gem::Requirement
|
247
|
-
none: false
|
248
212
|
requirements:
|
249
|
-
- -
|
213
|
+
- - '>='
|
250
214
|
- !ruby/object:Gem::Version
|
251
215
|
version: '0'
|
252
|
-
prerelease: false
|
253
216
|
type: :development
|
254
|
-
|
255
|
-
name: capybara
|
217
|
+
prerelease: false
|
256
218
|
version_requirements: !ruby/object:Gem::Requirement
|
257
|
-
none: false
|
258
219
|
requirements:
|
259
|
-
- -
|
220
|
+
- - '>='
|
260
221
|
- !ruby/object:Gem::Version
|
261
|
-
version:
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: capybara
|
262
225
|
requirement: !ruby/object:Gem::Requirement
|
263
|
-
none: false
|
264
226
|
requirements:
|
265
|
-
- -
|
227
|
+
- - '>='
|
266
228
|
- !ruby/object:Gem::Version
|
267
229
|
version: 2.0.2
|
268
|
-
prerelease: false
|
269
230
|
type: :development
|
270
|
-
|
271
|
-
name: database_cleaner
|
231
|
+
prerelease: false
|
272
232
|
version_requirements: !ruby/object:Gem::Requirement
|
273
|
-
none: false
|
274
233
|
requirements:
|
275
|
-
- -
|
234
|
+
- - '>='
|
276
235
|
- !ruby/object:Gem::Version
|
277
|
-
version:
|
236
|
+
version: 2.0.2
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: database_cleaner
|
278
239
|
requirement: !ruby/object:Gem::Requirement
|
279
|
-
none: false
|
280
240
|
requirements:
|
281
|
-
- -
|
241
|
+
- - '>='
|
282
242
|
- !ruby/object:Gem::Version
|
283
243
|
version: '0'
|
284
|
-
prerelease: false
|
285
244
|
type: :development
|
286
|
-
|
287
|
-
name: ammeter
|
245
|
+
prerelease: false
|
288
246
|
version_requirements: !ruby/object:Gem::Requirement
|
289
|
-
none: false
|
290
247
|
requirements:
|
291
|
-
- -
|
248
|
+
- - '>='
|
292
249
|
- !ruby/object:Gem::Version
|
293
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: ammeter
|
294
253
|
requirement: !ruby/object:Gem::Requirement
|
295
|
-
none: false
|
296
254
|
requirements:
|
297
|
-
- -
|
255
|
+
- - '>='
|
298
256
|
- !ruby/object:Gem::Version
|
299
257
|
version: '0'
|
300
|
-
prerelease: false
|
301
258
|
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - '>='
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
302
265
|
description: Rails engine supporting multiple auth providers per user.
|
303
266
|
email: justin.smestad@gmail.com
|
304
267
|
executables: []
|
@@ -398,30 +361,26 @@ files:
|
|
398
361
|
- spec/support/omniauth.rb
|
399
362
|
homepage: http://github.com/jsmestad/socialite
|
400
363
|
licenses: []
|
364
|
+
metadata: {}
|
401
365
|
post_install_message:
|
402
366
|
rdoc_options: []
|
403
367
|
require_paths:
|
404
368
|
- lib
|
405
369
|
required_ruby_version: !ruby/object:Gem::Requirement
|
406
|
-
none: false
|
407
370
|
requirements:
|
408
|
-
- -
|
371
|
+
- - '>='
|
409
372
|
- !ruby/object:Gem::Version
|
410
|
-
segments:
|
411
|
-
- 0
|
412
|
-
hash: -4137053781704472879
|
413
373
|
version: '0'
|
414
374
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
415
|
-
none: false
|
416
375
|
requirements:
|
417
|
-
- -
|
376
|
+
- - '>'
|
418
377
|
- !ruby/object:Gem::Version
|
419
378
|
version: 1.3.1
|
420
379
|
requirements: []
|
421
380
|
rubyforge_project:
|
422
|
-
rubygems_version:
|
381
|
+
rubygems_version: 2.0.0
|
423
382
|
signing_key:
|
424
|
-
specification_version:
|
383
|
+
specification_version: 4
|
425
384
|
summary: Rails engine supporting multiple auth providers per user.
|
426
385
|
test_files:
|
427
386
|
- spec/dummy/README.rdoc
|