rerun 0.7.0.pre1 → 0.7.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rerun/runner.rb CHANGED
@@ -105,10 +105,9 @@ module Rerun
105
105
 
106
106
  @pid = Kernel.fork do
107
107
  begin
108
- # Signal.trap("INT") { exit }
109
108
  exec(@run_command)
110
109
  rescue => e
111
- puts e
110
+ puts "#{e.class}: #{e.message}"
112
111
  exit
113
112
  end
114
113
  end
@@ -144,10 +143,8 @@ module Rerun
144
143
  end
145
144
 
146
145
  unless @watcher
147
- #watcher_class = osx_foundation? ? OSXWatcher : FSWatcher
148
- watcher_class = Watcher
149
146
 
150
- watcher = watcher_class.new do
147
+ watcher = Watcher.new do
151
148
  restart unless @restarting
152
149
  end
153
150
  say "Watching #{dir}/#{pattern}"
data/lib/rerun/system.rb CHANGED
@@ -2,24 +2,9 @@ module Rerun
2
2
  module System
3
3
 
4
4
  def mac?
5
- # puts "RUBY_PLATFORM=#{RUBY_PLATFORM}"
6
5
  RUBY_PLATFORM =~ /darwin/i
7
6
  end
8
7
 
9
- def osx_foundation?
10
- mac? and begin
11
- if $osx_foundation.nil?
12
- require 'osx/foundation'
13
- OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework'
14
- $osx_foundation = true
15
- puts "Using OSX Watcher"
16
- end
17
- $osx_foundation
18
- rescue LoadError
19
- $osx_foundation = false
20
- end
21
- end
22
-
23
8
  def windows?
24
9
  RUBY_PLATFORM =~ /mswin/i
25
10
  end
data/lib/rerun/watcher.rb CHANGED
@@ -1,9 +1,5 @@
1
1
  require 'listen'
2
2
 
3
- require "wrong"
4
- include Wrong::D
5
-
6
-
7
3
  Thread.abort_on_exception = true
8
4
 
9
5
  # This class will watch a directory or a set of directories and alert you of
data/rerun.gemspec CHANGED
@@ -3,7 +3,7 @@ $spec = Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'rerun'
6
- s.version = '0.7.0.pre1'
6
+ s.version = '0.7.0.pre2'
7
7
 
8
8
  s.description = "Restarts your app when a file changes"
9
9
  s.summary = "Launches an app, and restarts it whenever the filesystem changes."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rerun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.pre1
4
+ version: 0.7.0.pre2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -61,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  segments:
63
63
  - 0
64
- hash: 2427048464234025513
64
+ hash: 1600005325287533273
65
65
  required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: 1.3.1
71
71
  requirements: []
72
72
  rubyforge_project: pivotalrb
73
- rubygems_version: 1.8.21
73
+ rubygems_version: 1.8.24
74
74
  signing_key:
75
75
  specification_version: 2
76
76
  summary: Launches an app, and restarts it whenever the filesystem changes.