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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26f8098aaee2e88489ccdebc2a4a37a6da75bc2bb7c1179a94eb9c62bd6428ea
4
- data.tar.gz: f2bcc523cc918a383559164e953c3453f4b456f71ce4ea6edf6ff207adeae99e
3
+ metadata.gz: f8e24e2f900732197c5d4b91212a7477dd7ab68a61892e0ea56ae1a99f4c29e6
4
+ data.tar.gz: 19c679898ccab8f60d219d739c18a14b849cdd87ad04608b24dcf1ea67613f82
5
5
  SHA512:
6
- metadata.gz: 5d31ba213998214f387fb053b1038c6010bfffc42babb0dcf502062a6effced42404a09f1d22741d60ab92a9723c64c6af5a0333f1576f1970c9a5adcc89f2cf
7
- data.tar.gz: b06150a91ba3d2b0364f1c4a8347fa55b1ebd4ecbf97524e267f613dfc9138a8ced44a308fc80d25238147d1a237cead91dc8e9ccb29cd0736195d977d0aa516
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.0...HEAD
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:, search_root:, errors: [], metadata: {})
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, search_root: search_root
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.gem_dir,
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)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "3.0.0".freeze
3
+ VERSION = "3.0.1".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.0.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-04-29 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee