ghn 2.0.0.pre3 → 2.0.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ghn/commands.rb +13 -1
- data/lib/ghn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94e945b6b2fbd6ef4b6fe02f0bd0d8e896e58d21
|
4
|
+
data.tar.gz: 63a952e82cac9bca5789a03c4d607c5e4d6fdbcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd5608d589b9cf25ff8d70306ea09947289c0118ec96078a69fdfe8a26e9373fe2868ba668ccef3eaceebe35f56e220be0ea59f8c20c96a97194c2ccc45bdb85
|
7
|
+
data.tar.gz: 0866278f8a9f23040f01be99d1fb201b629fd61c50a158f1384e8e9ba2db82fd08cd5e27d890e4226ee28c4e00f7c2b2a9440439ed31d1212bd1ae895b8d7758
|
data/lib/ghn/commands.rb
CHANGED
@@ -12,7 +12,7 @@ class Ghn
|
|
12
12
|
def open(name = nil)
|
13
13
|
repo_full_name = aliases.find(name) || name
|
14
14
|
collect(repo_full_name).each do |url|
|
15
|
-
system "
|
15
|
+
system "#{open_command} #{url}"
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -61,5 +61,17 @@ MESSAGE
|
|
61
61
|
exit!
|
62
62
|
end
|
63
63
|
end
|
64
|
+
|
65
|
+
def open_command
|
66
|
+
@open_command ||=
|
67
|
+
case RbConfig::CONFIG['host_os']
|
68
|
+
when /darwin/
|
69
|
+
'open'
|
70
|
+
when /linux|bsd/
|
71
|
+
'xdg-open'
|
72
|
+
when /mswin|mingw|cygwin/
|
73
|
+
'start'
|
74
|
+
end
|
75
|
+
end
|
64
76
|
end
|
65
77
|
end
|
data/lib/ghn/version.rb
CHANGED