logstash-core 1.5.0.rc3.snapshot4-java → 1.5.0.rc3.snapshot5-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of logstash-core might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bb968a4b584644456a6f45c2e3d7adcf8da5e9c
4
- data.tar.gz: 3439e9929c164e31daf11a7061e3990f71ecadf8
3
+ metadata.gz: b1c9fe5efa2eae3efa40f32b058a10a5201c352f
4
+ data.tar.gz: a769737f004ceed94d87933904d82b05df70c5e8
5
5
  SHA512:
6
- metadata.gz: 0882eab882091ad08fb1eee07b681665d34418d9fc669362257c236a09a9be8da34f68b3be6401febc1cded7a91c2f49134eb2b1e903d2348fb56d259b410c39
7
- data.tar.gz: 6688bd4c05c3c25c40b3b9f0806c6370fb24abbb8f34bb89c631c7746d1f4b00dd589e1e066f2742d38b63857d6cf440201c11da49f13e7310c67f597513f376
6
+ metadata.gz: 07a26162df6fe3c4273446dbd8581324bfaa4b0d0c903179d0255105bbbcf60e0192423646780913eeb3a011d7309c404f1b65731cdbb4bf48255cea26f53a86
7
+ data.tar.gz: 9f6ea881b81ad9b2d6368e5f35b888902dbdb0dcf0b29ab786a7be5ab48d829442d6e4419e712ecb56642bafbb32d6f818fe4ab4cc3aed11bda2cd5744bd2925
@@ -295,11 +295,7 @@ class LogStash::Event
295
295
 
296
296
  public
297
297
  def to_hash_with_metadata
298
- if @metadata.nil?
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::Environment.bundler_setup!
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? || !local_gems.empty?
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
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # The version of logstash.
3
- LOGSTASH_VERSION = "1.5.0-rc3.snapshot4"
3
+ LOGSTASH_VERSION = "1.5.0-rc3.snapshot5"
4
4
 
5
5
  # Note to authors: this should not include dashes because 'gem' barfs if
6
6
  # you include a dash in the version string.
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.snapshot4
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-20 00:00:00.000000000 Z
13
+ date: 2015-04-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cabin