licensed 3.4.3 → 3.4.4

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: 6ff397378a053e97414fb762f3d06c41f4217f61d9e63130aa3786456e6f2114
4
- data.tar.gz: b197f77bc54c68e5bf9462917351ca2dbda1509813315a8207fd31ed4c611de0
3
+ metadata.gz: f3f8fc2f5685cca01401bb63373518883d8f3e0cd6d27861a73eb2246d6ab8b5
4
+ data.tar.gz: fca0431aeb3401f17e78fccff82547315504597b1eab54699c1529c6fbacf2c7
5
5
  SHA512:
6
- metadata.gz: 68d86169b07dd46f28de9cd31745e705f82e8f49e1968df5d8ff90139d6c60d2b31d861ca79d39657b5af956b3d73540cf492db6f6f84589132dc27ab65e33e5
7
- data.tar.gz: '005804bf6877d487434dc74fe9c2fbbe9c57c15bfd7924fc3a3992f7879c878056c871c4f5d7867b5e5254a59751b8839363fb4de60e1d43cdfeb6e2e1ae67f1'
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.3...HEAD
574
+ [Unreleased]: https://github.com/github/licensed/compare/3.4.4...HEAD
data/docs/sources/pip.md CHANGED
@@ -20,5 +20,5 @@ You have to add this setting to your licensed configuration file.
20
20
  An example usage of this might look like:
21
21
  ```yaml
22
22
  python:
23
- virtual_env_dir:"/path/to/your/venv_dir"
23
+ virtual_env_dir: "/path/to/your/venv_dir"
24
24
  ```
@@ -147,7 +147,13 @@ module Licensed
147
147
  end
148
148
 
149
149
  def peer_dependency(parent, name)
150
- parent&.dig("peerDependencies", name)
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)
@@ -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
- venv_dir = config.dig("python", "virtual_env_dir")
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "3.4.3".freeze
3
+ VERSION = "3.4.4".freeze
4
4
 
5
5
  def self.previous_major_versions
6
6
  major_version = Gem::Version.new(Licensed::VERSION).segments.first
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.3
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-01-31 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee