license_finder 6.8.0 → 6.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7e3a83f4f274f851f8c7005b05cdfa4d453b44879bab381b59c00a0cf8066cc
4
- data.tar.gz: 44bdd7d357c0bc8d4bc111489eb7102690d6cd4a04e92d4c064625b6a97f5591
3
+ metadata.gz: b09e0ff0c5e115f24278e8d4e759562c10c8abf7c70920622c535ae21649c1cb
4
+ data.tar.gz: a357081ca1404d7f2575c90035f4b564ff5cc5036965f5ce071506767088df8d
5
5
  SHA512:
6
- metadata.gz: 5f361eb0ae74e3cfa6ff1390951f8a1dc18c3f9da9b460e7ab373dba19b195f57b2e891640d595bc48bc37e598f565c537252b09a03f9fd3073c59011a50406c
7
- data.tar.gz: a3e85a00c781671cfe1de68bc31a35876705904278bf0a34453ef65a5ac78a4761abb2ce4a537b3ce9d8f31c87733043acea612a8b876ae4944773d979f00005
6
+ metadata.gz: 0f67f90622514f6a7bae4dc3a501558ae59aec3ed8c221a0255d5106b956d836c1b98bcc8fbcd7bfd22e1023d30223c0b04088da162b79eccf7b37541a455730
7
+ data.tar.gz: 8dd8c22b3adfd01aa9ddeb91504ce5b9103d429e5ef61cade5f9c30477a5d68497ac192d640005e6c82ed2640d6faa45aa7775f7db7a1c9a0605d49b1c0a372e
@@ -1,3 +1,5 @@
1
+ # [6.8.1] / 2020-08-13
2
+
1
3
  # [6.8.0] / 2020-08-06
2
4
 
3
5
  # [6.7.0] / 2020-07-23
@@ -909,3 +911,4 @@ Bugfixes:
909
911
  [6.6.2]: https://github.com/pivotal/LicenseFinder/compare/v6.6.1...v6.6.2
910
912
  [6.7.0]: https://github.com/pivotal/LicenseFinder/compare/v6.6.2...v6.7.0
911
913
  [6.8.0]: https://github.com/pivotal/LicenseFinder/compare/v6.7.0...v6.8.0
914
+ [6.8.1]: https://github.com/pivotal/LicenseFinder/compare/v6.8.0...v6.8.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.8.0
1
+ 6.8.1
@@ -10,8 +10,10 @@ module LicenseFinder
10
10
  "#{package_management_command} --directory=#{project_path} --no-print-directory"
11
11
  end
12
12
 
13
+ # The IS_DEP=1 is added because not all erlang.mk-based projects are
14
+ # updated to a version that is compatible with LicenseFinder
13
15
  def prepare_command
14
- "#{package_management_command_with_path} fetch-deps"
16
+ "#{package_management_command_with_path} IS_DEP=1 fetch-deps"
15
17
  end
16
18
 
17
19
  def possible_package_paths
@@ -32,12 +34,17 @@ module LicenseFinder
32
34
  def deps
33
35
  command = "#{package_management_command_with_path} QUERY='name fetch_method repo version absolute_path' query-deps"
34
36
  stdout, stderr, status = Cmd.run(command)
35
- raise "Command '#{command}' failed to execute: #{stderr}" unless status.success?
36
-
37
- dep_re = Regexp.new('^\s*DEP')
38
- line_re = Regexp.new('^[_a-z0-9]+:')
39
-
40
- stdout.each_line.map(&:strip).select { |line| !(line.start_with?('make') || line =~ dep_re) && line =~ line_re }
37
+ if status.success?
38
+ dep_re = Regexp.new('^\s*DEP')
39
+ line_re = Regexp.new('^[_a-z0-9]+:')
40
+ stdout.each_line.map(&:strip).select { |line| !(line.start_with?('make') || line =~ dep_re) && line =~ line_re }
41
+ elsif stderr.include? "No rule to make target 'query-deps'"
42
+ # The stderr check happens because not all erlang.mk-based projects are
43
+ # updated to a version that is compatible with LicenseFinder
44
+ []
45
+ else
46
+ raise "Command '#{command}' failed to execute: #{stderr}"
47
+ end
41
48
  end
42
49
  end
43
50
  end
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.8.0
4
+ version: 6.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Collins
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2020-08-06 00:00:00.000000000 Z
30
+ date: 2020-08-13 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler