git-issue 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -160,7 +160,9 @@ class GitIssue::Base
160
160
  end
161
161
 
162
162
  def current_branch
163
- %x(git branch -l | grep "*" | cut -d " " -f 2).strip
163
+ RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|bccwin|cygwin/ ?
164
+ %x(git branch -l 2> NUL | grep "*" | cut -d " " -f 2).strip :
165
+ %x(git branch -l 2> /dev/null | grep "*" | cut -d " " -f 2).strip
164
166
  end
165
167
 
166
168
  def guess_ticket
@@ -1,3 +1,3 @@
1
1
  module GitIssue
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-issue
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 6
10
- version: 0.8.6
9
+ - 7
10
+ version: 0.8.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tomohito Ozaki