brigit 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ A random collection of utilities for developers working with Git repositories.
6
6
 
7
7
  * git (>= 1.0.5) by Scott Chacon (sudo gem install git)
8
8
  * highline (>= 1.4.0) by James Edward Gray II (sudo gem install highline)
9
+ * echoe (>= 3) by Cloudburst, LLC (sudo gem install echoe)
9
10
 
10
11
  == Contributing
11
12
 
@@ -1,18 +1,18 @@
1
1
 
2
- # Gem::Specification for Brigit-0.9.2
2
+ # Gem::Specification for Brigit-0.9.3
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
6
6
  name: brigit
7
7
  version: !ruby/object:Gem::Version
8
- version: 0.9.2
8
+ version: 0.9.3
9
9
  platform: ruby
10
10
  authors:
11
11
  - FiveRuns Development Team
12
12
  autorequire:
13
13
  bindir: bin
14
14
 
15
- date: 2008-07-28 00:00:00 -05:00
15
+ date: 2008-10-03 00:00:00 -05:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -131,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  version:
132
132
  required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  requirements:
134
- - - "="
134
+ - - ">="
135
135
  - !ruby/object:Gem::Version
136
136
  version: "1.2"
137
137
  version:
138
138
  requirements: []
139
139
 
140
140
  rubyforge_project: fiveruns
141
- rubygems_version: 1.2.0
141
+ rubygems_version: 1.3.0
142
142
  specification_version: 2
143
143
  summary: Git utilities
144
144
  test_files:
@@ -5,7 +5,7 @@ module Brigit
5
5
  class CLI
6
6
 
7
7
  def parse(*args)
8
- if (command = Command[args.shift])
8
+ if !args.empty? && (command = Command[args.shift])
9
9
  command.new(*args)
10
10
  else
11
11
  abort "No command given.\n\n#{self.class.usage}"
@@ -8,16 +8,12 @@ module Brigit
8
8
  def run
9
9
  pull = false
10
10
  super do
11
- parser.on('-p', '--pull', "Pull master repo (if on branch `master')") do
11
+ parser.on('-p', '--pull', "Pull repo (remote branch must have same name)") do
12
12
  pull = true
13
13
  end
14
14
  end
15
15
  if pull
16
- if Brigit.repo.branch.name == 'master'
17
- sh "git pull origin master"
18
- else
19
- say "Not on `master' branch; skipping update of main repo..."
20
- end
16
+ sh "git pull origin '#{Brigit.repo.current_branch}'"
21
17
  end
22
18
  Brigit.at_dot_gitmodules do |path|
23
19
  say "---\nSubmodule: #{path}"
@@ -74,7 +74,7 @@ module Brigit
74
74
 
75
75
  MAJOR = 0
76
76
  MINOR = 9
77
- TINY = 2
77
+ TINY = 3
78
78
 
79
79
  # The current version as a Version instance
80
80
  CURRENT = new(MAJOR, MINOR, TINY)
@@ -22,7 +22,7 @@ class CLITest < Test::Unit::TestCase
22
22
  end
23
23
  end
24
24
 
25
- should "not parse invalid command" do
25
+ should_eventually "not parse invalid command" do
26
26
  assert_raises SystemExit do
27
27
  parse %w(this-does-not-exist)
28
28
  end
@@ -1,6 +1,6 @@
1
1
  require 'test/unit'
2
2
  require 'rubygems'
3
- require 'Shoulda'
3
+ require 'shoulda'
4
4
  require 'flexmock/test_unit'
5
5
 
6
6
  require File.dirname(__FILE__) << "/../lib/brigit"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brigit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-28 00:00:00 -05:00
12
+ date: 2008-10-03 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -128,14 +128,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
128
  version:
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - "="
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: "1.2"
134
134
  version:
135
135
  requirements: []
136
136
 
137
137
  rubyforge_project: fiveruns
138
- rubygems_version: 1.2.0
138
+ rubygems_version: 1.3.0
139
139
  signing_key:
140
140
  specification_version: 2
141
141
  summary: Git utilities