fluent-plugin-s3-input 0.0.12 → 0.0.13

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: 2cecfa823071a32cba79c4059c123625a4e4c396
4
- data.tar.gz: 68c18e55508aac0dacd2f9df003884bfa6b20af7
3
+ metadata.gz: d8b41da7dd8a7569283c4952d86dc2645d7da4b8
4
+ data.tar.gz: c9d08c9fb91144c87b8dc00db2df1d2bcc7cf7a3
5
5
  SHA512:
6
- metadata.gz: 6ee35e599e51a2bbe69797d1e995a4a14d9704890c1349e2b0887c8269b28310a7da727d4f919bd4df4a8acfb351615991f0d19e933a40cd0add59a5b0e7b5e5
7
- data.tar.gz: 82f263f9cd174c3b1028cff42a37977ba0cef3a80d04b998c4710bf6f888b364331db2f8fe58f31b8e4b0d6ec414ddc9d6f80103951091d3ad6df7593ffac90a
6
+ metadata.gz: a0326823d30f4615e9a8e37d76c38651759578689c7bd41d2df7b5138d735ff8f2b9f52fad940123b8b0b6d6599dec60b02de419e0e94d5ec706f3cccc8b69b1
7
+ data.tar.gz: 7f6bb3071d70bffbd44a0316436d4f9de29ee47033227f375f3326672e12ab691fceda20b8d7c31aca5a22ce69896c78dab41acbc79d7d41fc2239895bc72ed7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-s3-input (0.0.12)
4
+ fluent-plugin-s3-input (0.0.13)
5
5
  aws-sdk
6
6
  fluentd
7
7
  oj
@@ -10,13 +10,13 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- aws-sdk (2.9.21)
14
- aws-sdk-resources (= 2.9.21)
15
- aws-sdk-core (2.9.21)
13
+ aws-sdk (2.9.24)
14
+ aws-sdk-resources (= 2.9.24)
15
+ aws-sdk-core (2.9.24)
16
16
  aws-sigv4 (~> 1.0)
17
17
  jmespath (~> 1.0)
18
- aws-sdk-resources (2.9.21)
19
- aws-sdk-core (= 2.9.21)
18
+ aws-sdk-resources (2.9.24)
19
+ aws-sdk-core (= 2.9.24)
20
20
  aws-sigv4 (1.0.0)
21
21
  cool.io (1.5.0)
22
22
  fluentd (0.14.16)
@@ -32,7 +32,7 @@ GEM
32
32
  http_parser.rb (0.6.0)
33
33
  jmespath (1.3.1)
34
34
  msgpack (1.1.0)
35
- oj (3.0.9)
35
+ oj (3.0.10)
36
36
  rake (11.2.2)
37
37
  rubyzip (1.2.1)
38
38
  serverengine (2.0.5)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-s3-input"
7
- spec.version = "0.0.12"
7
+ spec.version = "0.0.13"
8
8
  spec.authors = ["Anthony Johnson"]
9
9
  spec.email = ["ansoni@gmail.com"]
10
10
  spec.description = %q{Fluentd plugin to read a file from S3 and emit it}
@@ -91,7 +91,11 @@ module Fluent
91
91
  s3_record = {}
92
92
  if @format == 'json'
93
93
  json_data=normalize_json input.read
94
- s3_record = Oj.load(json_data)
94
+ begin
95
+ s3_record = Oj.load(json_data)
96
+ rescue Oj::ParseError=>e
97
+ puts "Error loading #{json_data} - #{e.to_s}"
98
+ end
95
99
  elsif @format == 'csv'
96
100
  data = input.read
97
101
  File.open("/tmp/s3debug", 'w') { |file| file.write(data) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-s3-input
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-22 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake