gitsu 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -17,21 +17,25 @@ Gitsu is intended to be used from the command line, through Git.
17
17
 
18
18
  To switch the configured Git user:
19
19
 
20
- $ git su "John Galt <jgalt@tcmc.com>"
20
+ $ git su "John Galt <jgalt@example.com>"
21
21
 
22
- Switched local user to John Galt <jgalt@tcmc.com>
22
+ Switched local user to John Galt <jgalt@example.com>
23
23
 
24
24
  To make it easier to switch users, tell Gitsu about some users.
25
25
 
26
- $ git su --add "John Galt <jgalt@tcmc.com>"
27
- $ git su --add "Raphe Rackstraw <rack@hp.royalnavy.mod.uk>"
26
+ $ git su --add "John Galt <jgalt@example.com>"
27
+ $ git su --add "Raphe Rackstraw <rrack@example.com>"
28
28
  $ git su jg
29
29
 
30
- Switched to user John Galt <jgalt@tcmc.com>
30
+ Switched to user John Galt <jgalt@example.com>
31
31
 
32
32
  $ git su raphe
33
33
 
34
- Switched to user Raphe Rackstraw <rack@hp.royalnavy.mod.uk>
34
+ Switched to user Raphe Rackstraw <rrack@example.com>
35
+
36
+ ## Documentation
37
+
38
+ For more information, see [the documentation](http://drrb.github.com/gitsu)
35
39
 
36
40
  ## Contributing
37
41
 
data/TODO CHANGED
@@ -1,11 +1,12 @@
1
1
  Features
2
2
  --------
3
- Make colors configurable because people like that stuff
4
3
  Support multiple users at once for pairing
4
+ Make colors configurable because people like that stuff
5
5
 
6
6
  Tasks
7
7
  --------
8
8
  Check for changes (and abort if you find them) during release
9
+ Use a prerelease version (e.g. "1.2.3.pre") for Gem working version
9
10
 
10
11
  Bugs
11
12
  --------
@@ -4,7 +4,7 @@ lib_path = File.expand_path('../../lib', __FILE__)
4
4
  $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include? lib_path
5
5
  require 'gitsu'
6
6
 
7
- factory = GitSu::Factory.new(STDOUT)
7
+ factory = GitSu::Factory.new(STDOUT, "~/.gitsu")
8
8
  switcher = factory.switcher
9
9
  runner = factory.runner
10
10
 
@@ -1,5 +1,5 @@
1
1
  module GitSu
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.0"
3
3
 
4
4
  class Version
5
5
  class ParseError < StandardError
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe "git-su executable" do
4
+ it "should run without an error" do
5
+ output = `bin/git-su`
6
+ $?.exitstatus.should be 0
7
+ end
8
+ end
9
+
10
+ describe "git-whoami executable" do
11
+ it "should run without an error" do
12
+ output = `bin/git-whoami`
13
+ $?.exitstatus.should be 0
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-30 00:00:00.000000000 Z
12
+ date: 2013-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coveralls
@@ -119,6 +119,7 @@ files:
119
119
  - lib/gitsu/user_list.rb
120
120
  - lib/gitsu/version.rb
121
121
  - man/git-su.1.ronn
122
+ - spec/gitsu/bin_spec.rb
122
123
  - spec/gitsu/git_spec.rb
123
124
  - spec/gitsu/gitsu_spec.rb
124
125
  - spec/gitsu/runner_spec.rb
@@ -166,6 +167,7 @@ test_files:
166
167
  - features/support/env.rb
167
168
  - features/switch_to_fully_qualified_user.feature
168
169
  - features/switch_to_stored_user.feature
170
+ - spec/gitsu/bin_spec.rb
169
171
  - spec/gitsu/git_spec.rb
170
172
  - spec/gitsu/gitsu_spec.rb
171
173
  - spec/gitsu/runner_spec.rb