naturalsorter 3.0.23 → 3.0.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9290de5341a8ef7b6b9be56c88f1681f809a3c5228a88747c9e2ea45d6c514cc
4
- data.tar.gz: d4d8428298d684556241c1cdd9d9fb55e87214e1f593808abaa7072fb660ae6d
3
+ metadata.gz: cbe569276e185fc5cdc6baf92059c88772b15f511b9d4a06103cbc696c7e7d8f
4
+ data.tar.gz: 819a0f43d6c7d0f211086f023523833b0a8e50c468ea7f23757d57631eb1dbc0
5
5
  SHA512:
6
- metadata.gz: ea5558167d520a1593f1465f4523cc31d0bda2cf84a0ff0412108d5b15b166e2a71134fda097e16efeb263257d8c95496fb3b7cb756a858797d6fad0b899d56b
7
- data.tar.gz: 4b6347068aac95054d835b9498157c0d68bc71d3ed62790412f977b89c9a9785171c8a463da11888427731e2aeacabf0a2a9f16f016dcf24e687318b138cdcd1
6
+ metadata.gz: fb16130e9dd899f1100eb902bda58b0e47c19120593ec17f3c5b7f656677089f334653ecad88cbecc831dc64c9a9284596a37d09308b1e3b99162391402deb2b
7
+ data.tar.gz: 7995777d57c560a268b79ee53a43330326a13267175925f30fea6c852f16ba6893a533788f4f4877e8531d115f67e2f5f68789ae786c59119461a6c52cade709
@@ -1,3 +1,3 @@
1
1
  module Naturalsorter
2
- VERSION = "3.0.23"
2
+ VERSION = "3.0.24"
3
3
  end
@@ -141,6 +141,7 @@ class VersionTagRecognizer
141
141
  end
142
142
 
143
143
  def self.stable? value
144
+ return true if value.to_s.empty?
144
145
  return false if value.match(/\Adev-/i) || value.match(/-dev\z/i)
145
146
  return false if self.preview?( value )
146
147
 
@@ -3,6 +3,11 @@ require "naturalsorter"
3
3
 
4
4
  describe VersionTagRecognizer do
5
5
 
6
+ it "release? is true for nil" do
7
+ # if nill we assume the latest stable version.
8
+ expect( VersionTagRecognizer.release?(nil)).to be_truthy
9
+ end
10
+
6
11
  it "release? is true" do
7
12
  expect( VersionTagRecognizer.release?("1.1")).to be_truthy
8
13
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naturalsorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.23
4
+ version: 3.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - reiz
8
8
  - versioneye
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-25 00:00:00.000000000 Z
12
+ date: 2020-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -85,7 +85,7 @@ homepage: https://github.com/versioneye/naturalsorter
85
85
  licenses:
86
86
  - MIT
87
87
  metadata: {}
88
- post_install_message:
88
+ post_install_message:
89
89
  rdoc_options: []
90
90
  require_paths:
91
91
  - lib
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubygems_version: 3.0.8
104
- signing_key:
104
+ signing_key:
105
105
  specification_version: 4
106
106
  summary: Sorting arrays in natural order
107
107
  test_files: