spdx 1.4.2 → 1.4.3
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 +5 -0
- data/lib/spdx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4968b8737650d25a364851fb21ee3d5125dd0db
|
4
|
+
data.tar.gz: d2f9c91165058bc3993b71ffe9f05c35ee8f976e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f1fccf82e0dea457b7fc74da3958718efbdb720e1a92345eaadf90a016f05fc3d7462161a71cb83441a9e4603f6cec3476e7e4bf2c1a5dc5fdad4584a3001f2
|
7
|
+
data.tar.gz: 0e9eecc1e99674204396c0015dc4d45c0303095fb47a4c9f0f8fe79a32bea60fdbf599d65727c02fa79465d070346b7e56cd4dda71c3653168b312d1b2d87922
|
data/lib/spdx.rb
CHANGED
@@ -7,6 +7,7 @@ module Spdx # rubocop:disable Metrics/ModuleLength
|
|
7
7
|
def self.find(name)
|
8
8
|
name = name.strip
|
9
9
|
return nil if commercial?(name)
|
10
|
+
return nil if non_spdx?(name)
|
10
11
|
|
11
12
|
search(name)
|
12
13
|
end
|
@@ -21,6 +22,10 @@ module Spdx # rubocop:disable Metrics/ModuleLength
|
|
21
22
|
name.casecmp('commercial').zero?
|
22
23
|
end
|
23
24
|
|
25
|
+
def self.non_spdx?(name)
|
26
|
+
['standard pil license'].include? name.downcase
|
27
|
+
end
|
28
|
+
|
24
29
|
def self.lookup(name)
|
25
30
|
return false if name.nil?
|
26
31
|
return SpdxLicenses[name] if SpdxLicenses.exist?(name)
|
data/lib/spdx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spdx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fuzzy_match
|