licensed 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/licensed/source/bundler.rb +4 -10
- data/lib/licensed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aafa9f6256e89db107b0d7c421a95e33b8b3ecaa
|
4
|
+
data.tar.gz: 9a8141a9ce955d183156404f591d0f16d73bda16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72293e38a7c2dd14a1594f3a9cc68d9d7c36eb6de376d581703ab424b750cf5d429067b827380153da5622c6aa0212a94339379ad763b2175beedb850cad3eac
|
7
|
+
data.tar.gz: 8e4bb0f627d6ff93a2138a4eb80c755987597445629e94eb514af8b1d3522c5e85463f1aee858f9a4f45f8f45c88dfbc5adc9dcd2c239d6ba149497a66f17895
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## 1.3.4 - 2018-09-20
|
10
|
+
### Changes
|
11
|
+
- Bundler source will avoid looking for a gemspec file when possible
|
12
|
+
|
9
13
|
## 1.3.3 - 2018-09-07
|
10
14
|
### Fixed
|
11
15
|
- Manifest source configuration globs correctly enumerates files from within submodules
|
@@ -73,4 +77,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
73
77
|
|
74
78
|
Initial release :tada:
|
75
79
|
|
76
|
-
[Unreleased]: https://github.com/github/licensed/compare/1.3.
|
80
|
+
[Unreleased]: https://github.com/github/licensed/compare/1.3.4...HEAD
|
@@ -88,18 +88,12 @@ module Licensed
|
|
88
88
|
spec = definition.resolve.find { |s| s.satisfies?(dependency) }
|
89
89
|
return spec unless spec.is_a?(::Bundler::LazySpecification)
|
90
90
|
|
91
|
-
#
|
92
|
-
# we can get a non-lazy specification straight from the source
|
93
|
-
if spec.source.is_a?(::Bundler::Source::Gemspec) || spec.source.is_a?(::Bundler::Source::Path)
|
94
|
-
return spec.source.specs.first
|
95
|
-
end
|
96
|
-
|
91
|
+
# try to find a non-lazy specification that matches `spec`
|
97
92
|
# spec.source.specs gives access to specifications with more
|
98
93
|
# information than spec itself, including platform-specific gems.
|
99
|
-
#
|
100
|
-
|
101
|
-
|
102
|
-
end
|
94
|
+
# these objects should have all the information needed to detect license metadata
|
95
|
+
source_spec = spec.source.specs.find { |s| s.name == spec.name && s.version == spec.version }
|
96
|
+
return source_spec if source_spec
|
103
97
|
|
104
98
|
# look for a specification at the bundler specs path
|
105
99
|
spec_path = ::Bundler.specs_path.join("#{spec.full_name}.gemspec")
|
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: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: licensee
|