spdx 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spdx.rb +5 -0
  3. data/lib/spdx/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab3e6557189a1de56e427e3fb850c5e621b1d090
4
- data.tar.gz: c49c6f91cf60a21b90332ad232a062ddf8544aaa
3
+ metadata.gz: d4968b8737650d25a364851fb21ee3d5125dd0db
4
+ data.tar.gz: d2f9c91165058bc3993b71ffe9f05c35ee8f976e
5
5
  SHA512:
6
- metadata.gz: a597db243044fc4922958419fb0969e3411df16a4d384d34f16a4c404be00ccc2184ab80cceb29fc0a2add60df0d7beb6e13d8def2aeee2a2952a74e8546ecdc
7
- data.tar.gz: 86b3640405a433ae217476cec7bf27e9e161ea08724716675d732bc4c1e04ced1feb8349720efa7fa668a089170221b853d5803e272e78ccdb9b51c289adaa41
6
+ metadata.gz: 7f1fccf82e0dea457b7fc74da3958718efbdb720e1a92345eaadf90a016f05fc3d7462161a71cb83441a9e4603f6cec3476e7e4bf2c1a5dc5fdad4584a3001f2
7
+ data.tar.gz: 0e9eecc1e99674204396c0015dc4d45c0303095fb47a4c9f0f8fe79a32bea60fdbf599d65727c02fa79465d070346b7e56cd4dda71c3653168b312d1b2d87922
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Spdx
2
- VERSION = '1.4.2'.freeze
2
+ VERSION = '1.4.3'.freeze
3
3
  end
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.2
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-01-30 00:00:00.000000000 Z
11
+ date: 2019-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fuzzy_match