active_fulfillment 3.0.0.pre5 → 3.0.0.pre6

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
  SHA1:
3
- metadata.gz: ec1ce2a917a90a5c9fcd77faa2cf28603fae713a
4
- data.tar.gz: 4b4cfa6be54fe07ec5d3bcd87b7c3b6057260103
3
+ metadata.gz: 048de9cecf98e3a3410309c3eea0847f9407ce1b
4
+ data.tar.gz: d09dedc9505102085fc104cb2545e16b2277ee26
5
5
  SHA512:
6
- metadata.gz: a1baba64efc3e9a507a41a8c14853684366ecb1076e4588756758f6d3fdca89b725614c012a15d15b60c453d9b7cceecde03585bfea28957437db8ee2411a8cf
7
- data.tar.gz: 3c17fc456c50f3a887ac3a16c008c80d3983021eba2e877b2f848c69e7f0363d6f3343f156fd04340d927dd9c97bb101dac8be4db1d1c079f340fce49fc4bf6d
6
+ metadata.gz: 4ff0aeecfc643da03b6893470db07423d99bb5fae8c20f3c1e100299fc1730883fbf7d208f6695bac48b5bd9a70001e113893b7eb449f89ee08f7f0c6aea8272
7
+ data.tar.gz: 673fdf411195edfe813a294750bb561c07f4cc06792898d591a587bb8aff3b7a26e8fa78cea378c874591e8810d8b6b3da1e0e5f02c61998d7d5a2bc49b0389b
@@ -184,7 +184,7 @@ module ActiveFulfillment
184
184
  uri = URI.parse("https://#{endpoint}/#{ACTIONS[service]}/#{VERSION}")
185
185
  query = build_full_query(verb, uri, params)
186
186
  headers = build_headers(query)
187
- log_query = query
187
+ log_query = query.dup
188
188
  [@options[:login], @options[:app_id], @mws_auth_token].each { |key| log_query.gsub!(/#{key}/, '[filtered]') if key.present? }
189
189
 
190
190
  logger.info "[#{self.class}][#{op.to_s}] query=#{log_query}"
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module ActiveFulfillment
3
- VERSION = "3.0.0.pre5"
3
+ VERSION = "3.0.0.pre6"
4
4
  end
@@ -280,8 +280,9 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
280
280
 
281
281
  @service.class.logger.expects(:info).with do |message|
282
282
  assert_match /ListInventorySupply/, message unless message.include?('ListInventorySupplyResult')
283
- assert /@service[:login]/ !~ message
284
- assert /@service[:password]/ !~ message
283
+ refute message.include?('login')
284
+ refute message.include?('password')
285
+ true
285
286
  end.twice
286
287
 
287
288
  response = @service.fetch_stock_levels
@@ -296,6 +297,7 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
296
297
  }.returns(xml_fixture('amazon_mws/inventory_list_inventory_supply_by_next_token'))
297
298
 
298
299
  @service.expects(:ssl_post).with() { |uri, query, headers|
300
+ assert query.include?('login')
299
301
  query.include?('ListInventorySupplyByNextToken') && query.include?('NextToken')
300
302
  }.returns(xml_fixture('amazon_mws/inventory_list_inventory_supply'))
301
303
 
@@ -422,8 +424,9 @@ class AmazonMarketplaceWebServiceTest < Minitest::Test
422
424
 
423
425
  @service.class.logger.expects(:info).with do |message|
424
426
  assert_match /Something has gone terribly wrong/, message unless message.include?('GetFulfillmentOrder')
425
- assert /@service[:login]/ !~ message
426
- assert /@service[:password]/ !~ message
427
+ refute message.include?('login')
428
+ refute message.include?('password')
429
+ true
427
430
  end.twice
428
431
 
429
432
  response = @service.fetch_tracking_data(['extern_id_1154539615776'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_fulfillment
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre5
4
+ version: 3.0.0.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Fauser
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-04 00:00:00.000000000 Z
12
+ date: 2015-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport