fluent-plugin-cassandra-driver 0.0.22 → 0.0.23
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 -4
- 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: 942907da161e254b6cea03ac2d2b2222e7d2f908
|
4
|
+
data.tar.gz: 8313fa790aceda3826d47790866f64446ac4d4b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9095eae5759abde972166a1366b23d359902880a9bcefc05ff318ad51c3626b1b5653763d193862ec4b1f1a5a9c2ee026f93dfc23a00516c43a873f8f9c63cf1
|
7
|
+
data.tar.gz: cf30a475184e29ec9e949e73908ea8ef19483bf5b996506d17e9ac0f18cb7c9bc390513efdd06f0164fc2dbe20bdab430650171419bc5e346cde6657513b34c7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.23
|
@@ -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.23 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.23"
|
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]
|
@@ -87,7 +87,7 @@ module Fluent
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def build_insert_values(record)
|
90
|
-
values = self.schema.map
|
90
|
+
values = self.schema.map { |column_family_key, mapping|
|
91
91
|
if mapping.class == Hash
|
92
92
|
record_key, type = mapping.first
|
93
93
|
else
|
@@ -108,15 +108,15 @@ module Fluent
|
|
108
108
|
value = value.to_s
|
109
109
|
end
|
110
110
|
|
111
|
-
[column_family_key, value]
|
111
|
+
[column_family_key.to_s, value]
|
112
112
|
}.to_h
|
113
113
|
|
114
|
-
self.schema.
|
114
|
+
self.schema.each { |column_family_key, mapping|
|
115
115
|
record.delete(mapping.class == Hash ? mapping.first.first : column_family_key)
|
116
116
|
} if self.pop_data_keys
|
117
117
|
|
118
118
|
# if we have one more data in record and json column
|
119
|
-
# then store all remaining data
|
119
|
+
# then store all remaining data into that column
|
120
120
|
values[self.json_column] = record.to_json if self.json_column and record.length > 0
|
121
121
|
|
122
122
|
values
|