rerun 0.7.0.pre1 → 0.7.0.pre2
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/lib/rerun/runner.rb +2 -5
- data/lib/rerun/system.rb +0 -15
- data/lib/rerun/watcher.rb +0 -4
- data/rerun.gemspec +1 -1
- metadata +3 -3
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 =
|
|
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
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.
|
|
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.
|
|
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:
|
|
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.
|
|
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.
|