spring 4.4.0 → 4.4.1
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/spring/application.rb +5 -4
- data/lib/spring/client/run.rb +8 -3
- data/lib/spring/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c0e16193bfb18c7246f5d4fd0789f03134c2b013ae204578f2771b460fb2e86
|
|
4
|
+
data.tar.gz: 84221a6cc9097b6c7762bbbab9ab1ed89e57c2783346807dc6c8fcc22d405bf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fbb8005a56cc2d9a24f33a0f2e5d7a3f318a5d99819402aa239f8dd13ef08f85d4409d5c2969a216bf91a46f8585b884122454c05f0dcc22068174fc72ff674
|
|
7
|
+
data.tar.gz: 10eda5daa0ba53c15f30894df2c48942f06287e94e663a0d10972ba1f49e8aa29c6fcb52747c70ce5db98c6736d62c7f11d9d8731842fd089aeb60118ded4a31
|
data/README.md
CHANGED
data/lib/spring/application.rb
CHANGED
|
@@ -129,8 +129,9 @@ module Spring
|
|
|
129
129
|
|
|
130
130
|
if defined?(Rails) && Rails.application
|
|
131
131
|
watcher.add Rails.application.paths["config/initializers"]
|
|
132
|
-
Rails
|
|
133
|
-
|
|
132
|
+
rails_root = Rails.root.to_s
|
|
133
|
+
Rails::Engine.subclasses.each do |engine|
|
|
134
|
+
if engine.root.to_s.start_with?(rails_root)
|
|
134
135
|
watcher.add engine.paths["config/initializers"].expanded
|
|
135
136
|
end
|
|
136
137
|
end
|
|
@@ -377,10 +378,10 @@ module Spring
|
|
|
377
378
|
Spring.failsafe_thread {
|
|
378
379
|
begin
|
|
379
380
|
_, status = Process.wait2 pid
|
|
380
|
-
log "#{pid} exited with #{status.exitstatus}"
|
|
381
|
+
log "#{pid} exited with #{status.exitstatus || status.inspect}"
|
|
381
382
|
|
|
382
383
|
streams.each(&:close)
|
|
383
|
-
client.puts(status.exitstatus)
|
|
384
|
+
client.puts(status.exitstatus || status.to_i)
|
|
384
385
|
client.close
|
|
385
386
|
ensure
|
|
386
387
|
@mutex.synchronize { @waiting.delete pid }
|
data/lib/spring/client/run.rb
CHANGED
|
@@ -184,11 +184,16 @@ module Spring
|
|
|
184
184
|
suspend_resume_on_tstp_cont(pid)
|
|
185
185
|
|
|
186
186
|
forward_signals(application)
|
|
187
|
-
status = application.read
|
|
187
|
+
status = application.read
|
|
188
|
+
log "got exit status #{status.inspect}"
|
|
188
189
|
|
|
189
|
-
|
|
190
|
+
# Status should always be an integer. If it is empty, something unexpected must have happened to the server.
|
|
191
|
+
if status.to_s.strip.empty?
|
|
192
|
+
log "unexpected empty exit status, app crashed?"
|
|
193
|
+
exit 1
|
|
194
|
+
end
|
|
190
195
|
|
|
191
|
-
exit status
|
|
196
|
+
exit status.to_i
|
|
192
197
|
else
|
|
193
198
|
log "got no pid"
|
|
194
199
|
exit 1
|
data/lib/spring/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spring
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.4.
|
|
4
|
+
version: 4.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jon Leighton
|
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
72
|
version: '0'
|
|
73
73
|
requirements: []
|
|
74
|
-
rubygems_version:
|
|
74
|
+
rubygems_version: 4.0.3
|
|
75
75
|
specification_version: 4
|
|
76
76
|
summary: Rails application preloader
|
|
77
77
|
test_files: []
|