active_utils 3.3.16 → 3.3.17

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: 24d3e5ba8fd28cbff328540299c2f6016f630e255708722aa01065549c9c8167
4
- data.tar.gz: 43870793c2efe68df31e0ba5ad218122ac9677d4b2856dcea1e32e6a547ec14b
3
+ metadata.gz: d5c2cb6eea29e075d0ef1b269266d34543dc238182447a04c0ddea40db1fd36c
4
+ data.tar.gz: 74ba44c88e15b3b73d5aafd007f9b18573bc277c595edcdf7627cb7900d51446
5
5
  SHA512:
6
- metadata.gz: f833350610fc4d2dc28ffe45019f83c3f2e8bdcdd76612e68569674bbd67c4ae85012ada8e1bb74136c2a6589533b76f05ac6c58196434a8b7e95d7de36e32bc
7
- data.tar.gz: dc3ee6c1b76fd1b1715af5b6beabc27d6a41b19819a9e76f71bfccd2c66e9f2d1ce677be50edb5afe20e6eb9a1806e1d050754a7b7661afd11a87e537dc9def9
6
+ metadata.gz: 1205abbfdaba786f681eda76fc7a17a6e1a12147e97ba5fb9158bdeade13f512612afc25a47195ac152beff8eec052adf8ed126325f7446fbe7012c3239b8e89
7
+ data.tar.gz: c50e2ee149b2f6a807cdec6d1ae51b22b1ee4e38602e23c2f2a66bd10a8503d65ee77030819fd20052cef997649e48ae7dad68dee6bb0a0a8906d93e41ca491e
@@ -37,3 +37,5 @@ matrix:
37
37
  gemfile: gemfiles/Gemfile.activesupport-master
38
38
  - rvm: "2.3"
39
39
  gemfile: gemfiles/Gemfile.activesupport-master
40
+ - rvm: "2.4"
41
+ gemfile: gemfiles/Gemfile.activesupport-master
@@ -1,5 +1,8 @@
1
1
  # ActiveUtils changelog
2
2
 
3
+ ### Version 3.3.17 (February 24, 2020)
4
+ - Add support for PATCH HTTP method in `ActiveUtils#Connection`
5
+
3
6
  ### Version 3.3.16 (December 18, 2018)
4
7
  - Add `VU` to `ActiveUtils::Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES`
5
8
 
@@ -29,5 +29,4 @@ Final note: maybe you should also update the mirrored version in ActiveMerchant.
29
29
  1. Check the [semantic versioning page](http://semver.org) for info on how to version the new release.
30
30
  2. Update the `ActiveUtils::VERSION` constant in **lib/active_utils/version.rb**.
31
31
  3. Add a `CHANGELOG.md` entry for the new release with the date.
32
- 4. Tag the release commit on GitHub: `bundle exec rake tag_release`
33
- 5. Release the gem to rubygems using ShipIt
32
+ 4. Release the gem to rubygems using ShipIt (this will create tag/push during deploy)
@@ -69,6 +69,9 @@ module ActiveUtils
69
69
  when :put
70
70
  debug body
71
71
  http.put(endpoint.request_uri, body, headers)
72
+ when :patch
73
+ debug body
74
+ http.patch(endpoint.request_uri, body, headers)
72
75
  when :delete
73
76
  # It's kind of ambiguous whether the RFC allows bodies
74
77
  # for DELETE requests. But Net::HTTP's delete method
@@ -1,3 +1,3 @@
1
1
  module ActiveUtils
2
- VERSION = "3.3.16"
2
+ VERSION = "3.3.17"
3
3
  end
@@ -49,6 +49,12 @@ class ConnectionTest < Minitest::Test
49
49
  assert_equal 'success', response.body
50
50
  end
51
51
 
52
+ def test_successful_patch_request
53
+ Net::HTTP.any_instance.expects(:patch).with('/tx.php', 'data', {}).returns(@ok)
54
+ response = @connection.request(:patch, 'data', {})
55
+ assert_equal 'success', response.body
56
+ end
57
+
52
58
  def test_successful_delete_request
53
59
  Net::HTTP.any_instance.expects(:delete).with('/tx.php', {}).returns(@ok)
54
60
  response = @connection.request(:delete, nil, {})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.16
4
+ version: 3.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-19 00:00:00.000000000 Z
11
+ date: 2020-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -142,8 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubyforge_project: active_utils
146
- rubygems_version: 2.7.6
145
+ rubygems_version: 3.0.3
147
146
  signing_key:
148
147
  specification_version: 4
149
148
  summary: Common utils used by active_merchant, active_fulfillment, and active_shipping