tabtab 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -1
- data/lib/tabtab.rb +1 -1
- data/lib/tabtab_definitions/github.rb +12 -5
- data/spec/definition_spec.rb +1 -1
- data/spec/fixtures/gems/multi_app/multi_app-0.0.1.gem +0 -0
- data/spec/fixtures/gems/multi_app/multi_app.gemspec +1 -1
- data/spec/fixtures/gems/my_app/my_app-0.0.1.gem +0 -0
- data/spec/fixtures/gems/my_app/my_app.gemspec +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/tabtab.rb
CHANGED
@@ -6,13 +6,22 @@ TabTab::Definition.register('github') do |c|
|
|
6
6
|
`github network commits 2> /dev/null | sed -e "s/ .*$//"`.split("\n")
|
7
7
|
end
|
8
8
|
c.flag :help, :h
|
9
|
-
c.command(:fetch, "Fetch from a remote to a local branch.") { users }
|
10
|
-
c.command(:"pull-request", "Generate the text for a pull request.") { users }
|
11
9
|
c.command :browse, "Open this repo in a web browser."
|
10
|
+
c.command :"create-from-local", "Create a new GitHub repository from the current local repository"
|
11
|
+
c.command :create, "Create a new, empty GitHub repository" do |create|
|
12
|
+
%w[rdoc rst markdown mdown textile].each do |ext|
|
13
|
+
create.flag ext.to_sym, "Create README.#{ext}"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
c.command(:fetch, "Fetch from a remote to a local branch.") { users }
|
17
|
+
c.command(:fetch_all, "Fetch all refs from a user") { users }
|
18
|
+
c.command :fork, "Forks a GitHub repository\n% github fork [user]/[repo]"
|
12
19
|
c.command :pull, "Pull from a remote." do |pull|
|
13
20
|
pull.default { users }
|
14
21
|
pull.flag :merge
|
15
22
|
end
|
23
|
+
c.command :home, "Open this repo's master branch in a web browser."
|
24
|
+
c.command(:"pull-request", "Generate the text for a pull request.") { users }
|
16
25
|
# github network list
|
17
26
|
# github network --cache list
|
18
27
|
# github network --sort branch list --reverse
|
@@ -37,14 +46,12 @@ TabTab::Definition.register('github') do |c|
|
|
37
46
|
c.command :clone, "Clone a repo." do |clone|
|
38
47
|
clone.flag :ssh
|
39
48
|
end
|
40
|
-
c.command :home, "Open this repo's master branch in a web browser."
|
41
49
|
c.command(:ignore) { commits }
|
42
50
|
c.command :track do |track|
|
43
51
|
track.flag :ssh
|
44
52
|
track.flag :private
|
45
53
|
track.default { users }
|
46
54
|
end
|
47
|
-
c.command :info
|
48
|
-
c.command(:fetch_all) { users }
|
55
|
+
c.command :info
|
49
56
|
end
|
50
57
|
|
data/spec/definition_spec.rb
CHANGED
@@ -117,7 +117,7 @@ describe TabTab::Definition::Default, "can yield with different number of argume
|
|
117
117
|
|
118
118
|
it "should run default blocks with one arguments and pass current token as argument" do
|
119
119
|
tokens = @definitions.extract_completions('one', 'o')
|
120
|
-
tokens.should == ['
|
120
|
+
tokens.should == ['one']
|
121
121
|
end
|
122
122
|
|
123
123
|
end
|
Binary file
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Dr Nic Williams"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2009-01-05}
|
10
10
|
s.default_executable = %q{test_app}
|
11
11
|
s.description = %q{Multiple CLI apps + in-built autocompletions}
|
12
12
|
s.email = ["drnicwilliams@gmail.com"]
|
Binary file
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Dr Nic Williams"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2009-01-05}
|
10
10
|
s.default_executable = %q{test_app}
|
11
11
|
s.description = %q{Simple CLI app + in-built autocompletions}
|
12
12
|
s.email = ["drnicwilliams@gmail.com"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabtab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dr Nic Williams
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-19 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|