naturalsorter 3.0.15 → 3.0.16

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
  SHA1:
3
- metadata.gz: 2cb49c41dd12e92691683fc4e40b8f84de78fb98
4
- data.tar.gz: 3de2f502f7f3e2492a4f98d7fbf8af5bdce2dfeb
3
+ metadata.gz: 8f548a085d5594758633be73af1a728ef5c8dc60
4
+ data.tar.gz: 57c3674fd60409962dfbc2d2226078a4f5e242dd
5
5
  SHA512:
6
- metadata.gz: 6f626bf945ab9052d8bbcfa1f6f40ae44414428187ca746a6b1d6d8d1685b563be6a6174f77b0e1f20d968a1be03271ffb22afba2a611aea2dfcae25f5597a82
7
- data.tar.gz: 6f28c830de880e7d717afac609e2d5d323f2114a8174907bd847ee2a8b0fe27f602de40669f9b4b41e594ea5ef0af02df40208c30615c2c9811998d5b520d353
6
+ metadata.gz: 2b694d5c2775b1564563651c26d60598045ff969071222777f4f6ade6d4a67f21bc3bbf1dc6727a89822d21964f8608b5503e78f44268652ebd686d4328beacb
7
+ data.tar.gz: c3ef52d4b829131567b3c3aea73c609fe8ade23be01cb38aa6808bcc062fdbebcc6acd17b5909aadda19cfd65c731ec7489f6a12cafaa9a33b5cfeb892f51dc7
data/README.markdown CHANGED
@@ -27,7 +27,7 @@ Because the default sort method does not recognize the numbers in the string. Th
27
27
 
28
28
  You should add this line to your Gemfile
29
29
 
30
- `gem 'naturalsorter', '3.0.15'`
30
+ `gem 'naturalsorter', '3.0.16'`
31
31
 
32
32
  and run this command in your app root directory
33
33
 
@@ -1,3 +1,3 @@
1
1
  module Naturalsorter
2
- VERSION = "3.0.15"
2
+ VERSION = "3.0.16"
3
3
  end
@@ -153,7 +153,7 @@ class VersionTagRecognizer
153
153
  end
154
154
 
155
155
  def self.rc? value
156
- value.match(/.*rc.*/i)
156
+ value.match(/.*rc.*/i) || value.match(/.*cr.*/i)
157
157
  end
158
158
 
159
159
  def self.snapshot? value
@@ -83,6 +83,10 @@ describe VersionTagRecognizer do
83
83
  expect( VersionTagRecognizer.release?("3.0.0.RC2")).to be_falsey
84
84
  end
85
85
 
86
+ it "release? is false" do
87
+ expect( VersionTagRecognizer.release?("3.0.0.CR1")).to be_falsey
88
+ end
89
+
86
90
  it "release? is false" do
87
91
  expect( VersionTagRecognizer.release?("2.0.x-dev")).to be_falsey
88
92
  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.15
4
+ version: 3.0.16
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: 2017-01-02 00:00:00.000000000 Z
12
+ date: 2017-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec