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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de54a1c1786084407496fd2eb1731686dd81538e
4
- data.tar.gz: 762d170826532bff157f863df8e9c6f3afd33f06
3
+ metadata.gz: 8c7905c49b0b6429d992b371e097c81716cef375
4
+ data.tar.gz: 5e13dc7c0333cfa7670a9c356e3a77ebf8d381ce
5
5
  SHA512:
6
- metadata.gz: 32cb267d5a41b650a52c054ff96858ac5fe3810fc1946dcb65f3810c041f9cc71f5edaa2bfd179ae08e86e89ecb31de76fbc50a7b7693c903f41bb5cd1a8ea5b
7
- data.tar.gz: db7599addf26235034a50946e1bf5e59010a312fb11f45607cf59e35ac6df65d89b03fd18fbe9651112b09f657a526b4dcbb41dad7306f57ff0f61fa2593e8b8
6
+ metadata.gz: 083fad0cf5d1fb39eca59267dcf1e8de9473d0d014d1fa8c63cac264f6be813c20617cf79064e767898f3ecbf115a4f762b33cdc511b01f0b828ae453d9cf4e1
7
+ data.tar.gz: d51c398c79a8b23bacccfc71399b04db69a9a9d1e8a5976c6efa2a108f37586a04e0a6a9e17066ae9df58556306b19bf6f814fb1e981c7339d4f74e82e60afe9
@@ -1,3 +1,10 @@
1
+ === 2.1.0.rc8 / 2016-03-16
2
+
3
+ * Features
4
+ * GoVendor and GoWorkspace define a package management tool, so they
5
+ won't try to run if you don't have `go` installed
6
+
7
+
1
8
  === 2.1.0.rc7 / 2016-03-16
2
9
 
3
10
  * Features
@@ -44,6 +44,9 @@ module LicenseFinder
44
44
  end
45
45
  end
46
46
 
47
+ def self.package_management_command
48
+ 'go'
49
+ end
47
50
 
48
51
  def go_list
49
52
  Dir.chdir(project_path) do
@@ -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
@@ -1,3 +1,3 @@
1
1
  module LicenseFinder
2
- VERSION = "2.1.0.rc7"
2
+ VERSION = "2.1.0.rc8"
3
3
  end
@@ -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
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: 2.1.0.rc7
4
+ version: 2.1.0.rc8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Maine