furi-git-prompt 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9e5ed6478cfdddcd30c864c75cb7c5d169e19b5
4
- data.tar.gz: cb5d1cd5ae5721fcab7289b3718314e6ff8af253
3
+ metadata.gz: 3e534f08d4c5688da28662520526ce4424b6a4c1
4
+ data.tar.gz: c96d8b5fe716578224def400241707351c911dff
5
5
  SHA512:
6
- metadata.gz: 08e4a08dc195538bfeff736d80f58268f74db5636a054fcaab5a91b0c60a26f7e34ce4ce0f5e4676ad58a94cab7918ae43e43da184dc3dee00f5af01e850d1d3
7
- data.tar.gz: b1eab1c25b2ae338ca4cfbf7892ab58139b081fb17b20ea1544aa5f0d0c9fe9f93d60b6552a4104942b8d9d222605798edd6e6c96b2f2fefa905625f956313af
6
+ metadata.gz: b954a8a466cd7c339cf6cc1d7069f3c3c4a710a9b1b4c1b96c36b2b112cfe60a94bd208c6056efe221a5600b66a16728ec90f1d75009b682cb8f4d912242a950
7
+ data.tar.gz: 6f4a7996baf3fbff67b4c25511b95b3502bf2470f89e0b120467aac6d7e995989ad3020bb40cb143bbcc4463bb14c45e70d0e33b452f91713c84ec6334b40a52
@@ -1,5 +1,12 @@
1
+ require 'open3'
2
+
1
3
  class GitSystemCall
2
4
  def git_branch
3
- %x(git branch 2> /dev/null)
5
+ stdout_str, stdout_err, status = Open3.capture3('git branch')
6
+ if status.exitstatus == 0
7
+ stdout_str
8
+ else
9
+ stdout_err
10
+ end
4
11
  end
5
12
  end
@@ -1,7 +1,7 @@
1
1
  module Furi
2
2
  module Git
3
3
  module Prompt
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.8'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furi-git-prompt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo Pack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-01 00:00:00.000000000 Z
11
+ date: 2013-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler