fluent-plugin-dynamodb-drc 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/fluent-plugin-dynamodb-drc.gemspec +1 -1
- data/lib/fluent/plugin/out_dynamodb.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb2804881e2615cae0155a19602dd5d77e4d8560
|
4
|
+
data.tar.gz: 208f95279186349209e25af2401b7fcea8e9ecc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cb59e95dabf59c43b027c6aee78002cd65dcfa47be47826860f5f9be9b972fa5d109b703980092ac15a390afbd8b73491e844a68eb6b9a5ed9981be10b1cf23
|
7
|
+
data.tar.gz: 086206463d3ca350faf7943f1f75ce09c0b5c78482e83e3001524cc7780bdb5dcaeea248849f8a68c098fac8cf51ad2ccd18c32cfbf9e2e2237f3fb7e479de78
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = gem.description
|
9
9
|
gem.version = File.read("VERSION").strip
|
10
10
|
gem.has_rdoc = false
|
11
|
+
gem.authors = ["Takashi Matsuno", "Sadayuki Furuhashi", "CaDs"]
|
11
12
|
#gem.platform = Gem::Platform::RUBY
|
12
|
-
gem.authors = ["Takashi Matsuno", "Sadayuki Furuhashi", "CaDs"]
|
13
13
|
gem.files = `git ls-files`.split("\n")
|
14
14
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
15
15
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
@@ -105,6 +105,8 @@ class DynamoDBOutput < Fluent::BufferedOutput
|
|
105
105
|
time = Time.parse(record["time"]) rescue Time.now
|
106
106
|
fixed_timestamp = "#{time.to_i}#{rand(1000000000..9999999999)}".to_i
|
107
107
|
record["timestamp"] = fixed_timestamp
|
108
|
+
#Ensuring no empty attributes to avoid Dynamodb errors
|
109
|
+
record.each{|k,v| record[k] = "nil" if v == ""}
|
108
110
|
batch_records << record
|
109
111
|
batch_size += record.to_json.length # FIXME: heuristic
|
110
112
|
if batch_records.size >= BATCHWRITE_ITEM_LIMIT || batch_size >= BATCHWRITE_CONTENT_SIZE_LIMIT
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-dynamodb-drc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Matsuno
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-09-
|
13
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|