diff --git a/lib/logstash/outputs/bson/big_decimal.rb b/lib/logstash/outputs/bson/big_decimal.rb index 3b5d4ef..89cabe6 100644 --- a/lib/logstash/outputs/bson/big_decimal.rb +++ b/lib/logstash/outputs/bson/big_decimal.rb @@ -43,7 +43,7 @@ module ClassMethods # @param [ BSON ] bson object from Mongo. # @return [ BigDecimal ] The decoded BigDecimal. # @see http://bsonspec.org/#/specification - def from_bson(bson) + def from_bson(bson, **_options) from_bson_double(bson.get_bytes(8)) end diff --git a/lib/logstash/outputs/bson/logstash_event.rb b/lib/logstash/outputs/bson/logstash_event.rb index 9b4e17c..fe6f5cf 100644 --- a/lib/logstash/outputs/bson/logstash_event.rb +++ b/lib/logstash/outputs/bson/logstash_event.rb @@ -55,7 +55,7 @@ module ClassMethods # @param [ ByteBuffer ] buffer The byte buffer. # @return [ Event ] The decoded bson document. # @see http://bsonspec.org/#/specification - def from_bson(buffer) + def from_bson(buffer, **_options) hash = Hash.new buffer.get_int32 # Throw away the size. while (type = buffer.get_byte) != NULL_BYTE diff --git a/lib/logstash/outputs/bson/logstash_timestamp.rb b/lib/logstash/outputs/bson/logstash_timestamp.rb index 6eae0f0..d8f7deb 100644 --- a/lib/logstash/outputs/bson/logstash_timestamp.rb +++ b/lib/logstash/outputs/bson/logstash_timestamp.rb @@ -34,7 +34,7 @@ module ClassMethods # @param [ BSON ] bson encoded time. # @return [ ::LogStash::Timestamp ] The decoded UTC time as a ::LogStash::Timestamp. # @see http://bsonspec.org/#/specification - def from_bson(bson) + def from_bson(bson, **_options) seconds, fragment = BSON::Int64.from_bson(bson).divmod(1000) new(::Time.at(seconds, fragment * 1000).utc) end