peddler 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -16
- data/lib/mws.rb +2 -0
- data/lib/mws/feeds.rb +2 -0
- data/lib/mws/feeds/client.rb +2 -0
- data/lib/mws/finances.rb +2 -0
- data/lib/mws/finances/client.rb +6 -2
- data/lib/mws/fulfillment_inbound_shipment.rb +2 -0
- data/lib/mws/fulfillment_inbound_shipment/client.rb +23 -10
- data/lib/mws/fulfillment_inventory.rb +2 -0
- data/lib/mws/fulfillment_inventory/client.rb +2 -0
- data/lib/mws/fulfillment_outbound_shipment.rb +2 -0
- data/lib/mws/fulfillment_outbound_shipment/client.rb +21 -5
- data/lib/mws/merchant_fulfillment.rb +2 -0
- data/lib/mws/merchant_fulfillment/client.rb +4 -1
- data/lib/mws/off_amazon_payments.rb +2 -0
- data/lib/mws/off_amazon_payments/client.rb +51 -23
- data/lib/mws/orders.rb +2 -0
- data/lib/mws/orders/client.rb +6 -3
- data/lib/mws/products.rb +2 -0
- data/lib/mws/products/client.rb +30 -14
- data/lib/mws/recommendations.rb +2 -0
- data/lib/mws/recommendations/client.rb +6 -2
- data/lib/mws/reports.rb +2 -0
- data/lib/mws/reports/client.rb +2 -0
- data/lib/mws/sellers.rb +2 -0
- data/lib/mws/sellers/client.rb +2 -0
- data/lib/mws/subscriptions.rb +2 -0
- data/lib/mws/subscriptions/client.rb +21 -9
- data/lib/peddler.rb +2 -0
- data/lib/peddler/client.rb +2 -0
- data/lib/peddler/errors/builder.rb +2 -0
- data/lib/peddler/errors/error.rb +4 -0
- data/lib/peddler/errors/handler.rb +2 -0
- data/lib/peddler/errors/parser.rb +2 -0
- data/lib/peddler/flat_file_parser.rb +4 -1
- data/lib/peddler/headers.rb +2 -0
- data/lib/peddler/marketplace.rb +2 -0
- data/lib/peddler/operation.rb +2 -0
- data/lib/peddler/parser.rb +2 -0
- data/lib/peddler/structured_list.rb +2 -0
- data/lib/peddler/vcr_matcher.rb +2 -0
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler/xml_parser.rb +2 -0
- data/lib/peddler/xml_response_parser.rb +2 -0
- data/test/credentials.rb +23 -0
- data/test/helper.rb +2 -0
- data/test/integration/test_errors.rb +6 -5
- data/test/integration/test_feeds.rb +2 -0
- data/test/integration/test_fulfillment_inbound_shipment.rb +2 -0
- data/test/integration/test_fulfillment_inventory.rb +2 -0
- data/test/integration/test_fulfillment_outbound_shipment.rb +2 -0
- data/test/integration/test_merchant_fulfillment.rb +2 -0
- data/test/integration/test_multibyte_queries.rb +3 -4
- data/test/integration/test_mws_headers.rb +3 -4
- data/test/integration/test_off_amazon_payments.rb +2 -0
- data/test/integration/test_orders.rb +8 -10
- data/test/integration/test_products.rb +2 -0
- data/test/integration/test_recommendations.rb +2 -0
- data/test/integration/test_reports.rb +2 -0
- data/test/integration/test_sellers.rb +2 -0
- data/test/integration/test_subscriptions.rb +2 -0
- data/test/integration_helper.rb +25 -12
- data/test/null_client.rb +2 -0
- data/test/recorder.rb +2 -0
- data/test/unit/mws/test_feeds_client.rb +2 -0
- data/test/unit/mws/test_finances_client.rb +2 -0
- data/test/unit/mws/test_fulfillment_inbound_shipment_client.rb +2 -0
- data/test/unit/mws/test_fulfillment_inventory_client.rb +2 -0
- data/test/unit/mws/test_fulfillment_outbound_shipment_client.rb +7 -2
- data/test/unit/mws/test_merchant_fulfillment_client.rb +2 -0
- data/test/unit/mws/test_off_amazon_payments_client.rb +2 -0
- data/test/unit/mws/test_orders_client.rb +2 -0
- data/test/unit/mws/test_products_client.rb +2 -0
- data/test/unit/mws/test_recommendations_client.rb +2 -0
- data/test/unit/mws/test_reports_client.rb +2 -0
- data/test/unit/mws/test_sellers_client.rb +2 -0
- data/test/unit/mws/test_subscriptions_client.rb +2 -0
- data/test/unit/peddler/errors/test_builder.rb +2 -0
- data/test/unit/peddler/errors/test_error.rb +2 -0
- data/test/unit/peddler/errors/test_handler.rb +2 -0
- data/test/unit/peddler/errors/test_parser.rb +2 -0
- data/test/unit/peddler/test_client.rb +6 -2
- data/test/unit/peddler/test_flat_file_parser.rb +27 -24
- data/test/unit/peddler/test_headers.rb +2 -0
- data/test/unit/peddler/test_marketplace.rb +2 -0
- data/test/unit/peddler/test_operation.rb +2 -0
- data/test/unit/peddler/test_parser.rb +2 -0
- data/test/unit/peddler/test_structured_list.rb +2 -0
- data/test/unit/peddler/test_vcr_matcher.rb +2 -0
- data/test/unit/peddler/test_xml_parser.rb +3 -1
- data/test/unit/peddler/test_xml_response_parser.rb +2 -0
- data/test/unit/test_mws.rb +2 -0
- metadata +58 -58
- data/test/mws.yml +0 -36
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'helper'
|
2
4
|
require 'peddler/xml_parser'
|
3
5
|
|
@@ -19,7 +21,7 @@ class TestPeddlerXMLParser < MiniTest::Test
|
|
19
21
|
end
|
20
22
|
|
21
23
|
def test_does_not_implement_parsing
|
22
|
-
assert_raises
|
24
|
+
assert_raises(NotImplementedError) do
|
23
25
|
@parser.parse
|
24
26
|
end
|
25
27
|
end
|
data/test/unit/test_mws.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peddler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hakan Ensari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dig_rb
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
version: 0.5.0
|
75
75
|
description: A Ruby interface to the Amazon MWS API
|
76
76
|
email:
|
77
|
-
-
|
77
|
+
- hakanensari@gmail.com
|
78
78
|
executables: []
|
79
79
|
extensions: []
|
80
80
|
extra_rdoc_files: []
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- lib/peddler/version.rb
|
125
125
|
- lib/peddler/xml_parser.rb
|
126
126
|
- lib/peddler/xml_response_parser.rb
|
127
|
+
- test/credentials.rb
|
127
128
|
- test/helper.rb
|
128
129
|
- test/integration/test_errors.rb
|
129
130
|
- test/integration/test_feeds.rb
|
@@ -141,7 +142,6 @@ files:
|
|
141
142
|
- test/integration/test_sellers.rb
|
142
143
|
- test/integration/test_subscriptions.rb
|
143
144
|
- test/integration_helper.rb
|
144
|
-
- test/mws.yml
|
145
145
|
- test/mws.yml.example
|
146
146
|
- test/null_client.rb
|
147
147
|
- test/recorder.rb
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
203
|
requirements:
|
204
204
|
- - ">="
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version: '2.
|
206
|
+
version: '2.1'
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
208
|
requirements:
|
209
209
|
- - ">="
|
@@ -211,75 +211,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
213
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.6.
|
214
|
+
rubygems_version: 2.6.13
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: Wraps the Amazon MWS APIs
|
218
218
|
test_files:
|
219
|
-
- test/
|
220
|
-
- test/
|
221
|
-
- test/
|
222
|
-
- test/
|
223
|
-
- test/
|
224
|
-
- test/
|
225
|
-
- test/
|
226
|
-
- test/
|
227
|
-
- test/
|
228
|
-
- test/
|
229
|
-
- test/
|
230
|
-
- test/
|
231
|
-
- test/
|
232
|
-
- test/
|
233
|
-
- test/integration/test_sellers.rb
|
234
|
-
- test/integration/test_subscriptions.rb
|
235
|
-
- test/integration_helper.rb
|
236
|
-
- test/mws.yml
|
237
|
-
- test/mws.yml.example
|
238
|
-
- test/null_client.rb
|
239
|
-
- test/recorder.rb
|
240
|
-
- test/unit/mws/test_feeds_client.rb
|
219
|
+
- test/unit/peddler/test_headers.rb
|
220
|
+
- test/unit/peddler/test_vcr_matcher.rb
|
221
|
+
- test/unit/peddler/test_marketplace.rb
|
222
|
+
- test/unit/peddler/test_operation.rb
|
223
|
+
- test/unit/peddler/test_structured_list.rb
|
224
|
+
- test/unit/peddler/test_client.rb
|
225
|
+
- test/unit/peddler/test_xml_response_parser.rb
|
226
|
+
- test/unit/peddler/test_xml_parser.rb
|
227
|
+
- test/unit/peddler/test_flat_file_parser.rb
|
228
|
+
- test/unit/peddler/errors/test_error.rb
|
229
|
+
- test/unit/peddler/errors/test_builder.rb
|
230
|
+
- test/unit/peddler/errors/test_handler.rb
|
231
|
+
- test/unit/peddler/errors/test_parser.rb
|
232
|
+
- test/unit/peddler/test_parser.rb
|
241
233
|
- test/unit/mws/test_finances_client.rb
|
234
|
+
- test/unit/mws/test_sellers_client.rb
|
242
235
|
- test/unit/mws/test_fulfillment_inbound_shipment_client.rb
|
243
|
-
- test/unit/mws/test_fulfillment_inventory_client.rb
|
244
|
-
- test/unit/mws/test_fulfillment_outbound_shipment_client.rb
|
245
236
|
- test/unit/mws/test_merchant_fulfillment_client.rb
|
237
|
+
- test/unit/mws/test_subscriptions_client.rb
|
246
238
|
- test/unit/mws/test_off_amazon_payments_client.rb
|
239
|
+
- test/unit/mws/test_reports_client.rb
|
240
|
+
- test/unit/mws/test_fulfillment_outbound_shipment_client.rb
|
247
241
|
- test/unit/mws/test_orders_client.rb
|
248
242
|
- test/unit/mws/test_products_client.rb
|
249
243
|
- test/unit/mws/test_recommendations_client.rb
|
250
|
-
- test/unit/mws/
|
251
|
-
- test/unit/mws/
|
252
|
-
- test/unit/mws/test_subscriptions_client.rb
|
253
|
-
- test/unit/peddler/errors/test_builder.rb
|
254
|
-
- test/unit/peddler/errors/test_error.rb
|
255
|
-
- test/unit/peddler/errors/test_handler.rb
|
256
|
-
- test/unit/peddler/errors/test_parser.rb
|
257
|
-
- test/unit/peddler/test_client.rb
|
258
|
-
- test/unit/peddler/test_flat_file_parser.rb
|
259
|
-
- test/unit/peddler/test_headers.rb
|
260
|
-
- test/unit/peddler/test_marketplace.rb
|
261
|
-
- test/unit/peddler/test_operation.rb
|
262
|
-
- test/unit/peddler/test_parser.rb
|
263
|
-
- test/unit/peddler/test_structured_list.rb
|
264
|
-
- test/unit/peddler/test_vcr_matcher.rb
|
265
|
-
- test/unit/peddler/test_xml_parser.rb
|
266
|
-
- test/unit/peddler/test_xml_response_parser.rb
|
244
|
+
- test/unit/mws/test_fulfillment_inventory_client.rb
|
245
|
+
- test/unit/mws/test_feeds_client.rb
|
267
246
|
- test/unit/test_mws.rb
|
268
|
-
- test/
|
247
|
+
- test/null_client.rb
|
248
|
+
- test/mws.yml.example
|
249
|
+
- test/helper.rb
|
250
|
+
- test/integration/test_orders.rb
|
251
|
+
- test/integration/test_recommendations.rb
|
252
|
+
- test/integration/test_multibyte_queries.rb
|
253
|
+
- test/integration/test_feeds.rb
|
254
|
+
- test/integration/test_fulfillment_outbound_shipment.rb
|
255
|
+
- test/integration/test_fulfillment_inbound_shipment.rb
|
256
|
+
- test/integration/test_mws_headers.rb
|
257
|
+
- test/integration/test_reports.rb
|
258
|
+
- test/integration/test_subscriptions.rb
|
259
|
+
- test/integration/test_merchant_fulfillment.rb
|
260
|
+
- test/integration/test_errors.rb
|
261
|
+
- test/integration/test_sellers.rb
|
262
|
+
- test/integration/test_products.rb
|
263
|
+
- test/integration/test_off_amazon_payments.rb
|
264
|
+
- test/integration/test_fulfillment_inventory.rb
|
265
|
+
- test/integration_helper.rb
|
266
|
+
- test/vcr_cassettes/Products.yml
|
267
|
+
- test/vcr_cassettes/MerchantFulfillment.yml
|
269
268
|
- test/vcr_cassettes/CustomerInformation.yml
|
270
|
-
- test/vcr_cassettes/
|
269
|
+
- test/vcr_cassettes/Recommendations.yml
|
271
270
|
- test/vcr_cassettes/Feeds.yml
|
271
|
+
- test/vcr_cassettes/Orders.yml
|
272
|
+
- test/vcr_cassettes/MultibyteQueries.yml
|
273
|
+
- test/vcr_cassettes/CartInformation.yml
|
272
274
|
- test/vcr_cassettes/FulfillmentInboundShipment.yml
|
273
|
-
- test/vcr_cassettes/FulfillmentInventory.yml
|
274
275
|
- test/vcr_cassettes/FulfillmentOutboundShipment.yml
|
275
|
-
- test/vcr_cassettes/MerchantFulfillment.yml
|
276
|
-
- test/vcr_cassettes/MultibyteQueries.yml
|
277
|
-
- test/vcr_cassettes/MWSHeaders.yml
|
278
|
-
- test/vcr_cassettes/OffAmazonPayments.yml
|
279
|
-
- test/vcr_cassettes/Orders.yml
|
280
276
|
- test/vcr_cassettes/PeddlerVCRMatcher.yml
|
281
|
-
- test/vcr_cassettes/
|
282
|
-
- test/vcr_cassettes/Recommendations.yml
|
283
|
-
- test/vcr_cassettes/Reports.yml
|
277
|
+
- test/vcr_cassettes/OffAmazonPayments.yml
|
284
278
|
- test/vcr_cassettes/Sellers.yml
|
279
|
+
- test/vcr_cassettes/FulfillmentInventory.yml
|
280
|
+
- test/vcr_cassettes/Errors.yml
|
285
281
|
- test/vcr_cassettes/Subscriptions.yml
|
282
|
+
- test/vcr_cassettes/MWSHeaders.yml
|
283
|
+
- test/vcr_cassettes/Reports.yml
|
284
|
+
- test/recorder.rb
|
285
|
+
- test/credentials.rb
|
data/test/mws.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
- primary_marketplace_id: A2EUQ1WTGCTBG2
|
2
|
-
aws_access_key_id: AKIAILJW7BWJ6YBK4JUQ
|
3
|
-
aws_secret_access_key: aWkRC0uiw/njt7HbycxYEw7FnejK24I8a+v+BqRs
|
4
|
-
merchant_id: A2A7WNXBU01UJW
|
5
|
-
- primary_marketplace_id: A1AM78C64UM0Y8
|
6
|
-
aws_access_key_id: AKIAIHE4A3HDKICFHP4A
|
7
|
-
aws_secret_access_key: Jg8a9DlgPbsQVsY0CzP2X0ph3vPAfQT2Gn+amdoo
|
8
|
-
merchant_id: A1PCFAUFK3U94S
|
9
|
-
- primary_marketplace_id: A13V1IB3VIYZZH
|
10
|
-
aws_access_key_id: AKIAIOYKJRT4WIH3P72A
|
11
|
-
aws_secret_access_key: NrpJKu+kndIviLLZnIagpZXhxvgaOp8NZeTtwqcL
|
12
|
-
merchant_id: A2DP6GIDYN6OTH
|
13
|
-
- primary_marketplace_id: APJ6JRA9NG5V4
|
14
|
-
aws_access_key_id: AKIAIHE4YSF4UF7CDR6Q
|
15
|
-
aws_secret_access_key: yhS//40dfrQ/nIXiyvZCrPXfXLobXFfJGYetTHmp
|
16
|
-
merchant_id: A2APQUVDBVWV7E
|
17
|
-
- primary_marketplace_id: A1RKKUPIHCS9HS
|
18
|
-
aws_access_key_id: AKIAJAMAR367FRSYNOPA
|
19
|
-
aws_secret_access_key: sYY0puX7lT3lY3jA35CgTcSjcIspzx9WexUl04J6
|
20
|
-
merchant_id: A2NEU7G6RGUKF
|
21
|
-
- primary_marketplace_id: A1F83G8C2ARO7P
|
22
|
-
aws_access_key_id: AKIAJCJNB4MASX5JUMUA
|
23
|
-
aws_secret_access_key: mtCsco7E7tLMFcHfQQ7Wpal+vZxtNBKo+PjTkvm5
|
24
|
-
merchant_id: A2D9DZ30GEWP6N
|
25
|
-
- primary_marketplace_id: A1VC38T7YXB528
|
26
|
-
aws_access_key_id: AKIAJZ6EOLNDLSOEOLBA
|
27
|
-
aws_secret_access_key: YwD/Y/ihoYPDhl4+u9aoHvuvUpyRrUys1nTHlYSI
|
28
|
-
merchant_id: A7BU5WGNVGQ1I
|
29
|
-
- primary_marketplace_id: A1PA6795UKMFR9
|
30
|
-
aws_access_key_id: AKIAIORT7554FEBW7UBQ
|
31
|
-
aws_secret_access_key: P2ocOVChe/dQUpxRfA1n3TmP+wHrF6GaSzXslvEG
|
32
|
-
merchant_id: A7ZXDJZD3UIRG
|
33
|
-
- primary_marketplace_id: ATVPDKIKX0DER
|
34
|
-
aws_access_key_id: AKIAJ25X7BKNXKVCYJXA
|
35
|
-
aws_secret_access_key: hguX3TMfKMrqKm71/dQLKqbv2VGCyZANnCXeHAsC
|
36
|
-
merchant_id: A2H6NH4SQYFZ4M
|