naturalsorter 3.0.19 → 3.0.20

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
- SHA1:
3
- metadata.gz: 842fac0c8a6456189c21ff91b5a5b297d1af062e
4
- data.tar.gz: 942e788e64f51c95a7052c4bdf83cd8ae5ec3ce3
2
+ SHA256:
3
+ metadata.gz: 882f355aed3f92457ee271ed1b6e8d411362356533559153f4f0bb8ca223ae57
4
+ data.tar.gz: 7fb4a30607b686aa832f9c4b3ff39da32962aa0cdc995c75e66b97a7d07ad06a
5
5
  SHA512:
6
- metadata.gz: 855652f170d372a653a4851309ef6e9fb860130cc87ba576d6fae304838292c5b234d006f930a5a85486b5af0dd8105ddeba19419264be05738043a91e4d6edb
7
- data.tar.gz: f6f5544efb8bbc286db2d7ed68441fd95567d75d67cb24dcd4b80f215f6befa7116ef5ab9fa94566406627207b339cf1e5e426d26365da7efb8ca0029e90a5bf
6
+ metadata.gz: 8d667855051e443833abecc71b4f40292584c58a81f07e53196448380d138dedc468a23d6f2c987fd2061458f9acf7cca4a869c12cc137abe57f52d42e28dc75
7
+ data.tar.gz: 8822a77b8a5797f9d0819da08aafbd7aa407f54b2daef5f5010227fc4e7b8770ff60a9e289a2dfe8af75cf7bebd67a0197327b4fb4fb1b55e932103353fdb814
@@ -0,0 +1 @@
1
+ ve-ns
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.5.8
@@ -1,3 +1,3 @@
1
1
  module Naturalsorter
2
- VERSION = "3.0.19"
2
+ VERSION = "3.0.20"
3
3
  end
@@ -69,26 +69,34 @@ class VersionTagRecognizer
69
69
  val.gsub!(/@.*$/, "") if val.match(/@.*$/)
70
70
  end
71
71
 
72
+
72
73
  def self.does_it_fit_stability?( version_number, stability )
73
- patch = self.patch?( version_number )
74
- stable = self.stable?( version_number )
75
- pre = stable || self.pre?( version_number )
76
- rc = stable || self.rc?( version_number )
77
- beta = rc || self.beta?( version_number )
78
- alpha = beta || self.alpha?( version_number )
79
- snapshot = alpha || self.pre?( version_number ) || self.snapshot?( version_number )
80
-
81
- return true if (stability.casecmp( A_STABILITY_PATCH ) == 0) && patch
82
- return true if (stability.casecmp( A_STABILITY_STABLE ) == 0) && stable
83
- return true if (stability.casecmp( A_STABILITY_PRE ) == 0) && pre
84
- return true if (stability.casecmp( A_STABILITY_RC ) == 0) && rc
85
- return true if (stability.casecmp( A_STABILITY_BETA ) == 0) && beta
86
- return true if (stability.casecmp( A_STABILITY_ALPHA ) == 0) && alpha
74
+ patch = self.patch?( version_number )
75
+ return true if (stability.casecmp( A_STABILITY_PATCH ) == 0) && patch
76
+
77
+ stable = self.stable?( version_number )
78
+ return true if (stability.casecmp( A_STABILITY_STABLE ) == 0) && stable
79
+
80
+ pre = stable || self.pre?( version_number )
81
+ return true if (stability.casecmp( A_STABILITY_PRE ) == 0) && pre
82
+
83
+ rc = stable || self.rc?( version_number )
84
+ return true if (stability.casecmp( A_STABILITY_RC ) == 0) && rc
85
+
86
+ beta = rc || self.beta?( version_number )
87
+ return true if (stability.casecmp( A_STABILITY_BETA ) == 0) && beta
88
+
89
+ alpha = beta || self.alpha?( version_number )
90
+ return true if (stability.casecmp( A_STABILITY_ALPHA ) == 0) && alpha
91
+
92
+ snapshot = alpha || self.pre?( version_number ) || self.snapshot?( version_number )
87
93
  return true if (stability.casecmp( A_STABILITY_SNAPSHOT ) == 0) && snapshot
88
94
  return true if (stability.casecmp( A_STABILITY_DEV ) == 0)
95
+
89
96
  return false
90
97
  end
91
98
 
99
+
92
100
  def self.stability_tag_for( version )
93
101
  if version.match(/@.*$/)
94
102
  spliti = version.split("@")
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  # specify any dependencies here; for example:
23
23
  # s.add_development_dependency "rspec"
24
24
  # s.add_runtime_dependency "rest-client"
25
- s.add_development_dependency "rspec", "3.2.0"
26
- s.add_development_dependency "coveralls", "0.8.3"
27
- s.add_development_dependency "simplecov", "0.10.0"
25
+ s.add_development_dependency "rspec", "3.9.0"
26
+ s.add_development_dependency "coveralls", "0.8.23"
27
+ s.add_development_dependency "simplecov", "0.16.1"
28
28
  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.19
4
+ version: 3.0.20
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-11-25 00:00:00.000000000 Z
12
+ date: 2020-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -17,42 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.2.0
20
+ version: 3.9.0
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.2.0
27
+ version: 3.9.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: coveralls
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 0.8.3
34
+ version: 0.8.23
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 0.8.3
41
+ version: 0.8.23
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: simplecov
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 0.10.0
48
+ version: 0.16.1
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 0.10.0
55
+ version: 0.16.1
56
56
  description: This GEM is sorting Arrays in a natural order. a2 < a10. Beside that
57
57
  this GEM has some methods to sort version strings. It even recognises alpha, beta,
58
58
  RC, dev and stable versions.
@@ -64,6 +64,7 @@ extra_rdoc_files: []
64
64
  files:
65
65
  - ".coveralls.yml"
66
66
  - ".gitignore"
67
+ - ".ruby-gemset"
67
68
  - ".ruby-version"
68
69
  - ".travis.yml"
69
70
  - Gemfile
@@ -99,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  - !ruby/object:Gem::Version
100
101
  version: '0'
101
102
  requirements: []
102
- rubyforge_project: naturalsorter
103
- rubygems_version: 2.4.8
103
+ rubygems_version: 3.0.8
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Sorting arrays in natural order