logstash-core 1.5.4.snapshot1-java → 1.5.4.snapshot2-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8e1255f9f6595ad51fd094dc169a906d3a7e284
4
- data.tar.gz: 4adf73e14a492f1c35c64fe801a0be994a84f4b1
3
+ metadata.gz: edafc40bc06b45e7b5063039be8a83beac5322b9
4
+ data.tar.gz: 7420cdcd0b76058f7a58d0ba08ce6f1c98290e13
5
5
  SHA512:
6
- metadata.gz: 697f91c60e759b18062de6b14c36e51204a7cfbbb7998ba1c9f0b76563fbc0e0a408a417cd32ed6cd2d191ce918fac3d83f71058e654bf17a8e1d536a24ad8bb
7
- data.tar.gz: 008cc5a6687a3f694369634e6e555ce13301dd571ba78d3b198bb9736f5a1ee83bf48bfb9dd0e6177cd791dfeda3a05054cb3ae99bf3ac8e2a557bd080f8ece5
6
+ metadata.gz: ef13f617b3c77e4547cbb4deae05319b75169ddb3a4030bd85fbc39c44c6f9e5daf4e8051a8e1f6346371677d18cbceccf37d3b107246c2d7329eead1653c2bb
7
+ data.tar.gz: 788e9784af3c008b7b9a5df9674f1d921ee6f69eb133d0584a9c88625c2c3037f60fa662527ed293bc58e5922c01e775d7cfec393f54c936e06864d198ab4672
@@ -30,6 +30,9 @@ module LogStash::Util::JavaVersion
30
30
  # The regex below parses this all correctly http://rubular.com/r/sInQc3Nc7f
31
31
 
32
32
  match = version_string.match(/\A(\d+)\.(\d+)\.(\d+)(_(\d+))?(-(.+))?\Z/)
33
+
34
+ return nil unless match
35
+
33
36
  major, minor, patch, ufull, update, bfull, build = match.captures
34
37
 
35
38
  {
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # The version of logstash.
3
- LOGSTASH_VERSION = "1.5.4.snapshot1"
3
+ LOGSTASH_VERSION = "1.5.4.snapshot2"
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.
@@ -31,6 +31,14 @@ describe "LogStash::Util::JavaVersion" do
31
31
  expect(mod.parse_java_version(nil)).to be_nil
32
32
  end
33
33
 
34
+ it "should return nil on non-hotspot javas" do
35
+ # Not sure this is what is being returned, but it doesn't match the
36
+ # regex, which is the point
37
+ expect(mod.parse_java_version("JCL - 20140103_01 based on Oracle 7u51-b11
38
+
39
+ ")).to be_nil
40
+ end
41
+
34
42
  shared_examples("version parsing") do |desc, string, major, minor, patch, update, build|
35
43
  context("#{desc} with version #{string}") do
36
44
  subject(:parsed) { LogStash::Util::JavaVersion.parse_java_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.4.snapshot1
4
+ version: 1.5.4.snapshot2
5
5
  platform: java
6
6
  authors:
7
7
  - Jordan Sissel