spdx 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spdx.rb +3 -2
- data/lib/spdx/version.rb +1 -1
- data/spec/spdx_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab443ec15cd26651f98c53f1b6cdfc8c59711936
|
4
|
+
data.tar.gz: 06b2126b9e7d71f6c5fdfaa2b74a6032a7caac26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84188b5e576e014bb51822b0b32c07a847eba6a731377ea77420fb42ee36e8bbfd44047d4950cf68da1c38dbd44a01f64ccb1dc3ba8ec8e6823e215eae705f53
|
7
|
+
data.tar.gz: 3e1c6e18907bf3f0f9387df523da8041975977f5480b8031a027929e3dd863736325a8d6cf5593e75e5b17fed527ea85b3f233a19f5e20125e474fa48b3d2e96
|
data/lib/spdx.rb
CHANGED
@@ -34,7 +34,7 @@ module Spdx
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.stop_words
|
37
|
-
%w(version software the right)
|
37
|
+
%w(version software the or right)
|
38
38
|
end
|
39
39
|
|
40
40
|
def self.find_by_name(name)
|
@@ -43,7 +43,7 @@ module Spdx
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.find_by_special_case(name)
|
46
|
-
lookup(special_cases[name.downcase])
|
46
|
+
lookup(special_cases[name.downcase.strip])
|
47
47
|
end
|
48
48
|
|
49
49
|
def self.special_cases
|
@@ -139,6 +139,7 @@ module Spdx
|
|
139
139
|
'cddl 1.1' => 'CDDL-1.1',
|
140
140
|
'epl' => 'EPL-1.0',
|
141
141
|
'mit-license' => 'MIT',
|
142
|
+
'(mit or x11)' => 'MIT',
|
142
143
|
'iscl' => 'ISC',
|
143
144
|
'wtf' => 'WTFPL',
|
144
145
|
'2-clause bsdl' => 'BSD-2-clause',
|
data/lib/spdx/version.rb
CHANGED
data/spec/spdx_spec.rb
CHANGED
@@ -68,6 +68,7 @@ describe Spdx do
|
|
68
68
|
expect(Spdx.find('GPL').name).to eq('GNU General Public License v2.0 or later')
|
69
69
|
expect(Spdx.find('GNU LESSER GENERAL PUBLIC LICENSE').name).to eq('GNU Lesser General Public License v2.1 or later')
|
70
70
|
expect(Spdx.find('New BSD License').name).to eq('BSD 3-clause "New" or "Revised" License')
|
71
|
+
expect(Spdx.find('(MIT OR X11) ').name).to eq('MIT License')
|
71
72
|
end
|
72
73
|
end
|
73
74
|
end
|