logstash-output-cassandra 0.9.2 → 1.0.0

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: 78f16f6e355e8a2bd674abaa603223846b93d6a2
4
- data.tar.gz: fc75adf6e9454ec06afe54586f69290e33e5e3d6
3
+ metadata.gz: 3ccda8e1d446951b213876866064ec3f2ff49342
4
+ data.tar.gz: 16046aa9de45847c9a22713a390d3fe17b4cd3a0
5
5
  SHA512:
6
- metadata.gz: 6f76f725e3806e3bba63558dc277ccc71d0fd71c013cef8e9e849aaa44e2245713f2fb771a642a175ce0b4f71fb73303e4c670f552c6bf781ccf64520fa74c5a
7
- data.tar.gz: ea0c377fc05c44ad9930903040500a88ccc8460b35c54f647c98fa2e99ef103c4c64876a1ce1908433c29d475c571e2363ec7c8103c03a50153aeb702ea1e0b2
6
+ metadata.gz: 867dd5881b618c57caaa3c90c54e2cbafb2bb9baa4b82718e051641227dfdd52e0ad094834ea7ec59d4e18511804d1ba9d73a12a336888cf9b1f60def432e095
7
+ data.tar.gz: 7536a4709aadb39a8deb2d7632d211eb73049c710bf1c99ba29b6e0307a0dc2e0b6bbb4d6452fb34aa322972a7f5420dd199e2331d4017a42281b0e0edb4e896
data/CONTRIBUTORS CHANGED
@@ -5,3 +5,5 @@ Contributors:
5
5
  * Oleg Tokarev (otokarev)
6
6
  * Elad Amit (eladamitpxi, amitelad7)
7
7
  * Valentin Fischer (valentinul)
8
+ * tansinee
9
+ * Pitsanu Swangpheaw (roongr2k7)
@@ -122,8 +122,6 @@ module LogStash; module Outputs; module Cassandra
122
122
  return ::Cassandra::Types::Inet.new(event_data)
123
123
  when 'float'
124
124
  return ::Cassandra::Types::Float.new(event_data)
125
- when 'varchar'
126
- return ::Cassandra::Types::Varchar.new(event_data)
127
125
  when 'text'
128
126
  return ::Cassandra::Types::Text.new(event_data)
129
127
  when 'blob'
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-cassandra'
4
- s.version = '0.9.2'
4
+ s.version = '1.0.0'
5
5
  s.licenses = [ 'Apache License (2.0)' ]
6
6
  s.summary = 'Store events into Cassandra'
7
7
  s.description = 'This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program'
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  # Gem dependencies
22
22
  s.add_runtime_dependency 'concurrent-ruby'
23
23
  s.add_runtime_dependency 'logstash-core', '>= 2.0.0', '< 3.0.0'
24
- s.add_runtime_dependency 'cassandra-driver', '>= 2.0.0', '< 3.0.0'
24
+ s.add_runtime_dependency 'cassandra-driver', '>= 3.0.0'
25
25
  s.add_development_dependency 'cabin', ['~> 0.6']
26
26
  s.add_development_dependency 'longshoreman'
27
27
  s.add_development_dependency 'logstash-devutils'
@@ -86,7 +86,6 @@ describe 'client create actions', :docker => true do
86
86
  { type: 'timestamp', value: 1457606758, assert_override: Helper::get_assert_timestamp_equallity() },
87
87
  { type: 'inet', value: '192.168.99.100' },
88
88
  { type: 'float', value: '10.050000190734863' },
89
- { type: 'varchar', value: 'some chars' },
90
89
  { type: 'text', value: 'some text' },
91
90
  { type: 'blob', value: 'a blob' },
92
91
  { type: 'ascii', value: 'some ascii' },
@@ -5,7 +5,7 @@ require 'cassandra'
5
5
 
6
6
  CONTAINER_NAME = "logstash-output-cassandra-#{rand(999).to_s}"
7
7
  CONTAINER_IMAGE = 'cassandra'
8
- CONTAINER_TAG = '2.2'
8
+ CONTAINER_TAG = '3'
9
9
 
10
10
  module CassandraHelper
11
11
  def get_host_ip
@@ -108,7 +108,6 @@ RSpec.describe LogStash::Outputs::Cassandra::EventParser do
108
108
  { :name => 'timestamp', :type => ::Cassandra::Types::Timestamp, :value => 1457606758, expected: Time.at(1457606758) },
109
109
  { :name => 'inet', :type => ::Cassandra::Types::Inet, :value => '0.0.0.0' },
110
110
  { :name => 'float', :type => ::Cassandra::Types::Float, :value => '10.15' },
111
- { :name => 'varchar', :type => ::Cassandra::Types::Varchar, :value => 'a varchar' },
112
111
  { :name => 'text', :type => ::Cassandra::Types::Text, :value => 'some text' },
113
112
  { :name => 'blob', :type => ::Cassandra::Types::Blob, :value => '12345678' },
114
113
  { :name => 'ascii', :type => ::Cassandra::Types::Ascii, :value => 'some ascii' },
@@ -261,7 +260,7 @@ RSpec.describe LogStash::Outputs::Cassandra::EventParser do
261
260
 
262
261
  describe 'ignore_bad_values is turned on' do
263
262
  [
264
- { :name => 'timestamp', :value => 'i dont have to_time', :expected => Time::parse('1970-01-01 00:00:00 +0000') },
263
+ { :name => 'timestamp', :value => 'i dont have to_time', :expected => Time::parse('1970-01-01 00:00:00 +0000').localtime },
265
264
  { :name => 'inet', :value => 'i am not an inet address', :expected => '0.0.0.0' },
266
265
  { :name => 'float', :value => 'i am not a float', :expected => 0.0 },
267
266
  { :name => 'bigint', :value => 'i am not a bigint', :expected => 0 },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-cassandra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PerimeterX
@@ -48,9 +48,6 @@ dependencies:
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - '>='
51
- - !ruby/object:Gem::Version
52
- version: 2.0.0
53
- - - <
54
51
  - !ruby/object:Gem::Version
55
52
  version: 3.0.0
56
53
  name: cassandra-driver
@@ -59,9 +56,6 @@ dependencies:
59
56
  version_requirements: !ruby/object:Gem::Requirement
60
57
  requirements:
61
58
  - - '>='
62
- - !ruby/object:Gem::Version
63
- version: 2.0.0
64
- - - <
65
59
  - !ruby/object:Gem::Version
66
60
  version: 3.0.0
67
61
  - !ruby/object:Gem::Dependency