echelon 1.1.1 → 1.1.2

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: 16f8617cf48a1adc98fe66f9930ed6ae8e6b07de
4
- data.tar.gz: a8bb674b7398e3b1b45edd2741beb95f7fdc4807
3
+ metadata.gz: 3bef1ce2eb673592e9a67b4f1976eb6e97b73539
4
+ data.tar.gz: 77192e7198adb4f24bbafad532f48eac784b80e0
5
5
  SHA512:
6
- metadata.gz: ef8af30d42039a1931e1a44b50d7172efc772385dca313b4b993239b61ccb07cccf540266b23fada7eb14c7423ca1b88f93764d75237227235a76bb45366e5b0
7
- data.tar.gz: accd9d3a2a33688d0118ac88d062401623b3033b982f9e87568850537ee4fcef641954eeabd1f7e4d24978bd7aa30a56506de5bbf7b1b4bd5a77995f1808e19a
6
+ metadata.gz: 91a8957da2e21294a8ec1e91885d20a7808af45c22678e17ba56390216b2e554292e004fc7863db7b83d07a85ead010fdae1c8719af57ea14d26b9055ab1ba27
7
+ data.tar.gz: 5d4415302ec75705023d3834d7216c0262c0fa134082e3ecdf7d821cc1c185922ef7c2a618c5bf595532b0f3cb4208ec4de1e0e3bc79560c048dc60991add8fc
@@ -1,3 +1,7 @@
1
+ === 1.1.2 2016-10-07
2
+
3
+ * Fixed receiving data from Universal Orlando Resort
4
+
1
5
  === 1.1.1 2016-04-29
2
6
 
3
7
  * Fixed the Walt Disney World oauth
@@ -87,7 +87,7 @@ Currently only the following parks are supported...
87
87
 
88
88
  (The MIT License)
89
89
 
90
- Copyright (c) 2010-2015 Lloyd Pick
90
+ Copyright (c) 2010-2016 Lloyd Pick
91
91
 
92
92
  Permission is hereby granted, free of charge, to any person obtaining
93
93
  a copy of this software and associated documentation files (the
@@ -42,7 +42,8 @@ module Echelon
42
42
  }.merge(SHARED_HEADERS)
43
43
 
44
44
  resp = http.post(uri.path, params, headers)
45
- data = JSON.parse(resp.body)
45
+ gzip = Zlib::GzipReader.new(StringIO.new(resp.body))
46
+ data = JSON.parse(gzip.read)
46
47
  @access_token = data['Token']
47
48
  @expires_at = DateTime.parse(data['TokenExpirationString']).to_time
48
49
  end
@@ -76,7 +77,9 @@ module Echelon
76
77
  }.merge(SHARED_HEADERS)
77
78
 
78
79
  resp = http.get(uri.request_uri, headers)
79
- @json_data = JSON.parse(resp.body)
80
+ gzip = Zlib::GzipReader.new(StringIO.new(resp.body))
81
+ @json_data = JSON.parse(gzip.read)
82
+ @json_data
80
83
  end
81
84
 
82
85
  private
@@ -1,3 +1,3 @@
1
1
  module Echelon
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: echelon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lloyd Pick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-29 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler