logstash-output-mongodb 3.1.7 → 3.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CONTRIBUTORS +1 -0
- data/lib/logstash/outputs/bson/big_decimal.rb +3 -3
- data/lib/logstash/outputs/bson/logstash_event.rb +2 -2
- data/lib/logstash/outputs/bson/logstash_timestamp.rb +2 -2
- data/logstash-output-mongodb.gemspec +1 -1
- data/spec/bson/logstash_timestamp_spec.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7a3e3d232a20bfbc3af9d6b61871affe51c3be6180a1296f820e3426a99209e
|
4
|
+
data.tar.gz: a94f8dafbf7aa1cb5e97af92d8c5f8cd1f134093ef4905c72b504d7db3422612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a463a2f036a449b3ce498401352cd3107a677c3475d0421aa5d04242c79758af8f7b79a65cabd22a0ca2fcb11a853330f97876fd67ec1417fb5d69a8d95cd311
|
7
|
+
data.tar.gz: 7dea1edcb7baccebb5824e32497759edfc58d6c2c421cf668c2da7eef0d00cd97e49c9bb9c7bd08df508416832b4aab2f2156dec5148efd13313132e328034bc
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 3.1.8
|
2
|
+
- Fix tests failture for ELASTIC_STACK_VERSION=8.x. Fail message: undefined method `validating_keys?' for BSON::Config:Module [#89](https://github.com/logstash-plugins/logstash-output-mongodb/pull/89)
|
3
|
+
- Fix MongoDB connection error - Failed to handshake [#88](https://github.com/logstash-plugins/logstash-output-mongodb/issues/88
|
4
|
+
- Fix: Fix failing test spec on jruby-9.3.4.0 [#81](https://github.com/logstash-plugins/logstash-output-mongodb/pull/81)
|
5
|
+
|
1
6
|
## 3.1.7
|
2
7
|
- Fix "wrong number of arguments" error when shipping events to MongoDB (fixes #60, #64, #65) [#66](https://github.com/logstash-plugins/logstash-output-mongodb/pull/66)
|
3
8
|
|
data/CONTRIBUTORS
CHANGED
@@ -16,6 +16,7 @@ Contributors:
|
|
16
16
|
* bitsofinfo (bitsofinfo)
|
17
17
|
* Guy Boertje (guyboertje)
|
18
18
|
* Colin Surprenant (colinsurprenant)
|
19
|
+
* Vitalii Zavadovskyy
|
19
20
|
|
20
21
|
Note: If you've sent us patches, bug reports, or otherwise contributed to
|
21
22
|
Logstash, and you aren't on the list above and want to be, please let us know
|
@@ -33,8 +33,8 @@ module BSON
|
|
33
33
|
# 1.221311.to_bson
|
34
34
|
# @return [ String ] The encoded string.
|
35
35
|
# @see http://bsonspec.org/#/specification
|
36
|
-
def to_bson(buffer = ByteBuffer.new,
|
37
|
-
buffer.put_bytes([ self ].pack(PACK))
|
36
|
+
def to_bson(buffer = ByteBuffer.new, _validating_keys = nil)
|
37
|
+
buffer.put_bytes([ self ].pack(PACK))
|
38
38
|
end
|
39
39
|
|
40
40
|
module ClassMethods
|
@@ -43,7 +43,7 @@ module BSON
|
|
43
43
|
# @param [ BSON ] bson object from Mongo.
|
44
44
|
# @return [ BigDecimal ] The decoded BigDecimal.
|
45
45
|
# @see http://bsonspec.org/#/specification
|
46
|
-
def from_bson(bson)
|
46
|
+
def from_bson(bson, **_options)
|
47
47
|
from_bson_double(bson.get_bytes(8))
|
48
48
|
end
|
49
49
|
|
@@ -30,7 +30,7 @@ module BSON
|
|
30
30
|
# Event.new("field" => "value").to_bson
|
31
31
|
# @return [ String ] The encoded string.
|
32
32
|
# @see http://bsonspec.org/#/specification
|
33
|
-
def to_bson(buffer = ByteBuffer.new,
|
33
|
+
def to_bson(buffer = ByteBuffer.new, _validating_keys = nil)
|
34
34
|
position = buffer.length
|
35
35
|
buffer.put_int32(0)
|
36
36
|
to_hash.each do |field, value|
|
@@ -55,7 +55,7 @@ module BSON
|
|
55
55
|
# @param [ ByteBuffer ] buffer The byte buffer.
|
56
56
|
# @return [ Event ] The decoded bson document.
|
57
57
|
# @see http://bsonspec.org/#/specification
|
58
|
-
def from_bson(buffer)
|
58
|
+
def from_bson(buffer, **_options)
|
59
59
|
hash = Hash.new
|
60
60
|
buffer.get_int32 # Throw away the size.
|
61
61
|
while (type = buffer.get_byte) != NULL_BYTE
|
@@ -25,7 +25,7 @@ module BSON
|
|
25
25
|
# A time is type 0x09 in the BSON spec.
|
26
26
|
BSON_TYPE = 9.chr.force_encoding(BINARY).freeze
|
27
27
|
|
28
|
-
def to_bson(buffer = ByteBuffer.new,
|
28
|
+
def to_bson(buffer = ByteBuffer.new, _validating_keys = nil)
|
29
29
|
time.to_bson(buffer)
|
30
30
|
end
|
31
31
|
|
@@ -34,7 +34,7 @@ module BSON
|
|
34
34
|
# @param [ BSON ] bson encoded time.
|
35
35
|
# @return [ ::LogStash::Timestamp ] The decoded UTC time as a ::LogStash::Timestamp.
|
36
36
|
# @see http://bsonspec.org/#/specification
|
37
|
-
def from_bson(bson)
|
37
|
+
def from_bson(bson, **_options)
|
38
38
|
seconds, fragment = BSON::Int64.from_bson(bson).divmod(1000)
|
39
39
|
new(::Time.at(seconds, fragment * 1000).utc)
|
40
40
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-mongodb'
|
3
|
-
s.version = '3.1.
|
3
|
+
s.version = '3.1.8'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Writes events to MongoDB"
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -20,8 +20,8 @@ dependencies:
|
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '2.99'
|
22
22
|
name: logstash-core-plugin-api
|
23
|
-
prerelease: false
|
24
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
@@ -37,8 +37,8 @@ dependencies:
|
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
39
|
name: logstash-codec-plain
|
40
|
-
prerelease: false
|
41
40
|
type: :runtime
|
41
|
+
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - ">="
|
@@ -51,8 +51,8 @@ dependencies:
|
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '2.6'
|
53
53
|
name: mongo
|
54
|
-
prerelease: false
|
55
54
|
type: :runtime
|
55
|
+
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
@@ -65,8 +65,8 @@ dependencies:
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
name: logstash-devutils
|
68
|
-
prerelease: false
|
69
68
|
type: :development
|
69
|
+
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.3.26
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Writes events to MongoDB
|