logstash-core 1.5.0.rc3.snapshot4-java → 1.5.0.rc3.snapshot5-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of logstash-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/logstash/event.rb +1 -5
- data/lib/logstash/pluginmanager/uninstall.rb +2 -2
- data/lib/logstash/pluginmanager/update.rb +2 -1
- data/lib/logstash/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1c9fe5efa2eae3efa40f32b058a10a5201c352f
|
4
|
+
data.tar.gz: a769737f004ceed94d87933904d82b05df70c5e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07a26162df6fe3c4273446dbd8581324bfaa4b0d0c903179d0255105bbbcf60e0192423646780913eeb3a011d7309c404f1b65731cdbb4bf48255cea26f53a86
|
7
|
+
data.tar.gz: 9f6ea881b81ad9b2d6368e5f35b888902dbdb0dcf0b29ab786a7be5ab48d829442d6e4419e712ecb56642bafbb32d6f818fe4ab4cc3aed11bda2cd5744bd2925
|
data/lib/logstash/event.rb
CHANGED
@@ -295,11 +295,7 @@ class LogStash::Event
|
|
295
295
|
|
296
296
|
public
|
297
297
|
def to_hash_with_metadata
|
298
|
-
|
299
|
-
to_hash
|
300
|
-
else
|
301
|
-
to_hash.merge(METADATA => @metadata)
|
302
|
-
end
|
298
|
+
@metadata.empty? ? to_hash : to_hash.merge(METADATA => @metadata)
|
303
299
|
end
|
304
300
|
|
305
301
|
public
|
@@ -13,7 +13,7 @@ class LogStash::PluginManager::Uninstall < LogStash::PluginManager::Command
|
|
13
13
|
parameter "PLUGIN", "plugin name"
|
14
14
|
|
15
15
|
def execute
|
16
|
-
LogStash::
|
16
|
+
LogStash::Bundler.setup!
|
17
17
|
|
18
18
|
signal_error("File #{LogStash::Environment::GEMFILE_PATH} does not exist or is not writable, aborting") unless File.writable?(LogStash::Environment::GEMFILE_PATH)
|
19
19
|
|
@@ -31,7 +31,7 @@ class LogStash::PluginManager::Uninstall < LogStash::PluginManager::Command
|
|
31
31
|
# any errors will be logged to $stderr by invoke_bundler!
|
32
32
|
# output, exception = LogStash::Bundler.invoke_bundler!(:install => true, :clean => true)
|
33
33
|
output = LogStash::Bundler.invoke_bundler!(:install => true)
|
34
|
-
|
34
|
+
|
35
35
|
remove_unused_locally_installed_gems!
|
36
36
|
end
|
37
37
|
rescue => exception
|
@@ -14,7 +14,7 @@ class LogStash::PluginManager::Update < LogStash::PluginManager::Command
|
|
14
14
|
def execute
|
15
15
|
local_gems = gemfile.locally_installed_gems
|
16
16
|
|
17
|
-
if update_all?
|
17
|
+
if update_all? && !local_gems.empty?
|
18
18
|
error_plugin_that_use_path!(local_gems)
|
19
19
|
else
|
20
20
|
plugins_with_path = plugins_arg & local_gems
|
@@ -95,6 +95,7 @@ class LogStash::PluginManager::Update < LogStash::PluginManager::Command
|
|
95
95
|
# retrieve only the latest spec for all locally installed plugins
|
96
96
|
# @return [Hash] result hash {plugin_name.downcase => plugin_spec}
|
97
97
|
def find_latest_gem_specs
|
98
|
+
LogStash::Bundler.setup!
|
98
99
|
LogStash::PluginManager.find_plugins_gem_specs.inject({}) do |result, spec|
|
99
100
|
previous = result[spec.name.downcase]
|
100
101
|
result[spec.name.downcase] = previous ? [previous, spec].max_by{|s| s.version} : spec
|
data/lib/logstash/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.rc3.
|
4
|
+
version: 1.5.0.rc3.snapshot5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-04-
|
13
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cabin
|