license_finder 2.1.0.rc7 → 2.1.0.rc8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +7 -0
- data/lib/license_finder/package_managers/go_vendor.rb +3 -0
- data/lib/license_finder/package_managers/go_workspace.rb +4 -0
- data/lib/license_finder/version.rb +1 -1
- data/spec/lib/license_finder/package_managers/go_vendor_spec.rb +10 -0
- data/spec/lib/license_finder/package_managers/go_workspace_spec.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c7905c49b0b6429d992b371e097c81716cef375
|
4
|
+
data.tar.gz: 5e13dc7c0333cfa7670a9c356e3a77ebf8d381ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 083fad0cf5d1fb39eca59267dcf1e8de9473d0d014d1fa8c63cac264f6be813c20617cf79064e767898f3ecbf115a4f762b33cdc511b01f0b828ae453d9cf4e1
|
7
|
+
data.tar.gz: d51c398c79a8b23bacccfc71399b04db69a9a9d1e8a5976c6efa2a108f37586a04e0a6a9e17066ae9df58556306b19bf6f814fb1e981c7339d4f74e82e60afe9
|
data/CHANGELOG.rdoc
CHANGED
@@ -55,6 +55,10 @@ module LicenseFinder
|
|
55
55
|
4.times.reduce([p]) { |memo, _| memo << memo.last.parent }.map { |p| p.join('.envrc') }.select(&:exist?).first
|
56
56
|
end
|
57
57
|
|
58
|
+
def self.package_management_command
|
59
|
+
'go'
|
60
|
+
end
|
61
|
+
|
58
62
|
def go_list
|
59
63
|
Dir.chdir(project_path) do
|
60
64
|
# avoid checking canonical import path. some projects uses
|
@@ -19,6 +19,16 @@ module LicenseFinder
|
|
19
19
|
end
|
20
20
|
|
21
21
|
it_behaves_like "a PackageManager"
|
22
|
+
|
23
|
+
it 'installed? should be true if go exists on the path' do
|
24
|
+
allow(PackageManager).to receive(:command_exists?).with('go').and_return true
|
25
|
+
expect(described_class.installed?).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'installed? should be false if go does not exists on the path' do
|
29
|
+
allow(PackageManager).to receive(:command_exists?).with('go').and_return false
|
30
|
+
expect(described_class.installed?).to eq(false)
|
31
|
+
end
|
22
32
|
end
|
23
33
|
|
24
34
|
let(:project_path) { '/app' }
|
@@ -18,6 +18,16 @@ module LicenseFinder
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it_behaves_like "a PackageManager"
|
21
|
+
|
22
|
+
it 'installed? should be true if go exists on the path' do
|
23
|
+
allow(PackageManager).to receive(:command_exists?).with('go').and_return true
|
24
|
+
expect(described_class.installed?).to eq(true)
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'installed? should be false if go does not exists on the path' do
|
28
|
+
allow(PackageManager).to receive(:command_exists?).with('go').and_return false
|
29
|
+
expect(described_class.installed?).to eq(false)
|
30
|
+
end
|
21
31
|
end
|
22
32
|
|
23
33
|
describe '#go_list' do
|