google-cloud-env 2.2.1 → 2.3.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 +4 -4
- data/CHANGELOG.md +18 -0
- data/lib/google/cloud/env/compute_metadata.rb +3 -0
- data/lib/google/cloud/env/compute_smbios.rb +13 -4
- data/lib/google/cloud/env/version.rb +1 -1
- metadata +20 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3d2a3f33d0f33823d9203719ac4c49862ed00b6b3b288b6851d83ca3358f8dc
|
4
|
+
data.tar.gz: 16e52c76711260d41d1f0018e022c38c9421b9ce26f4f1b36e63e58c42887d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbdc0b547fea96b75eefa4b07724d725334258470b2bf932fc6c476c7d8f1f4edde22de46c4eb25dee06d38d5db3fa69344df9b40d1e6c8560a386aca7f62bc7
|
7
|
+
data.tar.gz: d8fd89b5762ec717e42d6b94cfab3a11a0e19c6eee961bc6e6119738d06a4d262936442f675928654a5b50b5e977f1498deff3c535ce4e22e16ff0c85774f436
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 2.3.1 (2025-05-23)
|
4
|
+
|
5
|
+
#### Bug Fixes
|
6
|
+
|
7
|
+
* Compatibility fix for JRuby 10 on non-Windows systems ([#86](https://github.com/googleapis/ruby-cloud-env/issues/86))
|
8
|
+
|
9
|
+
### 2.3.0 (2025-04-30)
|
10
|
+
|
11
|
+
#### Features
|
12
|
+
|
13
|
+
* updated required ruby version to 3.1 ([#84](https://github.com/googleapis/ruby-cloud-env/issues/84))
|
14
|
+
|
15
|
+
### 2.2.2 (2025-03-13)
|
16
|
+
|
17
|
+
#### Bug Fixes
|
18
|
+
|
19
|
+
* Updated dependencies to include base64 for Ruby 3.4 ([#81](https://github.com/googleapis/ruby-cloud-env/issues/81))
|
20
|
+
|
3
21
|
### 2.2.1 (2024-10-04)
|
4
22
|
|
5
23
|
#### Bug Fixes
|
@@ -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
|
-
|
123
|
-
|
124
|
-
|
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]
|
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.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
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.
|
75
|
+
changelog_uri: https://rubydoc.info/gems/google-cloud-env/2.3.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.
|
66
|
-
post_install_message:
|
78
|
+
documentation_uri: https://rubydoc.info/gems/google-cloud-env/2.3.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.
|
86
|
+
version: '3.1'
|
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.
|
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: []
|