mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
5e9644b7a5
commit
d805cc76aa
1 changed files with 22 additions and 18 deletions
|
@ -11,7 +11,10 @@ require 'logstash/version'
|
||||||
# see https://github.com/elasticsearch/logstash/issues/2556 and https://github.com/rubygems/rubygems/issues/1070
|
# see https://github.com/elasticsearch/logstash/issues/2556 and https://github.com/rubygems/rubygems/issues/1070
|
||||||
#
|
#
|
||||||
# this code is from Rubygems v2.1.9 in JRuby 1.7.17. Per tickets this issue should be solved at JRuby >= 1.7.20.
|
# this code is from Rubygems v2.1.9 in JRuby 1.7.17. Per tickets this issue should be solved at JRuby >= 1.7.20.
|
||||||
class Gem::Specification
|
|
||||||
|
# this method implementation works for Rubygems version 2.1.0 and up, verified up to 2.4.6
|
||||||
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new("2.1.0") && Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.5.0")
|
||||||
|
class Gem::Specification
|
||||||
def self.reset
|
def self.reset
|
||||||
@@dirs = nil
|
@@dirs = nil
|
||||||
Gem.pre_reset_hooks.each { |hook| hook.call }
|
Gem.pre_reset_hooks.each { |hook| hook.call }
|
||||||
|
@ -33,6 +36,7 @@ class Gem::Specification
|
||||||
end
|
end
|
||||||
Gem.post_reset_hooks.each { |hook| hook.call }
|
Gem.post_reset_hooks.each { |hook| hook.call }
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module LogStash
|
module LogStash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue