fluent-plugin-dynamodb-drc 0.0.1 → 0.0.2
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/AUTHORS +1 -1
- data/VERSION +1 -1
- data/fluent-plugin-dynamodb-drc.gemspec +1 -1
- data/lib/fluent/plugin/out_dynamodb.rb +2 -1
- 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: b3b9335496364ca061357888f443fa9835b3fe6e
|
|
4
|
+
data.tar.gz: 4ac0504df2e63d7c54a5380cfb5e11bab9893cbf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccbb6b7883adf5b8ee20b7d1a69cf4c05dd563683bc47676667f79f181e1dcdd53981cc7ffd3f588fd81bed0b8e31421733f93413fca09de1f85800927219c95
|
|
7
|
+
data.tar.gz: 74f5c37f0d7e63ee645cdd7a9603485b7dc3de6d45897a706f8271cbd0a056c2f4956b1962c026156a905b4c2a3dd6d509aaf2db07106440850053ba0e051fc0
|
data/AUTHORS
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
|
@@ -7,9 +7,9 @@ Gem::Specification.new do |gem|
|
|
|
7
7
|
gem.homepage = "https://github.com/kumapon/fluent-plugin-dynamodb-drc"
|
|
8
8
|
gem.summary = gem.description
|
|
9
9
|
gem.version = File.read("VERSION").strip
|
|
10
|
-
gem.authors = ["Takashi Matsuno", "Sadayuki Furuhashi", "CaDs"]
|
|
11
10
|
gem.has_rdoc = false
|
|
12
11
|
#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) }
|
|
@@ -102,7 +102,8 @@ class DynamoDBOutput < Fluent::BufferedOutput
|
|
|
102
102
|
batch_size = 0
|
|
103
103
|
batch_records = []
|
|
104
104
|
chunk.msgpack_each {|record|
|
|
105
|
-
|
|
105
|
+
time = Time.parse(record["time"]) rescue Time.now
|
|
106
|
+
fixed_timestamp = "#{time.to_i}#{rand(1000000000..9999999999)}".to_i
|
|
106
107
|
record["timestamp"] = fixed_timestamp
|
|
107
108
|
batch_records << record
|
|
108
109
|
batch_size += record.to_json.length # FIXME: heuristic
|
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.2
|
|
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-25 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: fluentd
|