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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f10c5dff8edd14270ca75a8696f3b5d1f9d22c48
4
- data.tar.gz: 1344ee04d0738519948ee7a20792e4fd0df2a595
3
+ metadata.gz: 5a38dc6be5450d4639073fdfc10aafe6ca6ce3c5
4
+ data.tar.gz: 74689a0d9bd22acc90e7e1c1e9ae0073c53bbf82
5
5
  SHA512:
6
- metadata.gz: 7e7c1190b505d9ff9ae8efc57052650be817216bb4cf6e897c7e1a81fe5a85e347c2b354241aa6ab05037bc6f41ae602342b66b20002739bc6667c08a0869094
7
- data.tar.gz: 23267885a78f2386e3fc87fa5ca988a27569c271b358b6ff4c7f9a0f3e3d5e80a149adffd1fb808aebec5fe7dd52d2ca6f29412663c98cb352b0aa5c8a4a13ba
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
- unconverted_response = JSON.parse(response)
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
- 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
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
@@ -1,3 +1,3 @@
1
1
  module LoginRadius
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-09 00:00:00.000000000 Z
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