git_remote_branch 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source :rubygems
2
+
3
+ gem 'rainbow'
4
+ group :development do
5
+ gem 'rake'
6
+ gem 'rdoc'
7
+ gem 'test-unit'
8
+ gem 'shoulda'
9
+ gem 'mocha', :require => false # Must be loaded only after ActiveSupport::TestCase is defined
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,24 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ json (1.6.1)
5
+ metaclass (0.0.1)
6
+ mocha (0.10.0)
7
+ metaclass (~> 0.0.1)
8
+ rainbow (1.1.3)
9
+ rake (0.9.2.2)
10
+ rdoc (3.11)
11
+ json (~> 1.4)
12
+ shoulda (2.11.3)
13
+ test-unit (2.4.2)
14
+
15
+ PLATFORMS
16
+ ruby
17
+
18
+ DEPENDENCIES
19
+ mocha
20
+ rainbow
21
+ rake
22
+ rdoc
23
+ shoulda
24
+ test-unit
data/README.rdoc CHANGED
@@ -3,12 +3,12 @@
3
3
  git_remote_branch is a simple command-line tool that makes it very easy to manipulate
4
4
  branches published in shared repositories.
5
5
 
6
- git_remote_branch achieves this goal by sticking to a few principles:
6
+ It achieves this goal by sticking to a few principles:
7
7
  - keep grb's commands extremely regular (they all look alike)
8
8
  - support aliases for commands
9
9
  - print all commands it runs on your behalf in red, so you eventually learn them
10
10
 
11
- Another nice thing about git_remote_branch: it can simply explain a command
11
+ Another nice thing about git_remote_branch is that it can simply explain a command
12
12
  (print out all the corresponding git commands) instead of running them on your behalf.
13
13
 
14
14
  Note: git_remote_branch assumes that the local and remote branches have the
@@ -17,20 +17,17 @@ same name. Multiple remote repositories (or origins) are supported.
17
17
 
18
18
  = Installation
19
19
 
20
- sudo gem install git_remote_branch --include-dependencies
20
+ gem install git_remote_branch
21
21
 
22
- If you have an old version of Rubygems, you may have to manually install the "colored" gem.
23
- sudo gem install colored
22
+ If you're on Windows, you can optionally install the following gems, to get
23
+ color output:
24
24
 
25
- If you're on Windows, you must also install "win32console" manually (before or after installing git_remote_branch doesn't matter).
26
- gem install win32console colored
25
+ gem install windows-pr win32console
27
26
 
28
27
 
29
- See the "Bleeding edge and development" section the end of this document for more details about fiddling with the source of git_remote_branch or running it with Ruby 1.9 (yes, it works).
30
-
31
28
  = Usage
32
29
 
33
- Notes:
30
+ Notes:
34
31
  - parts between brackets are optional
35
32
  - When 'origin_server' is not specified, the name 'origin' is assumed.
36
33
 
@@ -87,13 +84,13 @@ The branch you want to rename must be checked out.
87
84
  All commands can be prepended by the word 'explain'. Instead of executing the
88
85
  command, git_remote_branch will simply output the list of commands you need to
89
86
  run to accomplish that goal.
90
- Examples:
87
+ Examples:
91
88
 
92
89
  $ grb explain create
93
90
  git_remote_branch version 0.3.0
94
-
91
+
95
92
  List of operations to do to create a new remote branch and track it locally:
96
-
93
+
97
94
  git push origin master:refs/heads/branch_to_create
98
95
  git fetch origin
99
96
  git branch --track branch_to_create origin/branch_to_create
@@ -103,9 +100,9 @@ Explain your specific case:
103
100
 
104
101
  $ grb explain create my_branch github
105
102
  git_remote_branch version 0.3.0
106
-
103
+
107
104
  List of operations to do to create a new remote branch and track it locally:
108
-
105
+
109
106
  git push github master:refs/heads/my_branch
110
107
  git fetch github
111
108
  git branch --track my_branch github/my_branch
@@ -115,11 +112,10 @@ This, of course, works for each of the grb commands.
115
112
 
116
113
  = More on git_remote_branch
117
114
 
118
- - Documentation: http://grb.rubyforge.org
119
- - News: http://programblings.com/category/git/git_remote_branch/
120
- - Bug tracker: http://git-remote-branch.lighthouseapp.com/projects/19198-git_remote_branch/overview
121
- - Code: http://github.com/webmat/git_remote_branch
122
- - Mailing list: http://groups.google.com/group/git_remote_branch
115
+ - Documentation: https://github.com/webmat/git_remote_branch#readme
116
+ - Code: http://github.com/webmat/git_remote_branch
117
+ - Bugs: https://github.com/webmat/git_remote_branch/issues
118
+ - News: http://programblings.com/category/git/git_remote_branch/
123
119
 
124
120
 
125
121
  == History
@@ -139,46 +135,13 @@ git_remote_branch in its current form was inspired by a script created by Carl M
139
135
 
140
136
  git_remote_branch is licensed under the MIT License. See the file LICENSE for details.
141
137
 
142
- == Bleeding edge and development
143
-
144
- (Notice the keyword "bleeding")
145
-
146
- === Getting the bleeding edge
147
-
148
- Installing from GitHub
149
- sudo gem install webmat-git_remote_branch --source=http://gems.github.com
150
-
151
- Note that the only stable version of the gem you should trust is the one from Rubyforge. The GitHub gem is a development gem. The GitHub gem WILL be rebuilt with the same version number, and other horrible things like that. If you use the github version of the gem, children will die! You've been warned.
152
-
153
- Cloning the repo and installing from your copy
154
- git clone git://github.com/webmat/git_remote_branch.git
155
- rake install
156
-
157
- === Testing dependencies
158
-
159
- Note that git_remote_branch uses a few more gems for tests. Running any rake task will try to load them due to the way Rake::TestTask works.
160
-
161
- sudo gem install thoughtbot-shoulda --source http://gems.github.com
162
- sudo gem install mocha
163
-
164
- An attempt is made to require 2 more optional gems: redgreen and ruby-debug. If they're not present, only a whiny message will be displayed.
165
-
166
138
  === Supported platforms
167
139
 
168
- git_remote_branch has been tested with the following configurations:
169
-
170
- - OS X Leopard / Ruby 1.8.6 / Git 1.5.4.3 and 1.6.0.2
171
- - OS X Leopard / Ruby 1.9.1 / Git 1.5.4.3 and 1.6.0.2
172
- - Ubuntu Intrepid Ibex / Ruby 1.8.7 / Git 1.5.6.3
173
- - Windows XP / Ruby 1.8.6 / Git 1.6.0.2 (the msys version)
174
-
175
- Let me know if you have problems running git_remote_branch with your platform.
176
-
177
- To run the test suite using Ruby 1.9, simply set the RUBY environment variable to point to your 1.9 interpreter and then run the 1.9 version of Rake. In my case, everything 1.9 is suffixed with 1.9:
178
-
179
- $ RUBY=ruby1.9 rake1.9 test
140
+ This version of git_remote_branch has been tested with
180
141
 
181
- Or on Windows (Ruby 1.9 not tested on Windows)
142
+ - OS X Lion
143
+ - past versions were known to work on Linux and Windows
144
+ - Ruby 1.8.7, 1.9.2, 1.9.3
145
+ - git 1.7+
182
146
 
183
- > set RUBY=ruby1.9
184
- > rake1.9 test
147
+ Let me know if you encounter problems running git_remote_branch with your platform.
data/Rakefile CHANGED
@@ -1,4 +1,11 @@
1
1
  require 'rubygems'
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue Bundler::GemNotFound => e
5
+ STDERR.puts e.message
6
+ STDERR.puts "Try running `bundle install`."
7
+ exit!
8
+ end
2
9
 
3
10
  require 'rake'
4
11
 
data/bin/grb CHANGED
@@ -7,13 +7,8 @@ require "#{File.dirname(THIS_FILE)}/../lib/git_remote_branch"
7
7
 
8
8
  include GitRemoteBranch
9
9
 
10
- def crap_out(message)
11
- puts message
12
- exit 1
13
- end
14
-
15
10
  unless git_found?
16
- crap_out <<-MSG
11
+ abort <<-MSG
17
12
  The git executable (#{GIT}) could not be found by git_remote_branch.
18
13
  Make sure your PATH variable contains the path for git's binary.
19
14
  Your PATH:
@@ -24,10 +19,10 @@ end
24
19
  begin
25
20
  p = read_params(ARGV)
26
21
  rescue InvalidBranchError => ex
27
- crap_out ex.message
22
+ abort ex.message
28
23
  end
29
24
 
30
- $SILENT = p[:silent]
25
+ $WHISPER = p[:silent]
31
26
 
32
27
  whisper get_welcome
33
28
 
data/lib/constants.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module GitRemoteBranch
2
- GIT = (ENV['GRB_GIT'] || 'git').freeze
2
+ GIT = (ENV['GRB_GIT'] || 'git')
3
3
 
4
- LOCAL_BRANCH_LISTING_COMMAND = "#{GIT} branch -l".freeze
4
+ LOCAL_BRANCH_LISTING_COMMAND = "#{GIT} branch -l"
5
5
  end
@@ -1,14 +1,15 @@
1
1
  require 'rubygems'
2
2
 
3
- if RUBY_VERSION =~ /1\.8/
4
- gem 'colored', '>= 1.1'
5
- require 'colored'
6
- else
7
- class String
8
- def red; self; end
9
- end
3
+ begin
4
+ require 'bundler/setup'
5
+ rescue Bundler::GemNotFound => e
6
+ STDERR.puts e.message
7
+ STDERR.puts "Try running `bundle install`."
8
+ exit!
10
9
  end
11
10
 
11
+ require 'rainbow'
12
+
12
13
  begin
13
14
  WINDOWS = !!(RUBY_PLATFORM =~ /win32|cygwin/)
14
15
  rescue Exception
@@ -20,11 +21,9 @@ $LOAD_PATH.unshift( grb_app_root + '/vendor' )
20
21
  require 'capture_fu'
21
22
 
22
23
  $LOAD_PATH.unshift( grb_app_root + '/lib' )
23
- require 'constants'
24
- require 'string_ext'
25
- require 'state'
26
- require 'param_reader'
27
- require 'version'
24
+ %w(monkey_patches constants state param_reader version).each do |f|
25
+ require f
26
+ end
28
27
 
29
28
  module GitRemoteBranch
30
29
  class InvalidBranchError < RuntimeError; end
@@ -43,13 +42,12 @@ module GitRemoteBranch
43
42
  },
44
43
 
45
44
  :publish => {
46
- :description => 'publish an exiting local branch',
45
+ :description => 'publish an existing local branch',
47
46
  :aliases => %w{publish remotize share},
48
47
  :commands => [
49
48
  '"#{GIT} push #{origin} #{branch_name}:refs/heads/#{branch_name}"',
50
49
  '"#{GIT} fetch #{origin}"',
51
- '"#{GIT} config branch.#{branch_name}.remote #{origin}"',
52
- '"#{GIT} config branch.#{branch_name}.merge refs/heads/#{branch_name}"',
50
+ '"#{GIT} branch --set-upstream #{branch_name} #{origin}/#{branch_name}"',
53
51
  '"#{GIT} checkout #{branch_name}"'
54
52
  ]
55
53
  },
@@ -81,14 +79,8 @@ module GitRemoteBranch
81
79
  :description => 'track an existing remote branch',
82
80
  :aliases => %w{track follow grab fetch},
