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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b25ce383cc8b5d47e8f61db1849b99bbb9121a008a956c08d55ebf25e7954fea
4
- data.tar.gz: d7a1c3a44c6ff438d8d81c70d3705e23571b8cb6cb8db039e509e12417d81cea
3
+ metadata.gz: e684de5ea2e3883f6b03ea50daf2d65d3c3f0a8f6b2d7895eb7a32babf738e80
4
+ data.tar.gz: d7e9f920f7184834883fd2d42fdc704a21d306c9cf23f3a19bcf3d0caf4d7f49
5
5
  SHA512:
6
- metadata.gz: 28f7691d3b17e046c372eb2e1003ceb79d386c9bca2671ce91e1d3164569622bbc8a9f2d198150935f2559bb58931eb9190dcc1abb336e487758d22e5be52305
7
- data.tar.gz: 5f59820ef830cbb0baa1f8593488688a0153e1e3abbf8d2ccde1f910db89675961dc66154098a933b20e634d5c8acbaf6215d77114f53d0625deae68e26147a5
6
+ metadata.gz: 3e48036052d490d1aaf559f5c6af68d1f8391afa829023d1a05bed332eab97f917ac8c1fa66e01378b233405484090de28346dee2ec60cd5d5ebd1cdd046a8c4
7
+ data.tar.gz: 1a430e420b4044505369614a93001977f19e3386554e0b36e380adc83a0e539ffb24105711e15987499cd0ebdfd64246d24fcff0f53819c5431667f51a0809d6
data/.yardopts CHANGED
@@ -6,3 +6,7 @@
6
6
  ./lib/**/*.rb
7
7
  -
8
8
  README.md
9
+ AUTHENTICATION.md
10
+ CONTRIBUTING.md
11
+ CODE_OF_CONDUCT.md
12
+ LICENSE
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 project. Please see the top-level project [README](../README.md) for general information.
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/#/docs/google-cloud-core/latest)
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
- in security maintenance, and not end of life. Currently, this means Ruby 2.3
14
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
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 change at any time and the public API should not be considered stable.
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 Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/contributing) for more information on how to get started.
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 participating in this project you agree to abide by its terms. See [Code of Conduct](../CODE_OF_CONDUCT.md) for more information.
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 [LICENSE](LICENSE).
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 Github](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues).
39
- Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby) about the client or APIs on [StackOverflow](http://stackoverflow.com).
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).
@@ -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
- # [Authentication
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 [Authentication
45
- # Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
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
- # In June, 2018, set supported version to 2.3 and recommended to 2.4.
125
- # Thereafter, follow the MRI support schedule: supported means non-EOL,
126
- # and recommended means in normal (rather than security) maintenance.
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.0".freeze
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.3".freeze
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
- original_verbosity = $VERBOSE
196
- $VERBOSE = nil
197
-
198
- auto_load_files.each { |auto_load_file| require auto_load_file }
199
-
200
- $VERBOSE = original_verbosity
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
  ##
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Core
19
- VERSION = "1.2.3".freeze
19
+ VERSION = "1.2.4".freeze
20
20
  end
21
21
  end
22
22
  end
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.3
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-08-21 00:00:00.000000000 Z
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.8
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.8
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