rspec-conductor 1.0.7 → 1.0.8

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: 6cb890370ce6bc38b652f6c998ca34fa8974c73677bb53794d5adddeda060db2
4
- data.tar.gz: 3b2124f2014a5ae4c7f5e7c3b5aebeb8b6c1b624cab65d29b31d0219d23ac358
3
+ metadata.gz: 91793bc12c3384342322b331ddbc5738dd448b92b18517f3de1a5f27b45b464d
4
+ data.tar.gz: 5daf14136401f25142f9d0393f8f427fd785245baff4eb6a026823549afa0e34
5
5
  SHA512:
6
- metadata.gz: a68df5d5e08d98b6c1b24a9e843432fa78e54c594dc0ff360bb49294de55d6f6eb730788c8d4386e2aa57e0856fdd18536560289f4dd2a22a228a67c1e9f5a8f
7
- data.tar.gz: a88156e67f821bbeb2ef00bce93e2b6b327d5000fe2876a34c422a324294879417d63a30d260990775f6cd405c74811f03f62747ea782fc4757bcbcb75241062
6
+ metadata.gz: 48cc6ad36c65d3686da3a03bd87261c66a00d3d77c1e7156a4504eb6c2e2e1b16b2c6df999163e02aa8f603674fdbe8c081765a0ad3983e426e9f9e40f03be9a
7
+ data.tar.gz: f93a55a25e1a890d13b29216f2c454ccd8c8d2cb01dda643ff24ba514dbdcfc85331cfed134f3bd9ba9fc87491b79dbf70fab43e5037383425a522dc00af3d7e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [1.0.8] - 2026-02-18
2
+
3
+ - When --postfork-require is provided, use current dir instead of spec/
4
+ - Make sure before(:suite) hooks are actually called
5
+
1
6
  ## [1.0.7] - 2026-02-16
2
7
 
3
8
  - Move all output code into the formatter base class (lay some groundwork to address some minor issues with the fancy formatter)
@@ -3,11 +3,11 @@
3
3
  class RSpec::Core::Configuration
4
4
  def __run_before_suite_hooks
5
5
  RSpec.current_scope = :before_suite_hook if RSpec.respond_to?(:current_scope=)
6
- run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks) if respond_to?(:run_suite_hooks)
6
+ run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks) if respond_to?(:run_suite_hooks, true)
7
7
  end
8
8
 
9
9
  def __run_after_suite_hooks
10
10
  RSpec.current_scope = :after_suite_hook if RSpec.respond_to?(:current_scope=)
11
- run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks) if respond_to?(:run_suite_hooks)
11
+ run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks) if respond_to?(:run_suite_hooks, true)
12
12
  end
13
13
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Conductor
5
- VERSION = "1.0.7"
5
+ VERSION = "1.0.8"
6
6
  end
7
7
  end
@@ -95,7 +95,7 @@ module RSpec
95
95
  debug "Neither rails_helper, nor spec_helper found, skipping..."
96
96
  end
97
97
  elsif @postfork_require
98
- required_file = File.expand_path(@postfork_require, @default_full_path)
98
+ required_file = File.expand_path(@postfork_require)
99
99
  if File.exist?(required_file)
100
100
  debug "Requiring #{required_file}..."
101
101
  require required_file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-conductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Abramov