login_radius 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/login_radius/user_profile.rb +5 -5
- data/lib/login_radius/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: 5a38dc6be5450d4639073fdfc10aafe6ca6ce3c5
|
4
|
+
data.tar.gz: 74689a0d9bd22acc90e7e1c1e9ae0073c53bbf82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4997319c001d5f59e575c8000763198079063dc5a6c4e1e639ad3ca0529f17f6c986c4da7ca2a96d02c5108e5241efb24e20c9dd377687624fe60a3817a3c5de
|
7
|
+
data.tar.gz: ff62c2061bfdff0465a9ba2e2c3340b4709f3786552571b7ea3c1541a8b7212af6c98cbbc7922066b83ecef0a0775358f6e274204a69e0ba09faf99680aaa1d4
|
@@ -85,14 +85,14 @@ module LoginRadius
|
|
85
85
|
#This mostly happens when people use expired tokens. So we go ahead and raise an exception
|
86
86
|
#About it if it gets caught.
|
87
87
|
begin
|
88
|
-
|
88
|
+
converted_response = JSON.parse(response, :symbolize_names => true)
|
89
89
|
#it's all String keys in CamelCase above, so...
|
90
90
|
# IF we got a hash back, convert it directly, if its an array, convert each item which is a hash
|
91
91
|
# into snake case
|
92
|
-
converted_response = unconverted_response.is_a?(Hash) ?
|
93
|
-
|
94
|
-
|
95
|
-
|
92
|
+
#converted_response = unconverted_response.is_a?(Hash) ?
|
93
|
+
# Hash.lr_convert_hash_keys(unconverted_response).symbolize_keys! :
|
94
|
+
# unconverted_response.map { |item| Hash.lr_convert_hash_keys(item).symbolize_keys!
|
95
|
+
return converted_response
|
96
96
|
rescue JSON::ParserError => e
|
97
97
|
raise LoginRadius::Exception.new("A JSON parsing error occured because the API returned an HTML page instead of JSON. This happens mostly when you're using an expired Token. Specifics: #{e.message}")
|
98
98
|
end
|
data/lib/login_radius/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: login_radius
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LoginRadius
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-http-request
|