spandx 0.13.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/ext/spandx/spandx.c +1 -1
- data/lib/spandx/core/git.rb +0 -2
- data/lib/spandx/core/guess.rb +12 -1
- data/lib/spandx/core/parser.rb +2 -0
- data/lib/spandx/python/pypi.rb +0 -2
- data/lib/spandx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e89b8200563a7e8d6499790a3cec3673744cb46be6f3eb4a279cb28c311bc9cd
|
4
|
+
data.tar.gz: 2f33ec62f37e65a69e77872cef146c988f41bf7b9832ddd97cb7454ae2dd0281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd107af13cc5a9acf8e5f915f01f1be6e687e3322ed3a2bdb499ab03ffed7b287b0424aa1682cd97212fe9206e51ff6a4e4f2773a1ce5d2f434c23a410c8472d
|
7
|
+
data.tar.gz: f984aed0d5db9ff517fffb491f9be9794419795186fbc9b9e9287529ecd286e0876f7f97588bc31b264c10d02049e56d125bea565e3579cc4c8ce7ff1eae3858
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Version 0.13.
|
1
|
+
Version 0.13.2
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
9
9
|
|
10
10
|
## [Unreleased]
|
11
11
|
|
12
|
+
## [0.13.2] - 2020-05-17
|
13
|
+
### Fixed
|
14
|
+
- Detect licenses when provided as an array.
|
15
|
+
- Skip empty lockfiles.
|
16
|
+
|
12
17
|
## [0.13.1] - 2020-05-16
|
13
18
|
### Fixed
|
14
19
|
- Add `ext/**/*.c` and `ext/**/*.h` to list of files.
|
data/ext/spandx/spandx.c
CHANGED
@@ -20,7 +20,7 @@ static VALUE parse(VALUE self, VALUE line)
|
|
20
20
|
|
21
21
|
const VALUE items = rb_ary_new2(3);
|
22
22
|
const char *s, *n;
|
23
|
-
const
|
23
|
+
const long len = RSTRING_LEN(line);
|
24
24
|
enum { open, closed } state = closed;
|
25
25
|
|
26
26
|
for (int i = 0; i < len && *p; i++) {
|
data/lib/spandx/core/git.rb
CHANGED
data/lib/spandx/core/guess.rb
CHANGED
@@ -10,7 +10,14 @@ module Spandx
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def license_for(raw)
|
13
|
-
|
13
|
+
case raw
|
14
|
+
when Hash
|
15
|
+
from_hash(raw)
|
16
|
+
when Array
|
17
|
+
from_array(raw)
|
18
|
+
else
|
19
|
+
from_string(raw)
|
20
|
+
end
|
14
21
|
end
|
15
22
|
|
16
23
|
private
|
@@ -21,6 +28,10 @@ module Spandx
|
|
21
28
|
unknown(hash[:name] || hash[:url])
|
22
29
|
end
|
23
30
|
|
31
|
+
def from_array(array)
|
32
|
+
from_string(array.join(' AND '))
|
33
|
+
end
|
34
|
+
|
24
35
|
def from_string(raw)
|
25
36
|
return if raw.nil?
|
26
37
|
|
data/lib/spandx/core/parser.rb
CHANGED
data/lib/spandx/python/pypi.rb
CHANGED
data/lib/spandx/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spandx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Can Eldem
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-05-
|
12
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|