license_finder 5.0.0 → 5.0.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 +28 -0
- data/Dockerfile +3 -2
- data/README.md +15 -6
- data/Rakefile +7 -0
- data/ci/pipelines/pipeline.yml.erb +3 -3
- data/ci/pipelines/release.yml +21 -0
- data/ci/scripts/bump-patch-version.sh +26 -0
- data/ci/scripts/containerize-tests.sh +1 -1
- data/ci/scripts/pushscript.sh +16 -2
- data/ci/tasks/build.yml +1 -1
- data/ci/tasks/bump-patch-version.yml +13 -0
- data/dlf +5 -1
- data/lib/license_finder/cli/base.rb +1 -1
- data/lib/license_finder/configuration.rb +6 -1
- data/lib/license_finder/decisions.rb +4 -6
- data/lib/license_finder/license_aggregator.rb +1 -0
- data/lib/license_finder/package_manager.rb +2 -1
- data/lib/license_finder/package_managers/conan.rb +2 -2
- data/lib/license_finder/package_managers/npm.rb +14 -1
- data/lib/license_finder/package_managers/nuget.rb +1 -1
- data/lib/license_finder/package_managers/yarn.rb +5 -1
- data/lib/license_finder/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58979bd0f908773f5736e2a9bb808fb6a5f7872d
|
4
|
+
data.tar.gz: 001cd6b9bfe0d26a7a8b1a3b9cfce1b028b31cfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c198140b0eebf2f4f38f1748a74402a25a096b122abee79e15a01ca67a6f3cfd485cf447c87574181fbf7c53f0736442098f6dfc314355e2c66548039763899f
|
7
|
+
data.tar.gz: 1b2bd5f74c17ecb9e003cdf20fe90efa7f5fc1f3cb722938eb1057781692f04d27dd63fb131ba84bf17bd0e0aed42d7a1c0e5ae640491d788e3224704e604dcd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
# [5.0.1] / 2018-02-06
|
2
|
+
|
3
|
+
### Fixed
|
4
|
+
* Add conditional production flag to npm - [533f9b8](https://github.com/pivotal/LicenseFinder/commit/533f9b8fda250655f3613444da49fdce60215237)
|
5
|
+
* conan install & info commands - [322e64c](https://github.com/pivotal/LicenseFinder/commit/322e64c402f4e45d97c6f3bf67c3ffdaabbb359f)
|
6
|
+
* Duplicate approvals in decisions file - [a8e6141](https://github.com/pivotal/LicenseFinder/commit/a8e6141cd7ac7ed2aa10b35c55954a48bacf3523)
|
7
|
+
* log path issues - [9f1bae1](https://github.com/pivotal/LicenseFinder/commit/9f1bae12c88771229e0a919876f4de6bcad31677)
|
8
|
+
|
9
|
+
* Fix yarn not working with --project_path option - [c6ed08d](https://github.com/pivotal/LicenseFinder/commit/c6ed08dd8342dec9fcc3e6377f88d5ef01600928)
|
10
|
+
|
11
|
+
# [5.0.0] / 2018-01-15
|
12
|
+
|
13
|
+
### Added
|
14
|
+
* NPM prepare - [e7a0d30](https://github.com/pivotal/LicenseFinder/commit/e7a0d30cb77e5503b5a934b26dbd3dc272dc5605)
|
15
|
+
* Specify log directory for prepare - [b9a5991](https://github.com/pivotal/LicenseFinder/commit/b9a599171f3fda2affa9381d998e2158a2bf7fac)
|
16
|
+
|
17
|
+
* Added prepare step for elixir projects - [38b08ea](https://github.com/pivotal/LicenseFinder/commit/38b08eae23b6b0c2bbaa3aea7845ab6a8d9b028b)
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
* Action_items resolves decisions file path - [c2a92ab](https://github.com/pivotal/LicenseFinder/commit/c2a92ab62203efb890dfeb1798d377c8d835feb6)
|
21
|
+
|
22
|
+
* Bower prepare step - [bb11d7f](https://github.com/pivotal/LicenseFinder/commit/bb11d7f07cc5e436381f01245a46033af6bb2d3b)
|
23
|
+
|
24
|
+
### Changed
|
25
|
+
* Package Manager will now log if prepare step fails. Instead of erroring out - [54da71e](https://github.com/pivotal/LicenseFinder/commit/54da71e98f14cd199c39dfd7b762030fcac60ccb)
|
26
|
+
|
1
27
|
# [4.0.2] / 2017-11-16
|
2
28
|
|
3
29
|
### Fixed
|
@@ -519,3 +545,5 @@ Bugfixes:
|
|
519
545
|
[3.0.2]: https://github.com/pivotal/LicenseFinder/compare/v3.0.1...v3.0.2
|
520
546
|
[3.0.1]: https://github.com/pivotal/LicenseFinder/compare/v3.0.0...v3.0.1
|
521
547
|
[3.0.0]: https://github.com/pivotal/LicenseFinder/compare/v2.1.2...v3.0.0
|
548
|
+
[5.0.0]: https://github.com/pivotal/LicenseFinder/compare/v4.0.2...v5.0.0
|
549
|
+
[5.0.1]: https://github.com/pivotal/LicenseFinder/compare/v5.0.0...v5.0.1
|
data/Dockerfile
CHANGED
@@ -77,8 +77,8 @@ ENV LANGUAGE=en_US:en
|
|
77
77
|
ENV LC_ALL=en_US.UTF-8
|
78
78
|
|
79
79
|
#install rvm
|
80
|
-
RUN
|
81
|
-
curl -sSL https://
|
80
|
+
RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import && \
|
81
|
+
curl -sSL https://get.rvm.io | sudo bash -s stable --ruby=2.4.1
|
82
82
|
ENV PATH=/usr/local/rvm/bin:$PATH
|
83
83
|
|
84
84
|
#install mix
|
@@ -93,6 +93,7 @@ RUN bash -lc "gem update --system && gem install bundler"
|
|
93
93
|
|
94
94
|
# install conan
|
95
95
|
RUN apt-get install -y python-dev && \
|
96
|
+
pip install --upgrade setuptools && \
|
96
97
|
pip install conan
|
97
98
|
|
98
99
|
# install license_finder
|
data/README.md
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
[![Code Climate](https://codeclimate.com/github/pivotal/LicenseFinder.png)](https://codeclimate.com/github/pivotal/LicenseFinder)
|
4
4
|
|
5
5
|
Build status
|
6
|
-
* Ruby 2.1.5 [![Ruby 2.1.5 build status](https://
|
7
|
-
* Ruby 2.2.0 [![Ruby 2.2.0 build status](https://
|
8
|
-
* Ruby 2.3.0 [![Ruby 2.3.0 build status](https://
|
9
|
-
* Ruby 2.4.1 [![Ruby 2.4.1 build status](https://
|
10
|
-
* JRuby 9.0.4.0 [![JRuby 9.0.4.0 build status](https://
|
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)
|
7
|
+
* Ruby 2.2.0 [![Ruby 2.2.0 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.2.0/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
|
8
|
+
* Ruby 2.3.0 [![Ruby 2.3.0 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.3.0/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
|
9
|
+
* Ruby 2.4.1 [![Ruby 2.4.1 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.4.1/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
|
10
|
+
* JRuby 9.0.4.0 [![JRuby 9.0.4.0 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-jruby-9.0.4.0/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
|
11
11
|
|
12
12
|
|
13
13
|
LicenseFinder works with your package managers to find dependencies,
|
@@ -16,7 +16,7 @@ against a user-defined whitelist, and give you an actionable exception
|
|
16
16
|
report.
|
17
17
|
|
18
18
|
* code: https://github.com/pivotal/LicenseFinder
|
19
|
-
* ci: https://
|
19
|
+
* ci: https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder
|
20
20
|
* docker: [licensefinder/license_finder](https://hub.docker.com/r/licensefinder/license_finder/)
|
21
21
|
* the docker image contains all the package managers needed to run `license_finder`
|
22
22
|
* support:
|
@@ -439,6 +439,15 @@ end
|
|
439
439
|
|
440
440
|
And save a `LICENSE` file which contains your license text in your repo.
|
441
441
|
|
442
|
+
## Known issues with specific package managers
|
443
|
+
|
444
|
+
* Bundler
|
445
|
+
* When using `--project-path`, Bundler cannot find the Gemfile.
|
446
|
+
|
447
|
+
* Yarn
|
448
|
+
* A module that is incompatible with the platform on which
|
449
|
+
license_finder is run will always be reported to have a license type
|
450
|
+
of "unknown". (#456)
|
442
451
|
|
443
452
|
## Support
|
444
453
|
|
data/Rakefile
CHANGED
@@ -62,6 +62,13 @@ task :update_pipeline, [:slack_url, :slack_channel] do |_, args|
|
|
62
62
|
system(cmd)
|
63
63
|
end
|
64
64
|
|
65
|
+
desc 'Configure release pipeline'
|
66
|
+
task :update_release_pipeline do
|
67
|
+
cmd = 'bash -c "fly -t osl set-pipeline -n -p LicenseFinder-release --config ci/pipelines/release.yml"'
|
68
|
+
|
69
|
+
system(cmd)
|
70
|
+
end
|
71
|
+
|
65
72
|
task spec: :check_dependencies
|
66
73
|
task features: :check_dependencies
|
67
74
|
|
@@ -52,7 +52,7 @@ jobs:
|
|
52
52
|
params:
|
53
53
|
channel: '<%= slack_channel %>'
|
54
54
|
icon_emoji: ':crying_cat_face:'
|
55
|
-
text: '<%= "License Finder build failed. Build: https://
|
55
|
+
text: '<%= "License Finder build failed. Build: https://norsk.cf-app.com/teams/main/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME" %>'
|
56
56
|
<% end %>
|
57
57
|
<% end %>
|
58
58
|
|
@@ -62,7 +62,7 @@ jobs:
|
|
62
62
|
params:
|
63
63
|
channel: '<%= slack_channel %>'
|
64
64
|
icon_emoji: ':crying_cat_face:'
|
65
|
-
text: '<%= "License Finder build failed. Build: https://
|
65
|
+
text: '<%= "License Finder build failed. Build: https://norsk.cf-app.com/teams/main/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME" %>'
|
66
66
|
<% end %>
|
67
67
|
|
68
68
|
<% ruby_versions.each do |ruby_version| %>
|
@@ -96,7 +96,7 @@ jobs:
|
|
96
96
|
params:
|
97
97
|
channel: '<%= slack_channel %>'
|
98
98
|
icon_emoji: ':crying_cat_face:'
|
99
|
-
text: '<%= "License Finder build failed. Build: https://
|
99
|
+
text: '<%= "License Finder build failed. Build: https://norsk.cf-app.com/teams/main/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME" %>'
|
100
100
|
<% end %>
|
101
101
|
<% end %>
|
102
102
|
|
data/ci/pipelines/release.yml
CHANGED
@@ -23,9 +23,27 @@ resources:
|
|
23
23
|
|
24
24
|
jobs:
|
25
25
|
|
26
|
+
- name: patch-version
|
27
|
+
plan:
|
28
|
+
- get: lf-git
|
29
|
+
- get: lf-image
|
30
|
+
params:
|
31
|
+
save: true
|
32
|
+
- task: bump-version
|
33
|
+
params:
|
34
|
+
image: lf-image
|
35
|
+
GIT_USERNAME: ((GithubApiUser))
|
36
|
+
GIT_EMAIL: ((GithubApiEmail))
|
37
|
+
file: lf-git/ci/tasks/bump-patch-version.yml
|
38
|
+
- put: lf-git
|
39
|
+
params:
|
40
|
+
repository: lf-git-changed
|
41
|
+
|
26
42
|
- name: release
|
27
43
|
plan:
|
28
44
|
- get: lf-git
|
45
|
+
trigger: true
|
46
|
+
passed: [ patch-version ]
|
29
47
|
- get: lf-image
|
30
48
|
params:
|
31
49
|
save: true
|
@@ -44,6 +62,9 @@ jobs:
|
|
44
62
|
- task: build-and-push-gem
|
45
63
|
image: lf-image
|
46
64
|
params:
|
65
|
+
GIT_USERNAME: ((GithubApiUser))
|
66
|
+
GIT_EMAIL: ((GithubApiEmail))
|
67
|
+
GIT_PRIVATE_KEY: ((CfOslBotPrivateKey))
|
47
68
|
GEM_API_KEY: ((LicenseFinderGemApiKey))
|
48
69
|
file: lf-git/ci/tasks/build-and-push-gem.yml
|
49
70
|
- put: lf-git
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/bin/bash --login
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
git clone lf-git lf-git-changed
|
6
|
+
|
7
|
+
VERSION_FILE="./lf-git-changed/lib/license_finder/version.rb"
|
8
|
+
|
9
|
+
VERSION="$(ruby -r "$VERSION_FILE" -e "puts LicenseFinder::VERSION")"
|
10
|
+
|
11
|
+
OLD_PATCH=$(cut -d'.' -f3 <<<"$VERSION")
|
12
|
+
|
13
|
+
NEW_PATCH=$(echo $((++OLD_PATCH)))
|
14
|
+
|
15
|
+
NEW_VERSION="$(cut -d'.' -f1,2 <<<"$VERSION").$NEW_PATCH"
|
16
|
+
|
17
|
+
sed -i.bak "s/$VERSION/$NEW_VERSION/g" "$VERSION_FILE"
|
18
|
+
|
19
|
+
cd lf-git-changed
|
20
|
+
git config --global user.email $GIT_EMAIL
|
21
|
+
git config --global user.name $GIT_USERNAME
|
22
|
+
|
23
|
+
git add "lib/license_finder/version.rb"
|
24
|
+
git commit -m "Update patch version to: $NEW_VERSION"
|
25
|
+
|
26
|
+
exit 0
|
data/ci/scripts/pushscript.sh
CHANGED
@@ -7,8 +7,22 @@ cd lf-git
|
|
7
7
|
build_version=$(ruby -r ./lib/license_finder/version.rb -e "puts LicenseFinder::VERSION")
|
8
8
|
built_gem="pkg/license_finder-$build_version.gem"
|
9
9
|
|
10
|
+
git config --global user.email $GIT_EMAIL
|
11
|
+
git config --global user.name $GIT_USERNAME
|
12
|
+
|
13
|
+
mkdir ~/.ssh
|
14
|
+
ssh-keyscan github.com >> ~/.ssh/known_hosts
|
15
|
+
eval "$(ssh-agent -s)"
|
16
|
+
echo "$GIT_PRIVATE_KEY" > ~/.ssh/id_rsa
|
17
|
+
chmod 600 ~/.ssh/id_rsa
|
18
|
+
ssh-add -k ~/.ssh/id_rsa
|
19
|
+
|
10
20
|
if [ -z "$(gem fetch license_finder -v $build_version 2>&1 | grep ERROR)" ]; then
|
11
|
-
|
21
|
+
echo "LicenseFinder-$build_version already exists on Rubygems"
|
22
|
+
else
|
23
|
+
rake release
|
12
24
|
fi
|
13
25
|
|
14
|
-
|
26
|
+
export EXIT_STATUS=$?
|
27
|
+
kill $(ps aux | grep ssh-agent | head -n 1 | awk '{print $2}')
|
28
|
+
exit $EXIT_STATUS
|
data/ci/tasks/build.yml
CHANGED
data/dlf
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
if `which docker > /dev/null`; then
|
3
|
-
|
3
|
+
if [ $# -eq 0 ]; then
|
4
|
+
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && /bin/bash -l"
|
5
|
+
else
|
6
|
+
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && bundle install && `echo $@`"
|
7
|
+
fi
|
4
8
|
else
|
5
9
|
echo "You do not have docker installed. Please install it:"
|
6
10
|
echo " https://docs.docker.com/engine/installation/"
|
@@ -8,7 +8,7 @@ module LicenseFinder
|
|
8
8
|
class_option :decisions_file,
|
9
9
|
desc: 'Where decisions are saved. Defaults to doc/dependency_decisions.yml.'
|
10
10
|
class_option :log_directory,
|
11
|
-
desc: 'Where logs are saved. Defaults to ./lf_logs/$PROJECT
|
11
|
+
desc: 'Where logs are saved. Defaults to ./lf_logs/$PROJECT/prepare_$PACKAGE_MANAGER.log'
|
12
12
|
|
13
13
|
no_commands do
|
14
14
|
def decisions
|
@@ -46,7 +46,12 @@ module LicenseFinder
|
|
46
46
|
|
47
47
|
def log_directory
|
48
48
|
path = get(:log_directory) || 'lf_logs'
|
49
|
-
|
49
|
+
|
50
|
+
if (aggregate_paths || recursive) && project_path == ''
|
51
|
+
Pathname(path).expand_path
|
52
|
+
else
|
53
|
+
project_path.join(path).expand_path
|
54
|
+
end
|
50
55
|
end
|
51
56
|
|
52
57
|
def project_path
|
@@ -51,8 +51,8 @@ module LicenseFinder
|
|
51
51
|
#######
|
52
52
|
|
53
53
|
TXN = Struct.new(:who, :why, :safe_when, :safe_versions) do
|
54
|
-
def self.from_hash(txn)
|
55
|
-
new(txn[:who], txn[:why], txn[:when],
|
54
|
+
def self.from_hash(txn, versions)
|
55
|
+
new(txn[:who], txn[:why], txn[:when], versions || [])
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -96,10 +96,8 @@ module LicenseFinder
|
|
96
96
|
|
97
97
|
versions = []
|
98
98
|
versions = @approvals[name][:safe_versions] if @approvals.key?(name)
|
99
|
-
|
100
|
-
@approvals[name]
|
101
|
-
|
102
|
-
@approvals[name][:safe_versions].concat(versions)
|
99
|
+
@approvals[name] = TXN.from_hash(txn, versions)
|
100
|
+
@approvals[name][:safe_versions].concat(txn[:versions]) unless txn[:versions].nil?
|
103
101
|
self
|
104
102
|
end
|
105
103
|
|
@@ -34,6 +34,7 @@ module LicenseFinder
|
|
34
34
|
@aggregate_paths.map do |path|
|
35
35
|
# Passing file paths as values instead of allowing them to evaluate in config
|
36
36
|
LicenseFinder::Core.new(@config.merge(project_path: path,
|
37
|
+
log_directory: @config.log_directory || @config.project_path,
|
37
38
|
decisions_file: @config.decisions_file_path))
|
38
39
|
end
|
39
40
|
end
|
@@ -61,6 +61,7 @@ module LicenseFinder
|
|
61
61
|
@logger = options[:logger] || Core.default_logger
|
62
62
|
@project_path = options[:project_path]
|
63
63
|
@log_directory = options[:log_directory]
|
64
|
+
@ignored_groups = options[:ignored_groups]
|
64
65
|
end
|
65
66
|
|
66
67
|
def active?
|
@@ -74,7 +75,7 @@ module LicenseFinder
|
|
74
75
|
|
75
76
|
def prepare
|
76
77
|
if self.class.prepare_command
|
77
|
-
_stdout, stderr, status = Cmd.run(self.class.prepare_command)
|
78
|
+
_stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(self.class.prepare_command) }
|
78
79
|
unless status.success?
|
79
80
|
log_errors stderr
|
80
81
|
raise "Prepare command '#{self.class.prepare_command}' failed" unless @prepare_no_fail
|
@@ -7,8 +7,8 @@ module LicenseFinder
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def current_packages
|
10
|
-
install_command = 'conan install'
|
11
|
-
info_command = 'conan info'
|
10
|
+
install_command = 'conan install .'
|
11
|
+
info_command = 'conan info .'
|
12
12
|
Dir.chdir(project_path) { Cmd.run(install_command) }
|
13
13
|
info_output, _stderr, _status = Dir.chdir(project_path) { Cmd.run(info_command) }
|
14
14
|
|
@@ -19,14 +19,27 @@ module LicenseFinder
|
|
19
19
|
[project_path.join('package.json')]
|
20
20
|
end
|
21
21
|
|
22
|
+
def prepare
|
23
|
+
prep_cmd = "#{NPM.prepare_command}#{production_flag}"
|
24
|
+
_stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(prep_cmd) }
|
25
|
+
return if status.success?
|
26
|
+
log_errors stderr
|
27
|
+
raise "Prepare command '#{prep_cmd}' failed" unless @prepare_no_fail
|
28
|
+
end
|
29
|
+
|
22
30
|
private
|
23
31
|
|
24
32
|
def npm_json
|
25
|
-
command = "#{NPM.package_management_command} list --json --long"
|
33
|
+
command = "#{NPM.package_management_command} list --json --long#{production_flag}"
|
26
34
|
stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) }
|
27
35
|
raise "Command '#{command}' failed to execute: #{stderr}" unless status.success?
|
28
36
|
|
29
37
|
JSON.parse(stdout)
|
30
38
|
end
|
39
|
+
|
40
|
+
def production_flag
|
41
|
+
return '' if @ignored_groups.nil?
|
42
|
+
@ignored_groups.include?('devDependencies') ? ' --production' : ''
|
43
|
+
end
|
31
44
|
end
|
32
45
|
end
|
@@ -53,7 +53,7 @@ module LicenseFinder
|
|
53
53
|
Zip::File.open file do |zipfile|
|
54
54
|
content = zipfile.read(dep.name + '.nuspec')
|
55
55
|
xml = REXML::Document.new(content)
|
56
|
-
REXML::XPath.match(xml, '//metadata//licenseUrl').map(&:get_text)
|
56
|
+
REXML::XPath.match(xml, '//metadata//licenseUrl').map(&:get_text).map(&:to_s)
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
@@ -7,7 +7,11 @@ module LicenseFinder
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def current_packages
|
10
|
-
|
10
|
+
cmd = Yarn::SHELL_COMMAND
|
11
|
+
suffix = " --cwd #{project_path}" unless project_path.nil?
|
12
|
+
cmd += suffix unless suffix.nil?
|
13
|
+
|
14
|
+
stdout, _stderr, status = Cmd.run(cmd)
|
11
15
|
return [] unless status.success?
|
12
16
|
|
13
17
|
packages = []
|
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.0.
|
4
|
+
version: 5.0.2
|
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-
|
30
|
+
date: 2018-02-07 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: bundler
|
@@ -311,6 +311,7 @@ files:
|
|
311
311
|
- bin/license_finder_pip.py
|
312
312
|
- ci/pipelines/pipeline.yml.erb
|
313
313
|
- ci/pipelines/release.yml
|
314
|
+
- ci/scripts/bump-patch-version.sh
|
314
315
|
- ci/scripts/containerize-tests.sh
|
315
316
|
- ci/scripts/pushscript.sh
|
316
317
|
- ci/scripts/run-rubocop.sh
|
@@ -320,6 +321,7 @@ files:
|
|
320
321
|
- ci/tasks/build-and-push-gem.yml
|
321
322
|
- ci/tasks/build-windows.yml
|
322
323
|
- ci/tasks/build.yml
|
324
|
+
- ci/tasks/bump-patch-version.yml
|
323
325
|
- ci/tasks/rubocop.yml
|
324
326
|
- ci/tasks/update-changelog.yml
|
325
327
|
- dlf
|