launchy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,4 +1,9 @@
1
- = launchy Changelog
1
+ == Changelog
2
+
3
+ === Version 0.1.2 - 2007-08-11
4
+
5
+ * forked child exits without calling at_exit handlers
6
+
2
7
  === Version 0.1.1
3
8
 
4
9
  * fixed rubyforge task to release mswin32 gem also
@@ -25,7 +25,7 @@ module Launchy
25
25
  appropriate platform from within your ruby projects.
26
26
  DESC
27
27
 
28
- spec.extra_rdoc_files = FileList["[A-Z]*"]
28
+ spec.extra_rdoc_files = FileList["CHANGES", "LICENSE", "README"]
29
29
  spec.has_rdoc = true
30
30
  spec.rdoc_main = "README"
31
31
  spec.rdoc_options = [ "--line-numbers" , "--inline-source" ]
@@ -44,6 +44,7 @@ module Launchy
44
44
  spec.local_coverage_dir = "doc/coverage"
45
45
  spec.remote_coverage_dir= "coverage"
46
46
 
47
+ spec.remote_user = "jjh"
47
48
  spec.remote_site_dir = "#{spec.name}/"
48
49
 
49
50
  end
@@ -67,7 +67,11 @@ module Launchy
67
67
  if my_os_family == :windows then
68
68
  require 'win32/process'
69
69
  end
70
- child_pid = fork { system args.join(' ') }
70
+ # fork and the child process should NOT run any exit handlers
71
+ child_pid = fork do
72
+ system args.join(' ')
73
+ exit!
74
+ end
71
75
  Process.detach(child_pid)
72
76
  end
73
77
  end
@@ -2,7 +2,7 @@ module Launchy
2
2
  class Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- BUILD = 1
5
+ BUILD = 2
6
6
 
7
7
  class << self
8
8
  def to_a
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: launchy
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2007-08-09 00:00:00 -06:00
6
+ version: 0.1.2
7
+ date: 2007-08-12 00:00:00 -06:00
8
8
  summary: A helper to launch apps from within ruby programs.
9
9
  require_paths:
10
10
  - lib
@@ -29,27 +29,26 @@ post_install_message:
29
29
  authors:
30
30
  - Jeremy Hinegardner
31
31
  files:
32
- - spec/spawnable_application_spec.rb
33
32
  - spec/browser_spec.rb
34
- - spec/version_spec.rb
33
+ - spec/spawnable_application_spec.rb
35
34
  - spec/spec_helper.rb
36
- - Rakefile
37
- - README
38
- - LICENSE
35
+ - spec/version_spec.rb
39
36
  - CHANGES
40
- - lib/launchy/specification.rb
37
+ - LICENSE
38
+ - README
41
39
  - lib/launchy/gemspec.rb
42
- - lib/launchy/version.rb
43
- - lib/launchy/spawnable.rb
44
- - lib/launchy/spawnable/browser.rb
45
40
  - lib/launchy/spawnable/application.rb
41
+ - lib/launchy/spawnable/browser.rb
42
+ - lib/launchy/spawnable.rb
43
+ - lib/launchy/specification.rb
44
+ - lib/launchy/version.rb
46
45
  - lib/launchy.rb
47
46
  - bin/launchy
48
47
  test_files:
49
- - spec/spawnable_application_spec.rb
50
48
  - spec/browser_spec.rb
51
- - spec/version_spec.rb
49
+ - spec/spawnable_application_spec.rb
52
50
  - spec/spec_helper.rb
51
+ - spec/version_spec.rb
53
52
  rdoc_options:
54
53
  - --line-numbers
55
54
  - --inline-source
@@ -58,10 +57,9 @@ rdoc_options:
58
57
  - --title
59
58
  - "'launchy -- A helper to launch apps from within ruby programs.'"
60
59
  extra_rdoc_files:
61
- - Rakefile
62
- - README
63
- - LICENSE
64
60
  - CHANGES
