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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e92617adaa3e6c31e4d466d76894c94ec17a46fd7206864501218795ac8998d
4
- data.tar.gz: aee2d23a222df8747942652dda1d6a725f59bb68b395fbd37a9084c5ed75fe7b
3
+ metadata.gz: 98db88859d325bff2e76e6569e05eb10bf89baf2a07ab47f43eb6548e8ca8f1c
4
+ data.tar.gz: 01e6ec88fa814c0bfe8f737a71164301b59681ea909de9bcf9fe5516eca1a2ee
5
5
  SHA512:
6
- metadata.gz: 16e03232e4453b528812c925c4186360e1157b10aab0d663d1dc3d4a80a7d4bdf1da8f06d31c6ace1456fa4f6f5e20b2c62637ce0a23da6cae705b56baa6882b
7
- data.tar.gz: 1a4c70a381783cc3f96372e28efc6b702b3b75a28c31a1a88eacace55c3a3cbd2aee3d3ff81236526366149a612754c22d9ec0861bc0a3dfb8669108f9bb0aba
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 2.7, MRI 3.0, MRI 3.1, MRI 3.2
20
- * Rails versions: 6.0, 6.1, 7.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
@@ -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.cache_classes to false in config/environments/#{Rails.env}.rb.
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
@@ -13,6 +13,7 @@
13
13
  module Spring
14
14
  module JSON
15
15
  def self.load(string)
16
+ string = string.dup.force_encoding("utf-8") unless string.encoding == Encoding::UTF_8
16
17
  OkJson.decode(string)
17
18
  end
18
19
 
@@ -1,3 +1,3 @@
1
1
  module Spring
2
- VERSION = "4.3.0"
2
+ VERSION = "4.4.0"
3
3
  end
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.3.0
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: 2025-03-12 00:00:00.000000000 Z
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: 2.7.0
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.2
74
+ rubygems_version: 3.6.7
74
75
  specification_version: 4
75
76
  summary: Rails application preloader
76
77
  test_files: []