anschel 0.7.14 → 0.7.15

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: 1f0c3d10796c001fc16c23ccb3edc30d51e5788d
4
- data.tar.gz: 32ce3c011cf4af31a47532b1e67436cec033fb33
3
+ metadata.gz: 5f5bfedf387cbaae90f275204da37cec07e5f6ed
4
+ data.tar.gz: 8517514f1bb1b87708822b17b4af98bd6dd3959d
5
5
  SHA512:
6
- metadata.gz: a8e9694e66e623c5f1dfeb982119bcf69444b27887486a676e82e2c9c607774ff2d40d9a972e15382615a00215315360a7cfb52206caaec1752a007a7c0a84bd
7
- data.tar.gz: 29b0e4269ba2722b3f0edb67890f30aa25a31d84a462976dada2181c86f3aa184acf4ab7ba57a0079fbc8b7bdcc4cc91c0a367d999d2c26300862c3323884825
6
+ metadata.gz: 25f4ad48a2a31ae0c2787a4a86a39016a144251db7a52469a0d7cb800fd0e46f69b8746d00a958066ebf0815ad8768caf8dd0dd7c08a95968f310afcc616562b
7
+ data.tar.gz: 6dab05076223d702206aefe10db3c37d67155bc4bc8d89f9c52e92435d1466169e554373b2a78a5cc0aa73fba69c066d485afe92af09a0b8e38531333b3d523d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.14
1
+ 0.7.15
@@ -14,7 +14,7 @@ module Anschel
14
14
  default_index = config.delete(:default_index) || '.anschel'
15
15
  qsize = config.delete(:queue_size) || 2000
16
16
  bsize = config.delete(:bulk_size) || 500
17
- timeout = config.delete(:bulk_timeout) || 0.5
17
+ timeout = config.delete(:bulk_timeout) || 2.0
18
18
  slice = timeout / bsize
19
19
  client = ::Elasticsearch::Client.new config
20
20
  client.transport.reload_connections!
@@ -26,7 +26,7 @@ module Anschel
26
26
  events = []
27
27
  count = 0
28
28
  start = Time.now.to_f
29
- until (Time.now.to_f - start > timeout) || ((count += 1) > bsize)
29
+ until (Time.now.to_f - start > timeout) || (count > bsize)
30
30
  begin
31
31
  events.push @queue.shift(true)
32
32
  count += 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anschel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.14
4
+ version: 0.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
@@ -122,6 +122,34 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.6'
125
+ - !ruby/object:Gem::Dependency
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - '='
129
+ - !ruby/object:Gem::Version
130
+ version: 3.3.3
131
+ name: ruby-maven
132
+ prerelease: false
133
+ type: :runtime
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '='
137
+ - !ruby/object:Gem::Version
138
+ version: 3.3.3
139
+ - !ruby/object:Gem::Dependency
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - '='
143
+ - !ruby/object:Gem::Version
144
+ version: 3.3.3
145
+ name: ruby-maven-libs
146
+ prerelease: false
147
+ type: :runtime
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '='
151
+ - !ruby/object:Gem::Version
152
+ version: 3.3.3
125
153
  description: Logstash-like for moving events from Kafka into Elasticsearch.
126
154
  email: sczizzo@gmail.com
127
155
  executables: