license_finder 5.4.0 → 5.4.1

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: 27bf5ceddaefdfaf96e14aa2021ca620e94b5f4923983638fbfce367271143c2
4
- data.tar.gz: 7e6a9f084d74919d7cbf2be27038ba3ad529ef7431b3691f33aa1d5d03822c2a
3
+ metadata.gz: 4c2cf5774e9ffa407a6a70a8699c11867121389a3a774240ccc6e52442e25749
4
+ data.tar.gz: fd3942b4b46df758837e0d0cf70395291b8767f7c5de24a7e075d4d2214b1dd6
5
5
  SHA512:
6
- metadata.gz: d0e9016bfd2140a346748d7ecee8653e7f79b32a970be8ff6b82db77065c1aa355257e4ae526b930c2b2bbe15b976e19b8d5971708b258f6c61e245df49633bc
7
- data.tar.gz: d008902c7f2e66e24243f805ddfef304c9861556351819f51cef627500aefbbffd6ff0a58ffb4a58a01888bb15de405433bfba98aa285b8aa8ebe9f091e20d73
6
+ metadata.gz: 54602cb06f66e48ca129c9ef1b48ecc859e244016ea5894eb47c4715aaa7e1fedb7e62c3a4d698c5951f2a7c9a41107f5e0d06c685b7098361d59484e63c0188
7
+ data.tar.gz: 984ae4ba04df15e38391ff0ba3dd651c8d19c7ee2293793892fcb25db7a3265a703f0dd42318f56f93a8dc295f722e91824f70214a2738471ca73f3eb6e49119
@@ -1,3 +1,18 @@
1
+ # [5.4.1] / 2018-09-18
2
+
3
+ ### Fixed
4
+ * Extra dependencies showing up for some go projects [#160438065] - [dfb1367](https://github.com/pivotal-legacy/LicenseFinder/commit/dfb136724721843c1196e74a6b4c762538af62ba)
5
+ * remove workspace-aggregator as a yarn dependency [#159612717 finish] - [4e0afd0](https://github.com/pivotal-legacy/LicenseFinder/commit/4e0afd0ba79623f5bb4c055d42a76ba77ce1c785)
6
+
7
+ # [5.4.0] / 2018-08-20
8
+
9
+ ### Added
10
+ * NuGet + mono installation to Dockerfile
11
+ * Add An all caps version of the 'LICENCE' spelling as a candidate file
12
+
13
+ ### Changed
14
+ * Upgrades Dockerfile base to Xenial
15
+
1
16
  # [5.3.0] / 2018-06-05
2
17
 
3
18
  ### Added
@@ -608,3 +623,5 @@ Bugfixes:
608
623
  [5.2.1]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.2.0...v5.2.1
609
624
  [5.2.3]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.2.1...v5.2.3
610
625
  [5.3.0]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.2.3...v5.3.0
626
+ [5.4.0]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.3.0...v5.4.0
627
+ [5.4.1]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.4.0...v5.4.1
@@ -24,6 +24,10 @@ module LicenseFinder
24
24
  end
25
25
  end
26
26
 
27
+ def self.takes_priority_over
28
+ Go15VendorExperiment
29
+ end
30
+
27
31
  def possible_package_paths
28
32
  [project_path.join('Godeps/Godeps.json')]
29
33
  end
@@ -33,6 +33,10 @@ module LicenseFinder
33
33
  end.compact
34
34
  end
35
35
 
36
+ def self.takes_priority_over
37
+ Go15VendorExperiment
38
+ end
39
+
36
40
  def possible_package_paths
37
41
  [envrc_path.dirname]
38
42
  end
@@ -66,11 +66,21 @@ module LicenseFinder
66
66
  Hash[head.zip(json_package)]
67
67
  end
68
68
 
69
- packages.map do |package_hash|
70
- YarnPackage.new(package_hash['Name'], package_hash['Version'], spec_licenses: [package_hash['License']], homepage: package_hash['VendorUrl'])
69
+ valid_packages = filter_yarn_internal_package(packages)
70
+
71
+ valid_packages.map do |package_hash|
72
+ YarnPackage.new(package_hash['Name'], package_hash['Version'], spec_licenses: [package_hash['License']],
73
+ homepage: package_hash['VendorUrl'])
71
74
  end
72
75
  end
73
76
 
77
+ # remove fake package created by yarn [Yarn Bug]
78
+ def filter_yarn_internal_package(all_packages)
79
+ internal_package_pattern = /workspace-aggregator-[a-zA-z0-9]{8}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{12}/
80
+ yarn_internal_package = all_packages.find { |package| internal_package_pattern.match(package['Name']) }
81
+ all_packages - [yarn_internal_package]
82
+ end
83
+
74
84
  def production_flag
75
85
  return '' if @ignored_groups.nil?
76
86
  @ignored_groups.include?('devDependencies') ? ' --production' : ''
@@ -1,3 +1,3 @@
1
1
  module LicenseFinder
2
- VERSION = '5.4.0'.freeze
2
+ VERSION = '5.4.1'.freeze
3
3
  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: 5.4.0
4
+ version: 5.4.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: 2018-08-20 00:00:00.000000000 Z
30
+ date: 2018-09-18 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler