fluent-plugin-cassandra-driver 0.0.22 → 0.0.23

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: 96b5cb6dd1c862945bfcb9e2c46471000650de8b
4
- data.tar.gz: b8e23dd5ede389467896af6123bd5c44ca204e43
3
+ metadata.gz: 942907da161e254b6cea03ac2d2b2222e7d2f908
4
+ data.tar.gz: 8313fa790aceda3826d47790866f64446ac4d4b5
5
5
  SHA512:
6
- metadata.gz: 08ff01005dd43c3e532f43682836a44b3015d02bc261135593ba3d67a1ede52d828a155b04f93e1ae8197751a00296d811cbade76c009fd3445d7f33cf8ee923
7
- data.tar.gz: 6742746cf2c5a61946bf53bccc082c9eeab3c1dbd978aa4160cae0a595d3956bbf9421fb0e07a0af445ef9701fbb182852247152a6b582658f8b3bf6d20c0b74
6
+ metadata.gz: 9095eae5759abde972166a1366b23d359902880a9bcefc05ff318ad51c3626b1b5653763d193862ec4b1f1a5a9c2ee026f93dfc23a00516c43a873f8f9c63cf1
7
+ data.tar.gz: cf30a475184e29ec9e949e73908ea8ef19483bf5b996506d17e9ac0f18cb7c9bc390513efdd06f0164fc2dbe20bdab430650171419bc5e346cde6657513b34c7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.22
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.22 ruby lib
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.22"
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.with_index { |column_family_key, mapping|
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.each_with_index { |column_family_key, mapping|
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 in that column
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cassandra-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Lukyanov