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 +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/bin/license_finder_pip.py +7 -1
- data/lib/license_finder/package_managers/gradle.rb +1 -1
- data/lib/license_finder/package_managers/maven.rb +2 -2
- data/license_finder.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92797cb41f38da098d755a7f537e96ec16925e7610f10d6736ce44e174cff922
|
4
|
+
data.tar.gz: 301342706e551b6cfd12a57a9ab20034dd3661761e783d6a89cbf743c93b1e49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
1
|
+
6.1.2
|
data/bin/license_finder_pip.py
CHANGED
@@ -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
|
-
|
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,
|
60
|
-
raise "Command '#{command}' failed to execute: #{
|
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
|
data/license_finder.gemspec
CHANGED
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.
|
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-
|
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:
|
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:
|
45
|
+
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rubyzip
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|