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 +5 -5
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -1
- data/lib/naturalsorter/version.rb +1 -1
- data/lib/version_tag_recognizer.rb +22 -14
- data/naturalsorter.gemspec +3 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 882f355aed3f92457ee271ed1b6e8d411362356533559153f4f0bb8ca223ae57
|
4
|
+
data.tar.gz: 7fb4a30607b686aa832f9c4b3ff39da32962aa0cdc995c75e66b97a7d07ad06a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d667855051e443833abecc71b4f40292584c58a81f07e53196448380d138dedc468a23d6f2c987fd2061458f9acf7cca4a869c12cc137abe57f52d42e28dc75
|
7
|
+
data.tar.gz: 8822a77b8a5797f9d0819da08aafbd7aa407f54b2daef5f5010227fc4e7b8770ff60a9e289a2dfe8af75cf7bebd67a0197327b4fb4fb1b55e932103353fdb814
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ve-ns
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.8
|
@@ -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
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
return true if (stability.casecmp(
|
84
|
-
|
85
|
-
|
86
|
-
return true if (stability.casecmp(
|
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("@")
|
data/naturalsorter.gemspec
CHANGED
@@ -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.
|
26
|
-
s.add_development_dependency "coveralls", "0.8.
|
27
|
-
s.add_development_dependency "simplecov", "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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
-
|
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
|