license_finder 6.1.0 → 6.1.2

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: 4322a68abdac0f37598d3a7e9329592a6aadc106d26dddab5228df56947161b4
4
- data.tar.gz: 9cdde6b3fe4f113c7877a0bbb56ff74127155a4e00c1919dc2f40ea717fa2dc0
3
+ metadata.gz: 92797cb41f38da098d755a7f537e96ec16925e7610f10d6736ce44e174cff922
4
+ data.tar.gz: 301342706e551b6cfd12a57a9ab20034dd3661761e783d6a89cbf743c93b1e49
5
5
  SHA512:
6
- metadata.gz: '09ed394388a18eeb7e60d6f8d685c77a00b3769a933b48f4a75a8bbdd224b9534696de6c8bec9db9bd7c8a8f3ac0176805123c2c36f445ca8cdb0cf3ae473144'
7
- data.tar.gz: b8acbb67e9cb67facb22ba808e592fb8b14384aac588040fbe00524ad25d86cd958fbc001c8b8b069dc40de014ac9455017c302f04faf022f92d4f16eca78739
6
+ metadata.gz: 4dcfdede6d98dca29349242131114ca30085d9a1257443b7c7ff79b1c9a56c73c2d855fe35a2fed98a05c746823e7195906fed150aea2941f894d883140cdb8a
7
+ data.tar.gz: e73144436a4e5a6a05137c13ed6702296660f473c15696b17f7a4973cb7797bb98d9545879a4ece0893ef7b130f94dcda1c00381496bf734f0326338ec2781a7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ # [6.1.2] / 2020-03-16
2
+
1
3
  # [6.1.0] / 2020-02-21
2
4
 
3
5
  ### Fixed
@@ -810,3 +812,4 @@ Bugfixes:
810
812
  [5.11.1]: https://github.com/pivotal/LicenseFinder/compare/v5.11.0...v5.11.1
811
813
  [6.0.0]: https://github.com/pivotal/LicenseFinder/compare/v5.11.1...v6.0.0
812
814
  [6.1.0]: https://github.com/pivotal/LicenseFinder/compare/v6.0.0...v6.1.0
815
+ [6.1.2]: https://github.com/pivotal/LicenseFinder/compare/v6.1.0...v6.1.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.1.0
1
+ 6.1.2
@@ -7,9 +7,15 @@ try:
7
7
  from pip._internal.req import parse_requirements
8
8
  except ImportError:
9
9
  from pip.req import parse_requirements
10
+
10
11
  try:
11
- from pip._internal.download import PipSession
12
+ # since pip 19.3
13
+ from pip._internal.network.session import PipSession
12
14
  except ImportError:
15
+ try:
16
+ # since pip 10
17
+ from pip._internal.download import PipSession
18
+ except ImportError:
13
19
  from pip.download import PipSession
14
20
 
15
21
  from pip._vendor import pkg_resources
@@ -62,7 +62,7 @@ module LicenseFinder
62
62
  end
63
63
  end
64
64
 
65
- raise "Command '#{command}' failed to execute: #{stderr}" unless status.success?
65
+ raise "Command '#{command}' failed to execute in #{project_path}: #{stderr}" unless status.success?
66
66
 
67
67
  root_project_name = stdout.gsub(/\s|parent:|\n/, '')
68
68
  root_project_name == 'null'
@@ -56,8 +56,8 @@ module LicenseFinder
56
56
 
57
57
  def root_module?
58
58
  command = "#{package_management_command} help:evaluate -Dexpression=project.parent -q -DforceStdout"
59
- stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) }
60
- raise "Command '#{command}' failed to execute: #{stderr}" unless status.success?
59
+ stdout, _stderr, status = Dir.chdir(project_path) { Cmd.run(command) }
60
+ raise "Command '#{command}' failed to execute in #{project_path}: #{stdout}" unless status.success?
61
61
 
62
62
  stdout.include?('null object or invalid expression')
63
63
  end
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
 
44
44
  s.license = 'MIT'
45
45
 
46
- s.add_dependency 'bundler', '~> 2.1.0'
46
+ s.add_dependency 'bundler'
47
47
  s.add_dependency 'rubyzip', '>=1', '<3'
48
48
  s.add_dependency 'thor', '~> 1.0.1'
49
49
  s.add_dependency 'toml', '0.2.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Collins
@@ -27,22 +27,22 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2020-02-21 00:00:00.000000000 Z
30
+ date: 2020-03-16 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - "~>"
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: 2.1.0
38
+ version: '0'
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - "~>"
43
+ - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 2.1.0
45
+ version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rubyzip
48
48
  requirement: !ruby/object:Gem::Requirement