fluent-plugin-google-cloud 0.5.4.grpc.alpha.1 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/fluent-plugin-google-cloud.gemspec +1 -1
- data/lib/fluent/plugin/out_google_cloud.rb +1 -1
- data/test/plugin/base_test.rb +9 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f11ddeb5380debeeb3ea6482ba8fce07cce1ac0c
|
4
|
+
data.tar.gz: fa3f075528735a79e0b01f6a9fac777d735146af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f01033d4a357c9ba361fd19e102e40e74b1f166c05ad62d90159497e1d4c3cc7546e72d7887cb13088992afcc69152be5947a70c1fcdf32cfd041d30ad8e5e
|
7
|
+
data.tar.gz: e700a183f766bd8137e852fb3e17888f40a4fa68be0142a113530424aa962e343af0b18149a4e5eb54132abad0e3d9bb40f818db2fa1b60ae3c383c17781d316
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-google-cloud (0.5.4
|
4
|
+
fluent-plugin-google-cloud (0.5.4)
|
5
5
|
fluentd (~> 0.10)
|
6
6
|
google-api-client (> 0.9)
|
7
7
|
googleapis-common-protos (~> 1.3)
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
cool.io (1.4.5)
|
21
21
|
crack (0.4.3)
|
22
22
|
safe_yaml (~> 1.0.0)
|
23
|
-
faraday (0.
|
23
|
+
faraday (0.11.0)
|
24
24
|
multipart-post (>= 1.2, < 3)
|
25
25
|
fluentd (0.14.11)
|
26
26
|
cool.io (~> 1.4.5)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
tzinfo (~> 1.0)
|
33
33
|
tzinfo-data (~> 1.0)
|
34
34
|
yajl-ruby (~> 1.0)
|
35
|
-
google-api-client (0.9.
|
35
|
+
google-api-client (0.9.23)
|
36
36
|
addressable (~> 2.3)
|
37
37
|
googleauth (~> 0.5)
|
38
38
|
httpclient (~> 2.7)
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
http_parser.rb (0.6.0)
|
61
61
|
httpclient (2.8.3)
|
62
62
|
hurley (0.2)
|
63
|
-
json (1.8.
|
63
|
+
json (1.8.6)
|
64
64
|
jwt (1.5.6)
|
65
65
|
little-plugger (1.1.4)
|
66
66
|
logging (2.1.0)
|
@@ -104,7 +104,7 @@ GEM
|
|
104
104
|
faraday (~> 0.9)
|
105
105
|
jwt (~> 1.5)
|
106
106
|
multi_json (~> 1.10)
|
107
|
-
strptime (0.1.
|
107
|
+
strptime (0.1.9)
|
108
108
|
test-unit (3.2.3)
|
109
109
|
power_assert
|
110
110
|
thread_safe (0.3.5)
|
@@ -132,4 +132,4 @@ DEPENDENCIES
|
|
132
132
|
webmock (~> 1.17)
|
133
133
|
|
134
134
|
BUNDLED WITH
|
135
|
-
1.
|
135
|
+
1.14.2
|
@@ -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.5.4
|
13
|
+
gem.version = '0.5.4'
|
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')
|
@@ -39,7 +39,7 @@ module Fluent
|
|
39
39
|
Fluent::Plugin.register_output('google_cloud', self)
|
40
40
|
|
41
41
|
PLUGIN_NAME = 'Fluentd Google Cloud Logging plugin'
|
42
|
-
PLUGIN_VERSION = '0.5.4
|
42
|
+
PLUGIN_VERSION = '0.5.4'
|
43
43
|
|
44
44
|
# Constants for service names.
|
45
45
|
APPENGINE_SERVICE = 'appengine.googleapis.com'
|
data/test/plugin/base_test.rb
CHANGED
@@ -551,8 +551,10 @@ module BaseTest
|
|
551
551
|
d = create_driver
|
552
552
|
d.emit(
|
553
553
|
'int_key' => { 1 => message },
|
554
|
-
'
|
554
|
+
'int_array_key' => { [1, 2, 3, 4] => message },
|
555
|
+
'string_array_key' => { %w(a b c) => message },
|
555
556
|
'hash_key' => { { 'some_key' => 'some_value' } => message },
|
557
|
+
'mixed_key' => { { 'some_key' => %w(a b c) } => message },
|
556
558
|
'symbol_key' => { some_symbol: message },
|
557
559
|
'nil_key' => { nil => message }
|
558
560
|
)
|
@@ -560,13 +562,17 @@ module BaseTest
|
|
560
562
|
end
|
561
563
|
verify_log_entries(1, COMPUTE_PARAMS, 'structPayload') do |entry|
|
562
564
|
fields = get_fields(entry['structPayload'])
|
563
|
-
assert_equal
|
565
|
+
assert_equal 7, fields.size, entry
|
564
566
|
assert_equal message, get_string(get_fields(get_struct(fields \
|
565
567
|
['int_key']))['1']), entry
|
566
568
|
assert_equal message, get_string(get_fields(get_struct(fields \
|
567
|
-
['
|
569
|
+
['int_array_key']))['[1, 2, 3, 4]']), entry
|
570
|
+
assert_equal message, get_string(get_fields(get_struct(fields \
|
571
|
+
['string_array_key']))['["a", "b", "c"]']), entry
|
568
572
|
assert_equal message, get_string(get_fields(get_struct(fields \
|
569
573
|
['hash_key']))['{"some_key"=>"some_value"}']), entry
|
574
|
+
assert_equal message, get_string(get_fields(get_struct(fields \
|
575
|
+
['mixed_key']))['{"some_key"=>["a", "b", "c"]}']), entry
|
570
576
|
assert_equal message, get_string(get_fields(get_struct(fields \
|
571
577
|
['symbol_key']))['some_symbol']), entry
|
572
578
|
assert_equal message, get_string(get_fields(get_struct(fields \
|
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.5.4
|
4
|
+
version: 0.5.4
|
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-01-
|
12
|
+
date: 2017-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -212,9 +212,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '2.0'
|
213
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
|
-
- - "
|
215
|
+
- - ">="
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
217
|
+
version: '0'
|
218
218
|
requirements: []
|
219
219
|
rubyforge_project:
|
220
220
|
rubygems_version: 2.4.8
|