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 +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile +2 -2
- data/lib/muffin_man/listings/v20210801.rb +11 -0
- data/lib/muffin_man/reports/v20210630.rb +8 -4
- data/lib/muffin_man/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b20bd7372fb78d4918fb05ec2ff20476211daa573a36394f4b491edc2d150510
|
4
|
+
data.tar.gz: 01a0ff848f35f0a4a8bf871b244de2ff6b3a3f8be8e368c9c00e2652663e134c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809d74bca2430ea7c2608d48b1eeaa78ad23096382767bf745c6221ab1f07845961a17c22739a53a2cf23cdbf1eaeb5c5f184e029331030b671c24b84738ee41
|
7
|
+
data.tar.gz: aed350969ba049588093fee9ff83527c052161a7f28d1dec3c357cc54c9415993e66c7895386910242e7e5fce7ed3ec47f004b5899fc93c7a1d2b2f4655d9939
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
# 2.0.
|
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
@@ -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
|
-
|
82
|
-
|
83
|
-
|
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
|
data/lib/muffin_man/version.rb
CHANGED
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
|
+
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-
|
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.
|
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: []
|