active_fulfillment 3.2.8 → 3.2.10

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: fa2427ef745737a0dfb2284df85693cec175294067469843760134665ef85415
4
- data.tar.gz: 856771fc183ba05a3160eb6864256e6fa7393f6fc19327192e439581fdf12e70
3
+ metadata.gz: 3d2f2bc1e7527f482f533716bc17c0d590807f9a91d29c5eb60ca6b96f943aab
4
+ data.tar.gz: b0e85546fe8d3942a241771de702ae9cad16f5b543470a2eceb94dbdb668c624
5
5
  SHA512:
6
- metadata.gz: 4c3c4241f4623d7313772e6a8200fe13b6307edd73e3289e0549a5601d30304f31daae6ebb6246724f62e2f1e2b31d138c93c9f6fe1da9b5244fde553f656f93
7
- data.tar.gz: cf6c27339ebe46e2afed84510de1f7cf9635e1facd208ad209644fe46cf4e3f053da4782ee19251d31bd9c2a5accf166123bf749ff9afaea0b83c1f6c8689cd0
6
+ metadata.gz: 8cd7609c6cfd4df16874a25c2319267d6aac8d58ed9755ddeadeb6467750c3c8794d95197f051e81137a3ce358333670cf51b7e3c7250cba62fd4705af96675e
7
+ data.tar.gz: da98accaf911f8a6d6ee152feafc400a9425c567c62a4aff908ea9ce4c1b67fe500d392442685a1d88d2747446c6a7f5924588a0b648ede78c319e1233257c8d
@@ -1,5 +1,11 @@
1
1
  # ActiveFulfillment changelog
2
2
 
3
+ ### Version 3.2.10 (September 1, 2020)
4
+ - Relax ruby version requirement to allow installation on Ruby 3.0
5
+
6
+ ### Version 3.2.9 (January 30, 2020)
7
+ - Fix an issue with trailing slash on callback urls
8
+
3
9
  ### Version 3.2.8 (December 20, 2019)
4
10
  - Sending MarketplaceId for all Amazon requests
5
11
 
@@ -68,7 +68,7 @@ module ActiveFulfillment
68
68
  private
69
69
 
70
70
  def request_uri(action, data)
71
- URI.parse "#{@callback_url}/#{action}.#{@format}?#{data.to_query}"
71
+ url = URI.join(@callback_url, "#{action}.#{@format}?#{data.to_query}")
72
72
  end
73
73
 
74
74
  def send_app_request(action, headers, data)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module ActiveFulfillment
3
- VERSION = "3.2.8"
3
+ VERSION = "3.2.10"
4
4
  end
@@ -22,6 +22,19 @@ class ShopifyAPITest < Minitest::Test
22
22
  end
23
23
  end
24
24
 
25
+ def test_request_uri_is_correct_when_callback_url_has_trailing_slash
26
+ Timecop.freeze do
27
+ service = build_service(callback_url: 'http://supershopifyapptwin.com/')
28
+ timestamp = Time.now.utc.to_i
29
+ uri = service.send(:request_uri, 'fetch_stock', {sku: '123', timestamp: timestamp, shop: 'www.snowwowdevil.ca'})
30
+ assert_equal "http://supershopifyapptwin.com/fetch_stock.json?shop=www.snowwowdevil.ca&sku=123&timestamp=#{timestamp}", uri.to_s
31
+
32
+ service = build_service(callback_url: 'http://supershopifyapptwin.com')
33
+ uri = service.send(:request_uri, 'fetch_stock', {sku: '123', timestamp: timestamp, shop: 'www.snowwowdevil.ca'})
34
+ assert_equal "http://supershopifyapptwin.com/fetch_stock.json?shop=www.snowwowdevil.ca&sku=123&timestamp=#{timestamp}", uri.to_s
35
+ end
36
+ end
37
+
25
38
  def test_response_from_failed_stock_request
26
39
  mock_app_request('fetch_stock', anything, nil)
27
40
  response = @service.fetch_stock_levels()
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.2.8
4
+ version: 3.2.10
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: 2019-12-20 00:00:00.000000000 Z
12
+ date: 2020-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -170,14 +170,15 @@ files:
170
170
  homepage: http://github.com/shopify/active_fulfillment
171
171
  licenses:
172
172
  - MIT
173
- metadata: {}
173
+ metadata:
174
+ allowed_push_host: https://rubygems.org
174
175
  post_install_message:
175
176
  rdoc_options: []
176
177
  require_paths:
177
178
  - lib
178
179
  required_ruby_version: !ruby/object:Gem::Requirement
179
180
  requirements:
180
- - - "~>"
181
+ - - ">="
181
182
  - !ruby/object:Gem::Version
182
183
  version: '2.2'
183
184
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -192,14 +193,14 @@ specification_version: 4
192
193
  summary: Framework and tools for dealing with shipping, tracking and order fulfillment
193
194
  services.
194
195
  test_files:
196
+ - test/remote/amazon_mws_test.rb
197
+ - test/remote/james_and_james_test.rb
198
+ - test/remote/webgistix_test.rb
199
+ - test/remote/shipwire_test.rb
195
200
  - test/unit/base_test.rb
196
201
  - test/unit/services/amazon_mws_test.rb
202
+ - test/unit/services/james_and_james_test.rb
197
203
  - test/unit/services/webgistix_test.rb
198
204
  - test/unit/services/shopify_api_test.rb
199
205
  - test/unit/services/shipwire_test.rb
200
- - test/unit/services/james_and_james_test.rb
201
206
  - test/test_helper.rb
202
- - test/remote/amazon_mws_test.rb
203
- - test/remote/webgistix_test.rb
204
- - test/remote/shipwire_test.rb
205
- - test/remote/james_and_james_test.rb