active_utils 3.5.0 → 3.6.1

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: 6cb69c8f7a4335a1da1843d3bd397d876c333a3db37363eeee23b50a2b56e2a9
4
- data.tar.gz: 1f1812202ee78f4eb51412e95c6c959a0ce78ca72cfbd933bf5313f61e0500fd
3
+ metadata.gz: 27d52b66e36ca1f6ac0f16624c6e18e8e82e4814c7a8a07bc202c25d75bbbe3f
4
+ data.tar.gz: a57f00fd6db1933f2d1b19810f835cdd58e9064be3bad3a9724ddcfed48f5119
5
5
  SHA512:
6
- metadata.gz: f6dc883ae82940c4d26a63ce03c58a1e7169817fc9e557a3c5d6fb4ebbe38722b6a75159b8733b7914f6d99088f28700bff5c97066c1f9a3587d37410be8d0e7
7
- data.tar.gz: bc8b18eff03ed494e284f8286c17c2df58e0edabe2c9f5c0d6bed1f57e51c8f7c5369852903e5c410919f45d8c98029b2330a08e9972640d4b05abea35c583e2
6
+ metadata.gz: c33684e4a81e27e22f647694c3fd2c5c423e099fb2315e2d869f1a127eba909ad5fe4814ff183bb138d78822534c5776b5ff93672107566b66bd3bd9c8533ec6
7
+ data.tar.gz: 3c5796076c883d1fa90d305f45599974916d9a4d7e44bf27f1fd6bd98eb361ab6c277d2bb8eedcd116ade25825b56bb2023d059aefd8fce4354b2724963c635b
@@ -11,6 +11,10 @@ registries:
11
11
  username: ${{secrets.DEPENDENCIES_GITHUB_USER}}
12
12
  password: ${{secrets.DEPENDENCIES_GITHUB_TOKEN}}
13
13
  updates:
14
+ - package-ecosystem: github-actions
15
+ directory: "/"
16
+ schedule:
17
+ interval: weekly
14
18
  - package-ecosystem: bundler
15
19
  directory: "/"
16
20
  schedule:
@@ -8,7 +8,7 @@ jobs:
8
8
  steps:
9
9
  - name: Dependabot metadata
10
10
  id: metadata
11
- uses: dependabot/fetch-metadata@v1.6.0
11
+ uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0
12
12
  with:
13
13
  github-token: "${{ secrets.GITHUB_TOKEN }}"
14
14
 
@@ -16,7 +16,7 @@ jobs:
16
16
  id: check_ci_failure
17
17
  continue-on-error: true
18
18
  if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.dependency-group == 'auto_merge' }}
19
- uses: actions/github-script@v6
19
+ uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
20
20
  with:
21
21
  script: |
