gondler 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/gondler.gemspec +1 -1
- data/lib/gondler/cli.rb +4 -4
- data/lib/gondler/version.rb +1 -1
- data/spec/gondler/package_spec.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f2ccebc776c25088a08c03eea6eb75a0c1a9206
|
4
|
+
data.tar.gz: 9873afe2a086e33d519ef074625ac2ffc6ec14bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9865031e440540831076e67b37d18b7ebe297c0c6cd09197132ff4261e3733e53c7b92e4a33540142f722b19bd22bbeb8e712ba067a2b7ab10800023490b58fe
|
7
|
+
data.tar.gz: 91d9ca4d45c648832683688daa37343af4c17a95a4c35a111cd5824edca50f10b35df462fe996fa48c1b5554fd9712e01f545d8e8e6fd18b70c61ea04c7409be
|
data/.travis.yml
CHANGED
data/gondler.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['rosylilly@aduca.org']
|
11
11
|
spec.description = %q{bundler for golang}
|
12
12
|
spec.summary = %q{bundler for golang}
|
13
|
-
spec.homepage = ''
|
13
|
+
spec.homepage = 'https://github.com/rosylilly/gondler'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/gondler/cli.rb
CHANGED
@@ -5,8 +5,8 @@ require 'gondler'
|
|
5
5
|
|
6
6
|
module Gondler
|
7
7
|
class CLI < Thor
|
8
|
-
class_option :gomfile, type
|
9
|
-
class_option :path, type
|
8
|
+
class_option :gomfile, :type => :string, :default => 'Gomfile'
|
9
|
+
class_option :path, :type => :string, :default => '.gondler'
|
10
10
|
|
11
11
|
def initialize(*args)
|
12
12
|
super
|
@@ -15,7 +15,7 @@ module Gondler
|
|
15
15
|
end
|
16
16
|
|
17
17
|
desc 'install', 'Install the dependecies specified in your Gomfile'
|
18
|
-
method_option :without, type
|
18
|
+
method_option :without, :type => :array, :default => []
|
19
19
|
def install
|
20
20
|
gomfile.packages.each do |package|
|
21
21
|
puts "Install #{package}"
|
@@ -49,7 +49,7 @@ module Gondler
|
|
49
49
|
end
|
50
50
|
|
51
51
|
desc 'list', 'Show all of the dependencies in the current bundle'
|
52
|
-
method_option :without, type
|
52
|
+
method_option :without, :type => :array, :default => []
|
53
53
|
def list
|
54
54
|
Gondler.withouts = options[:without]
|
55
55
|
|
data/lib/gondler/version.rb
CHANGED
@@ -10,13 +10,13 @@ describe Gondler::Package do
|
|
10
10
|
subject { package.os }
|
11
11
|
|
12
12
|
context 'with ["linux", "darwin"]' do
|
13
|
-
let(:options) { { os
|
13
|
+
let(:options) { { :os => %w(linux darwin) } }
|
14
14
|
|
15
15
|
it { should == expected }
|
16
16
|
end
|
17
17
|
|
18
18
|
context 'with "linux darwin"' do
|
19
|
-
let(:options) { { os
|
19
|
+
let(:options) { { :os => 'linux darwin' } }
|
20
20
|
|
21
21
|
it { should == expected }
|
22
22
|
end
|
@@ -33,19 +33,19 @@ describe Gondler::Package do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
context 'when os option is darwin' do
|
36
|
-
let(:options) { { os
|
36
|
+
let(:options) { { :os => 'darwin' } }
|
37
37
|
|
38
38
|
it { should be_true }
|
39
39
|
end
|
40
40
|
|
41
41
|
context 'when os option is linux' do
|
42
|
-
let(:options) { { os
|
42
|
+
let(:options) { { :os => 'linux' } }
|
43
43
|
|
44
44
|
it { should be_false }
|
45
45
|
end
|
46
46
|
|
47
47
|
context 'when os option is linux and darwin' do
|
48
|
-
let(:options) { { os
|
48
|
+
let(:options) { { :os => 'linux darwin' } }
|
49
49
|
|
50
50
|
it { should be_true }
|
51
51
|
end
|
@@ -54,7 +54,7 @@ describe Gondler::Package do
|
|
54
54
|
before { Gondler.withouts = %w(development) }
|
55
55
|
after { Gondler.withouts = [] }
|
56
56
|
|
57
|
-
let(:options) { { group
|
57
|
+
let(:options) { { :group => 'development' } }
|
58
58
|
|
59
59
|
it { should be_false }
|
60
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gondler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Kusano
|
@@ -67,7 +67,7 @@ files:
|
|
67
67
|
- spec/gondler/package_spec.rb
|
68
68
|
- spec/gondler_spec.rb
|
69
69
|
- spec/spec_helper.rb
|
70
|
-
homepage:
|
70
|
+
homepage: https://github.com/rosylilly/gondler
|
71
71
|
licenses:
|
72
72
|
- MIT
|
73
73
|
metadata: {}
|