61
+ - LICENSE
62
+ - README
65
63
  executables:
66
64
  - launchy
67
65
  extensions: []
data/Rakefile DELETED
@@ -1,93 +0,0 @@
1
- require 'rubygems'
2
- require 'rake/gempackagetask'
3
- require 'rake/clean'
4
- require 'rake/rdoctask'
5
-
6
- $: << File.join(File.dirname(__FILE__),"lib")
7
- require 'launchy'
8
-
9
- # load all the extra tasks for the project
10
- TASK_DIR = File.join(File.dirname(__FILE__),"tasks")
11
- FileList[File.join(TASK_DIR,"*.rb")].each do |tasklib|
12
- require "tasks/#{File.basename(tasklib)}"
13
- end
14
-
15
- task :default => "test:default"
16
-
17
- #-----------------------------------------------------------------------
18
- # Documentation
19
- #-----------------------------------------------------------------------
20
- namespace :doc do
21
-
22
- # generating documentation locally
23
- Rake::RDocTask.new do |rdoc|
24
- rdoc.rdoc_dir = Launchy::SPEC.local_rdoc_dir
25
- rdoc.options = Launchy::SPEC.rdoc_options
26
- rdoc.rdoc_files = Launchy::SPEC.rdoc_files
27
- end
28
-
29
- desc "View the RDoc documentation locally"
30
- task :view => :rdoc do
31
- show_files Launchy::SPEC.local_rdoc_dir
32
- end
33
-
34
- end
35
-
36
- #-----------------------------------------------------------------------
37
- # Packaging and Distribution
38
- #-----------------------------------------------------------------------
39
- namespace :dist do
40
-
41
- GEM_SPEC = eval(Launchy::SPEC.to_ruby)
42
-
43
- gem_task = Rake::GemPackageTask.new(GEM_SPEC) do |pkg|
44
- pkg.need_tar = Launchy::SPEC.need_tar
45
- pkg.need_zip = Launchy::SPEC.need_zip
46
- end
47
-
48
- GEM_SPEC_WIN32 = eval(Launchy::SPEC_WIN32.to_ruby)
49
-
50
- desc "Build the Win32 gem"
51
- task :gem_win32 => [ "#{gem_task.package_dir}/#{GEM_SPEC_WIN32.file_name}" ]
52
- file "#{gem_task.package_dir}/#{GEM_SPEC_WIN32.file_name}" => [gem_task.package_dir] + GEM_SPEC_WIN32.files do
53
- gem_file = Gem::Builder.new(GEM_SPEC_WIN32).build
54
- mv gem_file, "#{gem_task.package_dir}/#{gem_file}"
55
- end
56
- task :package => [:gem_win32]
57
-
58
- desc "Install as a gem"
59
- task :install => [:clobber, :package] do
60
- sh "sudo gem install pkg/#{Launchy::SPEC.full_name}.gem"
61
- end
62
-
63
- # uninstall the gem and all executables
64
- desc "Uninstall gem"
65
- task :uninstall do
66
- sh "sudo gem uninstall #{Launchy::SPEC.name} -x"
67
- end
68
-
69
- desc "dump gemspec"
70
- task :gemspec do
71
- puts Launchy::SPEC.to_ruby
72
- end
73
-
74
- desc "dump win32 gemspec"
75
- task :gemspec_win32 do
76
- puts Launchy::SPEC_WIN32.to_ruby
77
- end
78
-
79
- desc "reinstall gem"
80
- task :reinstall => [:install, :uninstall]
81
-
82
- end
83
-
84
- #-----------------------------------------------------------------------
85
- # update the top level clobber task to depend on all possible sub-level
86
- # tasks that have a name like ':clobber' in other namespaces
87
- #-----------------------------------------------------------------------
88
- Rake.application.tasks.each do |t|
89
- if t.name =~ /:clobber/ then
90
- task :clobber => [t.name]
91
- end
92
- end
93
-