spdx 2.0.11 → 2.0.12

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
  SHA256:
3
- metadata.gz: 2666b65e72b1bd12e9fe3d2214ef5177012c7df9ec9a755cf58910c52d6516cd
4
- data.tar.gz: ee8c457edf2d81a51ba5d54904fd56a5dd121f7494403bd591033485d8cd0396
3
+ metadata.gz: 6b710b626383daa5b897071127070f74863afc3149e016dde2944cfbb4459ee0
4
+ data.tar.gz: fd93bc57de2be909c8129a5893860a7ed01f52b3a661a268a356eeb2ef8d9d18
5
5
  SHA512:
6
- metadata.gz: 728c74fa33a14330baab9d8c542c7700200dcc67e88310905404d4631e55a5ba08c80dc1145d7c4c32fccc3a2d8837692541e296465027729930e593ef54b46f
7
- data.tar.gz: 7719ebb561baa9451c90ca440ae548e76c6562bd260589681ecd8416b57b0fb805f6f28917842f05e0d49f5b91d0c52f026a86e7b56618872c83e9de1a8f9297
6
+ metadata.gz: 51e16e88b99e72293efa83ad7d2615f67b3fff62a04e835fcb661b1ec80dc83080c1b3d75844a203735dd9a76240bb1e80f87146f637eefb491bb07ab48c672d
7
+ data.tar.gz: 94e08d7d2d0fed47528b39ae22f3a9e0db5eaa0775f97d32627d9c66f5d31aa44c951ccbd652367f2c407cafe016cfdb744756900fcebe5d004a9614cd09f483
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spdx
4
- VERSION = "2.0.11"
4
+ VERSION = "2.0.12"
5
5
  end
@@ -9,19 +9,19 @@ grammar SpdxGrammar
9
9
  end
10
10
 
11
11
  rule body
12
- (compound_expression / and / or / with / license / space )* <Body>
12
+ ( compound_expression / and / or / with / license )* <Body>
13
13
  end
14
14
 
15
15
  rule and
16
- "AND" space !reserve_words <LogicalAnd>
16
+ space "AND" space !reserve_words <LogicalAnd>
17
17
  end
18
18
 
19
19
  rule or
20
- "OR" space !reserve_words <LogicalOr>
20
+ space "OR" space !reserve_words <LogicalOr>
21
21
  end
22
22
 
23
23
  rule with
24
- "WITH" space license_exception <With>
24
+ space "WITH" space license_exception <With>
25
25
  end
26
26
 
27
27
  rule license
@@ -188,11 +188,13 @@ describe Spdx do
188
188
  expect(Spdx.valid_spdx?("MIT OR FAKEYLICENSE")).to be false
189
189
  expect(Spdx.valid_spdx?(nil)).to be false
190
190
  expect(Spdx.valid_spdx?("")).to be false
191
+ expect(Spdx.valid_spdx?("MIT (MIT)")).to be false
191
192
  end
192
193
  it "returns true for valid spdx" do
193
194
  expect(Spdx.valid_spdx?("(MIT OR MPL-2.0)")).to be true
194
195
  expect(Spdx.valid_spdx?("MIT")).to be true
195
196
  expect(Spdx.valid_spdx?("((MIT OR AGPL-1.0) AND (MIT OR MPL-2.0))")).to be true
197
+ expect(Spdx.valid_spdx?("MIT OR (MIT)")).to be true
196
198
  end
197
199
  it "returns true for NONE and NOASSERTION" do
198
200
  expect(Spdx.valid_spdx?("NONE")).to be true
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: 2.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tidelift, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fuzzy_match
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.0.3
164
+ rubygems_version: 3.0.8
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: A SPDX license normalizer