omniauth-naranya_id 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naranya_id/models/user.rb +6 -3
- data/lib/omniauth-naranya_id/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 830291c1172ae20d9b0d894061f710880a9d489b
|
4
|
+
data.tar.gz: 20593592ba8a698013d8fb91ba5b0e14989b840a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b45b8add56e799282619cbe87957dac94b75a812d0d4213b955268ad7a54bd315ee665a3da385c2ac8f97fed5c497979d956ce54caad2dc93a8dedcf10d1a195
|
7
|
+
data.tar.gz: 9ff91bd6df5e169d6c05e73afeb3b676f60186a3dfc4e0966567cb49721682b9a6c8a291a87eecec6275c4a47b8770ee1032f23a592db6e0a444795b832ee469
|
@@ -38,9 +38,12 @@ module NaranyaId
|
|
38
38
|
|
39
39
|
user_info_response = api_access_token.get('/crmcapi/index.php/user')
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
if user_info_response.code.to_i == 200
|
42
|
+
user_info = ActiveSupport::JSON.decode(user_info_response.body).with_indifferent_access
|
43
|
+
self.new translate_attributes(user_info)
|
44
|
+
else
|
45
|
+
nil
|
46
|
+
end
|
44
47
|
|
45
48
|
end
|
46
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-naranya_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|