google-cloud-env 2.2.1 → 2.4.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: 90efc7ff417c91cb62cbb85b70f1a16f25ad41b84effa31e7a753d64d0f541a8
4
- data.tar.gz: 6925442cc3d569125696bf34112b8ce4fce1030295c48b259533219c6577e6c4
3
+ metadata.gz: b3423a798ba821a7a723338bf1eda1a61949dd7c4c214616cc81aecd05df31a6
4
+ data.tar.gz: 41095f9654401eb1f46b689a6b0795124a68c25a03e26d5bf260da57cfef32cb
5
5
  SHA512:
6
- metadata.gz: 5076fb608c2552701f6f267f641a83ae0301b8a7d6b3103613046b67179bed1e9c32ea65d238c3f81776ce1f7a77883c906fb3c421b1c4f4e9edb0a567f1dfe6
7
- data.tar.gz: 81a486aa7b6c23c143a6af6cab570cd7ce3af5a22966303dccaf3081ff90e05e9a9f94a50356d860f03d2f03afffc74089abf71b4ea3a19b9dd87ebcb223dcaf
6
+ metadata.gz: 71a52249b8d2d23a05024d951928c8f4585a5c64e53e4cb34ee6bb2156cf1f243bc594d36b2cad735dfa74730cb7c32559124f8819a7e644fa81f39723aadcf8
7
+ data.tar.gz: 14676e3f27b9dcb70ea83012e2de2f701b20213df05d923863b0d561f05c7861023e4978218154a5c31d4581a4e7f267395ae1527ea78c8fe0b0201abd53b65e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Release History
2
2
 
3
+ ### 2.4.1 (2026-10-07)
4
+
5
+ #### Documentation
6
+
7
+ * trigger a release to verify the new publishing pipeline ([#115](https://github.com/googleapis/ruby-cloud-env/issues/115))
8
+
9
+ ### 2.4.0 (2026-07-07)
10
+
11
+ #### Features
12
+
13
+ * Ruby 3.2 minimum and Ruby 4.0 support ([#100](https://github.com/googleapis/ruby-cloud-env/issues/100))
14
+
15
+ ### 2.3.1 (2025-05-23)
16
+
17
+ #### Bug Fixes
18
+
19
+ * Compatibility fix for JRuby 10 on non-Windows systems ([#86](https://github.com/googleapis/ruby-cloud-env/issues/86))
20
+
21
+ ### 2.3.0 (2025-04-30)
22
+
23
+ #### Features
24
+
25
+ * updated required ruby version to 3.1 ([#84](https://github.com/googleapis/ruby-cloud-env/issues/84))
26
+
27
+ ### 2.2.2 (2025-03-13)
28
+
29
+ #### Bug Fixes
30
+
31
+ * Updated dependencies to include base64 for Ruby 3.4 ([#81](https://github.com/googleapis/ruby-cloud-env/issues/81))
32
+
3
33
  ### 2.2.1 (2024-10-04)
4
34
 
5
35
  #### Bug Fixes
data/README.md CHANGED
@@ -10,7 +10,7 @@ Metadata Server.
10
10
 
11
11
  ## Supported Ruby Versions
12
12
 
13
- This library is supported on Ruby 3.0+.
13
+ This library is supported on Ruby 3.2+.
14
14
 
15
15
  In general, Google provides official support for CRuby versions that are
16
16
  actively supported by the Ruby Core team -- that is, Ruby versions that are
@@ -47,3 +47,4 @@ Github](https://github.com/googleapis/google-cloud-ruby/issues). Don't
47
47
  hesitate to [ask
48
48
  questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)
49
49
  about the client or APIs on [StackOverflow](http://stackoverflow.com).
50
+
@@ -14,6 +14,7 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
+ require "base64"
17
18
  require "faraday"
18
19
  require "json"
19
20
 
@@ -670,6 +671,7 @@ module Google
670
671
  Errno::ETIMEDOUT,
671
672
  Timeout::Error
672
673
  ].freeze
674
+ private_constant :TRANSIENT_EXCEPTIONS
673
675
 
674
676
  ##
675
677
  # @private
@@ -693,6 +695,7 @@ module Google
693
695
  # than the previous old token. See internal issue b/311414224.
694
696
  #
695
697
  TOKEN_EXPIRY_BUFFER = 210
698
+ private_constant :TOKEN_EXPIRY_BUFFER
696
699
 
697
700
  ##
698
701
  # @private
@@ -119,11 +119,20 @@ module Google
119
119
  private_constant :WINDOWS_KEYPATH, :WINDOWS_KEYNAME, :LINUX_FILEPATH
120
120
 
121
121
  def load_product_name
122
- require "win32/registry"
123
- Win32::Registry::HKEY_LOCAL_MACHINE.open WINDOWS_KEYPATH do |reg|
124
- return [reg[WINDOWS_KEYNAME].to_s, :windows]
122
+ begin
123
+ require "win32/registry"
124
+ Win32::Registry::HKEY_LOCAL_MACHINE.open WINDOWS_KEYPATH do |reg|
125
+ return [reg[WINDOWS_KEYNAME].to_s, :windows]
126
+ end
127
+ rescue LoadError
128
+ # Fall through to the Linux routine
129
+ rescue StandardError => e
130
+ # With JRuby 10, a Fiddle::DLError is raised, In the case the fiddle gem is not
131
+ # loadable, safely assert the error type without relying on the Fiddle namespace
132
+ # having been loaded.
133
+ raise e unless e.class.name == "Fiddle::DLError" # rubocop:disable Style/ClassEqualityComparison
134
+ # Fall through to the Linux routine
125
135
  end
126
- rescue LoadError
127
136
  begin
128
137
  File.open LINUX_FILEPATH do |file|
129
138
  return [file.readline(chomp: true), :linux]
@@ -20,7 +20,7 @@ module Google
20
20
  # Library version
21
21
  # @return [String]
22
22
  #
23
- VERSION = "2.2.1".freeze
23
+ VERSION = "2.4.1".freeze
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: base64
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '0.2'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '0.2'
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: faraday
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -59,11 +72,10 @@ homepage: https://github.com/googleapis/ruby-cloud-env
59
72
  licenses:
60
73
  - Apache-2.0
61
74
  metadata:
62
- changelog_uri: https://rubydoc.info/gems/google-cloud-env/2.2.1/CHANGELOG.md
75
+ changelog_uri: https://rubydoc.info/gems/google-cloud-env/2.4.1/CHANGELOG.md
63
76
  source_code_uri: https://github.com/googleapis/ruby-cloud-env
64
77
  bug_tracker_uri: https://github.com/googleapis/ruby-cloud-env/issues
65
- documentation_uri: https://rubydoc.info/gems/google-cloud-env/2.2.1
66
- post_install_message:
78
+ documentation_uri: https://rubydoc.info/gems/google-cloud-env/2.4.1
67
79
  rdoc_options: []
68
80
  require_paths:
69
81
  - lib
@@ -71,15 +83,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
83
  requirements:
72
84
  - - ">="
73
85
  - !ruby/object:Gem::Version
74
- version: '3.0'
86
+ version: '3.2'
75
87
  required_rubygems_version: !ruby/object:Gem::Requirement
76
88
  requirements:
77
89
  - - ">="
78
90
  - !ruby/object:Gem::Version
79
91
  version: '0'
80
92
  requirements: []
81
- rubygems_version: 3.5.6
82
- signing_key:
93
+ rubygems_version: 3.6.9
83
94
  specification_version: 4
84
95
  summary: Google Cloud Platform hosting environment information.
85
96
  test_files: []