naturalsorter 3.0.5 → 3.0.6

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: e4bcfeb77065843f4df41aebbd0275236fe3ea2b
4
- data.tar.gz: 2a096d344d38ff5c88c3f061b1a72decef62d009
3
+ metadata.gz: 58737aa20c36d264fc2e22b3dd5f2c4b47b2e251
4
+ data.tar.gz: 04522b3ddd849405d3958858fd931568931701a2
5
5
  SHA512:
6
- metadata.gz: e9ec94d6f963303ae144b3e71aaaf2ac73938fac5efdba337a0409188e2b7925eff954c5b16eb317fc39c31b7c5442fc4755b7fc6e8369b380db93358b11becc
7
- data.tar.gz: 468f456b3b7dde55bd4ef1aa9115bc28ad186fb8b5afa8a75584ebe2190258604963574d6597083fe7e02c67f468e9bfd303e8e28a5e3391de018722082b3999
6
+ metadata.gz: 65186ffc2744f6f726a3a8f4f87b489ba51367f1b07390ff3e91af79fe925a23ff75c2c253f6282ab466196e2f73f736c78621677a487fe2f6f3755cc419ca05
7
+ data.tar.gz: caf52dcd2f2cbbf4b7649df387831fb00a6b47709068a199dcf8703c92c82b82148948bf76ac06d3081060ea2d8c39077e002a3abd123b6ca0b7eef855751004
data/README.markdown CHANGED
@@ -26,7 +26,7 @@ Because the default sort method does not recognize the numbers in the string. Th
26
26
 
27
27
  You should add this line to your Gemfile
28
28
 
29
- `gem 'naturalsorter', '3.0.5'`
29
+ `gem 'naturalsorter', '3.0.6'`
30
30
 
31
31
  and run this command in your app root directory
32
32
 
@@ -1,3 +1,3 @@
1
1
  module Naturalsorter
2
- VERSION = "3.0.5"
2
+ VERSION = "3.0.6"
3
3
  end
data/lib/versioncmp.rb CHANGED
@@ -117,6 +117,9 @@ class Versioncmp
117
117
  return 1 if ( part2.eql?("0") && part1.match(/^[1-9]+[-_a-zA-Z]+/) )
118
118
  return 1 if ( part1.match(/^[0-9]+$/) && !part2.match(/^[0-9]+$/) )
119
119
  return -1;
120
+ rescue => e
121
+ p e.message
122
+ return -1
120
123
  end
121
124
 
122
125
 
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.5
4
+ version: 3.0.6
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: 2015-03-29 00:00:00.000000000 Z
12
+ date: 2015-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubyforge_project: naturalsorter
73
- rubygems_version: 2.4.3
73
+ rubygems_version: 2.4.6
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Sorting arrays in natural order