83
81
  :commands => [
84
- # This string programming thing is getting old. Not flexible enough anymore.
85
82
  '"#{GIT} fetch #{origin}"',
86
- 'if local_branches.include?(branch_name)
87
- "#{GIT} config branch.#{branch_name}.remote #{origin}\n" +
88
- "#{GIT} config branch.#{branch_name}.merge refs/heads/#{branch_name}"
89
- else
90
- "#{GIT} branch --track #{branch_name} #{origin}/#{branch_name}"
91
- end'
83
+ '"#{GIT} branch --set-upstream #{branch_name} #{origin}/#{branch_name}"'
92
84
  ]
93
85
  }
94
86
  } unless defined?(COMMANDS)
@@ -150,7 +142,7 @@ module GitRemoteBranch
150
142
  end
151
143
 
152
144
  def execute_cmds(*cmds)
153
- silencer = $SILENT ? ' 2>&1' : ''
145
+ silencer = $WHISPER ? ' 2>&1' : ''
154
146
  cmds.flatten.each do |c|
155
147
  puts_cmd c
156
148
  `#{c}#{silencer}`
@@ -160,13 +152,7 @@ module GitRemoteBranch
160
152
 
161
153
  def puts_cmd(*cmds)
162
154
  cmds.flatten.each do |c|
163
- whisper "#{c}".red
164
- end
165
- end
166
-
167
- def whisper(*msgs)
168
- unless $SILENT
169
- msgs.flatten ? msgs.flatten.each{|m| puts m} : puts
155
+ whisper "#{c}".foreground(:red)
170
156
  end
171
157
  end
172
158
  end
@@ -0,0 +1,17 @@
1
+ # One nice thing about command-line tools is that nobody cares how
2
+ # much you monkey-patch :-)
3
+
4
+ module Kernel
5
+ def whisper(*msgs)
6
+ unless $WHISPER
7
+ puts *msgs
8
+ end
9
+ end
10
+ end
11
+
12
+ class String
13
+ def path_for_os
14
+ WINDOWS ? self.gsub('/', '\\') : self
15
+ end
16
+ end
17
+
data/lib/state.rb CHANGED
@@ -1,34 +1,36 @@
1
1
  module GitRemoteBranch
2
2
  include ::CaptureFu
3
-
3
+
4
4
  public
5
5
  def get_current_branch
6
6
  local_branch_information[0]
7
7
  end
8
-
8
+
9
9
  def local_branches
10
10
  local_branch_information[1]
11
11
  end
12
-
12
+
13
13
  def git_found?
14
14
  ret, msg = capture_process_output "#{GIT} --version"
15
+ user_version = msg.chomp.split[2]
16
+ warn "Some grb commands will not work with git version < 1.7 (you have #{user_version})" unless user_version >= '1.7'
15
17
  ret == 0
16
18
  end
17
-
19
+
18
20
  private
19
21
  # Returns an array of 2 elements: [current_branch, [all local branches]]
20
22
  def local_branch_information
21
23
  #This is sensitive to checkouts of branches specified with wrong case
22
-
24
+
23
25
  listing = capture_process_output("#{LOCAL_BRANCH_LISTING_COMMAND}")[1]
24
-
26
+
25
27
  raise(NotOnGitRepositoryError, listing.chomp) if listing =~ /Not a git repository/i
26
28
  if listing =~ /\(no branch\)/
27
29
  raise InvalidBranchError, ["Couldn't identify the current local branch. The branch listing was:",
28
- LOCAL_BRANCH_LISTING_COMMAND.red,
30
+ LOCAL_BRANCH_LISTING_COMMAND.foreground(:red),
29
31
  listing].join("\n")
30
32
  end
31
-
33
+
32
34
  current_branch = nil
33
35
  branches = listing.split("\n").map do |line|
34
36
  current = line.include? '*'
@@ -36,7 +38,7 @@ module GitRemoteBranch
36
38
  current_branch = clean_line if current
