launchy 0.3.5 → 0.3.7

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/HISTORY CHANGED
@@ -1,5 +1,14 @@
1
1
  = Launchy Changlog
2
2
 
3
+ == Version 0.3.7 - 2010-07-19
4
+
5
+ * Fix launchy on windows (mikefarmer)
6
+
7
+ == Version 0.3.6 - 2010-02-22
8
+
9
+ * add a test:spec task to run tests without rcov support
10
+ * added 'testing' os family for running tests
11
+
3
12
  == Version 0.3.5 - 2009-12-17
4
13
 
5
14
  * clarify that launchy is under ISC license
@@ -4,7 +4,7 @@ module Launchy
4
4
  class Application
5
5
  class << self
6
6
  def known_os_families
7
- @known_os_families ||= [ :windows, :darwin, :nix, :cygwin ]
7
+ @known_os_families ||= [ :windows, :darwin, :nix, :cygwin, :testing ]
8
8
  end
9
9
 
10
10
  def inherited(sub_class)
@@ -74,6 +74,8 @@ module Launchy
74
74
  family = :nix
75
75
  when /cygwin/i
76
76
  family = :cygwin
77
+ when /testing/i
78
+ family = :testing
77
79
  else
78
80
  $stderr.puts "Unknown OS familiy for '#{test_os}'. Please report this bug to <jeremy at hinegardner dot org>"
79
81
  family = :unknown
@@ -142,20 +144,22 @@ module Launchy
142
144
  [ "cmd /C start" ]
143
145
  end
144
146
 
147
+ # used only for running tests
148
+ def testing_app_list
149
+ []
150
+ end
151
+
145
152
  # run the command
146
153
  def run(cmd,*args)
147
154
  Launchy.log "#{self.class.name} : Spawning on #{my_os_family} : #{cmd} #{args.inspect}"
148
155
 
149
156
  if my_os_family == :windows then
150
157
  # NOTE: the command is purposely omitted here because
151
- # running the filename via "cmd /c" is the same as
152
- # running "start filename" at the command-prompt
153
- #
154
- # furthermore, when "cmd /c start filename" is
158
+ # When "cmd /c start filename" is
155
159
  # run, the shell interprets it as two commands:
156
160
  # (1) "start" opens a new terminal, and (2)
157
161
  # "filename" causes the file to be launched.
158
- system 'cmd', '/c', *args
162
+ system 'cmd', '/c', cmd, *args
159
163
  else
160
164
  # fork, and the child process should NOT run any exit handlers
161
165
  child_pid = fork do
@@ -2,7 +2,7 @@ module Launchy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- BUILD = 5
5
+ BUILD = 7
6
6
 
7
7
  def self.to_a
8
8
  [MAJOR, MINOR, BUILD]
@@ -45,7 +45,7 @@ describe Launchy::Browser do
45
45
  it "reports when it cannot find an browser" do
46
46
  old_error = $stderr
47
47
  $stderr = StringIO.new
48
- ENV["LAUNCHY_HOST_OS"] = "linux"
48
+ ENV["LAUNCHY_HOST_OS"] = "testing"
49
49
  begin
50
50
  browser = Launchy::Browser.new
51
51
  rescue => e
@@ -36,7 +36,7 @@ if pkg_config = Configuration.for_if_exist?("packaging") then
36
36
 
37
37
  desc "distribute copiously"
38
38
  task :copious => :package do
39
- gems = Launchy::SPECS.collect { |s| "#{s.full_name}.gem" }
39
+ gems = [ "#{Launchy::GEM_SPEC.full_name}.gem" ]
40
40
  Rake::SshFilePublisher.new('jeremy@copiousfreetime.org',
41
41
  '/var/www/vhosts/www.copiousfreetime.org/htdocs/gems/gems',
42
42
  'pkg', *gems).upload
@@ -11,9 +11,9 @@ if spec_config = Configuration.for_if_exist?("test") then
11
11
  task :default => :spec
12
12
 
13
13
  require 'spec/rake/spectask'
14
- Spec::Rake::SpecTask.new do |r|
14
+ Spec::Rake::SpecTask.new( :rcov ) do |r|
15
15
  r.ruby_opts = spec_config.ruby_opts
16
- r.libs = [ Launchy::Paths.lib_path,
16
+ r.libs = [ Launchy::Paths.lib_path,
17
17
  Launchy::Paths.root_dir ]
18
18
  r.spec_files = spec_config.files
19
19
  r.spec_opts = spec_config.options
@@ -24,6 +24,14 @@ if spec_config = Configuration.for_if_exist?("test") then
24
24
  r.rcov_opts = rcov_config.rcov_opts
25
25
  end
26
26
  end
27
+
28
+ Spec::Rake::SpecTask.new( :spec ) do |r|
29
+ r.ruby_opts = spec_config.ruby_opts
30
+ r.libs = [ Launchy::Paths.lib_path,
31
+ Launchy::Paths.root_dir ]
32
+ r.spec_files = spec_config.files
33
+ r.spec_opts = spec_config.options
34
+ end
27
35
  end
28
36
  end
29
37
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: launchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 7
10
+ version: 0.3.7
5
11
  platform: ruby
6
12
  authors:
7
13
  - Jeremy Hinegardner
@@ -9,29 +15,41 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-12-17 00:00:00 -07:00
18
+ date: 2010-07-19 00:00:00 -06:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: rake
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 61
30
+ segments:
31
+ - 0
32
+ - 8
33
+ - 1
23
34
  version: 0.8.1
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: configuration
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
45
+ hash: 21
46
+ segments:
47
+ - 0
48
+ - 0
49
+ - 5
33
50
  version: 0.0.5
34
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
35
53
  description: |-
36
54
  Launchy is helper class for launching cross-platform applications in a
37
55
  fire and forget manner.
@@ -95,21 +113,27 @@ rdoc_options:
95
113
  require_paths:
96
114
  - lib
97
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
98
117
  requirements:
99
118
  - - ">="
100
119
  - !ruby/object:Gem::Version
120
+ hash: 3
121
+ segments:
122
+ - 0
101
123
  version: "0"
102
- version:
103
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
+ none: false
104
126
  requirements:
105
127
  - - ">="
106
128
  - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
107
132
  version: "0"
108
- version:
109
133
  requirements: []
110
134
 
111
135
  rubyforge_project: copiousfreetime
112
- rubygems_version: 1.3.5
136
+ rubygems_version: 1.3.7
113
137
  signing_key:
114
138
  specification_version: 3
115
139
  summary: Launchy is helper class for launching cross-platform applications in a fire and forget manner