active_utils 3.3.16 → 3.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +3 -0
- data/CONTRIBUTING.md +1 -2
- data/lib/active_utils/connection.rb +3 -0
- data/lib/active_utils/version.rb +1 -1
- data/test/unit/connection_test.rb +6 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5c2cb6eea29e075d0ef1b269266d34543dc238182447a04c0ddea40db1fd36c
|
4
|
+
data.tar.gz: 74ba44c88e15b3b73d5aafd007f9b18573bc277c595edcdf7627cb7900d51446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1205abbfdaba786f681eda76fc7a17a6e1a12147e97ba5fb9158bdeade13f512612afc25a47195ac152beff8eec052adf8ed126325f7446fbe7012c3239b8e89
|
7
|
+
data.tar.gz: c50e2ee149b2f6a807cdec6d1ae51b22b1ee4e38602e23c2f2a66bd10a8503d65ee77030819fd20052cef997649e48ae7dad68dee6bb0a0a8906d93e41ca491e
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -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.
|
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
|
data/lib/active_utils/version.rb
CHANGED
@@ -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.
|
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:
|
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
|
-
|
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
|