37
39
  clean_line
38
40
  end
39
-
41
+
40
42
  return current_branch, branches
41
43
  end
42
44
  end
data/lib/version.rb CHANGED
@@ -2,13 +2,13 @@ module GitRemoteBranch
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
- STRING = [MAJOR, MINOR, TINY].join('.').freeze
7
+ STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
9
9
 
10
- NAME = 'git_remote_branch'.freeze
11
- COMPLETE_NAME = "#{NAME} #{VERSION::STRING}".freeze
12
- COMMAND_NAME = 'grb'.freeze
10
+ NAME = 'git_remote_branch'
11
+ COMPLETE_NAME = "#{NAME} #{VERSION::STRING}"
12
+ COMMAND_NAME = 'grb'
13
13
  SHORT_NAME = COMMAND_NAME
14
14
  end
data/tasks/gem.rake CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'yaml'
2
2
 
3
- require 'rake/gempackagetask'
3
+ require 'rubygems/package_task'
4
4
 
5
5
  spec = Gem::Specification.new do |s|
6
- s.name = GitRemoteBranch::NAME
7
- s.version = GitRemoteBranch::VERSION::STRING
6
+ s.name = GitRemoteBranch::NAME.dup
7
+ s.version = GitRemoteBranch::VERSION::STRING.dup
8
8
  s.summary = "git_remote_branch eases the interaction with remote branches"
9
9
  s.description = "git_remote_branch is a learning tool to ease the interaction with " +
10
10
  "remote branches in simple situations."
@@ -25,12 +25,12 @@ spec = Gem::Specification.new do |s|
25
25
  s.bindir = "bin"
26
26
  s.require_path = "lib"
27
27
 
28
- s.add_dependency( 'colored', '>= 1.1' )
28
+ s.add_dependency( 'rainbow', '>= 1.0.1' )
29
29
  end
30
30
 
31
31
  #Creates clobber_package, gem, package and repackage tasks
32
32
  #Note on clobber_package: fortunately, this will clobber the CODE package
33
- Rake::GemPackageTask.new(spec) do |p|
33
+ Gem::PackageTask.new(spec) do |p|
34
34
  p.gem_spec = spec
35
35
  end
36
36
 
@@ -46,6 +46,7 @@ task :tag_warn do
46
46
  end
47
47
  task :tag do
48
48
  sh TAG_COMMAND
49
+ puts "Upload tags to repo with 'git push --tags'"
49
50
  end
50
51
  task :gem => :tag_warn
51
52
 
data/tasks/rdoc.rake CHANGED
@@ -1,4 +1,4 @@
1
- require 'rake/rdoctask'
1
+ require 'rdoc/task'
2
2
 
3
3
  desc 'Generate rdoc documentation'
4
4
  Rake::RDocTask.new(:rdoc) do |rdoc|
@@ -1,4 +1,4 @@
1
- require File.join( File.dirname(__FILE__), '..', 'test_helper')
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class GRBTest < Test::Unit::TestCase
4
4
  include ShouldaFunctionalHelpers
@@ -32,8 +32,8 @@ class GRBTest < Test::Unit::TestCase
32
32
 
33
33
  should_have_branch 'new_branch', :local, :remote
34
34
 
35
- should "use the branch --track command" do
36
- assert_match %r{branch --track}, @output
35
+ should "use the branch --set-upstream command" do
36
+ assert_match %r{branch --set-upstream}, @output
37
37
  end
38
38
  end
39
39
 
@@ -45,8 +45,8 @@ class GRBTest < Test::Unit::TestCase
45
45
 
46
46
  should_have_branch 'new_branch', :local, :remote
47
47
 
48
- should "use git config to connect the branches" do
49
- assert_match %r{git\sconfig}, @output
48
+ should "use the branch --set-upstream command" do
49
+ assert_match %r{branch --set-upstream}, @output
50
50
  end
51
51
  end
52
52
  end
