license_finder 6.1.2 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/VERSION +1 -1
- data/ci/pipelines/release.yml.erb +8 -19
- data/ci/scripts/pushscript.sh +1 -1
- data/ci/scripts/updateChangelog.sh +8 -1
- data/ci/tasks/build-and-push-gem.yml +2 -2
- data/ci/tasks/update-changelog.yml +2 -2
- data/lib/license_finder/package_managers/bundler.rb +5 -1
- data/lib/license_finder/package_managers/dep.rb +2 -2
- data/lib/license_finder/package_managers/glide.rb +2 -7
- data/lib/license_finder/package_managers/go_workspace.rb +5 -1
- data/license_finder.gemspec +5 -5
- metadata +15 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9346290d1b6444834799d917362604ab2b8c8cf02c798fa0125d48e2e96b185e
|
4
|
+
data.tar.gz: 46d7563db0baaf8506c295a14f2872ea72a0f3ba9a96577a7265b74c38026899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c18721d86285f2cc2ad05ab0e72f615ceefe001607427bedc1ab19cd83f7bbc7ca1a9fa6d5b8925e96438cec68f0be7dfdb243c6f7e43680bea33fa1b4046120
|
7
|
+
data.tar.gz: 64775a9d8d417fbe9b2a10fcb094e0040268c18a69997b4c2367e8869090b0213e153f7dae3d9fb2641f90bc29694db7e2dfadd357e8e5adb80835ebec7e9bad
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
# [6.2.0] / 2020-04-07
|
2
|
+
|
3
|
+
### Fixed
|
4
|
+
* Break dependency of specs on released license_finder gem - [ef69fa00](https://github.com/pivotal/LicenseFinder/commit/ef69fa00deb7a8f8ebd74312afa9f130be2d9fda) - Matijs van Zuijlen
|
5
|
+
* Replace toml parser with tomlrb - [8b9b34b4](https://github.com/pivotal/LicenseFinder/commit/8b9b34b48d5bdadc679c0d072117b092d080fb81) - Matijs van Zuijlen
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
* Run glide install in folder containing glide.lock - [cec3ff47](https://github.com/pivotal/LicenseFinder/commit/cec3ff4759f1c06df2cd0c39ac8004fcd156a6e6) - Jeff Jun
|
9
|
+
* specify path for bundle install [#168042947] - [431355dc](https://github.com/pivotal/LicenseFinder/commit/431355dc1d0172c65444d2f4bcb5b4416fc52af7)
|
10
|
+
|
1
11
|
# [6.1.2] / 2020-03-16
|
2
12
|
|
3
13
|
# [6.1.0] / 2020-02-21
|
@@ -813,3 +823,4 @@ Bugfixes:
|
|
813
823
|
[6.0.0]: https://github.com/pivotal/LicenseFinder/compare/v5.11.1...v6.0.0
|
814
824
|
[6.1.0]: https://github.com/pivotal/LicenseFinder/compare/v6.0.0...v6.1.0
|
815
825
|
[6.1.2]: https://github.com/pivotal/LicenseFinder/compare/v6.1.0...v6.1.2
|
826
|
+
[6.2.0]: https://github.com/pivotal/LicenseFinder/compare/v6.1.2...v6.2.0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.
|
1
|
+
6.2.0
|
@@ -19,22 +19,13 @@ resources:
|
|
19
19
|
branch: master
|
20
20
|
ignore_paths: [VERSION, CHANGELOG.md]
|
21
21
|
|
22
|
-
- name: lf-git-version
|
23
|
-
type: git
|
24
|
-
source:
|
25
|
-
uri: git@github.com:pivotal/LicenseFinder.git
|
26
|
-
private_key: ((CfOslBot.private_key))
|
27
|
-
branch: master
|
28
|
-
|
29
22
|
- name: semver-version
|
30
23
|
type: semver
|
31
24
|
source:
|
32
|
-
driver:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
private_key: ((CfOslBot.private_key))
|
37
|
-
commit_message: "Updates version to: %version%"
|
25
|
+
driver: gcs
|
26
|
+
bucket: lf-semver-version
|
27
|
+
key: VERSION
|
28
|
+
json_key: ((GCPQueuedReportsBucketCredentials))
|
38
29
|
|
39
30
|
- name: dockerhub-edge
|
40
31
|
type: docker-image
|
@@ -154,8 +145,6 @@ jobs:
|
|
154
145
|
- get: lf-git
|
155
146
|
tags: ["private-worker"]
|
156
147
|
passed: [<%= "#{ruby_versions.map{ |version| "ruby-#{version}"}.join(', ')}, rubocop" %>]
|
157
|
-
- get: lf-git-version
|
158
|
-
tags: ["private-worker"]
|
159
148
|
- get: semver-version
|
160
149
|
tags: ["private-worker"]
|
161
150
|
trigger: true
|
@@ -171,14 +160,14 @@ jobs:
|
|
171
160
|
params:
|
172
161
|
GIT_USERNAME: ((GithubApiUser))
|
173
162
|
GIT_EMAIL: ((GithubApiEmail))
|
174
|
-
file: lf-git
|
163
|
+
file: lf-git/ci/tasks/update-changelog.yml
|
175
164
|
- put: dockerhub
|
176
165
|
tags: ["private-worker"]
|
177
166
|
params:
|
178
|
-
build: lf-git
|
167
|
+
build: lf-git
|
179
168
|
tag: version/version.txt
|
180
169
|
tag_as_latest: true
|
181
|
-
- put: lf-git
|
170
|
+
- put: lf-git
|
182
171
|
tags: ["private-worker"]
|
183
172
|
params:
|
184
173
|
repository: lf-git-changed
|
@@ -190,7 +179,7 @@ jobs:
|
|
190
179
|
GIT_EMAIL: ((GithubApiEmail))
|
191
180
|
GIT_PRIVATE_KEY: ((CfOslBot.private_key))
|
192
181
|
GEM_API_KEY: ((LicenseFinderGemApiKey))
|
193
|
-
file: lf-git
|
182
|
+
file: lf-git/ci/tasks/build-and-push-gem.yml
|
194
183
|
- put: lf-release
|
195
184
|
tags: ["private-worker"]
|
196
185
|
params:
|
data/ci/scripts/pushscript.sh
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
echo -e "---\n:rubygems_api_key: $GEM_API_KEY" > ~/.gem/credentials
|
4
4
|
chmod 0600 ~/.gem/credentials
|
5
5
|
|
6
|
-
cd lf-git-version
|
7
6
|
build_version="$(cat semver-version/version)"
|
7
|
+
cd lf-git
|
8
8
|
built_gem="pkg/license_finder-$build_version.gem"
|
9
9
|
|
10
10
|
git config --global user.email $GIT_EMAIL
|
@@ -2,9 +2,11 @@
|
|
2
2
|
|
3
3
|
set -e
|
4
4
|
|
5
|
-
git clone lf-git
|
5
|
+
git clone lf-git lf-git-changed
|
6
6
|
|
7
7
|
CHANGELOG_FILE="CHANGELOG.md"
|
8
|
+
VERSION_FILE="VERSION"
|
9
|
+
|
8
10
|
COMMIT_URL="https://github.com/pivotal/LicenseFinder/commit/"
|
9
11
|
|
10
12
|
TAGS=( "Added" "ADDED" "Fixed" "FIXED" "Changed" "CHANGED" "Deprecated" "DEPRECATED" "Removed" "REMOVED" "Security" "SECURITY" )
|
@@ -50,10 +52,15 @@ echo -e "$LOG\n$(cat $CHANGELOG_FILE)" > $CHANGELOG_FILE
|
|
50
52
|
# Append version hyperlink to the end of the file
|
51
53
|
echo -e "[$VERSION]: https://github.com/pivotal/LicenseFinder/compare/$OLD...$VERSION_TAG" >> $CHANGELOG_FILE
|
52
54
|
|
55
|
+
# Update version file in git
|
56
|
+
echo $VERSION > $VERSION_FILE
|
57
|
+
|
53
58
|
git config --global user.email $GIT_EMAIL
|
54
59
|
git config --global user.name $GIT_USERNAME
|
55
60
|
|
56
61
|
git add $CHANGELOG_FILE
|
62
|
+
git add $VERSION_FILE
|
63
|
+
|
57
64
|
git commit -m "Update changelog for version: $VERSION"
|
58
65
|
|
59
66
|
echo "New version: $VERSION"
|
@@ -6,11 +6,11 @@ image_resource:
|
|
6
6
|
tag: latest
|
7
7
|
platform: linux
|
8
8
|
inputs:
|
9
|
-
- name: lf-git
|
9
|
+
- name: lf-git
|
10
10
|
- name: lf-release
|
11
11
|
- name: semver-version
|
12
12
|
outputs:
|
13
13
|
- name: lf-git-changed
|
14
14
|
- name: version
|
15
15
|
run:
|
16
|
-
path: lf-git
|
16
|
+
path: lf-git/ci/scripts/updateChangelog.sh
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'bundler'
|
4
|
+
require 'securerandom'
|
4
5
|
|
5
6
|
module LicenseFinder
|
6
7
|
class Bundler < PackageManager
|
@@ -26,7 +27,10 @@ module LicenseFinder
|
|
26
27
|
def prepare_command
|
27
28
|
ignored_groups_argument = !ignored_groups.empty? ? "--without #{ignored_groups.to_a.join(' ')}" : ''
|
28
29
|
|
29
|
-
|
30
|
+
gem_path = SecureRandom.uuid
|
31
|
+
logger.info self.class, "Running bundle install for #{Dir.pwd} with path #{gem_path}", color: :blue
|
32
|
+
|
33
|
+
"bundle install #{ignored_groups_argument} --path #{gem_path}".strip
|
30
34
|
end
|
31
35
|
|
32
36
|
def possible_package_paths
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'tomlrb'
|
4
4
|
|
5
5
|
module LicenseFinder
|
6
6
|
class Dep < PackageManager
|
@@ -9,7 +9,7 @@ module LicenseFinder
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def current_packages
|
12
|
-
toml =
|
12
|
+
toml = Tomlrb.load_file(detected_package_path)
|
13
13
|
projects = toml['projects']
|
14
14
|
|
15
15
|
return [] if projects.nil?
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module LicenseFinder
|
4
4
|
class Glide < PackageManager
|
5
5
|
def possible_package_paths
|
6
|
-
[project_path.join('
|
6
|
+
[project_path.join('glide.lock')]
|
7
7
|
end
|
8
8
|
|
9
9
|
def current_packages
|
@@ -11,12 +11,7 @@ module LicenseFinder
|
|
11
11
|
|
12
12
|
YAML.load_file(detected_path).fetch('imports').map do |package_hash|
|
13
13
|
import_path = package_hash.fetch('name')
|
14
|
-
license_path =
|
15
|
-
if detected_path == possible_package_paths.first
|
16
|
-
project_path.join('src', 'vendor', import_path)
|
17
|
-
else
|
18
|
-
project_path.join('vendor', import_path)
|
19
|
-
end
|
14
|
+
license_path = project_path.join('vendor', import_path)
|
20
15
|
|
21
16
|
GoPackage.from_dependency({
|
22
17
|
'ImportPath' => import_path,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'json'
|
4
|
+
|
4
5
|
module LicenseFinder
|
5
6
|
class GoWorkspacePackageManagerError < ::StandardError
|
6
7
|
end
|
@@ -51,9 +52,10 @@ module LicenseFinder
|
|
51
52
|
return false if @strict_matching
|
52
53
|
|
53
54
|
godep = LicenseFinder::GoDep.new(project_path: Pathname(project_path))
|
55
|
+
dep = LicenseFinder::Dep.new(project_path: Pathname(project_path))
|
54
56
|
# go workspace is only active if GoDep wasn't. There are some projects
|
55
57
|
# that will use the .envrc and have a Godep folder as well.
|
56
|
-
!!(!godep.active? && envrc_path && ENVRC_REGEXP.match(IO.read(envrc_path)))
|
58
|
+
!!(!godep.active? && !dep.active? && envrc_path && ENVRC_REGEXP.match(IO.read(envrc_path)))
|
57
59
|
end
|
58
60
|
|
59
61
|
private
|
@@ -81,6 +83,8 @@ module LicenseFinder
|
|
81
83
|
orig_gopath = ENV['GOPATH']
|
82
84
|
ENV['GOPATH'] = nil
|
83
85
|
val, stderr, status = Cmd.run('go list -f "{{join .Deps \"\n\"}}" ./...')
|
86
|
+
ENV['GOPATH'] = project_path.to_s
|
87
|
+
val, stderr, status = Cmd.run('go list -f "{{join .Deps \"\n\"}}" ./...') unless status.success?
|
84
88
|
ENV['GOPATH'] = orig_gopath
|
85
89
|
raise GoWorkspacePackageManagerError, "go list failed:\n#{stderr}" unless status.success?
|
86
90
|
|
data/license_finder.gemspec
CHANGED
@@ -46,24 +46,24 @@ Gem::Specification.new do |s|
|
|
46
46
|
s.add_dependency 'bundler'
|
47
47
|
s.add_dependency 'rubyzip', '>=1', '<3'
|
48
48
|
s.add_dependency 'thor', '~> 1.0.1'
|
49
|
-
s.add_dependency '
|
49
|
+
s.add_dependency 'tomlrb', '~> 1.3.0'
|
50
50
|
s.add_dependency 'with_env', '1.1.0'
|
51
51
|
s.add_dependency 'xml-simple', '~> 1.1.5'
|
52
52
|
|
53
53
|
s.add_development_dependency 'addressable', '2.7.0'
|
54
54
|
s.add_development_dependency 'capybara', '~> 3.15.0'
|
55
55
|
s.add_development_dependency 'cocoapods', '>= 1.0.0' if RUBY_PLATFORM =~ /darwin/
|
56
|
-
s.add_development_dependency 'fakefs', '~> 1.
|
56
|
+
s.add_development_dependency 'fakefs', '~> 1.2.0'
|
57
57
|
s.add_development_dependency 'mime-types', '3.3.1'
|
58
|
-
s.add_development_dependency 'pry', '~> 0.
|
58
|
+
s.add_development_dependency 'pry', '~> 0.13.0'
|
59
59
|
s.add_development_dependency 'rake', '~> 13.0.1'
|
60
60
|
s.add_development_dependency 'rspec', '~> 3'
|
61
61
|
s.add_development_dependency 'rspec-its', '~> 1.3.0'
|
62
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
62
|
+
s.add_development_dependency 'rubocop', '~> 0.81.0'
|
63
63
|
s.add_development_dependency 'rubocop-performance', '~> 1.5.0'
|
64
64
|
s.add_development_dependency 'webmock', '~> 3.5'
|
65
65
|
|
66
|
-
s.add_development_dependency 'rack', '~> 2.
|
66
|
+
s.add_development_dependency 'rack', '~> 2.2.2'
|
67
67
|
s.add_development_dependency 'rack-test', '~> 1.1.0', '> 0.7'
|
68
68
|
|
69
69
|
s.files = `git ls-files`.split("\n").reject { |f| f.start_with?('spec', 'features') }
|
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.
|
4
|
+
version: 6.2.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-
|
30
|
+
date: 2020-04-07 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: bundler
|
@@ -78,19 +78,19 @@ dependencies:
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: 1.0.1
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
81
|
+
name: tomlrb
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
86
|
+
version: 1.3.0
|
87
87
|
type: :runtime
|
88
88
|
prerelease: false
|
89
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 1.3.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: with_env
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,14 +153,14 @@ dependencies:
|
|
153
153
|
requirements:
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: 1.
|
156
|
+
version: 1.2.0
|
157
157
|
type: :development
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version: 1.
|
163
|
+
version: 1.2.0
|
164
164
|
- !ruby/object:Gem::Dependency
|
165
165
|
name: mime-types
|
166
166
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,14 +181,14 @@ dependencies:
|
|
181
181
|
requirements:
|
182
182
|
- - "~>"
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version: 0.
|
184
|
+
version: 0.13.0
|
185
185
|
type: :development
|
186
186
|
prerelease: false
|
187
187
|
version_requirements: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
189
|
- - "~>"
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: 0.
|
191
|
+
version: 0.13.0
|
192
192
|
- !ruby/object:Gem::Dependency
|
193
193
|
name: rake
|
194
194
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,14 +237,14 @@ dependencies:
|
|
237
237
|
requirements:
|
238
238
|
- - "~>"
|
239
239
|
- !ruby/object:Gem::Version
|
240
|
-
version: 0.
|
240
|
+
version: 0.81.0
|
241
241
|
type: :development
|
242
242
|
prerelease: false
|
243
243
|
version_requirements: !ruby/object:Gem::Requirement
|
244
244
|
requirements:
|
245
245
|
- - "~>"
|
246
246
|
- !ruby/object:Gem::Version
|
247
|
-
version: 0.
|
247
|
+
version: 0.81.0
|
248
248
|
- !ruby/object:Gem::Dependency
|
249
249
|
name: rubocop-performance
|
250
250
|
requirement: !ruby/object:Gem::Requirement
|
@@ -279,20 +279,14 @@ dependencies:
|
|
279
279
|
requirements:
|
280
280
|
- - "~>"
|
281
281
|
- !ruby/object:Gem::Version
|
282
|
-
version: 2.
|
283
|
-
- - ">"
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
version: '1.6'
|
282
|
+
version: 2.2.2
|
286
283
|
type: :development
|
287
284
|
prerelease: false
|
288
285
|
version_requirements: !ruby/object:Gem::Requirement
|
289
286
|
requirements:
|
290
287
|
- - "~>"
|
291
288
|
- !ruby/object:Gem::Version
|
292
|
-
version: 2.
|
293
|
-
- - ">"
|
294
|
-
- !ruby/object:Gem::Version
|
295
|
-
version: '1.6'
|
289
|
+
version: 2.2.2
|
296
290
|
- !ruby/object:Gem::Dependency
|
297
291
|
name: rack-test
|
298
292
|
requirement: !ruby/object:Gem::Requirement
|