spring 4.1.0 → 4.1.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 +5 -2
- data/lib/spring/application.rb +2 -2
- data/lib/spring/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557c3aebe1211983306061278ab800f1232e42d67a40bc4042c24560ff44409d
|
4
|
+
data.tar.gz: 6c1cdb2f00e1f7893d0fbf60b49d76d8841dd9c931dfa79c45387ddbec1bea5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1da8511a30a3802f6b96ce29b342e70bf136de411278624758a55b73140130902ad7e1afa488df1f48a06685b1980b0f5dd9b9185f27e36ec3d3ba43b9c27841
|
7
|
+
data.tar.gz: c05785038b3a2a048c2b6e9f95f0979561c292714029ec58da934f1cd5e139b3e66b3da9d917082717e83891ac922292f636b53183de580672325b52c58665a9
|
data/README.md
CHANGED
@@ -71,11 +71,14 @@ Rails directory.
|
|
71
71
|
Spring reloads application code, and therefore needs the application to have
|
72
72
|
reloading enabled.
|
73
73
|
|
74
|
-
|
74
|
+
Ensure that `config.enable_reloading` is `true` in the environments that
|
75
75
|
Spring manages. That setting is typically configured in
|
76
|
-
`config/environments/*.rb`. In particular, make sure it is `
|
76
|
+
`config/environments/*.rb`. In particular, make sure it is `true` for the
|
77
77
|
`test` environment.
|
78
78
|
|
79
|
+
Note: in versions of Rails before 7, the setting is called `cache_classes`,
|
80
|
+
and it needs to be `false` for Spring to work.
|
81
|
+
|
79
82
|
### Usage
|
80
83
|
|
81
84
|
For this walkthrough I've generated a new Rails application, and run
|
data/lib/spring/application.rb
CHANGED
@@ -302,9 +302,9 @@ module Spring
|
|
302
302
|
Kernel.module_eval do
|
303
303
|
old_raise = Kernel.method(:raise)
|
304
304
|
remove_method :raise
|
305
|
-
define_method :raise do |*args|
|
305
|
+
define_method :raise do |*args, **kwargs|
|
306
306
|
begin
|
307
|
-
old_raise.call(*args)
|
307
|
+
old_raise.call(*args, **kwargs)
|
308
308
|
ensure
|
309
309
|
if $!
|
310
310
|
lib = File.expand_path("..", __FILE__)
|
data/lib/spring/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Leighton
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -99,7 +99,7 @@ licenses:
|
|
99
99
|
- MIT
|
100
100
|
metadata:
|
101
101
|
rubygems_mfa_required: 'true'
|
102
|
-
post_install_message:
|
102
|
+
post_install_message:
|
103
103
|
rdoc_options: []
|
104
104
|
require_paths:
|
105
105
|
- lib
|
@@ -114,8 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
118
|
-
signing_key:
|
117
|
+
rubygems_version: 3.1.2
|
118
|
+
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Rails application preloader
|
121
121
|
test_files: []
|