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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbd6e0e8044c6218a6bcaa3a79b33912995ad86f
4
- data.tar.gz: db525a0b0e0c2dd9d38800a135f2ada37e72a216
3
+ metadata.gz: ab443ec15cd26651f98c53f1b6cdfc8c59711936
4
+ data.tar.gz: 06b2126b9e7d71f6c5fdfaa2b74a6032a7caac26
5
5
  SHA512:
6
- metadata.gz: 44978203081580ed55d20e14573d53d92d08420e967749ffe9519b51ad756ed180d8504eb06ab9886adabc3f01bd5729888e7a31a7154816a95779188d09c363
7
- data.tar.gz: e8f6381e24382ba3da855d9bb5419adb79834cf1521cdd2cb9250159597fe2c237df296ff196b07681467950e8e1f8a2d42387f3a52c6a3576a9c9c15dead34f
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
@@ -1,3 +1,3 @@
1
1
  module Spdx
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spdx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt