google-cloud-logging 0.20.0 → 0.20.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
  SHA1:
3
- metadata.gz: 074bcffc02110ff018a97cb802e25ec17389e879
4
- data.tar.gz: e6c42754a6065315cf4c8ef46fa720dbdd91039d
3
+ metadata.gz: aa3ebfa38e22e40778bd4a67a5d0f6373fd094a4
4
+ data.tar.gz: a792bb01d9ba78eb0c728771eb07528280170bf0
5
5
  SHA512:
6
- metadata.gz: b3bb599eba9d9e427a279cbf4164634a22fa5edca168fb09d201eb9c4bb66f2e8664c52ccdb18e984f44b875f3e15fa7edb0fd431fa8f83e7beea0a4f9c8e5a9
7
- data.tar.gz: 68c959882e11d938965ba73f4f8d788c4413ea19d8404e7fa1a48a516d1f3805d2ba90ca7bda0fe14eeb6a7bc6be1a6e3438cc8aa4ecc9fc45aed1a3931ec208
6
+ metadata.gz: 4f751572455011147d48324f1159fa9d18ce447eb2bfa69bc8a150906386eaad5f033f4b8167da7d7cf84fcc1691bd3af2f04e82fa251abb194ce18e3b94a55b
7
+ data.tar.gz: e8fc4fe86dc494fc4e3f1e2ea951f14fd6941a132394b8c26a1eddf620f6946da00832e1cd7556eed81aa5fe9fbe4f1fc5ab08b8ec34dc4e2cd6c8397731a70a
@@ -15,9 +15,9 @@
15
15
 
16
16
  require "google/cloud/errors"
17
17
  require "google/cloud/core/grpc_backoff"
18
- require "google/logging/v2/logging_services_pb"
19
- require "google/logging/v2/logging_config_services_pb"
20
- require "google/logging/v2/logging_metrics_services_pb"
18
+ require "google/logging/v2/logging_pb"
19
+ require "google/logging/v2/logging_config_pb"
20
+ require "google/logging/v2/logging_metrics_pb"
21
21
 
22
22
  module Google
23
23
  module Cloud
@@ -46,22 +46,34 @@ module Google
46
46
 
47
47
  def logging
48
48
  return mocked_logging if mocked_logging
49
- @logging ||= Google::Logging::V2::LoggingServiceV2::Stub.new(
50
- host, creds, timeout: timeout)
49
+ @logging ||= begin
50
+ require "google/logging/v2/logging_services_pb"
51
+
52
+ Google::Logging::V2::LoggingServiceV2::Stub.new(
53
+ host, creds, timeout: timeout)
54
+ end
51
55
  end
52
56
  attr_accessor :mocked_logging
53
57
 
54
58
  def sinks
55
59
  return mocked_sinks if mocked_sinks
56
- @sinks ||= Google::Logging::V2::ConfigServiceV2::Stub.new(
57
- host, creds, timeout: timeout)
60
+ @sinks ||= begin
61
+ require "google/logging/v2/logging_config_services_pb"
62
+
63
+ Google::Logging::V2::ConfigServiceV2::Stub.new(
64
+ host, creds, timeout: timeout)
65
+ end
58
66
  end
59
67
  attr_accessor :mocked_sinks
60
68
 
61
69
  def metrics
62
70
  return mocked_metrics if mocked_metrics
63
- @metrics ||= Google::Logging::V2::MetricsServiceV2::Stub.new(
64
- host, creds, timeout: timeout)
71
+ @metrics ||= begin
72
+ require "google/logging/v2/logging_metrics_services_pb"
73
+
74
+ Google::Logging::V2::MetricsServiceV2::Stub.new(
75
+ host, creds, timeout: timeout)
76
+ end
65
77
  end
66
78
  attr_accessor :mocked_metrics
67
79
 
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "0.20.0"
19
+ VERSION = "0.20.1"
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-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.20.1
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: 2016-08-27 00:00:00.000000000 Z
12
+ date: 2016-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core