google-cloud-env 1.5.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +15 -16
- data/SECURITY.md +7 -0
- data/lib/google/cloud/env/compute_metadata.rb +831 -0
- data/lib/google/cloud/env/compute_smbios.rb +138 -0
- data/lib/google/cloud/env/file_system.rb +125 -0
- data/lib/google/cloud/env/lazy_value.rb +1003 -0
- data/lib/google/cloud/env/variables.rb +76 -0
- data/lib/google/cloud/env/version.rb +5 -1
- data/lib/google/cloud/env.rb +197 -170
- metadata +20 -150
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 743c1259c72af3a3cd7872d88adfa2d4ba8d4850733dfba06403ad9014e510fb
|
4
|
+
data.tar.gz: f1d426cd09a3591e4e60e95c0d47ada831ec498bdfc04ab709a90c6333cae560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f851d76b537d777a94973491da78ab454dbcbe23f1809ce981d86a654a28af8e1b22c7f2595ea3d4a5c64d0648d263790a61fa36e56a63eb70f83ff9a0862922
|
7
|
+
data.tar.gz: 6b2160f8ab772f8af3bdbc8ee613cbc33e92310d99ac36dbf9a8962a8c75f5db6a6a7145c1560e2aa73e51d5e07acb04d3aa4638d222d2814de5288b043686b5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 2.0.0 (2023-11-14)
|
4
|
+
|
5
|
+
This is a major overhaul of the mechanisms underlying this gem, to improve reliability and provide better mocking interfaces. Environment interrogation calls are unchanged, but the mocking override parameters from 1.x have been removed in favor of the new interfaces, hence the semver-major version bump.
|
6
|
+
|
7
|
+
This version has not yet added explicit calls for detecting newer runtimes such as Cloud Run and Cloud Functions. Those will come in the near future.
|
8
|
+
|
9
|
+
#### Features
|
10
|
+
|
11
|
+
* Update minimum Ruby version to 2.7
|
12
|
+
* Provide access objects for information sources (such as environment variables, file system, and metadata server)
|
13
|
+
* Each access object has an interface for providing mock data for testing
|
14
|
+
* Much more robust retry policy and detection mechanisms for the metadata server
|
15
|
+
* Provide ensure_metadata and lookup_metadata_response calls at the top level interface
|
16
|
+
|
17
|
+
### 1.7.0 (2023-05-15)
|
18
|
+
|
19
|
+
#### Features
|
20
|
+
|
21
|
+
* Update minimum Ruby version to 2.6 ([#34](https://github.com/googleapis/ruby-cloud-env/issues/34))
|
22
|
+
|
23
|
+
### 1.6.0 (2022-03-21)
|
24
|
+
|
25
|
+
* Support for Faraday 2
|
26
|
+
|
3
27
|
### 1.5.0 (2021-03-08)
|
4
28
|
|
5
29
|
#### Features
|
data/CONTRIBUTING.md
CHANGED
@@ -68,4 +68,4 @@ $ bundle exec rake rubocop
|
|
68
68
|
|
69
69
|
## Code of Conduct
|
70
70
|
|
71
|
-
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See
|
71
|
+
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See {file:CODE_OF_CONDUCT.md Code of Conduct} for more information.
|
data/README.md
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
# google-cloud-env
|
2
2
|
|
3
3
|
This library provides information on the application hosting environment for
|
4
|
-
apps running on Google Cloud Platform.
|
4
|
+
apps running on Google Cloud Platform. This includes information on the Google
|
5
|
+
compute product being used, the current project and credentials, and other
|
6
|
+
information surfaced via environment variables, the file system, and the
|
7
|
+
Metadata Server.
|
5
8
|
|
6
9
|
- [google-cloud-env API documentation](https://googleapis.dev/ruby/google-cloud-env/latest)
|
7
10
|
|
8
11
|
## Supported Ruby Versions
|
9
12
|
|
10
|
-
This library is supported on Ruby 2.
|
11
|
-
|
12
|
-
Google provides official support for
|
13
|
-
by Ruby Core
|
14
|
-
|
15
|
-
|
16
|
-
recommended. See
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
This library follows [Semantic Versioning](http://semver.org/).
|
22
|
-
|
23
|
-
It is currently in major version zero (0.y.z), which means that anything may
|
24
|
-
change at any time and the public API should not be considered stable.
|
13
|
+
This library is supported on Ruby 2.7+.
|
14
|
+
|
15
|
+
In general, Google provides official support for CRuby versions that are
|
16
|
+
actively supported by the Ruby Core team -- that is, Ruby versions that are
|
17
|
+
either in normal maintenance or in security maintenance -- and for about one
|
18
|
+
year after end of life. Older versions of Ruby _may_ still work, but are
|
19
|
+
unsupported and not recommended. See
|
20
|
+
https://www.ruby-lang.org/en/downloads/branches/ for more details about the
|
21
|
+
Ruby-Core support schedule. See
|
22
|
+
https://cloud.google.com/ruby/getting-started/supported-ruby-versions for more
|
23
|
+
details about Google's Ruby support schedule.
|
25
24
|
|
26
25
|
## Contributing
|
27
26
|
|
data/SECURITY.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
To report a security issue, please use [g.co/vulnz](https://g.co/vulnz).
|
4
|
+
|
5
|
+
The Google Security Team will respond within 5 working days of your report on g.co/vulnz.
|
6
|
+
|
7
|
+
We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue.
|