google-cloud-env 1.6.0 → 2.0.0

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: 743c1259c72af3a3cd7872d88adfa2d4ba8d4850733dfba06403ad9014e510fb
4
+ data.tar.gz: f1d426cd09a3591e4e60e95c0d47ada831ec498bdfc04ab709a90c6333cae560
5
5
  SHA512:
6
- metadata.gz: 85b70ad063ca34727e9838b78933231c7181b8d82cd3c12fd69a199da4af7d24655700147277a9dea7cab575f5d90b1007337a2bfbde24f087e573f8bd77c57b
7
- data.tar.gz: dc25667e37ffd201c6000542e2f4fcba4f2f1466bd7f6167932322cb0fd40a9fbbfbb42033ed836f1db98f836b6cdd4e1ce345b362cf746b0ba86019e43d2631
6
+ metadata.gz: f851d76b537d777a94973491da78ab454dbcbe23f1809ce981d86a654a28af8e1b22c7f2595ea3d4a5c64d0648d263790a61fa36e56a63eb70f83ff9a0862922
7
+ data.tar.gz: 6b2160f8ab772f8af3bdbc8ee613cbc33e92310d99ac36dbf9a8962a8c75f5db6a6a7145c1560e2aa73e51d5e07acb04d3aa4638d222d2814de5288b043686b5
data/CHANGELOG.md CHANGED
@@ -1,11 +1,28 @@
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.0 (2023-11-14)
4
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.
5
6
 
6
- ### Features
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.
7
8
 
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))
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
9
26
 
10
27
  ### 1.5.0 (2021-03-08)
11
28
 
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