Fix Date class clash when used in pipelines with Date filter and GeoIP and pin open-ssl to 0.10.5 (#12811) (#12812)

This commit contains two fixes
* Fix Date class clash when used in pipelines with Date filter and GeoIP
* Pinned jruby-openssl version 0.10.5 to avoid SSL errors

(cherry picked from commit 6f55066b17)
This commit is contained in:
Andrea Selva 2021-04-13 15:20:12 +02:00 committed by GitHub
parent b852daf202
commit 5a9048c4df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency "mustermann", '~> 1.0.3'
gem.add_runtime_dependency "sinatra", '~> 2'
gem.add_runtime_dependency 'puma', '~> 4'
gem.add_runtime_dependency "jruby-openssl", "~> 0.10" # >= 0.9.13 Required to support TLSv1.2
gem.add_runtime_dependency "jruby-openssl", "= 0.10.5" # >= 0.9.13 Required to support TLSv1.2
gem.add_runtime_dependency "chronic_duration", "~> 0.10"
gem.add_runtime_dependency "treetop", "~> 1" #(MIT license)

View file

@ -106,7 +106,7 @@ module LogStash module Filters module Geoip class DatabaseManager
end
def check_age
days_without_update = (Date.today - Time.at(@metadata.updated_at).to_date).to_i
days_without_update = (::Date.today - ::Time.at(@metadata.updated_at).to_date).to_i
case
when days_without_update >= 30