license_finder 6.2.0 → 6.3.0

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: 9346290d1b6444834799d917362604ab2b8c8cf02c798fa0125d48e2e96b185e
4
- data.tar.gz: 46d7563db0baaf8506c295a14f2872ea72a0f3ba9a96577a7265b74c38026899
3
+ metadata.gz: 72f85b1c33a4f69a87b10788685debd163e13cc60b428ce9854849ff55567531
4
+ data.tar.gz: 14b067eae3f53784d3d4a5c4b341c73f604f63b9c4eaf7b68a98e90bdf7728fb
5
5
  SHA512:
6
- metadata.gz: c18721d86285f2cc2ad05ab0e72f615ceefe001607427bedc1ab19cd83f7bbc7ca1a9fa6d5b8925e96438cec68f0be7dfdb243c6f7e43680bea33fa1b4046120
7
- data.tar.gz: 64775a9d8d417fbe9b2a10fcb094e0040268c18a69997b4c2367e8869090b0213e153f7dae3d9fb2641f90bc29694db7e2dfadd357e8e5adb80835ebec7e9bad
6
+ metadata.gz: '087049b7a0d7b1ada765f6904f66add3048b0a8e0aaef4c75333d139ddde2337f56ac37dc4852a6e23ccd7855d501cacac59c6c97213bbea375282c8300c2355'
7
+ data.tar.gz: 3d52fc85d19980ff405e25f8f18c1cea20649ed90fa8aad2f236a62e78ec691e60dfa4f9651fa3f77898f7ad5924df75a0ca49c3c692bc9e16dd30a4d9d332e8
@@ -1,3 +1,15 @@
1
+ # [6.3.0] / 2020-05-06
2
+
3
+ ### Added
4
+ * OFL License - [d475bbb1](https://github.com/pivotal/LicenseFinder/commit/d475bbb1380e217f154f262caaa73c12f5b9792b) - Sven Dunemann
5
+ * WTFPL License - [ec629170](https://github.com/pivotal/LicenseFinder/commit/ec6291702c28789a33478041dbf6524d603c12ff) - Sven Dunemann
6
+
7
+ * Find the install path for sbt, cargo and composer [#171649609] - [0d525cbf](https://github.com/pivotal/LicenseFinder/commit/0d525cbf5208db5a977f2f3d922d07b5ea6a8b16)
8
+
9
+ ### Changed
10
+ * Bump PHP version to 7.3 - [1c3c3271](https://github.com/pivotal/LicenseFinder/commit/1c3c3271b977a6c8d24e4159a6b8098a51086522)
11
+ * Remove +compatible in Go package versions [#171754392] - [5cba5801](https://github.com/pivotal/LicenseFinder/commit/5cba5801f4f276482f01bfeea46fde0dbbcce7b1)
12
+
1
13
  # [6.2.0] / 2020-04-07
2
14
 
3
15
  ### Fixed
@@ -824,3 +836,4 @@ Bugfixes:
824
836
  [6.1.0]: https://github.com/pivotal/LicenseFinder/compare/v6.0.0...v6.1.0
825
837
  [6.1.2]: https://github.com/pivotal/LicenseFinder/compare/v6.1.0...v6.1.2
826
838
  [6.2.0]: https://github.com/pivotal/LicenseFinder/compare/v6.1.2...v6.2.0
839
+ [6.3.0]: https://github.com/pivotal/LicenseFinder/compare/v6.2.0...v6.3.0
data/Dockerfile CHANGED
@@ -38,10 +38,12 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
38
38
  RUN npm install -g bower && \
39
39
  echo '{ "allow_root": true }' > /root/.bowerrc
40
40
 
41
- # install jdk 11
41
+ # install jdk 12
42
42
  RUN curl -L -o openjdk12.tar.gz https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz && \
43
43
  tar xvf openjdk12.tar.gz && \
44
- sudo mv jdk-12.0.2 /opt/
44
+ rm openjdk12.tar.gz && \
45
+ sudo mv jdk-12.0.2 /opt/ && \
46
+ sudo rm /opt/jdk-12.0.2/lib/src.zip
45
47
  ENV JAVA_HOME=/opt/jdk-12.0.2
46
48
  ENV PATH=$PATH:$JAVA_HOME/bin
47
49
  RUN java -version
@@ -51,8 +53,8 @@ RUN apt-get install -y python rebar
51
53
 
52
54
  # install and update python-pip
53
55
  RUN apt-get install -y python-pip python3-pip && \
54
- pip2 install --upgrade pip==$PIP_INSTALL_VERSION && \
55
- pip3 install --upgrade pip==$PIP3_INSTALL_VERSION
56
+ pip2 install --no-cache-dir --upgrade pip==$PIP_INSTALL_VERSION && \
57
+ pip3 install --no-cache-dir --upgrade pip==$PIP3_INSTALL_VERSION
56
58
 
57
59
  # install maven
58
60
  RUN curl -O https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz && \
@@ -95,7 +97,8 @@ RUN mkdir /gopath && \
95
97
  go get github.com/Masterminds/glide && \
96
98
  go get github.com/kardianos/govendor && \
97
99
  go get github.com/golang/dep/cmd/dep && \
98
- go get -u github.com/rancher/trash
100
+ go get -u github.com/rancher/trash && \
101
+ go clean -cache
99
102
 
100
103
  # Fix the locale
101
104
  RUN apt-get install -y locales
@@ -123,11 +126,14 @@ RUN bash -lc "gem update --system && gem install bundler"
123
126
 
124
127
  # install conan
125
128
  RUN apt-get install -y python-dev && \
126
- pip install --ignore-installed six --ignore-installed colorama --ignore-installed requests --ignore-installed chardet --ignore-installed urllib3 --upgrade setuptools && \
127
- pip install -Iv conan==1.11.2
129
+ pip install --no-cache-dir --ignore-installed six --ignore-installed colorama \
130
+ --ignore-installed requests --ignore-installed chardet \
131
+ --ignore-installed urllib3 \
132
+ --upgrade setuptools && \
133
+ pip install --no-cache-dir -Iv conan==1.11.2
128
134
 
129
135
  # install Cargo
130
- RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
136
+ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --profile minimal
131
137
 
132
138
  # install NuGet (w. mono)
133
139
  # https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools#macoslinux
@@ -139,15 +145,17 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280
139
145
  echo "alias nuget=\"mono /usr/local/bin/nuget.exe\"" >> ~/.bash_aliases
140
146
 
141
147
  # install dotnet core
148
+ WORKDIR /tmp
142
149
  RUN wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb &&\
143
150
  sudo dpkg -i packages-microsoft-prod.deb &&\
151
+ rm packages-microsoft-prod.deb &&\
144
152
  sudo apt-get update &&\
145
153
  sudo apt-get install -y dotnet-runtime-2.1 dotnet-sdk-2.1 dotnet-sdk-2.2 dotnet-sdk-3.0
146
154
 
147
155
  RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4F4EA0AAE5267A6C &&\
148
156
  echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/php.list &&\
149
157
  apt-get update &&\
150
- apt-get install -y php7.1-cli &&\
158
+ apt-get install -y php7.3-cli &&\
151
159
  php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&\
152
160
  php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&\
153
161
  php composer-setup.php &&\
@@ -156,7 +164,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4F4EA0AAE5
156
164
 
157
165
  # install license_finder
158
166
  COPY . /LicenseFinder
159
- RUN bash -lc "cd /LicenseFinder && bundle install -j4 && rake install"
167
+ RUN bash -lc "cd /LicenseFinder && bundle config set no-cache 'true' && bundle install -j4 && rake install"
160
168
 
161
169
  WORKDIR /
162
170
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.2.0
1
+ 6.3.0
@@ -164,7 +164,7 @@ jobs:
164
164
  - put: dockerhub
165
165
  tags: ["private-worker"]
166
166
  params:
167
- build: lf-git
167
+ build: lf-git-changed
168
168
  tag: version/version.txt
169
169
  tag_as_latest: true
170
170
  - put: lf-git
@@ -21,9 +21,11 @@ module LicenseFinder
21
21
  mit,
22
22
  mpl2,
23
23
  newbsd,
24
+ ofl,
24
25
  python,
25
26
  ruby,
26
- simplifiedbsd
27
+ simplifiedbsd,
28
+ wtfpl
27
29
  ]
28
30
  end
29
31
 
@@ -234,6 +236,17 @@ module LicenseFinder
234
236
  )
235
237
  end
236
238
 
239
+ def ofl
240
+ License.new(
241
+ short_name: 'OFL',
242
+ pretty_name: 'SIL OPEN FONT LICENSE Version 1.1',
243
+ other_names: [
244
+ 'OPEN FONT LICENSE Version 1.1'
245
+ ],
246
+ url: 'https://opensource.org/licenses/OFL-1.1'
247
+ )
248
+ end
249
+
237
250
  def python
238
251
  License.new(
239
252
  short_name: 'Python',
@@ -277,6 +290,17 @@ module LicenseFinder
277
290
  url: 'http://opensource.org/licenses/bsd-license'
278
291
  )
279
292
  end
293
+
294
+ def wtfpl
295
+ License.new(
296
+ short_name: 'WTFPL',
297
+ pretty_name: 'Do What The Fuck You Want To Public License',
298
+ other_names: [
299
+ 'WTFPL V2'
300
+ ],
301
+ url: 'http://www.wtfpl.net/'
302
+ )
303
+ end
280
304
  end
281
305
  end
282
306
  end
@@ -0,0 +1,91 @@
1
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
2
+ This license is copied below, and is also available with a FAQ at:
3
+ http://scripts.sil.org/OFL
4
+
5
+
6
+ -----------------------------------------------------------
7
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
8
+ -----------------------------------------------------------
9
+
10
+ PREAMBLE
11
+ The goals of the Open Font License (OFL) are to stimulate worldwide
12
+ development of collaborative font projects, to support the font creation
13
+ efforts of academic and linguistic communities, and to provide a free and
14
+ open framework in which fonts may be shared and improved in partnership
15
+ with others.
16
+
17
+ The OFL allows the licensed fonts to be used, studied, modified and
18
+ redistributed freely as long as they are not sold by themselves. The
19
+ fonts, including any derivative works, can be bundled, embedded,
20
+ redistributed and/or sold with any software provided that any reserved
21
+ names are not used by derivative works. The fonts and derivatives,
22
+ however, cannot be released under any other type of license. The
23
+ requirement for fonts to remain under this license does not apply
24
+ to any document created using the fonts or their derivatives.
25
+
26
+ DEFINITIONS
27
+ "Font Software" refers to the set of files released by the Copyright
28
+ Holder(s) under this license and clearly marked as such. This may
29
+ include source files, build scripts and documentation.
30
+
31
+ "Reserved Font Name" refers to any names specified as such after the
32
+ copyright statement(s).
33
+
34
+ "Original Version" refers to the collection of Font Software components as
35
+ distributed by the Copyright Holder(s).
36
+
37
+ "Modified Version" refers to any derivative made by adding to, deleting,
38
+ or substituting -- in part or in whole -- any of the components of the
39
+ Original Version, by changing formats or by porting the Font Software to a
40
+ new environment.
41
+
42
+ "Author" refers to any designer, engineer, programmer, technical
43
+ writer or other person who contributed to the Font Software.
44
+
45
+ PERMISSION & CONDITIONS
46
+ Permission is hereby granted, free of charge, to any person obtaining
47
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
48
+ redistribute, and sell modified and unmodified copies of the Font
49
+ Software, subject to the following conditions:
50
+
51
+ 1) Neither the Font Software nor any of its individual components,
52
+ in Original or Modified Versions, may be sold by itself.
53
+
54
+ 2) Original or Modified Versions of the Font Software may be bundled,
55
+ redistributed and/or sold with any software, provided that each copy
56
+ contains the above copyright notice and this license. These can be
57
+ included either as stand-alone text files, human-readable headers or
58
+ in the appropriate machine-readable metadata fields within text or
59
+ binary files as long as those fields can be easily viewed by the user.
60
+
61
+ 3) No Modified Version of the Font Software may use the Reserved Font
62
+ Name(s) unless explicit written permission is granted by the corresponding
63
+ Copyright Holder. This restriction only applies to the primary font name as
64
+ presented to the users.
65
+
66
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
67
+ Software shall not be used to promote, endorse or advertise any
68
+ Modified Version, except to acknowledge the contribution(s) of the
69
+ Copyright Holder(s) and the Author(s) or with their explicit written
70
+ permission.
71
+
72
+ 5) The Font Software, modified or unmodified, in part or in whole,
73
+ must be distributed entirely under this license, and must not be
74
+ distributed under any other license. The requirement for fonts to
75
+ remain under this license does not apply to any document created
76
+ using the Font Software.
77
+
78
+ TERMINATION
79
+ This license becomes null and void if any of the above conditions are
80
+ not met.
81
+
82
+ DISCLAIMER
83
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
84
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
85
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
86
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
87
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
88
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
89
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
90
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
91
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,14 @@
1
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
+ Version 2, December 2004
3
+
4
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
5
+
6
+ Everyone is permitted to copy and distribute verbatim or modified
7
+ copies of this license document, and changing it is allowed as long
8
+ as the name is changed.
9
+
10
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
+
13
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
14
+
@@ -42,8 +42,6 @@ module LicenseFinder
42
42
  attr_reader :ignored_groups
43
43
 
44
44
  def definition
45
- # DI
46
- ENV['BUNDLE_PATH'] = project_path.to_s
47
45
  ENV['BUNDLE_GEMFILE'] = "#{project_path}/#{gemfile}"
48
46
 
49
47
  @definition ||= ::Bundler::Definition.build(detected_package_path, lockfile_path, nil)
@@ -6,7 +6,8 @@ module LicenseFinder
6
6
  class Cargo < PackageManager
7
7
  def current_packages
8
8
  cargo_output.map do |package|
9
- CargoPackage.new(package, logger: logger)
9
+ path = Dir.glob("#{Dir.home}/.cargo/registry/src/**/#{package['name']}-#{package['version']}").first
10
+ CargoPackage.new(package, logger: logger, install_path: path)
10
11
  end
11
12
  end
12
13
 
@@ -12,7 +12,11 @@ module LicenseFinder
12
12
 
13
13
  def current_packages
14
14
  dependency_list.map do |name, dependency|
15
- ComposerPackage.new(name, dependency['version'], spec_licenses: dependency['license'])
15
+ path_command = "composer show #{name} -P"
16
+ stdout, _stderr, status = Dir.chdir(project_path) { Cmd.run(path_command) }
17
+
18
+ path = status.success? ? stdout.split(' ').last : ''
19
+ ComposerPackage.new(name, dependency['version'], spec_licenses: dependency['license'], install_path: path)
16
20
  end
17
21
  end
18
22
 
@@ -21,12 +21,10 @@ module LicenseFinder
21
21
  end
22
22
 
23
23
  def current_packages
24
- info_output, _stderr, _status = Cmd.run("GO111MODULE=on go list -m -mod=vendor -f '{{.Path}},{{.Version}},{{.Dir}}' all")
25
- packages_info = info_output.split("\n")
26
24
  packages = packages_info.map do |package|
27
25
  name, version, install_path = package.split(',')
28
- read_package(install_path, name, version)
29
- end
26
+ read_package(install_path, name, version) if install_path.to_s != ''
27
+ end.compact
30
28
  packages.reject do |package|
31
29
  Pathname(package.install_path).cleanpath == Pathname(project_path).cleanpath
32
30
  end
@@ -34,6 +32,13 @@ module LicenseFinder
34
32
 
35
33
  private
36
34
 
35
+ def packages_info
36
+ info_output, stderr, _status = Cmd.run("GO111MODULE=on go list -m -mod=vendor -f '{{.Path}},{{.Version}},{{.Dir}}' all")
37
+ info_output, _stderr, _status = Cmd.run("GO111MODULE=on go list -m -f '{{.Path}},{{.Version}},{{.Dir}}' all") if stderr =~ Regexp.compile("can't compute 'all' using the vendor directory")
38
+
39
+ info_output.split("\n")
40
+ end
41
+
37
42
  def sum_files?
38
43
  sum_file_paths.any?
39
44
  end
@@ -30,7 +30,9 @@ module LicenseFinder
30
30
  'version' => version,
31
31
  'licenses' => [{ 'name' => row['License'] }]
32
32
  }
33
- SbtPackage.new(spec, logger: logger, include_groups: @include_groups)
33
+
34
+ path = File.join("#{Dir.home}/.ivy2/cache", "#{spec['groupId']}/#{spec['artifactId']}")
35
+ SbtPackage.new(spec, logger: logger, include_groups: @include_groups, install_path: path)
34
36
  end
35
37
  end
36
38
 
@@ -13,7 +13,7 @@ module LicenseFinder
13
13
  name = hash['ImportPath']
14
14
  install_path = hash['InstallPath']
15
15
  install_path ||= install_path(prefix.join(name))
16
- version = full_version ? hash['Rev'] : hash['Rev'][0..6]
16
+ version = full_version ? hash['Rev'].gsub('+incompatible', '') : hash['Rev'][0..6]
17
17
  homepage = hash['Homepage']
18
18
  new(name, version, install_path: install_path, package_manager: 'Go', homepage: homepage)
19
19
  end
@@ -10,7 +10,8 @@ module LicenseFinder
10
10
  name,
11
11
  spec['version'],
12
12
  options.merge(
13
- spec_licenses: Array(spec['licenses']).map { |l| l['name'] }
13
+ spec_licenses: Array(spec['licenses']).map { |l| l['name'] },
14
+ groups: Array(spec['groupId'])
14
15
  )
15
16
  )
16
17
  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.2.0
4
+ version: 6.3.0
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-04-07 00:00:00.000000000 Z
30
+ date: 2020-05-06 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler
@@ -392,9 +392,11 @@ files:
392
392
  - lib/license_finder/license/templates/MIT.txt
393
393
  - lib/license_finder/license/templates/MPL2.txt
394
394
  - lib/license_finder/license/templates/NewBSD.txt
395
+ - lib/license_finder/license/templates/OFL.txt
395
396
  - lib/license_finder/license/templates/Python.txt
396
397
  - lib/license_finder/license/templates/Ruby.txt
397
398
  - lib/license_finder/license/templates/SimplifiedBSD.txt
399
+ - lib/license_finder/license/templates/WTFPL.txt
398
400
  - lib/license_finder/license/text.rb
399
401
  - lib/license_finder/license_aggregator.rb
400
402
  - lib/license_finder/logger.rb
@@ -498,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
500
  - !ruby/object:Gem::Version
499
501
  version: '0'
500
502
  requirements: []
501
- rubygems_version: 3.1.2
503
+ rubygems_version: 3.1.3
502
504
  signing_key:
503
505
  specification_version: 4
504
506
  summary: Audit the OSS licenses of your application's dependencies.