gitswitch 0.1.3 → 0.1.4

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/gitswitch.gemspec +2 -2
  3. data/lib/gitswitch.rb +4 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/gitswitch.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gitswitch}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joe Alba"]
12
- s.date = %q{2010-09-05}
12
+ s.date = %q{2010-09-07}
13
13
  s.default_executable = %q{gitswitch}
14
14
  s.description = %q{Do you write code for your employer and for yourself? Want to easily change the e-mail address associated with your commits for work and home repos? This gem might help you out.}
15
15
  s.email = %q{joe@joealba.com}
data/lib/gitswitch.rb CHANGED
@@ -1,8 +1,10 @@
1
1
  require 'optparse'
2
2
  require 'yaml'
3
+ require 'shellwords' if !String.new.methods.include?('shellescape')
4
+
3
5
 
4
6
  class GitSwitch
5
- VERSION_FILE = File.join File.dirname(__FILE__), "..", "VERSION.yml"
7
+ VERSION_FILE = File.join File.dirname(__FILE__), "..", "VERSION"
6
8
  GITSWITCH_CONFIG_FILE = File.join ENV["HOME"], ".gitswitch"
7
9
  GIT_BIN = '/usr/bin/env git'
8
10
 
@@ -211,7 +213,7 @@ class GitSwitch
211
213
 
212
214
  # Print version information.
213
215
  def print_version
214
- if fh = File.open('VERSION','r')
216
+ if fh = File.open(VERSION_FILE,'r')
215
217
  puts "GitSwitch " + fh.gets
216
218
  fh.close
217
219
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitswitch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joe Alba
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-05 00:00:00 -04:00
18
+ date: 2010-09-07 00:00:00 -04:00
19
19
  default_executable: gitswitch
20
20
  dependencies: []
21
21