git-pairing 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +3 -8
  3. data/lib/helper.rb +16 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTA4NDk4YzcxZDI5NzBjMTAxMmNhYmRhMGVlYzc0NTZlNDZkMWUxYw==
4
+ ZWQwYjJmZjdlMTM5ZWZmNjgxZDE2MzU5NDZjNzNkY2FhNDZhYTU2ZQ==
5
5
  data.tar.gz: !binary |-
6
- OWQ1Mjc3OGM4YTg0NWNlMzI3OWVlYjQ3NWJhNDVhYTlkYjE2ZDcyNA==
6
+ ODViNThhMDRjN2M3YzAyOTgzMTQ0NjQ3ODY0NDZlMmE1YTU5NWU4Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDVlMzhhOTliMGFmNTIxM2FlYjlkMTUwMTkyNThhMzFmNjg1YjZjNDRmNmQ2
10
- NmQ2ODk3NTViMzIwNDA1ZTgxY2RhMDk0NGQ1YmQ4OTEyZDFhOWYxMWYwNWZk
11
- YWQ3NmUyOWI2MzYxMWNkZWIxMjgyNzQ1ZTNhODBjY2IyNGU1N2I=
9
+ ZjYyMWIwZGZlZTJhZmVlZDlmYTk5ZmRhYWE5YjgzZjZlNTgwYTY2MzAyN2M2
10
+ Y2QyYjljODFlNDFlYTkxYTQ2YTM2ZDNhODlkMDEwZTVkZTVlY2U4MTAzZjE3
11
+ MjYyYTRhNDg5YjFiOWQzZmM4NTUxNTVhODBmNTA2MzYzOGFlOWU=
12
12
  data.tar.gz: !binary |-
13
- NWE0M2VmMjliNmVhZjZlYThiYWI5ZmNhY2YyMGYwNTMyOTRlNzU1ZDM5OTNh
14
- OWFmYjBmZTc4OWFjOTBjZjcxZDI2YTkwMjkwMzdiZDQxYWE0ZDJmNGM5MjMx
15
- YzZjN2Y1ODEzODZkNTliMjNiYjdkMzM4NTNkNDk0ZTc1NWVlYzQ=
13
+ MGQ2M2I4MzhhNGNmOWJmM2YyYzU1MGFhMGUyMWE5MTI4YmJhZTkwMGE2NzEz
14
+ MzMzMGY4ZWZjM2I3ZWVkODAyMDJhOWEzMmNjYWFjNzc1ODZjNDlkZDBiNGM0
15
+ MWZhM2NkMDIxMGMyODFlZmEyZDEzOTZiYTNhZTc5NDE2MzI0MWM=
data/README.md CHANGED
@@ -49,23 +49,18 @@ do not suit your fancy.
49
49
  ### Git-Pairing Command Prompt
50
50
 
51
51
  git-pairing can display the pairing partners configured for a project on the
52
- command line along with other useful information when in a git repo.
52
+ command line. This also allows you to keep track of important info when in a git repo.
53
53
 
54
54
  Executing `git pair --prompt` adds this feature.
55
55
  * shell script is copied to your home directory
56
- * adds a line to your .bash_profile/.bashrc to source a shell script and
57
- set your PS1 to the __git_pairing_prompt() function
58
- * `source ~/.git-pairing-prompt.sh`
59
- * `export PS1="\[$(__git_pairing_prompt)\] "`
56
+ * adds 2 lines to your .bash_profile/.bashrc to source a shell script
60
57
  * shell script and bash_profile have default behavior that can easily be
61
58
  customized by simply editing these default entries
62
59
 
63
- This allows users to keep track of important info when you are in a git repo.
64
-
65
60
  # Known Issues
66
61
 
67
62
  * May make githubs graphs and stats inaccurate since it relies on the commiter's
68
- name and email address to generate statistics and links
63
+ name and email address to generate statistics and links
69
64
 
70
65
  # Building
71
66
 
data/lib/helper.rb CHANGED
@@ -113,11 +113,25 @@ module GitPairs
113
113
 
114
114
  def self.pair
115
115
  self.git_installed?
116
- install_with = <<jam
116
+ if self.windows?
117
+ install_with = <<jam
117
118
  source ~/.git-pairing-prompt.sh
118
119
  export PS1="\\[\\$(__git_pairing_prompt)\\] "
119
120
  jam
121
+ else
122
+ install_with = <<jam
123
+ source ~/.git-pairing-prompt.sh
124
+ PROMPT_COMMAND=__git_pairing_prompt
125
+ jam
126
+ puts ""
127
+ puts Paint["If you had an older version previously installed, edit your .bash_profile/.bashrc file to remove the following lines:", :yellow]
128
+ puts Paint['source ~/.git-pairing-prompt.sh', :yellow]
129
+ puts Paint['export PS1="\[$(__git_pairing_prompt)\] "', :yellow]
130
+ end
131
+
132
+ puts ""
120
133
  confirmed = agree("Configure git-pairing bash prompt? ")
134
+ puts ""
121
135
  if confirmed
122
136
  # copy shell script to user's home dir
123
137
  home = File.expand_path('~')
@@ -134,7 +148,7 @@ jam
134
148
  puts Paint["Please re-source your bash_profile or bashrc", :yellow]
135
149
  puts Paint["(i.e., source ~/.bash_profile", :yellow]
136
150
  puts ""
137
- puts Paint["Feel free to edit ~/.git-pairing-prompt.sh to suit your prompt preferences", :yellow]
151
+ puts Paint["Feel free to edit ~/.git-pairing-prompt.sh to suit your prompt preferences", :blue]
138
152
  puts ""
139
153
  end
140
154
  end
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.4.0
4
+ version: 0.5.0
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-05-14 00:00:00.000000000 Z
11
+ date: 2013-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - git must be installed
139
139
  rubyforge_project:
140
- rubygems_version: 2.0.2
140
+ rubygems_version: 2.0.3
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: ''