licensed 3.7.4 → 3.7.5

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: 1002bceeb85db079486f7cbde9c09638362fc03b287c15822fcc7e4e250a1c6d
4
- data.tar.gz: acb2c626b8efd7573e32efef91a3c68b93c5aeee07580d874d58ce1326ee5aa8
3
+ metadata.gz: 2c460f79af039dfcd0059dafa8c1ce9ea096f5fc869c05ed374a61e9d1504520
4
+ data.tar.gz: 98729cb3117d5642fe1bb6b81a8b5f9781578751407f0425ea2ed0c5842ae0ac
5
5
  SHA512:
6
- metadata.gz: fb16460e74fd404c19e3a977c9fc125f91ef2b96f04952aac6aa46da8dc5981d9bcfb556cd2db2503e0d36ce7a78278e57532005e54384069e632d62cd7181de
7
- data.tar.gz: e1d0b1df753a9dcc0c6b488cdbfef416d776edd8e3128363a46722f43be2178f939e6cbef71a645d944049619d058c3df7f291e2b3779f32046f094726ca95f4
6
+ metadata.gz: 3f5bd011838dc17f8bb74da74b0799da181419718bf96f55ac097af2a077546bba007a1efa2ec8613bd03f345c1f82bf5b97fcad64ebb140ef06a99210ee45db
7
+ data.tar.gz: 79b667beb6bde2a62ec1c53c706a5379f761bc9189f2fd6caf4da10e7e2ca51216f44816fc06721c023f81446c7f1a480ca482cc6b77f53af92dcb1943a535b5
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 3.7.5
10
+
11
+ ### Fixed
12
+
13
+ - Python dependency metadata will be correctly parsed from the ouput of `pip show` (https://github.com/github/licensed/pull/555)
14
+
9
15
  ## 3.7.4
10
16
 
11
17
  ### Fixed
@@ -637,4 +643,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
637
643
 
638
644
  Initial release :tada:
639
645
 
640
- [Unreleased]: https://github.com/github/licensed/compare/3.7.4...HEAD
646
+ [Unreleased]: https://github.com/github/licensed/compare/3.7.5...HEAD
@@ -74,11 +74,13 @@ module Licensed
74
74
  # Returns a hash filled with package info parsed from the email-header formatted output
75
75
  # returned by `pip show`
76
76
  def parse_package_info(package_info)
77
- package_info.lines.each_with_object(Hash.new(0)) { |pkg, a|
77
+ package_info.lines.each_with_object(Hash.new(0)) do |pkg, a|
78
+ next if pkg.start_with?(/^\s/)
79
+
78
80
  k, v = pkg.split(":", 2)
79
81
  next if k.nil? || k.empty?
80
82
  a[k.strip] = v&.strip
81
- }
83
+ end
82
84
  end
83
85
 
84
86
  # Returns the output from `pip list --format=json`
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Licensed
3
- VERSION = "3.7.4".freeze
3
+ VERSION = "3.7.5".freeze
4
4
 
5
5
  def self.previous_major_versions
6
6
  major_version = Gem::Version.new(Licensed::VERSION).segments.first
data/licensed.gemspec CHANGED
@@ -36,7 +36,6 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "rake", ">= 12.3.3"
37
37
  spec.add_development_dependency "minitest", "~> 5.8"
38
38
  spec.add_development_dependency "mocha", "~> 1.0"
39
- spec.add_development_dependency "rubocop", "~> 1.26", "< 1.27"
40
39
  spec.add_development_dependency "rubocop-github", "~> 0.6"
41
40
  spec.add_development_dependency "byebug", "~> 11.1.3"
42
41
  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: 3.7.4
4
+ version: 3.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-07 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: licensee
@@ -196,26 +196,6 @@ dependencies:
196
196
  - - "~>"
197
197
  - !ruby/object:Gem::Version
198
198
  version: '1.0'
199
- - !ruby/object:Gem::Dependency
200
- name: rubocop
201
- requirement: !ruby/object:Gem::Requirement
202
- requirements:
203
- - - "~>"
204
- - !ruby/object:Gem::Version
205
- version: '1.26'
206
- - - "<"
207
- - !ruby/object:Gem::Version
208
- version: '1.27'
209
- type: :development
210
- prerelease: false
211
- version_requirements: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: '1.26'
216
- - - "<"
217
- - !ruby/object:Gem::Version
218
- version: '1.27'
219
199
  - !ruby/object:Gem::Dependency
220
200
  name: rubocop-github
221
201
  requirement: !ruby/object:Gem::Requirement