licensed 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/licensed/sources/bundler.rb +3 -16
- 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: f8e24e2f900732197c5d4b91212a7477dd7ab68a61892e0ea56ae1a99f4c29e6
|
4
|
+
data.tar.gz: 19c679898ccab8f60d219d739c18a14b849cdd87ad04608b24dcf1ea67613f82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 171905b06dca655364341c888c5e8845e6dff8d163ffb009f28de624e4d14d399c7add250d80ebb7391b4c94316c8a3c9bbae7bdfb7b219996a8415f463b7a5c
|
7
|
+
data.tar.gz: 054fc3dd7ccb7e3a92b6585e757b85efd0880b1b9c3fa93855ba50ba79d0c7727d707a76d30f588a94b9f7bb1dd0d6bc6f3959e40bf96685f5dda5ea1a7d127f
|
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.0.1
|
10
|
+
|
11
|
+
2021-05-17
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
|
15
|
+
- The bundler source will correctly enumerate dependencies pulled with a `git:` directive (https://github.com/github/licensed/pull/360)
|
16
|
+
|
9
17
|
## 3.0.0
|
10
18
|
|
11
19
|
2021-04-27
|
@@ -421,4 +429,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
421
429
|
|
422
430
|
Initial release :tada:
|
423
431
|
|
424
|
-
[Unreleased]: https://github.com/github/licensed/compare/3.0.
|
432
|
+
[Unreleased]: https://github.com/github/licensed/compare/3.0.1...HEAD
|
@@ -12,9 +12,9 @@ module Licensed
|
|
12
12
|
class Dependency < Licensed::Dependency
|
13
13
|
attr_reader :loaded_from
|
14
14
|
|
15
|
-
def initialize(name:, version:, path:, loaded_from:,
|
15
|
+
def initialize(name:, version:, path:, loaded_from:, errors: [], metadata: {})
|
16
16
|
@loaded_from = loaded_from
|
17
|
-
super name: name, version: version, path: path, errors: errors, metadata: metadata
|
17
|
+
super name: name, version: version, path: path, errors: errors, metadata: metadata
|
18
18
|
end
|
19
19
|
|
20
20
|
# Load a package manager file from the base Licensee::Projects::FsProject
|
@@ -60,9 +60,8 @@ module Licensed
|
|
60
60
|
Dependency.new(
|
61
61
|
name: spec.name,
|
62
62
|
version: spec.version.to_s,
|
63
|
-
path: spec.
|
63
|
+
path: spec.full_gem_path,
|
64
64
|
loaded_from: spec.loaded_from,
|
65
|
-
search_root: spec_root(spec),
|
66
65
|
errors: Array(error),
|
67
66
|
metadata: {
|
68
67
|
"type" => Bundler.type,
|
@@ -91,18 +90,6 @@ module Licensed
|
|
91
90
|
end
|
92
91
|
end
|
93
92
|
|
94
|
-
# Returns a search root for a specification, one of:
|
95
|
-
# - the local bundler gem location
|
96
|
-
# - the system rubygems install gem location
|
97
|
-
# - nil
|
98
|
-
def spec_root(spec)
|
99
|
-
return if spec.gem_dir.nil?
|
100
|
-
root = [Gem.default_dir, Gem.dir].find { |dir| spec.gem_dir.start_with?(dir) }
|
101
|
-
return unless root
|
102
|
-
|
103
|
-
"#{root}/gems/#{spec.full_name}"
|
104
|
-
end
|
105
|
-
|
106
93
|
# Build the bundler definition
|
107
94
|
def definition
|
108
95
|
@definition ||= ::Bundler::Definition.build(gemfile_path, lockfile_path, nil)
|
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.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: licensee
|