gitswitch 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
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.2.2"
8
+ s.version = "0.2.3"
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-16}
12
+ s.date = %q{2010-09-21}
13
13
  s.default_executable = %q{gitswitch}
14
14
  s.description = %q{Easily switch your git name/e-mail user info -- Handy for work vs. personal and for pair programming}
15
15
  s.email = %q{joe@joealba.com}
data/lib/gitswitch.rb CHANGED
@@ -178,7 +178,7 @@ class GitSwitch
178
178
 
179
179
  # Add a user entry to your .gitswitch file
180
180
  def add_gitswitch_entry(tag = '')
181
- if (!tag.empty?)
181
+ if (!tag.nil? && !tag.empty?)
182
182
  tag.gsub!(/\W+/,'')
183
183
  else
184
184
  print "Enter a tag to describe this git user entry: "
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,11 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'rubygems'
3
4
  require 'gitswitch'
4
- require 'rspec'
5
- #require 'spec'
6
- #require 'spec/autorun'
5
+
6
+ require 'bundler'
7
+ Bundler.setup
8
+
7
9
 
8
10
  RSpec.configure do |c|
9
11
 
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
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-16 00:00:00 -04:00
18
+ date: 2010-09-21 00:00:00 -04:00
19
19
  default_executable: gitswitch
20
20
  dependencies: []
21
21