rspec-daemon 1.1.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34268638889a4b7657ec87ecf13fe579c32c79753c5299fdd8f62dab0a31703f
4
- data.tar.gz: 19cccfc47d8a9e0f03f04d80fa6f355d62ebf39dcaadc2d15113cfa68ffc8e38
3
+ metadata.gz: b794e2ebe6daea0da87095807caba45548cb4edb10fff720edec6dc2fad7b785
4
+ data.tar.gz: 7305ea8cc68079c84193e1ef7426a4e906536dbdad7d5682a2cf457b1899e4b6
5
5
  SHA512:
6
- metadata.gz: 4b770f2cfb61e332e9e2e672dd97fac2a33bf1386d28d5300a02daffb8e332d65adadacfa25016cf1b743a6ab6eeed46f66a6d752e524eb763abedf49348d635
7
- data.tar.gz: '01877ce39e845297adc62697f00894b2b7de0dfd8e685cae1b17bbd31b4783549e45694e4e52bb944310c48cf5deb23eca9e22b6534bfcef26dfa7af94164a99'
6
+ metadata.gz: '099cba4faec97b361236d9ba8ac9c46b160b0e9c676ef631f51fac6d541e3c9a08678385c440daf5832fce54470dd3ec47226ba56e1ddcf923a7e14fe42cd98f'
7
+ data.tar.gz: 9ab4e6d62df9c149791ccf898634e4cbdec3d06e066d8624e33a320f36d7f2d19fdbc41169d1507e50a36a1ca9f72435d0a1390bf464adb6ee511b7a4345376b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.1.1] - 2023-12-18
2
+
3
+ - Compatibility update for rspec-daemon with Rails < 7.0 #12 @asonas w/ @osyoyu
4
+
1
5
  ## [1.1.0] - 2023-12-16
2
6
 
3
7
  - Rails: Invoke autoreloading on every run #11 @osyoyu
data/README.md CHANGED
@@ -55,6 +55,14 @@ if Rails.env.test? && ENV['RSPEC_DAEMON']
55
55
  end
56
56
  ```
57
57
 
58
+ For Rails earlier than 7.0
59
+
60
+ ```
61
+ if Rails.env.test? && ENV['RSPEC_DAEMON']
62
+ Rails.configuration.cache_classes = true
63
+ end
64
+ ```
65
+
58
66
  If autoreloading is not configured, you'd need to restart `rspec-daemon` every time you change code under `app/`.
59
67
  Spec code (under `spec/`) will be always reloaded regardless of this setting.
60
68
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  class Daemon
5
- VERSION = "1.1.0"
5
+ VERSION = "1.1.1"
6
6
  end
7
7
  end
data/lib/rspec/daemon.rb CHANGED
@@ -66,8 +66,8 @@ module RSpec
66
66
  if cached_config.has_recorded_config?
67
67
  # Reload configuration from the first time
68
68
  cached_config.replay_configuration
69
- # Invoke auto reload
70
- if defined?(::Rails) && ::Rails.configuration.reloading_enabled?
69
+ # Invoke auto reload (if Rails is in Zeitwerk mode and autoloading is enabled)
70
+ if defined?(::Rails) && Rails.respond_to?(:autoloaders) && !::Rails.configuration.cache_classes?
71
71
  puts "Reloading..."
72
72
  ::Rails.autoloaders.main.reload
73
73
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Fujiwara
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-15 00:00:00.000000000 Z
11
+ date: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -74,7 +74,7 @@ metadata:
74
74
  homepage_uri: https://github.com/asonas/rspec-daemon
75
75
  source_code_uri: https://github.com/asonas/rspec-daemon
76
76
  changelog_uri: https://github.com/asonas/rspec-daemon/blob/master/CHANGELOG.md
77
- post_install_message:
77
+ post_install_message:
78
78
  rdoc_options: []
79
79
  require_paths:
80
80
  - lib
@@ -89,8 +89,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubygems_version: 3.4.10
93
- signing_key:
92
+ rubygems_version: 3.4.6
93
+ signing_key:
94
94
  specification_version: 4
95
95
  summary: rspec-daemon is a mechanism to run tests at super faster speed
96
96
  test_files: []