fluent-plugin-google-cloud 0.6.11.pre.memory.8 → 0.6.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -11
- data/fluent-plugin-google-cloud.gemspec +2 -2
- data/lib/fluent/plugin/out_google_cloud.rb +4 -7
- data/test/plugin/test_out_google_cloud_grpc.rb +2 -4
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fbc5121ee932ffffd68d89d4c907f836b82edbc
|
4
|
+
data.tar.gz: d0e361c403ad696830514899b295709f0ef7c99c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5059d786227bd2d15224a359c002a309a6960117eeee63c1e4690e8606b2ac8de64aec1f6cf654847deab41e1fd524c82910361faea29eb2651c8f1167571ed
|
7
|
+
data.tar.gz: 1576bea68999170b5bb78d22190c050cb060baebc5cb2e075f0d58cedad44667efa3a3b0b6b60ebcb78209f005218f1929d2dec08a0ac58d5e64569ce130a9a5
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-google-cloud (0.6.
|
4
|
+
fluent-plugin-google-cloud (0.6.12)
|
5
5
|
fluentd (~> 0.10)
|
6
6
|
google-api-client (~> 0.14)
|
7
7
|
google-cloud-logging (~> 1.2.3)
|
8
8
|
googleapis-common-protos (~> 1.3)
|
9
9
|
googleauth (~> 0.5)
|
10
|
-
grpc (
|
10
|
+
grpc (~> 1.2.5)
|
11
11
|
json (~> 1.8)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
addressable (2.5.
|
17
|
-
public_suffix (
|
16
|
+
addressable (2.5.1)
|
17
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
18
18
|
ast (2.3.0)
|
19
19
|
cool.io (1.5.3)
|
20
20
|
crack (0.4.3)
|
@@ -70,10 +70,10 @@ GEM
|
|
70
70
|
multi_json (~> 1.11)
|
71
71
|
os (~> 0.9)
|
72
72
|
signet (~> 0.7)
|
73
|
-
grpc (1.
|
73
|
+
grpc (1.2.5)
|
74
74
|
google-protobuf (~> 3.1)
|
75
75
|
googleauth (~> 0.5.1)
|
76
|
-
hashdiff (0.3.
|
76
|
+
hashdiff (0.3.4)
|
77
77
|
http_parser.rb (0.6.0)
|
78
78
|
httpclient (2.8.3)
|
79
79
|
json (1.8.6)
|
@@ -87,19 +87,19 @@ GEM
|
|
87
87
|
mime-types (3.1)
|
88
88
|
mime-types-data (~> 3.2015)
|
89
89
|
mime-types-data (3.2016.0521)
|
90
|
-
mocha (1.
|
90
|
+
mocha (1.2.1)
|
91
91
|
metaclass (~> 0.0.1)
|
92
|
-
msgpack (1.
|
92
|
+
msgpack (1.2.0)
|
93
93
|
multi_json (1.12.2)
|
94
94
|
multipart-post (2.0.0)
|
95
95
|
os (0.9.6)
|
96
96
|
parser (2.4.0.2)
|
97
97
|
ast (~> 2.3)
|
98
|
-
power_assert (1.
|
98
|
+
power_assert (1.0.1)
|
99
99
|
powerpack (0.1.1)
|
100
100
|
prometheus-client (0.7.1)
|
101
101
|
quantile (~> 0.2.0)
|
102
|
-
public_suffix (
|
102
|
+
public_suffix (2.0.5)
|
103
103
|
quantile (0.2.0)
|
104
104
|
rainbow (2.2.2)
|
105
105
|
rake
|
@@ -129,7 +129,7 @@ GEM
|
|
129
129
|
multi_json (~> 1.10)
|
130
130
|
stackdriver-core (1.2.0)
|
131
131
|
strptime (0.1.9)
|
132
|
-
test-unit (3.2.
|
132
|
+
test-unit (3.2.3)
|
133
133
|
power_assert
|
134
134
|
thread_safe (0.3.6)
|
135
135
|
tzinfo (1.2.4)
|
@@ -10,7 +10,7 @@ eos
|
|
10
10
|
gem.homepage =
|
11
11
|
'https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud'
|
12
12
|
gem.license = 'Apache-2.0'
|
13
|
-
gem.version = '0.6.
|
13
|
+
gem.version = '0.6.12'
|
14
14
|
gem.authors = ['Todd Derr', 'Alex Robinson']
|
15
15
|
gem.email = ['salty@google.com']
|
16
16
|
gem.required_ruby_version = Gem::Requirement.new('>= 2.0')
|
@@ -24,7 +24,7 @@ eos
|
|
24
24
|
gem.add_runtime_dependency 'google-api-client', '~> 0.14'
|
25
25
|
gem.add_runtime_dependency 'google-cloud-logging', '~> 1.2.3'
|
26
26
|
gem.add_runtime_dependency 'googleauth', '~> 0.5'
|
27
|
-
gem.add_runtime_dependency 'grpc', '1.
|
27
|
+
gem.add_runtime_dependency 'grpc', '~> 1.2.5'
|
28
28
|
gem.add_runtime_dependency 'json', '~> 1.8'
|
29
29
|
|
30
30
|
gem.add_development_dependency 'mocha', '~> 1.1'
|
@@ -195,7 +195,7 @@ module Fluent
|
|
195
195
|
Fluent::Plugin.register_output('google_cloud', self)
|
196
196
|
|
197
197
|
PLUGIN_NAME = 'Fluentd Google Cloud Logging plugin'.freeze
|
198
|
-
PLUGIN_VERSION = '0.6.
|
198
|
+
PLUGIN_VERSION = '0.6.12'.freeze
|
199
199
|
|
200
200
|
# Name of the the Google cloud logging write scope.
|
201
201
|
LOGGING_SCOPE = 'https://www.googleapis.com/auth/logging.write'.freeze
|
@@ -1769,10 +1769,8 @@ module Fluent
|
|
1769
1769
|
def api_client
|
1770
1770
|
if @use_grpc
|
1771
1771
|
ssl_creds = GRPC::Core::ChannelCredentials.new
|
1772
|
-
authentication = Google::Auth.get_application_default
|
1773
|
-
creds = GRPC::Core::CallCredentials.new(
|
1774
|
-
authentication.apply(a_hash, use_configured_scope: true)
|
1775
|
-
end)
|
1772
|
+
authentication = Google::Auth.get_application_default
|
1773
|
+
creds = GRPC::Core::CallCredentials.new(authentication.updater_proc)
|
1776
1774
|
creds = ssl_creds.compose(creds)
|
1777
1775
|
@client = Google::Cloud::Logging::V2::LoggingServiceV2Client.new(
|
1778
1776
|
channel: GRPC::Core::Channel.new(
|
@@ -1780,8 +1778,7 @@ module Fluent
|
|
1780
1778
|
else
|
1781
1779
|
unless @client.authorization.expired?
|
1782
1780
|
begin
|
1783
|
-
@client.authorization.fetch_access_token!
|
1784
|
-
use_configured_scope: true)
|
1781
|
+
@client.authorization.fetch_access_token!
|
1785
1782
|
rescue MultiJson::ParseError
|
1786
1783
|
# Workaround an issue in the API client; just re-raise a more
|
1787
1784
|
# descriptive error for the user (which will still cause a retry).
|
@@ -238,10 +238,8 @@ class GoogleCloudOutputGRPCTest < Test::Unit::TestCase
|
|
238
238
|
|
239
239
|
def api_client
|
240
240
|
ssl_creds = GRPC::Core::ChannelCredentials.new
|
241
|
-
authentication = Google::Auth.get_application_default
|
242
|
-
creds = GRPC::Core::CallCredentials.new(
|
243
|
-
authentication.apply(a_hash, use_configured_scope: true)
|
244
|
-
end)
|
241
|
+
authentication = Google::Auth.get_application_default
|
242
|
+
creds = GRPC::Core::CallCredentials.new(authentication.updater_proc)
|
245
243
|
ssl_creds.compose(creds)
|
246
244
|
|
247
245
|
@grpc_stub
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-google-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Derr
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-12-
|
12
|
+
date: 2017-12-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -85,16 +85,16 @@ dependencies:
|
|
85
85
|
name: grpc
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.
|
90
|
+
version: 1.2.5
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.
|
97
|
+
version: 1.2.5
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: json
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,12 +237,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
237
|
version: '2.0'
|
238
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
239
|
requirements:
|
240
|
-
- - "
|
240
|
+
- - ">="
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
version:
|
242
|
+
version: '0'
|
243
243
|
requirements: []
|
244
244
|
rubyforge_project:
|
245
|
-
rubygems_version: 2.
|
245
|
+
rubygems_version: 2.6.12
|
246
246
|
signing_key:
|
247
247
|
specification_version: 4
|
248
248
|
summary: fluentd output plugin for the Stackdriver Logging API
|