22
22
  function sleep(ms) {
@@ -62,7 +62,7 @@ jobs:
62
62
  core.setOutput("ci_state", ci_state)
63
63
  - name: Send Slack notification if auto-merge failed
64
64
  if: ${{ steps.check_ci_failure.outputs.ci_state == 'false' }}
65
- uses: ruby/action-slack@v3.0.0
65
+ uses: ruby/action-slack@b6882ea6ef8f556f9f9af9ec1220d3f1ced74acf # v3.0.0
66
66
  with:
67
67
  payload: |
68
68
  {
@@ -77,7 +77,7 @@ jobs:
77
77
 
78
78
  - name: Approve and merge
79
79
  if: ${{ steps.check_ci_failure.outputs.ci_state == 'true' && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.dependency-group == 'auto_merge') }}
80
- uses: actions/github-script@v6
80
+ uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
81
81
  with:
82
82
  script: |
83
83
  await github.rest.pulls.createReview({
@@ -14,9 +14,9 @@ jobs:
14
14
  matrix:
15
15
  version: [ '2.7', '3.0', '3.1', '3.2', '3.3' ]
16
16
  steps:
17
- - uses: actions/checkout@v4
17
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18
18
  - name: Set up Ruby ${{ matrix.version }}
19
- uses: ruby/setup-ruby@v1
19
+ uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0
20
20
  with:
21
21
  ruby-version: ${{ matrix.version }}
22
22
  bundler-cache: true
data/CHANGELOG.md CHANGED
@@ -1,97 +1,135 @@
1
1
  # ActiveUtils changelog
2
2
 
3
+ ### Version 3.6.1 (September 02, 2026)
4
+
5
+ - Update the curl domain in the `update_cert_file` rake task and update the vendored CA certificate
6
+
7
+ ### Version 3.6.0 (September 15, 2025)
8
+
9
+ - Catch and raise `Errno::ENETUNREACH` syscall errors as `ActiveUtils::ConnectionError`
10
+
3
11
  ### Version 3.5.0 (February 04, 2025)
12
+
4
13
  - Catch and raise `EHOSTUNREACH` and `EADDRNOTAVAIL` syscall errors as `ActiveUtils::ConnectionError`
5
14
 
6
15
  ### Version 3.4.2 (January 15, 2025)
16
+
7
17
  - Remove numeric as a required param for `ActiveUtils::Country`
8
18
 
9
19
  ### Version 3.4.1 (APril 04, 2023)
20
+
10
21
  - 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
11
22
 
12
23
  ### Version 3.4.0 (February 23, 2022)
24
+
13
25
  - Add AC and TA to `ActiveUtils::Country::COUNTRIES`
14
26
 
15
27
  ### Version 3.3.19 (February 24, 2020)
28
+
16
29
  - Support `net/http` default proxy settings from `ENV['http_proxy']`
17
30
  - Support usage of custom ssl certificate with `ENV['SSL_CERT_FILE']`, default variable for Ruby
18
31
 
19
32
  ### Version 3.3.17 (February 24, 2020)
33
+
20
34
  - Add support for PATCH HTTP method in `ActiveUtils#Connection`
21
35
 
22
36
  ### Version 3.3.16 (December 18, 2018)
37
+
23
38
  - Add `VU` to `ActiveUtils::Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES`
24
39
 
25
40
  ### Version 3.3.15 (November 29, 2018)
41
+
26
42
  - Remove support to Ruby 1.9 and ActiveSupport `< 4`
27
43
  - Remove the upperbound constraint on ActiveSupport
28
44
 
29
45
  ### Version 3.3.14 (November 28, 2018)
46
+
30
47
  - Add `MW` to `ActiveUtils::Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES`
31
48
 
32
49
  ### Version 3.3.13 (November 26, 2018)
50
+
33
51
  - Add support for custom retriable exceptions in `NetworkConnectionRetries#retry_exceptions`
34
52
 
35
53
  ### Version 3.3.12 (July 11, 2018)
54
+
36
55
  - Update CA bundle
37
56
 
38
57
  ### Version 3.3.11 (March 14, 2018)
58
+
39
59
  - Add the DigiCert Global Root G2 to the CA bundle
40
60
 
41
61
  ### Version 3.3.10 (February 28, 2018)
62
+
42
63
  - Support ActiveSupport 5.2
43
64
 
44
65
  ### Version 3.3.9 (September 28, 2017)
66
+
45
67
  - Add remaining currencies to `ActiveUtils::CurrencyCode::ISO_CURRENCIES`
46
68
  - Update bundler in `travis.yml`
47
69
 
48
70
  ### Version 3.3.8 (August 15, 2017)
71
+
49
72
  - Add `BO` to `ActiveUtils::Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES`
50
73
 
51
74
  ### Version 3.3.7 (June 26, 2017)
75
+
52
76
  - Add `CVE` to `ActiveUtils::CurrencyCode::ISO_CURRENCIES`
53
77
 
54
78
  ### Version 3.3.6 (May 23, 2017)
79
+
55
80
  - Add `South Sudan` country in `ActiveUtils::Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES`
56
81
 
57
82
  ### Version 3.3.5 (May 18, 2017)
83
+
58
84
  - Add `South Sudan` and `Antarctica` countries in `ActiveUtils::Country::COUNTRIES`
59
85
 
60
86
  ### Version 3.3.4 (Apr. 18, 2017)
87
+
61
88
  - Add `Ghana` country in `ActiveUtils::Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES`
62
89
 
63
90
  ### Version 3.3.3 (Apr. 7, 2017)
91
+
64
92
  - Add the `Aland Islands` country in `ActiveUtils::Country::COUNTRIES`
65
93
 
66
94
  ### Version 3.3.2 (Mar. 28, 2017)
95
+
67
96
  - Changed country name of "Libyan Arab Jamahiriya" to Libya, as per country name change in 2011.
68
97
 
69
98
  ### Version 3.3.1 (Mar. 28, 2017)
99
+
70
100
  - Bump ActiveSupport requirement to **< 5.2.0**.
71
101
 
72
102
  ### Version 3.3.0 (Mar. 10, 2017)
103
+
73
104
  - Reduced default PostsData open_timeout from 60 seconds to 2, and read_timeout from 60 seconds to 10. Subclasses can and should override those values.
74
105
  - Replace Kosovo's alpha 2 and alpha 3 ISO codes from `KV` to `XK` and from `KSV` to `XKX`.
75
106
 
76
107
  ### Version 3.2.5 (Feb. 2, 2017)
108
+
77
109
  - Add the `TMT` currency in the supported currency codes
78
110
 
79
111
  ### Version 3.2.4 (Dec. 16, 2016)
112
+
80
113
  - Add the `Bonaire` country in `ActiveUtils::Country::COUNTRIES`
81
114
 
82
115
  ### Version 3.2.3 (Nov. 21, 2016)
116
+
83
117
  - Add the `:delay` option in `ActiveUtils::NetworkConnectionRetries`
84
118
 
85
119
  ### Version 3.2.2 (Jul. 4, 2016)
120
+
86
121
  - Add tests for Rails 5 support
87
122
 
88
123
  ### Version 3.2.1 (Oct. 26, 2015)
124
+
89
125
  - Add the malaysian currency code "RM" in `ActiveUtils::CurrencyCode`
90
126
 
91
127
  ### Version 3.2.0 (Oct. 13, 2015)
128
+
92
129
  - Add #uses_postal_codes? to `ActiveUtils::Country`
93
130
 
94
131
  ### Version 3.1.0 (Sept. 30, 2015)
132
+
95
133
  - Use ActiveUtils::HTTPRequestError as base exception class
96
134
  - Add proxy address and port configuration
97
135
  - Add support for Sin Maarten
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_utils (3.5.0)
4
+ active_utils (3.6.1)
5
5
  activesupport (>= 4.2)
6
6
  i18n
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.1.5.1)
11
+ activesupport (7.1.5.2)
12
12
  base64
13
13
  benchmark (>= 0.3)
14
14
  bigdecimal
@@ -21,15 +21,15 @@ GEM
21
21
  mutex_m
22
22
  securerandom (>= 0.3)
23
23
  tzinfo (~> 2.0)
24
- base64 (0.2.0)
25
- benchmark (0.4.0)
26
- bigdecimal (3.1.9)
24
+ base64 (0.3.0)
25
+ benchmark (0.4.1)
26
+ bigdecimal (3.2.3)
27
27
  concurrent-ruby (1.3.5)
28
- connection_pool (2.5.0)
29
- drb (2.2.1)
28
+ connection_pool (2.5.4)
29
+ drb (2.2.3)
30
30
  i18n (1.14.7)
31
31
  concurrent-ruby (~> 1.0)
32
- logger (1.6.5)
32
+ logger (1.7.0)
33
33
  minitest (5.22.3)
34
34
  mocha (2.1.0)
35
35
  ruby2_keywords (>= 0.0.5)
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ desc "Update the built-in CA root certificate file"
13
13
  task :update_cert_file do
14
14
  require 'net/http'
15
15
  require 'uri'
16
- cert_uri = URI('http://curl.haxx.se/ca/cacert.pem')
16
+ cert_uri = URI('https://curl.se/ca/cacert.pem')
17
17
  response = Net::HTTP.get_response(cert_uri)
18
18
  if response.code == '200'
19
19
  cert_path = File.expand_path('../lib/certs/cacert.pem', __FILE__)
@@ -9,7 +9,8 @@ module ActiveUtils
9
9
  SocketError => "The connection to the remote server could not be established",
10
10
  OpenSSL::SSL::SSLError => "The SSL connection to the remote server could not be established",
11
11
  Errno::EHOSTUNREACH => "The remote server could not be reached",
12
- Errno::EADDRNOTAVAIL => "The remote server address is not available"
12
+ Errno::EADDRNOTAVAIL => "The remote server address is not available",
13
+ Errno::ENETUNREACH => "The destination network is unreachable"
13
14
  }
14
15
 
15
16
  DEFAULT_RETRY_ERRORS = {
@@ -1,3 +1,3 @@
1
1
  module ActiveUtils
2
- VERSION = "3.5.0"
2
+ VERSION = "3.6.1"
3
3
  end