launchy 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +3 -0
- data/bin/launchy +0 -0
- data/lib/launchy/application.rb +4 -0
- data/lib/launchy/version.rb +1 -1
- data/spec/application_spec.rb +4 -4
- data/spec/launchy_spec.rb +2 -2
- metadata +47 -40
data/CHANGES
CHANGED
data/bin/launchy
CHANGED
File without changes
|
data/lib/launchy/application.rb
CHANGED
@@ -53,6 +53,8 @@ module Launchy
|
|
53
53
|
# detect what the current os is and return :windows, :darwin or :nix
|
54
54
|
def my_os_family(test_os = my_os)
|
55
55
|
case test_os
|
56
|
+
when /mingw/i
|
57
|
+
family = :windows
|
56
58
|
when /mswin/i
|
57
59
|
family = :windows
|
58
60
|
when /windows/i
|
@@ -67,6 +69,8 @@ module Launchy
|
|
67
69
|
family = :nix
|
68
70
|
when /linux/i
|
69
71
|
family = :nix
|
72
|
+
when /aix/i
|
73
|
+
family = :nix
|
70
74
|
when /cygwin/i
|
71
75
|
family = :cygwin
|
72
76
|
else
|
data/lib/launchy/version.rb
CHANGED
data/spec/application_spec.rb
CHANGED
@@ -8,10 +8,10 @@ describe Launchy::Application do
|
|
8
8
|
@app = Launchy::Application.new
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
YAML::load(IO.read(File.join(File.dirname(__FILE__), "tattle-host-os.yml")))['host_os'].keys.sort.each do |os|
|
12
|
+
it "#{os} should be a found os" do
|
13
|
+
Launchy::Application::KNOWN_OS_FAMILIES.should include(@app.my_os_family(os))
|
14
|
+
end
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should not find os of 'dos'" do
|
data/spec/launchy_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require File.join(File.dirname(__FILE__),"spec_helper.rb")
|
|
2
2
|
require 'stringio'
|
3
3
|
|
4
4
|
describe Launchy do
|
5
|
-
it "instantiates an
|
5
|
+
it "instantiates an instance of Launchy::CommandLine for commandline" do
|
6
6
|
Launchy.command_line.class.should == Launchy::CommandLine
|
7
7
|
end
|
8
8
|
|
@@ -15,4 +15,4 @@ describe Launchy do
|
|
15
15
|
$stderr = old_stderr
|
16
16
|
ENV["LAUNCHY_DEBUG"] = nil
|
17
17
|
end
|
18
|
-
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,33 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.2
|
3
|
-
specification_version: 1
|
4
2
|
name: launchy
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2007-09-08 00:00:00 -06:00
|
8
|
-
summary: A helper to launch apps from within ruby programs.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: jeremy@hinegardner.org
|
12
|
-
homepage: http://copiousfreetime.rubyforge.org/launchy/
|
13
|
-
rubyforge_project: copiousfreetime
|
14
|
-
description: Launchy is helper class for launching cross-platform applications in a fire and forget manner. There are application concepts (browser, email client, etc) that are common across all platforms, and they may be launched differently on each platform. Launchy is here to make a common approach to launching external application from within ruby programs.
|
15
|
-
autorequire:
|
16
|
-
default_executable: launchy
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 1.8.5
|
24
|
-
version:
|
4
|
+
version: 0.3.2
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Jeremy Hinegardner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-05-21 00:00:00 -06:00
|
13
|
+
default_executable: launchy
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Launchy is helper class for launching cross-platform applications in a fire and forget manner. There are application concepts (browser, email client, etc) that are common across all platforms, and they may be launched differently on each platform. Launchy is here to make a common approach to launching external application from within ruby programs.
|
17
|
+
email: jeremy@hinegardner.org
|
18
|
+
executables:
|
19
|
+
- launchy
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- CHANGES
|
24
|
+
- LICENSE
|
25
|
+
- README
|
31
26
|
files:
|
32
27
|
- spec/application_spec.rb
|
33
28
|
- spec/browser_spec.rb
|
@@ -45,12 +40,9 @@ files:
|
|
45
40
|
- lib/launchy/version.rb
|
46
41
|
- lib/launchy.rb
|
47
42
|
- bin/launchy
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
- spec/launchy_spec.rb
|
52
|
-
- spec/spec_helper.rb
|
53
|
-
- spec/version_spec.rb
|
43
|
+
has_rdoc: true
|
44
|
+
homepage: http://copiousfreetime.rubyforge.org/launchy/
|
45
|
+
post_install_message:
|
54
46
|
rdoc_options:
|
55
47
|
- --line-numbers
|
56
48
|
- --inline-source
|
@@ -58,15 +50,30 @@ rdoc_options:
|
|
58
50
|
- README
|
59
51
|
- --title
|
60
52
|
- "'launchy -- A helper to launch apps from within ruby programs.'"
|
61
|
-
|
62
|
-
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
-
|
67
|
-
|
68
|
-
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 1.8.5
|
60
|
+
version:
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: "0"
|
66
|
+
version:
|
69
67
|
requirements: []
|
70
68
|
|
71
|
-
|
72
|
-
|
69
|
+
rubyforge_project: copiousfreetime
|
70
|
+
rubygems_version: 1.1.1
|
71
|
+
signing_key:
|
72
|
+
specification_version: 2
|
73
|
+
summary: A helper to launch apps from within ruby programs.
|
74
|
+
test_files:
|
75
|
+
- spec/application_spec.rb
|
76
|
+
- spec/browser_spec.rb
|
77
|
+
- spec/launchy_spec.rb
|
78
|
+
- spec/spec_helper.rb
|
79
|
+
- spec/version_spec.rb
|