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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5320911842aaf50c3cfaf42a186b784ba4546af9
4
- data.tar.gz: af8e77bff0ebcc8816d2a8f54a143f3026db8eed
3
+ metadata.gz: 830291c1172ae20d9b0d894061f710880a9d489b
4
+ data.tar.gz: 20593592ba8a698013d8fb91ba5b0e14989b840a
5
5
  SHA512:
6
- metadata.gz: ed351cb2d73d9fd6cc0b9eef553c8c9ded0e5210fc89414b50973fe3524ccfd5a7bd03e5d122cdfebec19f105408b275de01d20045ca75ed6e2cafbd55568bf7
7
- data.tar.gz: e754d80586d1807490b1367b8c98ca7be1a1a574e308a399db0e5ea05cd82e99a946f81c100b12e52311fc6a2680e36b230b373c3c790c2f4c29d03e01dbff32
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
- user_info = ActiveSupport::JSON.decode(user_info_response.body).with_indifferent_access
42
-
43
- self.new translate_attributes(user_info)
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
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module NaranyaId
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
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.8
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-06-17 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport