gitswitch 0.3.0 → 0.3.1

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.
data/.gemtest ADDED
File without changes
data/Rakefile CHANGED
@@ -13,3 +13,5 @@ RSpec::Core::RakeTask.new(:spec) do |t|
13
13
  t.pattern = FileList["spec/**/*_spec.rb"]
14
14
  end
15
15
 
16
+ desc 'Run specs (alias for Gem Testers)'
17
+ task :test => :spec
data/gitswitch.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
 
32
32
  s.add_dependency('rake')
33
33
  s.add_dependency('thor')
34
- s.add_development_dependency(%q<rspec>, [">= 2.3.0"])
34
+ s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
35
35
 
36
36
  end
37
37
 
data/lib/gitswitch/cli.rb CHANGED
@@ -54,15 +54,15 @@ class Gitswitch
54
54
  method_option :global, :type => :boolean, :aliases => ["-s","--global"] ## To support the deprecated behavior
55
55
  method_option :repository, :type => :boolean, :aliases => "-r"
56
56
  def switch(tag = 'default')
57
- options[:global] ? switch_global(tag) : Gitswitch.new.switch_repo_user(tag)
57
+ options[:global] ? global(tag) : Gitswitch.new.switch_repo_user(tag)
58
58
  puts Gitswitch.current_user_info
59
59
  end
60
60
 
61
61
 
62
62
  ######################################################################
63
- desc "global [TAG]", "Switch global git user"
64
- map "-s" => :switch_global
65
- def switch_global(tag = 'default')
63
+ desc "global [TAG]", "Switch global git user (your ~/.gitconfig file)"
64
+ map "-s" => :global
65
+ def global(tag = 'default')
66
66
  Gitswitch.new.switch_global_user(tag)
67
67
  puts Gitswitch.current_user_info
68
68
  end
@@ -1,3 +1,3 @@
1
1
  class Gitswitch
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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
5
- prerelease: false
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joe Alba
@@ -54,12 +54,12 @@ dependencies:
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- hash: 3
57
+ hash: 27
58
58
  segments:
59
59
  - 2
60
- - 3
60
+ - 5
61
61
  - 0
62
- version: 2.3.0
62
+ version: 2.5.0
63
63
  type: :development
64
64
  version_requirements: *id003
65
65
  description: Easily switch your git name/e-mail user info -- Handy for work vs. personal and for pair programming
@@ -74,6 +74,7 @@ extra_rdoc_files:
74
74
  files:
75
75
  - .bundle/config
76
76
  - .document
77
+ - .gemtest
77
78
  - .gitignore
78
79
  - .rspec
79
80
  - Gemfile
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  requirements: []
119
120
 
120
121
  rubyforge_project:
121
- rubygems_version: 1.3.7
122
+ rubygems_version: 1.5.0
122
123
  signing_key:
123
124
  specification_version: 3
124
125
  summary: Easy git user switching