active_utils 3.3.19 → 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/.github/workflows/cla.yml +22 -0
- data/CHANGELOG.md +6 -0
- data/lib/active_utils/country.rb +2 -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 +4 -4
- data/.github/probots.yml +0 -2
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
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Contributor License Agreement (CLA)
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request_target:
|
5
|
+
types: [opened, synchronize]
|
6
|
+
issue_comment:
|
7
|
+
types: [created]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
cla:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
if: |
|
13
|
+
(github.event.issue.pull_request
|
14
|
+
&& !github.event.issue.pull_request.merged_at
|
15
|
+
&& contains(github.event.comment.body, 'signed')
|
16
|
+
)
|
17
|
+
|| (github.event.pull_request && !github.event.pull_request.merged)
|
18
|
+
steps:
|
19
|
+
- uses: Shopify/shopify-cla-action@v1
|
20
|
+
with:
|
21
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
22
|
+
cla-token: ${{ secrets.CLA_TOKEN }}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
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
|
+
|
6
|
+
### Version 3.4.0 (February 23, 2022)
|
7
|
+
- Add AC and TA to `ActiveUtils::Country::COUNTRIES`
|
8
|
+
|
3
9
|
### Version 3.3.19 (February 24, 2020)
|
4
10
|
- Support `net/http` default proxy settings from `ENV['http_proxy']`
|
5
11
|
- Support usage of custom ssl certificate with `ENV['SSL_CERT_FILE']`, default variable for Ruby
|
data/lib/active_utils/country.rb
CHANGED
@@ -66,6 +66,7 @@ module ActiveUtils #:nodoc:
|
|
66
66
|
{ :alpha2 => 'AF', :name => 'Afghanistan', :alpha3 => 'AFG', :numeric => '004' },
|
67
67
|
{ :alpha2 => 'AX', :name => 'Aland Islands', :alpha3 => 'ALA', :numeric => '248' },
|
68
68
|
{ :alpha2 => 'AL', :name => 'Albania', :alpha3 => 'ALB', :numeric => '008' },
|
69
|
+
{ :alpha2 => 'AC', :name => 'Ascension Island', :alpha3 => 'ASC' },
|
69
70
|
{ :alpha2 => 'DZ', :name => 'Algeria', :alpha3 => 'DZA', :numeric => '012' },
|
70
71
|
{ :alpha2 => 'AS', :name => 'American Samoa', :alpha3 => 'ASM', :numeric => '016' },
|
71
72
|
{ :alpha2 => 'AD', :name => 'Andorra', :alpha3 => 'AND', :numeric => '020' },
|
@@ -291,6 +292,7 @@ module ActiveUtils #:nodoc:
|
|
291
292
|
{ :alpha2 => 'TK', :name => 'Tokelau', :alpha3 => 'TKL', :numeric => '772' },
|
292
293
|
{ :alpha2 => 'TO', :name => 'Tonga', :alpha3 => 'TON', :numeric => '776' },
|
293
294
|
{ :alpha2 => 'TT', :name => 'Trinidad and Tobago', :alpha3 => 'TTO', :numeric => '780' },
|
295
|
+
{ :alpha2 => 'TA', :name => 'Tristan da Cunha', :alpha3 => 'TAA' },
|
294
296
|
{ :alpha2 => 'TN', :name => 'Tunisia', :alpha3 => 'TUN', :numeric => '788' },
|
295
297
|
{ :alpha2 => 'TR', :name => 'Turkey', :alpha3 => 'TUR', :numeric => '792' },
|
296
298
|
{ :alpha2 => 'TM', :name => 'Turkmenistan', :alpha3 => 'TKM', :numeric => '795' },
|
@@ -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
|
+
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:
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -87,7 +87,7 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- ".github/
|
90
|
+
- ".github/workflows/cla.yml"
|
91
91
|
- ".gitignore"
|
92
92
|
- ".travis.yml"
|
93
93
|
- CHANGELOG.md
|
@@ -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
|
data/.github/probots.yml
DELETED