google-cloud-env 1.6.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1d6be34c567d4881e2f9e841727cbde968ae37bfd41b5d27bcd3c7b21840d8c
4
- data.tar.gz: 7aa6c6c1805fb4f51e1b76685740c47a8017629447ab0d7f91f602761e0b7c89
3
+ metadata.gz: 5ac62dcc3131def7be6bf69813f79c3d23b6d6ce5199d0250ffad596cf3b7fcb
4
+ data.tar.gz: d9eadf5f767d8225022ed9551ea3a5a2ee37e8ad5b68da9eea7c94f416333f4f
5
5
  SHA512:
6
- metadata.gz: 85b70ad063ca34727e9838b78933231c7181b8d82cd3c12fd69a199da4af7d24655700147277a9dea7cab575f5d90b1007337a2bfbde24f087e573f8bd77c57b
7
- data.tar.gz: dc25667e37ffd201c6000542e2f4fcba4f2f1466bd7f6167932322cb0fd40a9fbbfbb42033ed836f1db98f836b6cdd4e1ce345b362cf746b0ba86019e43d2631
6
+ metadata.gz: def8ccefb5d889744cb562a85cc78a9d3b718f80f2d48eab409c6fcdbcbe2dfe9adae14393f06aab3b6a6db83b6fc6d631902d11c1a932e2a77ee2f93a5ca82f
7
+ data.tar.gz: 5faabdeb543a4237dd19a69a9963237e4b843f93aeeaa1f002cc08bd0269ba005da6a89baee20989076330b97de9551a41a50e658febd173847166fc29013bcb
data/CHANGELOG.md CHANGED
@@ -1,11 +1,35 @@
1
1
  # Release History
2
2
 
3
- ## [1.6.0](https://www.github.com/googleapis/ruby-cloud-env/compare/google-cloud-env/v1.5.0...google-cloud-env/v1.6.0) (2022-03-21)
3
+ ### 2.0.1 (2023-12-01)
4
4
 
5
+ #### Bug Fixes
6
+
7
+ * Bad response status or flavor headers no longer signal positive metadata existence ([#61](https://github.com/googleapis/ruby-cloud-env/issues/61))
8
+ * Increase token expiry buffer to three and a half minutes ([#59](https://github.com/googleapis/ruby-cloud-env/issues/59))
9
+
10
+ ### 2.0.0 (2023-11-14)
11
+
12
+ 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.
13
+
14
+ 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.
15
+
16
+ #### Features
17
+
18
+ * Update minimum Ruby version to 2.7
19
+ * Provide access objects for information sources (such as environment variables, file system, and metadata server)
20
+ * Each access object has an interface for providing mock data for testing
21
+ * Much more robust retry policy and detection mechanisms for the metadata server
22
+ * Provide ensure_metadata and lookup_metadata_response calls at the top level interface
23
+
24
+ ### 1.7.0 (2023-05-15)
25
+
26
+ #### Features
27
+
28
+ * Update minimum Ruby version to 2.6 ([#34](https://github.com/googleapis/ruby-cloud-env/issues/34))
5
29
 
6
- ### Features
30
+ ### 1.6.0 (2022-03-21)
7
31
 
8
- * **deps:** update actions/setup-node action to v3 ([#27](https://www.github.com/googleapis/ruby-cloud-env/issues/27)) ([ffb9430](https://www.github.com/googleapis/ruby-cloud-env/commit/ffb9430e67bc4504d8c4f69203a0f911a90bff5a))
32
+ * Support for Faraday 2
9
33
 
10
34
  ### 1.5.0 (2021-03-08)
11
35
 
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.5+.
11
-
12
- Google provides official support for Ruby versions that are actively supported
13
- by Ruby Corethat is, Ruby versions that are either in normal maintenance or in
14
- security maintenance, and not end of life. Currently, this means Ruby 2.5 and
15
- later. Older versions of Ruby _may_ still work, but are unsupported and not
16
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
17
- about the Ruby support schedule.
18
-
19
- ## Versioning
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