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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75d816dc3934658ad4d8133632c7a14da32c9364
4
- data.tar.gz: 78c9eff92c3b95b1b8162dd4bfc5b71047932170
3
+ metadata.gz: aafa9f6256e89db107b0d7c421a95e33b8b3ecaa
4
+ data.tar.gz: 9a8141a9ce955d183156404f591d0f16d73bda16
5
5
  SHA512:
6
- metadata.gz: b7fec5980b6b926bbc6cc44c1ea097c8b3a6229d7e7303119b4d53c87afcf6b2da3f0951e36ab2bfb6aea614efe43a2ebd4759d5121a82649a5a3ffb05a31013
7
- data.tar.gz: c3b9d9d5e0b5ea49eaba02341c67dba62390272f7cf7debca4306a2844e3d018cb109784573fa6c3c064653090dabb9c754c19f56606a20e06dd97a0f6858b1c
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.3...HEAD
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
- # if the specification is coming from a gemspec source,
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
- # try to find a specification that matches `spec`
100
- if source_spec = spec.source.specs.find { |s| s.name == spec.name && s.version == spec.version }
101
- spec = source_spec
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")
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "1.3.3".freeze
3
+ VERSION = "1.3.4".freeze
4
4
  end
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.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-07 00:00:00.000000000 Z
11
+ date: 2018-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee