license_finder 5.1.0 → 5.1.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: 0f61e3d2e9a0285c561c1192e95d0b91e3a46472960bf70e03bc454f0d66d65f
4
- data.tar.gz: 2e09b02961abd261e2998a53d5e67122ffe6dec115976ec4bda85d917ea24841
3
+ metadata.gz: bf22abdb4c164d84684862be8ea981b5ca1e50cc904eaad9f781181136f7ba1f
4
+ data.tar.gz: 48fb666561fe7634d8ca44cfcec2c9e10695c7e424a21e2b3d44c452e533c32e
5
5
  SHA512:
6
- metadata.gz: cb8e2141ca54fe804bcd94417444b75786042c08c8ecd63d58d23612b12d112fd22a635a6410c207c9ff945f1c86f1fe66de07dd26fe36dd9a0fde5d3d088325
7
- data.tar.gz: 8e232fde4fafe4ea8162c8cab8664339ef2e2fbd666484b95ff1fc273b5904ec9ecafe7b3e1f3f05eed23c1eabcb770cc167c00983a87bd74575612efa9e0d75
6
+ metadata.gz: 2d237edc709deb2f705752c70815a36bcf0dcbff580b0b13d92edeee14a4f7f4933956160b00d5443b3e26c2fbc29f7fed2c44dbda795bf15249b5a4416d1aaf
7
+ data.tar.gz: 265d074bc3e30d0e4120925b0fd11d049a2693e5c18150b69e5327928bfdfbc0a8a64993d397ba96e79e611bad50d2a7667fb83ea58d9047bf6a16d4e230da69
@@ -1,33 +1,50 @@
1
+ # [5.1.0] / 2018-04-02
2
+
3
+ ### Added
4
+ * Support for Ruby 2.5.1 - [9c82a84](https://github.com/pivotal-legacy/LicenseFinder/commit/9c82a84a3cff0765a45fa28dc2b05ab32880fb00)
5
+ * Support for Scala build Tool (sbt ) - [2115ddf](https://github.com/pivotal-legacy/LicenseFinder/commit/2115ddfe9481d17e6b1d0ac63d6ae1c6143f370c) - Bradford D. Boyle
6
+ * Condense gvt paths with identical shas into their common path - [9e1071d](https://github.com/pivotal-legacy/LicenseFinder/commit/9e1071d3c92405a8605727ad1164d6581dc50533)
7
+
8
+ ### Fixed
9
+ * Added back the pip prepare commands [#156376451 finish] - [fdd63fb](https://github.com/pivotal-legacy/LicenseFinder/commit/fdd63fb38332230e0cce0ee1b47aa5ccd0eebc36)
10
+ * Govendor not consolidating common paths from the same SHA - [bdd23c9](https://github.com/pivotal-legacy/LicenseFinder/commit/bdd23c94ae6ff09a2466c8875e554de60db6603c)
11
+
12
+ ### Deprecated
13
+ * Support for Ruby 2.1
14
+ * Support for Ruby 2.2
15
+ * Support for jruby - [9c82a84](https://github.com/pivotal-legacy/LicenseFinder/commit/9c82a84a3cff0765a45fa28dc2b05ab32880fb00)
16
+
1
17
  # [5.0.3] / 2018-02-13
2
18
 
3
19
  ### Changed
4
- * Add the -vendor-only flag to dep-ensure calls - [e305bd1](https://github.com/pivotal/LicenseFinder/commit/e305bd1d5b2d9653f828c3940b59a12903904699)
20
+ * Add the -vendor-only flag to dep-ensure calls - [e305bd1](https://github.com/pivotal-legacy/LicenseFinder/commit/e305bd1d5b2d9653f828c3940b59a12903904699)
21
+ * Update detected paths for Nuget - [3fe8995](https://github.com/pivotal-legacy/LicenseFinder/commit/3fe89955d82c3467628abbd2ca9ba159bfeb7df6)
5
22
 
6
23
  # [5.0.2] / 2018-02-06
7
24
 
8
25
  ### Fixed
9
- * Add conditional production flag to npm - [533f9b8](https://github.com/pivotal/LicenseFinder/commit/533f9b8fda250655f3613444da49fdce60215237)
10
- * conan install & info commands - [322e64c](https://github.com/pivotal/LicenseFinder/commit/322e64c402f4e45d97c6f3bf67c3ffdaabbb359f)
11
- * Duplicate approvals in decisions file - [a8e6141](https://github.com/pivotal/LicenseFinder/commit/a8e6141cd7ac7ed2aa10b35c55954a48bacf3523)
12
- * log path issues - [9f1bae1](https://github.com/pivotal/LicenseFinder/commit/9f1bae12c88771229e0a919876f4de6bcad31677)
26
+ * Add conditional production flag to npm - [533f9b8](https://github.com/pivotal-legacy/LicenseFinder/commit/533f9b8fda250655f3613444da49fdce60215237)
27
+ * conan install & info commands - [322e64c](https://github.com/pivotal-legacy/LicenseFinder/commit/322e64c402f4e45d97c6f3bf67c3ffdaabbb359f)
28
+ * Duplicate approvals in decisions file - [a8e6141](https://github.com/pivotal-legacy/LicenseFinder/commit/a8e6141cd7ac7ed2aa10b35c55954a48bacf3523)
29
+ * log path issues - [9f1bae1](https://github.com/pivotal-legacy/LicenseFinder/commit/9f1bae12c88771229e0a919876f4de6bcad31677)
13
30
 
14
- * Fix yarn not working with --project_path option - [c6ed08d](https://github.com/pivotal/LicenseFinder/commit/c6ed08dd8342dec9fcc3e6377f88d5ef01600928)
31
+ * Fix yarn not working with --project_path option - [c6ed08d](https://github.com/pivotal-legacy/LicenseFinder/commit/c6ed08dd8342dec9fcc3e6377f88d5ef01600928)
15
32
 
16
33
  # [5.0.0] / 2018-01-15
17
34
 
18
35
  ### Added
19
- * NPM prepare - [e7a0d30](https://github.com/pivotal/LicenseFinder/commit/e7a0d30cb77e5503b5a934b26dbd3dc272dc5605)
20
- * Specify log directory for prepare - [b9a5991](https://github.com/pivotal/LicenseFinder/commit/b9a599171f3fda2affa9381d998e2158a2bf7fac)
36
+ * NPM prepare - [e7a0d30](https://github.com/pivotal-legacy/LicenseFinder/commit/e7a0d30cb77e5503b5a934b26dbd3dc272dc5605)
37
+ * Specify log directory for prepare - [b9a5991](https://github.com/pivotal-legacy/LicenseFinder/commit/b9a599171f3fda2affa9381d998e2158a2bf7fac)
21
38
 
22
- * Added prepare step for elixir projects - [38b08ea](https://github.com/pivotal/LicenseFinder/commit/38b08eae23b6b0c2bbaa3aea7845ab6a8d9b028b)
39
+ * Added prepare step for elixir projects - [38b08ea](https://github.com/pivotal-legacy/LicenseFinder/commit/38b08eae23b6b0c2bbaa3aea7845ab6a8d9b028b)
23
40
 
24
41
  ### Fixed
25
- * Action_items resolves decisions file path - [c2a92ab](https://github.com/pivotal/LicenseFinder/commit/c2a92ab62203efb890dfeb1798d377c8d835feb6)
42
+ * Action_items resolves decisions file path - [c2a92ab](https://github.com/pivotal-legacy/LicenseFinder/commit/c2a92ab62203efb890dfeb1798d377c8d835feb6)
26
43
 
27
- * Bower prepare step - [bb11d7f](https://github.com/pivotal/LicenseFinder/commit/bb11d7f07cc5e436381f01245a46033af6bb2d3b)
44
+ * Bower prepare step - [bb11d7f](https://github.com/pivotal-legacy/LicenseFinder/commit/bb11d7f07cc5e436381f01245a46033af6bb2d3b)
28
45
 
29
46
  ### Changed
30
- * Package Manager will now log if prepare step fails. Instead of erroring out - [54da71e](https://github.com/pivotal/LicenseFinder/commit/54da71e98f14cd199c39dfd7b762030fcac60ccb)
47
+ * Package Manager will now log if prepare step fails. Instead of erroring out - [54da71e](https://github.com/pivotal-legacy/LicenseFinder/commit/54da71e98f14cd199c39dfd7b762030fcac60ccb)
31
48
 
32
49
  # [4.0.2] / 2017-11-16
33
50
 
@@ -292,7 +309,7 @@ Bugfixes:
292
309
  * Bugfixes
293
310
 
294
311
  * Process incorrectly-defined dependencies.
295
- [Original issue.](https://github.com/pivotal/LicenseFinder/issues/108)
312
+ [Original issue.](https://github.com/pivotal-legacy/LicenseFinder/issues/108)
296
313
  * Allow license_finder to process incorrectly-defined dependencies.
297
314
 
298
315
 
@@ -541,15 +558,16 @@ Bugfixes:
541
558
  * Fix blow up if there's not `ignore_groups` setting in the config file.
542
559
 
543
560
 
544
- [Unreleased]: https://github.com/pivotal/LicenseFinder/compare/v4.0.2...HEAD
545
- [4.0.2]: https://github.com/pivotal/LicenseFinder/compare/v4.0.1...v4.0.2
546
- [4.0.1]: https://github.com/pivotal/LicenseFinder/compare/v4.0.0...v4.0.1
547
- [4.0.0]: https://github.com/pivotal/LicenseFinder/compare/v3.1.0...v4.0.0
548
- [3.1.0]: https://github.com/pivotal/LicenseFinder/compare/v3.0.4...v3.1.0
549
- [3.0.4]: https://github.com/pivotal/LicenseFinder/compare/v3.0.2...v3.0.4
550
- [3.0.2]: https://github.com/pivotal/LicenseFinder/compare/v3.0.1...v3.0.2
551
- [3.0.1]: https://github.com/pivotal/LicenseFinder/compare/v3.0.0...v3.0.1
552
- [3.0.0]: https://github.com/pivotal/LicenseFinder/compare/v2.1.2...v3.0.0
553
- [5.0.0]: https://github.com/pivotal/LicenseFinder/compare/v4.0.2...v5.0.0
554
- [5.0.2]: https://github.com/pivotal/LicenseFinder/compare/v5.0.0...v5.0.2
555
- [5.0.3]: https://github.com/pivotal/LicenseFinder/compare/v5.0.2...v5.0.3
561
+ [Unreleased]: https://github.com/pivotal-legacy/LicenseFinder/compare/v4.0.2...HEAD
562
+ [4.0.2]: https://github.com/pivotal-legacy/LicenseFinder/compare/v4.0.1...v4.0.2
563
+ [4.0.1]: https://github.com/pivotal-legacy/LicenseFinder/compare/v4.0.0...v4.0.1
564
+ [4.0.0]: https://github.com/pivotal-legacy/LicenseFinder/compare/v3.1.0...v4.0.0
565
+ [3.1.0]: https://github.com/pivotal-legacy/LicenseFinder/compare/v3.0.4...v3.1.0
566
+ [3.0.4]: https://github.com/pivotal-legacy/LicenseFinder/compare/v3.0.2...v3.0.4
567
+ [3.0.2]: https://github.com/pivotal-legacy/LicenseFinder/compare/v3.0.1...v3.0.2
568
+ [3.0.1]: https://github.com/pivotal-legacy/LicenseFinder/compare/v3.0.0...v3.0.1
569
+ [3.0.0]: https://github.com/pivotal-legacy/LicenseFinder/compare/v2.1.2...v3.0.0
570
+ [5.0.0]: https://github.com/pivotal-legacy/LicenseFinder/compare/v4.0.2...v5.0.0
571
+ [5.0.2]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.0.0...v5.0.2
572
+ [5.0.3]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.0.2...v5.0.3
573
+ [5.1.0]: https://github.com/pivotal-legacy/LicenseFinder/compare/v5.0.3...v5.1.0
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## TL;DR
4
4
 
5
- * Fork the project from https://github.com/pivotal/LicenseFinder
5
+ * Fork the project from https://github.com/pivotal-legacy/LicenseFinder
6
6
  * Create a feature branch.
7
7
  * Make your feature addition or bug fix. Please make sure there is appropriate test coverage.
8
8
  * Rebase on top of master.
@@ -37,14 +37,14 @@ docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -l
37
37
  ## Adding Package Managers
38
38
 
39
39
  There are a few steps to adding a new package manager.
40
- The main things which need to be implemented are mentioned in [Package Manager](https://github.com/pivotal/LicenseFinder/blob/master/lib/license_finder/package_manager.rb).
40
+ The main things which need to be implemented are mentioned in [Package Manager](https://github.com/pivotal-legacy/LicenseFinder/blob/master/lib/license_finder/package_manager.rb).
41
41
 
42
- [Here](https://github.com/pivotal/LicenseFinder/compare/v2.0.0...v2.0.1) is how
42
+ [Here](https://github.com/pivotal-legacy/LicenseFinder/compare/v2.0.0...v2.0.1) is how
43
43
  support was added for `rebar`, an `erlang` package manager.
44
44
 
45
45
  There are feature tests and unit tests for each currently supported package manager.
46
- * [Feature test example](https://github.com/pivotal/LicenseFinder/blob/master/features/features/package_managers/gvt_spec.rb)
47
- * [Unit test example](https://github.com/pivotal/LicenseFinder/blob/master/spec/lib/license_finder/package_managers/gvt_spec.rb)
46
+ * [Feature test example](https://github.com/pivotal-legacy/LicenseFinder/blob/master/features/features/package_managers/gvt_spec.rb)
47
+ * [Unit test example](https://github.com/pivotal-legacy/LicenseFinder/blob/master/spec/lib/license_finder/package_managers/gvt_spec.rb)
48
48
 
49
49
  ## Adding Licenses
50
50
 
@@ -62,7 +62,7 @@ submitting a pull request which adds new columns to
62
62
  It is also possible to generate a custom report from an ERB template. Use this
63
63
  [example](https://gist.github.com/mainej/b190d2f138c2b9e2e20a) as a starting
64
64
  point. These reports will have access to the helpers in
65
- [`LicenseFinder::ErbReport`](https://github.com/pivotal/LicenseFinder/blob/master/lib/license_finder/reports/erb_report.rb).
65
+ [`LicenseFinder::ErbReport`](https://github.com/pivotal-legacy/LicenseFinder/blob/master/lib/license_finder/reports/erb_report.rb).
66
66
 
67
67
  If you need a report with more detailed data or in a different format, we
68
68
  recommend writing a custom ruby script. This
data/Dockerfile CHANGED
@@ -105,7 +105,7 @@ RUN bash -lc "gem update --system && gem install bundler"
105
105
 
106
106
  # install conan
107
107
  RUN apt-get install -y python-dev && \
108
- pip install --upgrade setuptools && \
108
+ pip install --ignore-installed six --ignore-installed colorama --ignore-installed requests --ignore-installed chardet --ignore-installed urllib3 --upgrade setuptools && \
109
109
  pip install conan
110
110
 
111
111
  # install license_finder
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # License Finder
2
2
 
3
- [![Code Climate](https://codeclimate.com/github/pivotal/LicenseFinder.png)](https://codeclimate.com/github/pivotal/LicenseFinder)
3
+ [![Code Climate](https://codeclimate.com/github/pivotal-legacy/LicenseFinder.png)](https://codeclimate.com/github/pivotal-legacy/LicenseFinder)
4
4
 
5
5
  Build status
6
6
  * Ruby 2.1.5 [![Ruby 2.1.5 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.1.5/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
@@ -16,7 +16,7 @@ detect the licenses of the packages in them, compare those licenses
16
16
  against a user-defined whitelist, and give you an actionable exception
17
17
  report.
18
18
 
19
- * code: https://github.com/pivotal/LicenseFinder
19
+ * code: https://github.com/pivotal-legacy/LicenseFinder
20
20
  * ci: https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder
21
21
  * docker: [licensefinder/license_finder](https://hub.docker.com/r/licensefinder/license_finder/)
22
22
  * the docker image contains all the package managers needed to run `license_finder`
@@ -148,7 +148,7 @@ passed to it from that directory.
148
148
  Note that the docker image will run the gem which is installed within it.
149
149
  So the docker image tagged `4.0.2` will run *License Finder Version 4.0.2*
150
150
 
151
- See the [contibuting guide](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md) for information on development.
151
+ See the [contibuting guide](https://github.com/pivotal-legacy/LicenseFinder/blob/master/CONTRIBUTING.md) for information on development.
152
152
 
153
153
  ### Activation
154
154
 
@@ -279,7 +279,7 @@ all of your project's dependencies and includes information about which need to
279
279
  be approved. The project name at the top of the report can be set with
280
280
  `license_finder project_name add`.
281
281
 
282
- See [CONTRIBUTING.md](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md#adding-reports)
282
+ See [CONTRIBUTING.md](https://github.com/pivotal-legacy/LicenseFinder/blob/master/CONTRIBUTING.md#adding-reports)
283
283
  for advice about adding and customizing reports.
284
284
 
285
285
 
@@ -473,7 +473,7 @@ And save a `LICENSE` file which contains your license text in your repo.
473
473
 
474
474
  ## Contributing
475
475
 
476
- See [CONTRIBUTING.md](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md).
476
+ See [CONTRIBUTING.md](https://github.com/pivotal-legacy/LicenseFinder/blob/master/CONTRIBUTING.md).
477
477
 
478
478
 
479
479
  ## License
@@ -18,12 +18,12 @@ resources:
18
18
  - name: LicenseFinder
19
19
  type: git
20
20
  source:
21
- uri: https://github.com/pivotal/LicenseFinder.git
21
+ uri: https://github.com/pivotal-legacy/LicenseFinder.git
22
22
  branch: master
23
23
  - name: pull-request
24
24
  type: pull-request
25
25
  source:
26
- repo: pivotal/LicenseFinder
26
+ repo: pivotal-legacy/LicenseFinder
27
27
  base: master
28
28
  access_token: ((GithubApiPullRequestToken))
29
29
 
@@ -2,7 +2,7 @@ resources:
2
2
  - name: lf-git
3
3
  type: git
4
4
  source:
5
- uri: git@github.com:pivotal/LicenseFinder.git
5
+ uri: git@github.com:pivotal-legacy/LicenseFinder.git
6
6
  private_key: ((CfOslBotPrivateKey))
7
7
  branch: master
8
8
 
@@ -106,7 +106,6 @@ jobs:
106
106
  - put: lf-git
107
107
  params:
108
108
  repository: lf-git-changed
109
- tag: version/tag.txt
110
109
  - put: lf-release
111
110
  params:
112
111
  name: version/tag.txt
@@ -5,7 +5,7 @@ set -e
5
5
  git clone lf-git lf-git-changed
6
6
 
7
7
  CHANGELOG_FILE="CHANGELOG.md"
8
- COMMIT_URL="https://github.com/pivotal/LicenseFinder/commit/"
8
+ COMMIT_URL="https://github.com/pivotal-legacy/LicenseFinder/commit/"
9
9
 
10
10
  TAGS=( "Added" "ADDED" "Fixed" "FIXED" "Changed" "CHANGED" "Deprecated" "DEPRECATED" "Removed" "REMOVED" "Security" "SECURITY" )
11
11
  CONTRIBUTORS=( "Shane Lattanzio" "Daniil Kouznetsov" "Andy Shen" "Li Tai" "Ryan Collins" "Vikram Yadav" )
@@ -48,7 +48,7 @@ done
48
48
  echo -e "$LOG\n$(cat $CHANGELOG_FILE)" > $CHANGELOG_FILE
49
49
 
50
50
  # Append version hyperlink to the end of the file
51
- echo -e "[$VERSION]: https://github.com/pivotal/LicenseFinder/compare/$OLD...$VERSION_TAG" >> $CHANGELOG_FILE
51
+ echo -e "[$VERSION]: https://github.com/pivotal-legacy/LicenseFinder/compare/$OLD...$VERSION_TAG" >> $CHANGELOG_FILE
52
52
 
53
53
  git config --global user.email $GIT_EMAIL
54
54
  git config --global user.name $GIT_USERNAME
@@ -7,6 +7,7 @@ module LicenseFinder
7
7
  [
8
8
  apache2,
9
9
  bsd,
10
+ cc01,
10
11
  gplv2,
11
12
  gplv3,
12
13
  isc,
@@ -57,6 +58,15 @@ module LicenseFinder
57
58
  )
58
59
  end
59
60
 
61
+ def cc01
62
+ License.new(
63
+ short_name: 'CC01',
64
+ pretty_name: 'CC0 1.0 Universal',
65
+ other_names: ['CC0 1.0'],
66
+ url: 'http://creativecommons.org/publicdomain/zero/1.0'
67
+ )
68
+ end
69
+
60
70
  def gplv2
61
71
  License.new(
62
72
  short_name: 'GPLv2',
@@ -0,0 +1,30 @@
1
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
2
+
3
+ Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
6
+
7
+ Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
8
+
9
+ For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
10
+
11
+ 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
12
+
13
+ i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
14
+ ii. moral rights retained by the original author(s) and/or performer(s);
15
+ iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
16
+ iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
17
+ v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
18
+ vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
19
+ vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
20
+
21
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
22
+
23
+ 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
24
+
25
+ 4. Limitations and Disclaimers.
26
+
27
+ a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
28
+ b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
29
+ c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
30
+ d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
@@ -31,25 +31,46 @@ module LicenseFinder
31
31
 
32
32
  private
33
33
 
34
+ def end_of_package_lines?(line)
35
+ line == 'ok'
36
+ end
37
+
34
38
  def mix_output
35
39
  command = "#{@command} deps"
36
40
  stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) }
37
41
  raise "Command '#{command}' failed to execute: #{stderr}" unless status.success?
38
42
 
39
- stdout
43
+ packages_lines(stdout)
44
+ .reject { |package_lines| package_lines.length == 1 } # in_umbrella: true dependencies
45
+ .map { |package_lines| [package_lines[0].split(' ')[1], resolve_version(package_lines[1])] }
46
+ end
47
+
48
+ def packages_lines(stdout)
49
+ packages_lines, last_package_lines =
50
+ stdout
40
51
  .each_line
41
52
  .map(&:strip)
42
- .select { |line| line_of_interest? line }
43
- .each_slice(2).to_a
44
- .map { |line1, line2| [line1.split(' ')[1], resolve_version(line2)] }
45
- end
53
+ .reject { |line| end_of_package_lines?(line) }
54
+ .reduce([[], []]) do |(packages_lines, package_lines), line|
55
+ if start_of_package_lines?(line)
56
+ packages_lines.push(package_lines) unless package_lines.empty?
46
57
 
47
- def line_of_interest?(line)
48
- line.start_with?('* ', 'locked at', 'the dependency is not available')
58
+ [packages_lines, [line]]
59
+ else
60
+ package_lines.push(line)
61
+ [packages_lines, package_lines]
62
+ end
63
+ end
64
+
65
+ packages_lines.push(last_package_lines)
49
66
  end
50
67
 
51
68
  def resolve_version(line)
52
69
  line =~ /locked at ([^\s]+)/ ? Regexp.last_match(1) : line
53
70
  end
71
+
72
+ def start_of_package_lines?(line)
73
+ line.start_with?('* ')
74
+ end
54
75
  end
55
76
  end
@@ -17,7 +17,7 @@ module LicenseFinder
17
17
  packages = []
18
18
  incompatible_packages = []
19
19
 
20
- json_strings = stdout.split("\n")
20
+ json_strings = stdout.encode('ASCII', invalid: :replace, undef: :replace, replace: '?').split("\n")
21
21
  json_objects = json_strings.map { |json_object| JSON.parse(json_object) }
22
22
 
23
23
  if json_objects.last['type'] == 'table'
@@ -1,3 +1,3 @@
1
1
  module LicenseFinder
2
- VERSION = '5.1.0'.freeze
2
+ VERSION = '5.1.1'.freeze
3
3
  end
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  ]
34
34
 
35
35
  s.email = ['labs-commoncode@pivotal.io']
36
- s.homepage = 'https://github.com/pivotal/LicenseFinder'
36
+ s.homepage = 'https://github.com/pivotal-legacy/LicenseFinder'
37
37
  s.summary = "Audit the OSS licenses of your application's dependencies."
38
38
 
39
39
  s.description = <<-DESCRIPTION
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.1.0
4
+ version: 5.1.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-04-02 00:00:00.000000000 Z
30
+ date: 2018-05-08 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler
@@ -354,6 +354,7 @@ files:
354
354
  - lib/license_finder/license/template.rb
355
355
  - lib/license_finder/license/templates/Apache2.txt
356
356
  - lib/license_finder/license/templates/BSD.txt
357
+ - lib/license_finder/license/templates/CC01.txt
357
358
  - lib/license_finder/license/templates/GPLv2.txt
358
359
  - lib/license_finder/license/templates/GPLv3.txt
359
360
  - lib/license_finder/license/templates/ISC.txt
@@ -435,7 +436,7 @@ files:
435
436
  - lib/license_finder/version.rb
436
437
  - license_finder.gemspec
437
438
  - release/instructions.md
438
- homepage: https://github.com/pivotal/LicenseFinder
439
+ homepage: https://github.com/pivotal-legacy/LicenseFinder
439
440
  licenses:
440
441
  - MIT
441
442
  metadata: {}