fluent-plugin-cassandra-driver 0.0.14 → 0.0.15
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-cassandra-driver.gemspec +2 -2
- data/lib/fluent/plugin/out_cassandra_driver.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28fa558e6127c66fb182fe8d1104a5fdc5204076
|
4
|
+
data.tar.gz: f8718a9286ffea17c416b4f3fd6cc04ee296caa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92355d473f47ef65c8d6099047f7ec7bc13f5b1572304b8cc622a0d98e454aeaa207585a74fe7ac16ae29e3441d5c687043db008c8535073671d1d5b901b4b49
|
7
|
+
data.tar.gz: 6c45d6f9de27b566be91975eb9b06ad784a231d9d121bc44f650a56dfc15b23d2d65bf8fa3cadfd5ec4b321c103c7e825da86da4f8f3e67c39bdbf21f654d3b4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.15
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: fluent-plugin-cassandra-driver 0.0.
|
5
|
+
# stub: fluent-plugin-cassandra-driver 0.0.15 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "fluent-plugin-cassandra-driver".freeze
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.15"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
@@ -89,10 +89,9 @@ module Fluent
|
|
89
89
|
|
90
90
|
def build_insert_values(schema_keys, data_keys, record, pop_data_keys)
|
91
91
|
values = data_keys.map.with_index do |key, index|
|
92
|
-
value =
|
93
|
-
type = self.schema[schema_keys[index]]
|
92
|
+
value = record[key]
|
94
93
|
|
95
|
-
case
|
94
|
+
case self.schema[schema_keys[index]]
|
96
95
|
when :string
|
97
96
|
value = value.to_s
|
98
97
|
when :integer
|
@@ -105,6 +104,8 @@ module Fluent
|
|
105
104
|
value
|
106
105
|
end
|
107
106
|
|
107
|
+
data_keys.each_index { |index| record.delete(index) } if pop_data_keys
|
108
|
+
|
108
109
|
# if we have one more schema key than data keys,
|
109
110
|
# we can then infer that we should store the event
|
110
111
|
# as a string representation of the corresponding
|