google-cloud-core 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +4 -0
- data/README.md +24 -11
- data/lib/google/cloud.rb +18 -18
- data/lib/google/cloud/core/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e684de5ea2e3883f6b03ea50daf2d65d3c3f0a8f6b2d7895eb7a32babf738e80
|
4
|
+
data.tar.gz: d7e9f920f7184834883fd2d42fdc704a21d306c9cf23f3a19bcf3d0caf4d7f49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e48036052d490d1aaf559f5c6af68d1f8391afa829023d1a05bed332eab97f917ac8c1fa66e01378b233405484090de28346dee2ec60cd5d5ebd1cdd046a8c4
|
7
|
+
data.tar.gz: 1a430e420b4044505369614a93001977f19e3386554e0b36e380adc83a0e539ffb24105711e15987499cd0ebdfd64246d24fcff0f53819c5431667f51a0809d6
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -1,17 +1,20 @@
|
|
1
1
|
# google-cloud-core
|
2
2
|
|
3
|
-
This library contains shared types, such as error classes, for the google-cloud
|
3
|
+
This library contains shared types, such as error classes, for the google-cloud
|
4
|
+
project. Please see the [GitHub
|
5
|
+
repository](https://github.com/GoogleCloudPlatform/google-cloud-ruby) for more
|
6
|
+
information about the individual google-cloud gems.
|
4
7
|
|
5
|
-
- [google-cloud-core API documentation](http://googlecloudplatform.github.io/google-cloud-ruby
|
8
|
+
- [google-cloud-core API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-core/latest)
|
6
9
|
|
7
10
|
## Supported Ruby Versions
|
8
11
|
|
9
12
|
This library is supported on Ruby 2.3+.
|
10
13
|
|
11
14
|
Google provides official support for Ruby versions that are actively supported
|
12
|
-
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
13
|
-
|
14
|
-
|
15
|
+
by Ruby Core—that is, Ruby versions that are either in normal maintenance or in
|
16
|
+
security maintenance, and not end of life. Currently, this means Ruby 2.3 and
|
17
|
+
later. Older versions of Ruby _may_ still work, but are unsupported and not
|
15
18
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
16
19
|
about the Ruby support schedule.
|
17
20
|
|
@@ -19,21 +22,31 @@ about the Ruby support schedule.
|
|
19
22
|
|
20
23
|
This library follows [Semantic Versioning](http://semver.org/).
|
21
24
|
|
22
|
-
It is currently in major version zero (0.y.z), which means that anything may
|
25
|
+
It is currently in major version zero (0.y.z), which means that anything may
|
26
|
+
change at any time and the public API should not be considered stable.
|
23
27
|
|
24
28
|
## Contributing
|
25
29
|
|
26
30
|
Contributions to this library are always welcome and highly encouraged.
|
27
31
|
|
28
|
-
See the [Contributing
|
32
|
+
See the [Contributing
|
33
|
+
Guide](http://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-core/latest/file.CONTRIBUTING)
|
34
|
+
for more information on how to get started.
|
29
35
|
|
30
|
-
Please note that this project is released with a Contributor Code of Conduct. By
|
36
|
+
Please note that this project is released with a Contributor Code of Conduct. By
|
37
|
+
participating in this project you agree to abide by its terms. See [Code of
|
38
|
+
Conduct](http://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-core/latest/file.CODE_OF_CONDUCT)
|
39
|
+
for more information.
|
31
40
|
|
32
41
|
## License
|
33
42
|
|
34
|
-
This library is licensed under Apache 2.0. Full license text is available in
|
43
|
+
This library is licensed under Apache 2.0. Full license text is available in
|
44
|
+
[LICENSE](http://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-core/latest/file.LICENSE).
|
35
45
|
|
36
46
|
## Support
|
37
47
|
|
38
|
-
Please [report bugs at the project on
|
39
|
-
|
48
|
+
Please [report bugs at the project on
|
49
|
+
Github](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues). Don't
|
50
|
+
hesitate to [ask
|
51
|
+
questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)
|
52
|
+
about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
data/lib/google/cloud.rb
CHANGED
@@ -30,19 +30,15 @@ require "google/cloud/core/version"
|
|
30
30
|
# App Engine and Google Kubernetes Engine. In other environments you can
|
31
31
|
# configure authentication easily, either directly in your code or via
|
32
32
|
# environment variables. Read more about the options for connecting in the
|
33
|
-
#
|
34
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
|
35
|
-
#
|
36
|
-
# You can learn more about various options for connection on the [Authentication
|
37
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
|
33
|
+
# {file:AUTHENTICATION.md Authentication Guide}.
|
38
34
|
#
|
39
35
|
module Google
|
40
36
|
module Cloud
|
41
37
|
##
|
42
38
|
# Creates a new object for connecting to Google Cloud.
|
43
39
|
#
|
44
|
-
# For more information on connecting to Google Cloud see the
|
45
|
-
# Guide
|
40
|
+
# For more information on connecting to Google Cloud see the
|
41
|
+
# {file:AUTHENTICATION.md Authentication Guide}.
|
46
42
|
#
|
47
43
|
# @param [String] project_id Project identifier for the service you are
|
48
44
|
# connecting to.
|
@@ -121,22 +117,23 @@ module Google
|
|
121
117
|
end
|
122
118
|
end
|
123
119
|
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
120
|
+
# Update the supported and recommended version thresholds according to the
|
121
|
+
# MRI support schedule: supported means non-EOL, and recommended means in
|
122
|
+
# normal (rather than security) maintenance. Generally, this means updating
|
123
|
+
# these at the end of March each year, if the previous year patterns hold.
|
127
124
|
# See https://www.ruby-lang.org/en/downloads/branches/
|
128
125
|
|
129
126
|
##
|
130
127
|
# Minimum "supported" Ruby version (non-EOL)
|
131
128
|
# @private
|
132
129
|
#
|
133
|
-
SUPPORTED_VERSION_THRESHOLD = "2.
|
130
|
+
SUPPORTED_VERSION_THRESHOLD = "2.3".freeze
|
134
131
|
|
135
132
|
##
|
136
133
|
# Minimum "recommended" Ruby version (normal maintenance)
|
137
134
|
# @private
|
138
135
|
#
|
139
|
-
RECOMMENDED_VERSION_THRESHOLD = "2.
|
136
|
+
RECOMMENDED_VERSION_THRESHOLD = "2.4".freeze
|
140
137
|
|
141
138
|
##
|
142
139
|
# Check Ruby version and emit a warning if it is old
|
@@ -192,12 +189,15 @@ module Google
|
|
192
189
|
# @private
|
193
190
|
#
|
194
191
|
def self.auto_load_gems
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
192
|
+
previously_loaded_files = Array(caller).map do |backtrace_line|
|
193
|
+
File.realpath backtrace_line.split(":").first
|
194
|
+
end.uniq
|
195
|
+
|
196
|
+
auto_load_files.each do |auto_load_file|
|
197
|
+
auto_load_file = File.realpath auto_load_file
|
198
|
+
next if previously_loaded_files.include? auto_load_file
|
199
|
+
require auto_load_file
|
200
|
+
end
|
201
201
|
end
|
202
202
|
|
203
203
|
##
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-env
|
@@ -155,16 +155,16 @@ dependencies:
|
|
155
155
|
name: yard-doctest
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- - "
|
158
|
+
- - "~>"
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: 0.1.
|
160
|
+
version: 0.1.13
|
161
161
|
type: :development
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
|
-
- - "
|
165
|
+
- - "~>"
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: 0.1.
|
167
|
+
version: 0.1.13
|
168
168
|
description: google-cloud-core is the internal shared library for google-cloud-ruby.
|
169
169
|
email:
|
170
170
|
- mike@blowmage.com
|