tabtab 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
- == 0.91 2008-12-29
1
+ == 0.9.2 2009-01-19
2
+
3
+ * more commands for github gem
4
+
5
+ == 0.9.1 2008-12-29
2
6
 
3
7
  * Uses ENV['COMP_LINE'] for full current line if available
4
8
  * New completions: rubyforge, rake
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module TabTab
5
- VERSION = '0.9.1'
5
+ VERSION = '0.9.2'
6
6
  end
7
7
 
8
8
  require 'tabtab/local_config'
@@ -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
 
@@ -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 == ['o', 'one']
120
+ tokens.should == ['one']
121
121
  end
122
122
 
123
123
  end
@@ -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{2008-12-29}
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"]
@@ -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{2008-12-29}
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.1
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: 2008-12-29 00:00:00 +10:00
12
+ date: 2009-01-19 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency