naturalsorter 3.0.27 → 3.0.28

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: fb70054db38c144413c6377ae9baea628e58446b499f6e33ee9324f733c5391a
4
- data.tar.gz: d98475af5e41de9fb63d0e75063ab9355fdfe0e4359bed11063047347e5259d4
3
+ metadata.gz: 2c3dd53e850c9f543a6720acd9076261217782b794a42bf911cad9e5ffde9b72
4
+ data.tar.gz: 9512924d1830308f8b6c16d272e9c450551efc04b2456dc0aea884216c223089
5
5
  SHA512:
6
- metadata.gz: 2f9e67ae41ed2dfcf070c47019ad909172921ee3b56cae2037446202a4189196a96792fc96ba8d4c5636520fa4ce041dc0863456fde965065465d4c1f280a8a0
7
- data.tar.gz: 440e2a3e8b4d4572dcff510c4acd5f44cd96885cf8ed373f10972dcee11d4d73393c73bbbfb26744cfa5beb99ce4bf8c04c0539edd19aa413a0b3df2216abf36
6
+ metadata.gz: 6671128838d34e04e4598030edc12be861902680be0fb952f360fb1e089fe33c0c6cbdaa928ea600f15680bb2fd0254969d0480dc5b560d1f0124d418ce61ddf
7
+ data.tar.gz: 9b38c32f74cc56aff89feda824e3430c24f8ee8e3d3cde08776bf94f208c991fab2ba84763f63b99e489957c4aade6e8f23c4984e9870d62d16b2ad6258e3834
@@ -1,3 +1,3 @@
1
1
  module Naturalsorter
2
- VERSION = "3.0.27"
2
+ VERSION = "3.0.28"
3
3
  end
@@ -188,7 +188,7 @@ class VersionTagRecognizer
188
188
  end
189
189
 
190
190
  def self.pre? value
191
- value.to_s.match(/.*pre.*$/i)
191
+ value.to_s.match(/.*pre.*$/i) || value.to_s.match(/.*insiders.*$/i)
192
192
  end
193
193
 
194
194
  def self.jbossorg? value
@@ -349,6 +349,9 @@ describe VersionTagRecognizer do
349
349
  it "does fit stability" do
350
350
  expect( VersionTagRecognizer.does_it_fit_stability?( "2.2.1", "stable" )).to be_truthy
351
351
  end
352
+ it "does not fit stability" do
353
+ expect( VersionTagRecognizer.does_it_fit_stability?( "3.9.2-insiders.20200509", "stable" )).to be_falsey
354
+ end
352
355
  it "does not fit stability" do
353
356
  expect( VersionTagRecognizer.does_it_fit_stability?( "2.2.1-BETA", "stable" )).to be_falsey
354
357
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naturalsorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.27
4
+ version: 3.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - reiz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-23 00:00:00.000000000 Z
12
+ date: 2020-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec