git-whistles 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/git-pull-request CHANGED
@@ -111,4 +111,10 @@ end
111
111
  query_string = query.map { |key,value| "#{CGI.escape key.to_s}=#{CGI.escape value}"}.join('&')
112
112
  url = "https://github.com/#{repo}/pull/new?#{query_string}"
113
113
  puts "Preparing a pull request for branch #{branch}"
114
- system "open", url
114
+
115
+ # Use +xdg-open+ on Linux, +open+ on Darwin
116
+ unless `which xdg-open`.strip.empty?
117
+ system "xdg-open", url
118
+ else
119
+ system "open", url
120
+ end
@@ -2,7 +2,7 @@ require 'pathname'
2
2
 
3
3
  module Git
4
4
  module Whistles
5
- VERSION = "0.4.3"
5
+ VERSION = "0.4.4"
6
6
  GEMDIR = Pathname.new(__FILE__).parent.parent.parent
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-whistles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
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: 2012-10-09 00:00:00.000000000 Z
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -138,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  segments:
140
140
  - 0
141
- hash: -772797490059586009
141
+ hash: 2003402627353035389
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  none: false
144
144
  requirements: