browser_gui 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/browser_url.rb +1 -1
- data/lib/browser_gui/version.rb +1 -1
- data/lib/browser_gui.rb +3 -3
- metadata +1 -1
data/examples/browser_url.rb
CHANGED
data/lib/browser_gui/version.rb
CHANGED
data/lib/browser_gui.rb
CHANGED
@@ -8,11 +8,11 @@ end
|
|
8
8
|
module BrowserGui
|
9
9
|
def self.open_browser(url)
|
10
10
|
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/ then
|
11
|
-
system("start #{url}")
|
11
|
+
system("start '#{url}'")
|
12
12
|
elsif RbConfig::CONFIG['host_os'] =~ /darwin/ then
|
13
|
-
system("open #{url}")
|
13
|
+
system("open '#{url}'")
|
14
14
|
elsif RbConfig::CONFIG['host_os'] =~ /linux/ then
|
15
|
-
system("xdg-open #{url}")
|
15
|
+
system("xdg-open '#{url}'")
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|