data/test/test_helper.rb CHANGED
@@ -1,30 +1,22 @@
1
1
  require 'rubygems'
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue Bundler::GemNotFound => e
5
+ STDERR.puts e.message
6
+ STDERR.puts "Try running `bundle install`."
7
+ exit!
8
+ end
2
9
  require 'test/unit'
3
10
 
4
- TEST_DIR = File.dirname(__FILE__)
5
-
6
- # Install version 2 the shoulda gem with
7
- # gem install thoughtbot-shoulda --source http://gems.github.com
8
- # Shoulda depends on ActiveSupport 2.0, so if you don't have Rails 2.x installed, install ActiveSupport before Shoulda:
9
- # gem install activesupport
10
- gem 'thoughtbot-shoulda', '~> 2.0'
11
11
  require 'shoulda'
12
- gem 'mocha', '~> 0.5'
13
12
  require 'mocha'
14
13
 
15
- # Just load redgreen if not running tests from TextMate
16
- IN_TM = !ENV['TM_DIRECTORY'].nil? unless defined?(IN_TM)
17
- begin
18
- require 'redgreen' unless IN_TM
19
- require 'ruby-debug'
20
- rescue LoadError => ex
21
- puts "Couldn't load optional test dependencies.\n #{ex.inspect}"
22
- end
14
+ TEST_DIR = File.dirname(__FILE__)
23
15
 
24
16
  require File.join( [TEST_DIR] + %w{ .. lib git_remote_branch} )
25
17
 
26
18
  require "#{TEST_DIR}/helpers/in_dir"
27
- Dir[TEST_DIR+'/helpers/**/*.rb'].each{|f| require f}
19
+ Dir[TEST_DIR+'/helpers/**/*.rb'].each{|f| require f}
28
20
 
29
21
  class Test::Unit::TestCase
30
22
  include MoreAssertions
@@ -1,4 +1,4 @@
1
- require File.join( File.dirname(__FILE__), '..', 'test_helper')
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class GitHelperTest < Test::Unit::TestCase
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join( File.dirname(__FILE__), '..', 'test_helper')
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
 
3
3
  class GitRemoteBranchTest < Test::Unit::TestCase
4
4
  context 'help' do
@@ -1,4 +1,4 @@
1
- require File.join( File.dirname(__FILE__), '..', 'test_helper')
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
  require "#{TEST_DIR}/helpers/constants"
3
3
 
4
4
  class ParamReaderTest < Test::Unit::TestCase
@@ -194,7 +194,7 @@ class ParamReaderTest < Test::Unit::TestCase
194
194
  GitRemoteBranch::COMMANDS.each_pair do |cmd, params|
195
195
  should "recognize all #{cmd} aliases" do
196
196
  params[:aliases].each do |alias_|
197
- assert cmd, grb.get_action(alias_)
197
+ assert cmd, grb.get_action(alias_).to_s
198
198
  end
199
199
  end
200
200
  end
@@ -1,4 +1,4 @@
1
- require File.join( File.dirname(__FILE__), '..', 'test_helper')
1
+ require File.expand_path('../../test_helper', __FILE__)
2
2
  require "#{TEST_DIR}/helpers/constants"
3
3
 
4
4
  class ParamReaderTest < Test::Unit::TestCase
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_remote_branch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ hash: 17
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 1
10
+ version: 0.3.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - Mathieu Martin
@@ -10,19 +16,25 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2008-11-14 00:00:00 -05:00
19
+ date: 2011-12-06 00:00:00 -05:00
14
20
  default_executable:
15
21
  dependencies:
16
22
  - !ruby/object:Gem::Dependency
17
- name: colored
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ none: false
21
25
  requirements:
22
26
  - - ">="
23
27
  - !ruby/object:Gem::Version
24
- version: "1.1"
25
- version:
28
+ hash: 21
29
+ segments:
30
+ - 1
31
+ - 0
32
+ - 1
33
+ version: 1.0.1
34
+ requirement: *id001
35
+ prerelease: false
36
+ name: rainbow
37
+ type: :runtime
26
38
  description: git_remote_branch is a learning tool to ease the interaction with remote branches in simple situations.
27
39
  email: webmat@gmail.com
28
40
  executables:
@@ -32,27 +44,23 @@ extensions: []
32
44
  extra_rdoc_files:
33
45
  - README.rdoc
34
46
  files:
35
- - bin
36
47
  - bin/grb
37
48
  - CHANGELOG
38
- - lib
49
+ - Gemfile
50
+ - Gemfile.lock
39
51
  - lib/constants.rb
40
52
  - lib/git_remote_branch.rb
53
+ - lib/monkey_patches.rb
41
54
  - lib/param_reader.rb
42
55
  - lib/state.rb
43
- - lib/string_ext.rb
44
56
  - lib/version.rb
45
57
  - LICENSE
46
58
  - Rakefile
47
59
  - README.rdoc
48
- - tasks
49
60
  - tasks/gem.rake
50
61
  - tasks/rdoc.rake
51
62
  - tasks/test.rake
52
- - test
53
- - test/functional
54
63
  - test/functional/grb_test.rb
55
- - test/helpers
56
64
  - test/helpers/array_extensions.rb
57
65
  - test/helpers/constants.rb
58
66
  - test/helpers/extractable.rb
@@ -63,15 +71,15 @@ files:
63
71
  - test/helpers/shoulda_unit_helpers.rb
64
72
  - test/helpers/temp_dir_helper.rb
65
73
  - test/test_helper.rb
66
- - test/unit
67
74
  - test/unit/git_helper_test.rb
68
75
  - test/unit/git_remote_branch_test.rb
69
76
  - test/unit/param_reader_test.rb
70
77
  - test/unit/state_test.rb
71
- - vendor
72
78
  - vendor/capture_fu.rb
73
79
  has_rdoc: true
74
80
  homepage: http://github.com/webmat/git_remote_branch
81
+ licenses: []
82
+
75
83
  post_install_message:
76
84
  rdoc_options:
77
85
  - --main
@@ -81,28 +89,32 @@ rdoc_options:
81
89
  require_paths:
82
90
  - lib
83
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
84
93
  requirements:
85
94
  - - ">="
86
95
  - !ruby/object:Gem::Version
96
+ hash: 3
97
+ segments:
98
+ - 0
87
99
  version: "0"
88
- version:
89
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
+ none: false
90
102
  requirements:
91
103
  - - ">="
92
104
  - !ruby/object:Gem::Version
105
+ hash: 3
106
+ segments:
107
+ - 0
93
108
  version: "0"
94
- version:
95
109
  requirements: []
96
110
 
97
111
  rubyforge_project: grb
98
- rubygems_version: 1.3.0
112
+ rubygems_version: 1.3.9.1
99
113
  signing_key:
100
- specification_version: 2
114
+ specification_version: 3
101
115
  summary: git_remote_branch eases the interaction with remote branches
102
116
  test_files:
103
- - test/functional
104
117
  - test/functional/grb_test.rb
105
- - test/helpers
106
118
  - test/helpers/array_extensions.rb
107
119
  - test/helpers/constants.rb
108
120
  - test/helpers/extractable.rb
@@ -113,7 +125,6 @@ test_files:
113
125
  - test/helpers/shoulda_unit_helpers.rb
114
126
  - test/helpers/temp_dir_helper.rb
115
127
  - test/test_helper.rb
116
- - test/unit
117
128
  - test/unit/git_helper_test.rb
118
129
  - test/unit/git_remote_branch_test.rb
119
130
  - test/unit/param_reader_test.rb
data/lib/string_ext.rb DELETED
@@ -1,5 +0,0 @@
1
- class String
2
- def path_for_os
3
- WINDOWS ? self.gsub('/', '\\') : self
4
- end
5
- end