google-cloud-dns 0.28.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -0
- data/lib/google/cloud/dns.rb +28 -0
- data/lib/google/cloud/dns/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6851f05c07f2151e8d3f5a6adbeaa618b918755e5e1047caf6ea31939c5d4e48
|
4
|
+
data.tar.gz: 4f98ace09e11fed5741ba0ca57e9931be3ac35d3b0198779ef856eaeb66d74f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaa4dd1fd492d431f8aa50981afe3df42221d92e635c32fa29ff448e6c3fc1eb2528628efa597cec2753b53a0989e55c729a66b74725e4888f4962f6067b841c
|
7
|
+
data.tar.gz: b2ca82134d3aa99c50a998a4e83ec05152a6d8535cadfa947212039983584db9d88d51731234ca9f6953b77034793d757aac8520517a1bcad79c7442b03b7e1d
|
data/README.md
CHANGED
@@ -40,10 +40,35 @@ change = zone.update do |tx|
|
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
43
|
+
## Enabling Logging
|
44
|
+
|
45
|
+
To enable logging for this library, set the logger for the underlying [Google API Client](https://github.com/google/google-api-ruby-client/blob/master/README.md#logging) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/).
|
46
|
+
|
47
|
+
If you do not set the logger explicitly and your application is running in a Rails environment, it will default to `Rails.logger`. Otherwise, if you do not set the logger and you are not using Rails, logging is disabled by default.
|
48
|
+
|
49
|
+
Configuring a Ruby stdlib logger:
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
require "logger"
|
53
|
+
|
54
|
+
my_logger = Logger.new $stderr
|
55
|
+
my_logger.level = Logger::WARN
|
56
|
+
|
57
|
+
# Set the Google API Client logger
|
58
|
+
Google::Apis.logger = my_logger
|
59
|
+
```
|
60
|
+
|
43
61
|
## Supported Ruby Versions
|
44
62
|
|
45
63
|
This library is supported on Ruby 2.0+.
|
46
64
|
|
65
|
+
However, Ruby 2.3 or later is strongly recommended, as earlier releases have
|
66
|
+
reached or are nearing end-of-life. After June 1, 2018, Google will provide
|
67
|
+
official support only for Ruby versions that are considered current and
|
68
|
+
supported by Ruby Core (that is, Ruby versions that are either in normal
|
69
|
+
maintenance or in security maintenance).
|
70
|
+
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
|
71
|
+
|
47
72
|
## Versioning
|
48
73
|
|
49
74
|
This library follows [Semantic Versioning](http://semver.org/).
|
data/lib/google/cloud/dns.rb
CHANGED
@@ -39,6 +39,34 @@ module Google
|
|
39
39
|
# [Authentication
|
40
40
|
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
|
41
41
|
#
|
42
|
+
# ## Enabling Logging
|
43
|
+
#
|
44
|
+
# To enable logging for this library, set the logger for the underlying
|
45
|
+
# [Google API Client](https://github.com/google/google-api-ruby-client/blob/master/README.md#logging)
|
46
|
+
# library. The logger that you set may be a Ruby stdlib
|
47
|
+
# [`Logger`](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html)
|
48
|
+
# as shown below, or a
|
49
|
+
# [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
50
|
+
# that will write logs to [Stackdriver
|
51
|
+
# Logging](https://cloud.google.com/logging/).
|
52
|
+
#
|
53
|
+
# If you do not set the logger explicitly and your application is running in
|
54
|
+
# a Rails environment, it will default to `Rails.logger`. Otherwise, if you
|
55
|
+
# do not set the logger and you are not using Rails, logging is disabled by
|
56
|
+
# default.
|
57
|
+
#
|
58
|
+
# Configuring a Ruby stdlib logger:
|
59
|
+
#
|
60
|
+
# ```ruby
|
61
|
+
# require "logger"
|
62
|
+
#
|
63
|
+
# my_logger = Logger.new $stderr
|
64
|
+
# my_logger.level = Logger::WARN
|
65
|
+
#
|
66
|
+
# # Set the Google API Client logger
|
67
|
+
# Google::Apis.logger = my_logger
|
68
|
+
# ```
|
69
|
+
#
|
42
70
|
# ## Creating Zones
|
43
71
|
#
|
44
72
|
# To get started with Google Cloud DNS, use your DNS Project to create a new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
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-06-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: '0.23'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: '0.23'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: googleauth
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
238
|
version: '0'
|
239
239
|
requirements: []
|
240
240
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.7.
|
241
|
+
rubygems_version: 2.7.7
|
242
242
|
signing_key:
|
243
243
|
specification_version: 4
|
244
244
|
summary: API Client library for Google Cloud DNS
|