git-pairing 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/LICENSE +19 -0
  3. data/README.md +32 -31
  4. data/lib/helper.rb +3 -3
  5. metadata +5 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWQwYjJmZjdlMTM5ZWZmNjgxZDE2MzU5NDZjNzNkY2FhNDZhYTU2ZQ==
4
+ NTUxOGY4ZjAyNWM5ZjI3NTg1ZjA4NmFiMjc0MzM5YmYxOTAyYjA5Yg==
5
5
  data.tar.gz: !binary |-
6
- ODViNThhMDRjN2M3YzAyOTgzMTQ0NjQ3ODY0NDZlMmE1YTU5NWU4Yw==
6
+ OWIyMGMyYTc4YWE4OThkNjg1MzFhYjBjMTRiMTkyYjJmODFiZGJmNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjYyMWIwZGZlZTJhZmVlZDlmYTk5ZmRhYWE5YjgzZjZlNTgwYTY2MzAyN2M2
10
- Y2QyYjljODFlNDFlYTkxYTQ2YTM2ZDNhODlkMDEwZTVkZTVlY2U4MTAzZjE3
11
- MjYyYTRhNDg5YjFiOWQzZmM4NTUxNTVhODBmNTA2MzYzOGFlOWU=
9
+ NDQ1MmYzNzY1NGNkNDU2ZjhjY2ZlZWVlZjUzZDRhMTk4NmZkOTNiODkxOTJm
10
+ MzNiZTRhMmIyNTBjZWRlY2M5MTg1YjNhMGFiN2Y2OGQ5Nzg3ZmVmMTk0Y2Jk
11
+ MDU0ODA5MzlmOGRmYzdjNTZkMDY0YmU4MGE2NmVjMWY0NTg1NzA=
12
12
  data.tar.gz: !binary |-
13
- MGQ2M2I4MzhhNGNmOWJmM2YyYzU1MGFhMGUyMWE5MTI4YmJhZTkwMGE2NzEz
14
- MzMzMGY4ZWZjM2I3ZWVkODAyMDJhOWEzMmNjYWFjNzc1ODZjNDlkZDBiNGM0
15
- MWZhM2NkMDIxMGMyODFlZmEyZDEzOTZiYTNhZTc5NDE2MzI0MWM=
13
+ ZGMyNDc0ZDkzZjcxNTA0YWViOWM5ZmM0NWU4MjQ1OTUzYmJhZjAxZWQ2MTdm
14
+ Nzg1NzBkM2I4OTkxZThjOTY1ZmE1ZTlkNDY0OTdlZjc2M2IyY2Q1M2U1NTcz
15
+ MDAyMzcyMTE5YTdiYjY2NzJmYWQ1ZTdhZWYyMjgyZWNlMGQ5ZjA=
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2014 Steve Quince
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,71 +1,72 @@
1
- # INTRO
1
+ # git-pairing
2
2
 
3
+ ### overview
3
4
  Share code authorship when pairing and using git/github. Display a
4
5
  customized bash prompt to show branch, pairing authors, and colorized
5
6
  git status.
6
7
 
7
- # Features
8
+ [MIT Licensed](./LICENSE)
8
9
 
9
- * adds new commands to git, `git pair`, `git whoami`, and `git solo`
10
- * changes the git config `[user] name` to list multiple commit authors, and remembers partners per repository
10
+ ### features
11
+
12
+ * adds new commands to git, _git pair_, _git whoami_, and _git solo_
13
+ * changes the git config _[user] name_ to list multiple commit authors, and remembers partners per repository
11
14
  * maintains a list of pairing partners, so that you can specify multiple commit authors by their initials
12
15
  * prompts the user to configure new partners as needed
13
- * reverts back to original global settings with `git solo` if no user is provided
16
+ * reverts back to original global settings with _git solo_ if no user is provided
14
17
  * can display a bash prompt with useful git information
15
18
 
16
19
  See help for more details and available options on the commands
17
20
 
18
- ```
19
- $ git pair -h
20
- $ git [ who | whoami ] -h
21
- $ git solo -h
22
- ```
21
+ `$ git pair -h`
23
22
 
24
- # Installing
23
+ `$ git [ who | whoami ] -h`
25
24
 
26
- To grab the latest stable release `gem install git-pairing`
25
+ `$ git solo -h`
27
26
 
28
- Or, clone this repo and execute the following command in your
29
- terminal/console of choice
27
+ ## Install
30
28
 
31
- ```
32
- $ gem install git-pairing
33
- ```
29
+ **Install** the latest stable release
34
30
 
35
- # Customizing
31
+ `$ gem install git-pairing`
36
32
 
37
- ### Configuration
33
+ **Configure**
38
34
 
39
- The first time that `git pair` is executed, it will create a config file
40
- in the user's home directory `~/.pairs`
35
+ The first time that _git pair_ is executed, it will create a config file
36
+ in the user's home directory _~/.pairs_
41
37
 
42
38
  This is just a yaml file that you can edit manually or update via the
43
- available commands (e.g., `git pair --add sq`). Included in the config is
39
+ available commands (e.g., _git pair --add sq_). Included in the config is
44
40
  the default delimiters used when setting the pair names, email
45
41
  addresses, and partner initials
46
42
  into the git config. Feel free to update these as well if the defaults
47
43
  do not suit your fancy.
48
44
 
49
- ### Git-Pairing Command Prompt
45
+ **Customize** your command prompt (optional - but useful)
46
+
47
+ ![Git-Pairing Prompt](gprompt.jpg "git-pairing command prompt")
48
+
49
+ ![Git-Pairing Prompt - Clean](gprompt-clean.jpg "git-pairing command prompt - clean")
50
50
 
51
51
  git-pairing can display the pairing partners configured for a project on the
52
52
  command line. This also allows you to keep track of important info when in a git repo.
53
53
 
54
- Executing `git pair --prompt` adds this feature.
54
+ Executing _git pair --prompt_ adds this feature.
55
+
55
56
  * shell script is copied to your home directory
57
+
56
58
  * adds 2 lines to your .bash_profile/.bashrc to source a shell script
59
+
57
60
  * shell script and bash_profile have default behavior that can easily be
58
- customized by simply editing these default entries
61
+ customized by simply editing these default entries
59
62
 
60
- # Known Issues
63
+ ## Known Issues
61
64
 
62
- * May make githubs graphs and stats inaccurate since it relies on the commiter's
65
+ * May make github's graphs and stats inaccurate since it relies on the commiter's
63
66
  name and email address to generate statistics and links
64
67
 
65
- # Building
68
+ ## Building
66
69
 
67
70
  The included Rakefile will build the git-pairing gem, e.g.,
68
71
 
69
- ```
70
- $ rake
71
- ```
72
+ `$ rake`
data/lib/helper.rb CHANGED
@@ -95,11 +95,11 @@ module GitPairs
95
95
  else
96
96
  puts ""
97
97
  puts Paint["Please provide info for: #{initials}", :yellow]
98
- name = ask("Full Name: ")
98
+ name = ask("Full Name: ").to_s
99
99
  user = ask("Git Username: ")
100
100
  #just in case they supply email address
101
- user = user.split('@')[0]
102
- email = ask("Email: ")
101
+ user = user.split('@')[0].to_s
102
+ email = ask("Email: ").to_s
103
103
  partner = {initials => {'name' => name, 'username' => user, 'email' => email}}
104
104
  conf["pairs"].update(partner)
105
105
  temp_conf = YAML::Store.new(path_to_conf)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-pairing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Quince
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-28 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop
@@ -104,6 +104,7 @@ executables:
104
104
  extensions: []
105
105
  extra_rdoc_files:
106
106
  - README.md
107
+ - LICENSE
107
108
  files:
108
109
  - bin/git-pair
109
110
  - bin/git-solo
@@ -112,7 +113,8 @@ files:
112
113
  - lib/commands.rb
113
114
  - lib/helper.rb
114
115
  - README.md
115
- homepage: https://github.com/glg/git-pairing
116
+ - LICENSE
117
+ homepage: http://glg.github.io/git-pairing
116
118
  licenses: []
117
119
  metadata: {}
118
120
  post_install_message: