ruby-station 0.1.1 → 0.1.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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/ruby-station.gemspec +5 -2
  3. data/util/servant.rb +8 -0
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/ruby-station.gemspec CHANGED
@@ -1,12 +1,15 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{ruby-station}
5
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
6
9
 
7
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["Yutaka HARA"]
9
- s.date = %q{2009-10-02}
12
+ s.date = %q{2009-10-03}
10
13
  s.default_executable = %q{ruby-station}
11
14
  s.description = %q{Create, Distribute, and Install Ruby applications easily}
12
15
  s.email = %q{yutaka.hara/at/gmail.com}
data/util/servant.rb CHANGED
@@ -19,6 +19,14 @@ class Servant
19
19
  def self.watch(cmd, args=[], &block)
20
20
  begin
21
21
  pid = Process.spawn(cmd, *args)
22
+ rescue NoMethodError
23
+ begin
24
+ pid = Process.fork{
25
+ Process.exec(cmd, *args)
26
+ }
27
+ rescue NotImplementedError
28
+ raise "Ruby 1.9 is needed on windows!"
29
+ end
22
30
  rescue SystemCallError
23
31
  return nil
24
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-station
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yutaka HARA
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-02 00:00:00 +09:00
12
+ date: 2009-10-03 00:00:00 +09:00
13
13
  default_executable: ruby-station
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency