edem_oauth_user 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/edem_oauth_user/find_or_create.rb +1 -0
- data/lib/edem_oauth_user/version.rb +1 -1
- metadata +2 -4
- data/edem_oauth_user-0.1.0.gem +0 -0
- data/edem_oauth_user-0.1.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aecbb0a0df7d501593b87011244ed199e5a6a71
|
4
|
+
data.tar.gz: a926f1a610adaf5ecbfd9ae3737f0c93652e85b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99790b2c02d61f0399f4b0b5202d4653a0a2a2141372df87ed1856a15d2f343a3b41a2ab74eb15970a7548bab83de8180ea7220201cddce87167887f7ce48713
|
7
|
+
data.tar.gz: 88798902f57d9281811f6d79af147f2d7485605a31cd6f7f0931575e64321fd0c5dd0bf526b9fd52d2e2f5ee7b8c2971dc490b81a9b193be44c132bc44bb418c
|
data/README.md
CHANGED
@@ -3,6 +3,7 @@ module EdemOauthUser
|
|
3
3
|
def find_or_create_by_oauth(auth)
|
4
4
|
res = find_or_create_by(uid: auth['uid'], provider: auth['provider']) do |user|
|
5
5
|
user.email = auth.dig('info', 'email')
|
6
|
+
yield(user) if block_given?
|
6
7
|
user.password = SecureRandom.hex
|
7
8
|
end
|
8
9
|
res.access_token = auth.credentials.token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edem_oauth_user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -79,8 +79,6 @@ files:
|
|
79
79
|
- Rakefile
|
80
80
|
- bin/console
|
81
81
|
- bin/setup
|
82
|
-
- edem_oauth_user-0.1.0.gem
|
83
|
-
- edem_oauth_user-0.1.1.gem
|
84
82
|
- edem_oauth_user.gemspec
|
85
83
|
- lib/edem_oauth_user.rb
|
86
84
|
- lib/edem_oauth_user/find_or_create.rb
|
data/edem_oauth_user-0.1.0.gem
DELETED
Binary file
|
data/edem_oauth_user-0.1.1.gem
DELETED
Binary file
|