muffin_man 2.0.3 → 2.0.5

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
  SHA256:
3
- metadata.gz: e369bb1ade25adc09729766667804263f5c1047939a98e13da9c3d6a10ddddcf
4
- data.tar.gz: 8bcf51705df499bd703b3ce8e69fc7342ae475f60431bad183e080b6eca0c918
3
+ metadata.gz: b20bd7372fb78d4918fb05ec2ff20476211daa573a36394f4b491edc2d150510
4
+ data.tar.gz: 01a0ff848f35f0a4a8bf871b244de2ff6b3a3f8be8e368c9c00e2652663e134c
5
5
  SHA512:
6
- metadata.gz: 6130d36d41d5e9f38f63fcc55f51c3269d49c78bc5e2c42eeda68f4a466756ffde7cf066d13d6f5b2d57b182e148875f33ea2b17f932268fc352d0b13bdd6e73
7
- data.tar.gz: 9251f8fddf551cd308627276a82927e899a5ed5488c82143104f436e606515e07565f839fc8f2f47190362ad9833fc4afd268b5d4dcd26744b39ee895809de1a
6
+ metadata.gz: 809d74bca2430ea7c2608d48b1eeaa78ad23096382767bf745c6221ab1f07845961a17c22739a53a2cf23cdbf1eaeb5c5f184e029331030b671c24b84738ee41
7
+ data.tar.gz: aed350969ba049588093fee9ff83527c052161a7f28d1dec3c357cc54c9415993e66c7895386910242e7e5fce7ed3ec47f004b5899fc93c7a1d2b2f4655d9939
data/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
- # 2.0.3 [#](https://github.com/patterninc/muffin_man/pull/50)
1
+ # 2.0.5 [#53](https://github.com/patterninc/muffin_man/pull/53)
2
+
3
+ - Fix for files auto-unzipping from GZIP now
4
+
5
+ # 2.0.4 [#52](https://github.com/patterninc/muffin_man/pull/52)
6
+
7
+ - Support for deleteListingsItem
8
+
9
+ # 2.0.3 [#50](https://github.com/patterninc/muffin_man/pull/50)
2
10
 
3
11
  - Support for putListingsItem
4
12
 
data/Gemfile CHANGED
@@ -9,8 +9,8 @@ gem "rake", "~> 13.0"
9
9
 
10
10
  gem "rspec", "~> 3.0"
11
11
 
12
- gem "rubocop", "~> 1.7"
12
+ gem "rubocop", "<= 1.43"
13
13
 
14
14
  gem "rubocop-rake"
15
15
 
16
- gem "rubocop-rspec"
16
+ gem "rubocop-rspec"
@@ -36,6 +36,17 @@ module MuffinMan
36
36
  @request_type = "PUT"
37
37
  call_api
38
38
  end
39
+
40
+ def delete_listings_item(seller_id, sku, marketplace_ids, issue_locale: nil)
41
+ @local_var_path = "/listings/2021-08-01/items/#{seller_id}/#{sku}"
42
+ @marketplace_ids = marketplace_ids.is_a?(Array) ? marketplace_ids : [marketplace_ids]
43
+ @query_params = {
44
+ "marketplaceIds" => @marketplace_ids.join(",")
45
+ }
46
+ @query_params["issueLocale"] = issue_locale if issue_locale
47
+ @request_type = "DELETE"
48
+ call_api
49
+ end
39
50
  end
40
51
  end
41
52
  end
@@ -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.3"
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.3
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-07 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: []