licensed 3.4.3 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/docs/sources/pip.md +1 -1
- data/lib/licensed/sources/npm.rb +7 -1
- data/lib/licensed/sources/pip.rb +4 -1
- data/lib/licensed/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: f3f8fc2f5685cca01401bb63373518883d8f3e0cd6d27861a73eb2246d6ab8b5
|
|
4
|
+
data.tar.gz: fca0431aeb3401f17e78fccff82547315504597b1eab54699c1529c6fbacf2c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 575c5efa3e3b4c3a8bed98094372f61f4977ae9e5b023d155041cab5fd7a410d043b9fa31df20ea5084525251cd69d70474cc107b5b5f7c6e3bb08135d937187
|
|
7
|
+
data.tar.gz: e3fdbeced907154eb4b9511aefd263f8cf5b188e8360e039ee419496a5c9372ece14f63c59524638f27164cef0bd636e5ccbccaa196e89e117460f7e5faafaa6
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## 3.4.4
|
|
10
|
+
|
|
11
|
+
2022-02-07
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- The npm and pip sources have better protection from strings causing crashes in `Hash#dig` (https://github.com/github/licensed/pull/450)
|
|
16
|
+
|
|
9
17
|
## 3.4.3
|
|
10
18
|
|
|
11
19
|
2022-01-31
|
|
@@ -563,4 +571,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
563
571
|
|
|
564
572
|
Initial release :tada:
|
|
565
573
|
|
|
566
|
-
[Unreleased]: https://github.com/github/licensed/compare/3.4.
|
|
574
|
+
[Unreleased]: https://github.com/github/licensed/compare/3.4.4...HEAD
|
data/docs/sources/pip.md
CHANGED
data/lib/licensed/sources/npm.rb
CHANGED
|
@@ -147,7 +147,13 @@ module Licensed
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
def peer_dependency(parent, name)
|
|
150
|
-
parent
|
|
150
|
+
return unless parent.is_a?(Hash)
|
|
151
|
+
|
|
152
|
+
peerDependencies = parent["peerDependencies"]
|
|
153
|
+
# "peerDependencies" could be set to the string "[Circular]"
|
|
154
|
+
return unless peerDependencies.is_a?(Hash)
|
|
155
|
+
|
|
156
|
+
peerDependencies[name]
|
|
151
157
|
end
|
|
152
158
|
|
|
153
159
|
def extract_version(parent, name)
|
data/lib/licensed/sources/pip.rb
CHANGED
|
@@ -63,7 +63,10 @@ module Licensed
|
|
|
63
63
|
def virtual_env_dir
|
|
64
64
|
return @virtual_env_dir if defined?(@virtual_env_dir)
|
|
65
65
|
@virtual_env_dir = begin
|
|
66
|
-
|
|
66
|
+
python_config = config["python"]
|
|
67
|
+
return unless python_config.is_a?(Hash)
|
|
68
|
+
|
|
69
|
+
venv_dir = python_config["virtual_env_dir"]
|
|
67
70
|
File.expand_path(venv_dir, config.root) if venv_dir
|
|
68
71
|
end
|
|
69
72
|
end
|
data/lib/licensed/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: licensed
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: licensee
|