app_store_connect 0.19.0 → 0.20.0
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/Gemfile.lock +1 -1
- data/lib/app_store_connect/client.rb +1 -1
- data/lib/app_store_connect/client/utils.rb +17 -4
- data/lib/app_store_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a4b7d2c352bf46750bdec2ffb6f002bdb3ad13110f8115fbb4e7a2eec3b4c6b
|
4
|
+
data.tar.gz: 7ab6f312e0d94c791285ade26f1b0f73d3c93161af09028f1ff785094f1b3c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f39e8d6746473026936d472ad7bb787291d77f0eb3b8dbca71e1906e885df408454c498b7bd523d3ab01f497690221a18a3d359b5e23e82821662c33782c49ae
|
7
|
+
data.tar.gz: '08673550b6574d07572133107e7cf9f86304cb8110846005fe184b86e314ce2224f65468f9e80578b5829a4322a207af209435d78b476409d34a9a1e732d8f01'
|
data/Gemfile.lock
CHANGED
@@ -9,10 +9,23 @@ module AppStoreConnect
|
|
9
9
|
.to_json
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
# Right now this only supports gzip and json responses.
|
13
|
+
# If you need to support a different type then add it.
|
14
|
+
def self.decode(string, content_type='application/json')
|
15
|
+
decoded_data = nil
|
16
|
+
|
17
|
+
case content_type
|
18
|
+
when 'application/a-gzip'
|
19
|
+
sio = StringIO.new string
|
20
|
+
gz = Zlib::GzipReader.new sio
|
21
|
+
decoded_data = gz.read()
|
22
|
+
else # Assume JSON
|
23
|
+
decoded_data = JSON
|
24
|
+
.parse(string)
|
25
|
+
.deep_transform_keys { |k| k.underscore.to_sym }
|
26
|
+
end
|
27
|
+
|
28
|
+
decoded_data
|
16
29
|
end
|
17
30
|
end
|
18
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_store_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Decot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|