muffin_man 2.0.4 → 2.0.5

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
  SHA256:
3
- metadata.gz: 1bdce44048eea80b8f73e98fe08af9e1c0932c072d10549df80d5eba17103e64
4
- data.tar.gz: a71db4cbc2d3e5f65aa42110b771338e4d4d5c85bd5ecb8f31d6aad1f4dc4635
3
+ metadata.gz: b20bd7372fb78d4918fb05ec2ff20476211daa573a36394f4b491edc2d150510
4
+ data.tar.gz: 01a0ff848f35f0a4a8bf871b244de2ff6b3a3f8be8e368c9c00e2652663e134c
5
5
  SHA512:
6
- metadata.gz: fcfd338790a4015f73cbca32bf23851c5562f5ac41aa150ac12f2cdeeaeba046ad623a90de12fde8a99a0e15d95b6ce265b51519f915da28701b2b23b0195baa
7
- data.tar.gz: 03de48e4dc33360117d6a0e03e8fcf4b6270159c55b178bdac670323992dede36cd14d56e845f925470555ffae36f469e5e61a3c7e865a8d7fece71b0e87b235
6
+ metadata.gz: 809d74bca2430ea7c2608d48b1eeaa78ad23096382767bf745c6221ab1f07845961a17c22739a53a2cf23cdbf1eaeb5c5f184e029331030b671c24b84738ee41
7
+ data.tar.gz: aed350969ba049588093fee9ff83527c052161a7f28d1dec3c357cc54c9415993e66c7895386910242e7e5fce7ed3ec47f004b5899fc93c7a1d2b2f4655d9939
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.5 [#53](https://github.com/patterninc/muffin_man/pull/53)
2
+
3
+ - Fix for files auto-unzipping from GZIP now
4
+
1
5
  # 2.0.4 [#52](https://github.com/patterninc/muffin_man/pull/52)
2
6
 
3
7
  - Support for deleteListingsItem
@@ -78,11 +78,15 @@ module MuffinMan
78
78
  response = get_report_document(report_document_id)
79
79
  parsed_response=JSON.parse(response.body)
80
80
  report=Net::HTTP.get(URI.parse(parsed_response['url']))
81
- unless (parsed_response['compressionAlgorithm']).nil?
82
- input = StringIO.new(report)
83
- report = Zlib::GzipReader.new(input).read
81
+ begin
82
+ unless (parsed_response['compressionAlgorithm']).nil?
83
+ input = StringIO.new(report)
84
+ report = Zlib::GzipReader.new(input).read
85
+ end
86
+ report
87
+ rescue Zlib::GzipFile::Error
88
+ report
84
89
  end
85
- report
86
90
  end
87
91
  end
88
92
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "2.0.4"
4
+ VERSION = "2.0.5"
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muffin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin
8
8
  - Jason
9
9
  - Nate
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2023-06-21 00:00:00.000000000 Z
13
+ date: 2023-06-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -130,7 +130,7 @@ dependencies:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
- description:
133
+ description:
134
134
  email:
135
135
  - gavin@pattern.com
136
136
  - jason@pattern.com
@@ -190,7 +190,7 @@ homepage: https://github.com/patterninc/muffin_man
190
190
  licenses:
191
191
  - MIT
192
192
  metadata: {}
193
- post_install_message:
193
+ post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths:
196
196
  - lib
@@ -205,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.0.3
209
- signing_key:
208
+ rubygems_version: 3.1.6
209
+ signing_key:
210
210
  specification_version: 4
211
211
  summary: Amazon Selling Partner API client
212
212
  test_files: []