active_utils 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/active_utils/posts_data.rb +1 -1
- data/lib/active_utils/version.rb +1 -1
- data/test/test_helper.rb +1 -1
- data/test/unit/posts_data_test.rb +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9de480a810228c07a1d980254f1d402df7ba80f2e988feacc95aec1afd883675
|
4
|
+
data.tar.gz: c2ebda446fe2252803c210ec96252417a3e3f7c1bb99a21471358b639254f7ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14a096c421ce499640357f80be62252783ca9ab300b56c019bdde6e13fcf45b1dfedde17ce1f398efd364d4f2f1613256ee9e1b72be301fe99fc6a19838e57a0
|
7
|
+
data.tar.gz: 58fcc9f444a65ca230009c4a341ee4ad80ae037ac6316e6f01b2e55e215cfbc88c525f1fa6e31cfdb8c31a865b4183176d15a51a1dbc95a377facd76cc6e1ef6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# ActiveUtils changelog
|
2
2
|
|
3
|
+
### Version 3.4.1 (APril 04, 2023)
|
4
|
+
- Fix depracated deprecated calling of `=~` on Object which is removed by ruby 3.2.0 as described here: https://bugs.ruby-lang.org/issues/15231
|
5
|
+
|
3
6
|
### Version 3.4.0 (February 23, 2022)
|
4
7
|
- Add AC and TA to `ActiveUtils::Country::COUNTRIES`
|
5
8
|
|
@@ -43,7 +43,7 @@ module ActiveUtils #:nodoc:
|
|
43
43
|
|
44
44
|
def raw_ssl_request(method, endpoint, data, headers = {})
|
45
45
|
logger.warn "#{self.class} using ssl_strict=false, which is insecure" if logger unless ssl_strict
|
46
|
-
logger.warn "#{self.class} posting to plaintext endpoint, which is insecure" if logger unless endpoint =~ /^https:/
|
46
|
+
logger.warn "#{self.class} posting to plaintext endpoint, which is insecure" if logger unless endpoint.to_s =~ /^https:/
|
47
47
|
|
48
48
|
connection = new_connection(endpoint)
|
49
49
|
connection.open_timeout = open_timeout
|
data/lib/active_utils/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -46,6 +46,15 @@ class PostsDataTest < Minitest::Test
|
|
46
46
|
@poster.raw_ssl_request(:post, "https://shopify.com", "", {})
|
47
47
|
end
|
48
48
|
|
49
|
+
def test_logger_warns_can_handle_non_string_endpoints
|
50
|
+
@poster.logger = stub()
|
51
|
+
@poster.logger.expects(:warn).with("PostsDataTest::SSLPoster posting to plaintext endpoint, which is insecure")
|
52
|
+
|
53
|
+
Connection.any_instance.stubs(:request)
|
54
|
+
|
55
|
+
@poster.raw_ssl_request(:post, URI("http://shopify.com"), "", {})
|
56
|
+
end
|
57
|
+
|
49
58
|
def test_logger_no_warning_if_ssl_strict_enabled
|
50
59
|
@poster.logger = stub()
|
51
60
|
@poster.logger.stubs(:warn).never
|
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.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.4.10
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Common utils used by active_merchant, active_fulfillment, and active_shipping
|