spring 4.3.0 → 4.4.0
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 +2 -2
- data/lib/spring/application.rb +8 -1
- data/lib/spring/application_manager.rb +1 -1
- data/lib/spring/json.rb +1 -0
- data/lib/spring/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98db88859d325bff2e76e6569e05eb10bf89baf2a07ab47f43eb6548e8ca8f1c
|
4
|
+
data.tar.gz: 01e6ec88fa814c0bfe8f737a71164301b59681ea909de9bcf9fe5516eca1a2ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebb7f95463b29f0e8c2995e19b101f0730cd0aa98ea51496fb6f8bd624253a3e4536dd5664ad2ea8ec5348cf074eb9b79f798b4b3b38adb6c717cc3ad73ca6b1
|
7
|
+
data.tar.gz: e01d2b58bbace569bfdcacec81b852427a5bdf5efdf724be560598f13dbabbf32502aec90aa899d0fdf3b16e0255a1ada40d9b0ac7a4cb74a3d3f6f1352342c4
|
data/README.md
CHANGED
@@ -16,8 +16,8 @@ boot it every time you run a test, rake task or migration.
|
|
16
16
|
|
17
17
|
## Compatibility
|
18
18
|
|
19
|
-
* Ruby versions: MRI
|
20
|
-
* Rails versions: 6.0
|
19
|
+
* Ruby versions: MRI 3.1+
|
20
|
+
* Rails versions: 6.0+
|
21
21
|
* Bundler v2.1+
|
22
22
|
|
23
23
|
Spring makes extensive use of `Process.fork`, so won't be able to
|
data/lib/spring/application.rb
CHANGED
@@ -102,9 +102,14 @@ module Spring
|
|
102
102
|
|
103
103
|
Rails::Application.initializer :ensure_reloading_is_enabled, group: :all do
|
104
104
|
if Rails.application.config.cache_classes
|
105
|
+
config_name, set_to = if Rails.application.config.respond_to?(:enable_reloading=)
|
106
|
+
["enable_reloading", "true"]
|
107
|
+
else
|
108
|
+
["cache_classes", "false"]
|
109
|
+
end
|
105
110
|
raise <<-MSG.strip_heredoc
|
106
111
|
Spring reloads, and therefore needs the application to have reloading enabled.
|
107
|
-
Please, set config
|
112
|
+
Please, set config.#{config_name} to #{set_to} in config/environments/#{Rails.env}.rb.
|
108
113
|
MSG
|
109
114
|
end
|
110
115
|
end
|
@@ -320,6 +325,7 @@ module Spring
|
|
320
325
|
if $!
|
321
326
|
lib = File.expand_path("..", __FILE__)
|
322
327
|
$!.backtrace.reject! { |line| line.start_with?(lib) } unless $!.backtrace.frozen?
|
328
|
+
$!.backtrace_locations.reject! { |line| line.path&.start_with?(lib) } unless $!.backtrace_locations.frozen?
|
323
329
|
end
|
324
330
|
end
|
325
331
|
end
|
@@ -331,6 +337,7 @@ module Spring
|
|
331
337
|
if $!
|
332
338
|
lib = File.expand_path("..", __FILE__)
|
333
339
|
$!.backtrace.reject! { |line| line.start_with?(lib) } unless $!.backtrace.frozen?
|
340
|
+
$!.backtrace_locations.reject! { |line| line.path&.start_with?(lib) } unless $!.backtrace_locations.frozen?
|
334
341
|
end
|
335
342
|
end
|
336
343
|
end
|
@@ -42,7 +42,7 @@ module Spring
|
|
42
42
|
if alive?
|
43
43
|
begin
|
44
44
|
yield
|
45
|
-
rescue Errno::ECONNRESET, Errno::EPIPE
|
45
|
+
rescue Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL
|
46
46
|
# The child has died but has not been collected by the wait thread yet,
|
47
47
|
# so start a new child and try again.
|
48
48
|
log "child dead; starting"
|
data/lib/spring/json.rb
CHANGED
data/lib/spring/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Leighton
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: Preloads your application so things like console, rake and tests run
|
13
13
|
faster
|
@@ -56,6 +56,7 @@ licenses:
|
|
56
56
|
- MIT
|
57
57
|
metadata:
|
58
58
|
rubygems_mfa_required: 'true'
|
59
|
+
changelog_uri: https://github.com/rails/spring/blob/main/CHANGELOG.md
|
59
60
|
rdoc_options: []
|
60
61
|
require_paths:
|
61
62
|
- lib
|
@@ -63,14 +64,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
64
|
requirements:
|
64
65
|
- - ">="
|
65
66
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
67
|
+
version: 3.1.0
|
67
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
69
|
requirements:
|
69
70
|
- - ">="
|
70
71
|
- !ruby/object:Gem::Version
|
71
72
|
version: '0'
|
72
73
|
requirements: []
|
73
|
-
rubygems_version: 3.6.
|
74
|
+
rubygems_version: 3.6.7
|
74
75
|
specification_version: 4
|
75
76
|
summary: Rails application preloader
|
76
77
|
test_files: []
|