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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47ca23e9563451e7e1b9e8e4014a72b58fb33ebcbbf705624ed1ad05cc83cf6a
4
- data.tar.gz: 4b26f12af37cfb198a86273c320dfb87f422a96f9fa9feb1901b120888126871
3
+ metadata.gz: 9de480a810228c07a1d980254f1d402df7ba80f2e988feacc95aec1afd883675
4
+ data.tar.gz: c2ebda446fe2252803c210ec96252417a3e3f7c1bb99a21471358b639254f7ae
5
5
  SHA512:
6
- metadata.gz: 10f6afbf20b7b656cc980ec6be22d0ff302524210f47480f56515d9e646273131c83c4bfaddb93cee423f4c3305e185ff4d38f9ff588212737eb690087b43bb3
7
- data.tar.gz: c1b88683c03a582a36efbb40ed08a94cd9cf4d9f27b172f4451fcc799ef9f51e3002465cc8bf6192299ea87c3e3b2a63b7c82519ce67c0639082eb2b9a3b52c7
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
@@ -1,3 +1,3 @@
1
1
  module ActiveUtils
2
- VERSION = "3.4.0"
2
+ VERSION = "3.4.1"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'active_utils'
2
2
  require 'minitest/autorun'
3
- require 'mocha/setup'
3
+ require 'mocha/minitest'
4
4
 
5
5
  include ActiveUtils
6
6
 
@@ -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.0
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-02-23 00:00:00.000000000 Z
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.3.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