knapsack_pro 7.13.0 → 7.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddf5678a555f4e33ac61a02ba0f05b916a5e65dd8dca2b5a06e7d2bea74da028
4
- data.tar.gz: aaa74b69c3753b8f70aa8deff5528413db49c53b731ce65db571d5d768c0d4f0
3
+ metadata.gz: 199f5a710b27c9e76985316a9ac5dfeb95b6f7970a9246f26cdfaee8fb06adcd
4
+ data.tar.gz: 2b3421149a4284e32abf8f3351e6efafac9fc2bcd26a0225228b6f1a1ba5753d
5
5
  SHA512:
6
- metadata.gz: dbc287b2088b1fb96a76e9ca59d3e37c40e426644b21c0b85fd373737847b0966f56b70309b5ba2afa32c26279807ea858d99e09ab9e9feb38ed0f1819320dcd
7
- data.tar.gz: fc31eb5aa8f02cb4a77221d04d5260e607a8af70e3174b89c0d578c67f2616c4bee76a098d7f405942a0bcf678399b9d270b42e50d1e89902233f1e7203ea8f1
6
+ metadata.gz: 983ffb0e290dba0d7a3e93bcf025fa0fd380e9457bc9c93c477783386c79dfeb1195a726f1513aea2970c882c46621d929e5ad204e343afa81eaa9ca73906790
7
+ data.tar.gz: 3f5031d341b563fbf231e38506c70521fc3cbd3b7ff55a529c725491b330cbd7bed105fbd6540c97fe76842d6c84b63dbaf8369937a4cbddb10ebde754ec6a1a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ### 7.13.1
4
+
5
+ * Fix handling signals for non-RSpec test runners
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/286
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.13.0...v7.13.1
10
+
3
11
  ### 7.13.0
4
12
 
5
13
  * Add `KNAPSACK_PRO_FALLBACK_MODE_ERROR_EXIT_CODE` to specify a custom exit code whenever Knapsack Pro fails because Fallback Mode cannot be used
@@ -59,12 +59,15 @@ module KnapsackPro
59
59
  Signal.trap(signal) {
60
60
  puts "#{signal} signal has been received. Terminating Knapsack Pro..."
61
61
  @@terminate_process = true
62
- RSpec.world.wants_to_quit = true
62
+ post_trap_signals
63
63
  log_threads
64
64
  }
65
65
  end
66
66
  end
67
67
 
68
+ def post_trap_signals
69
+ end
70
+
68
71
  def log_threads
69
72
  threads = Thread.list
70
73
 
@@ -117,6 +117,10 @@ module KnapsackPro
117
117
 
118
118
  private
119
119
 
120
+ def post_trap_signals
121
+ RSpec.world.wants_to_quit = true
122
+ end
123
+
120
124
  def pre_run_setup
121
125
  ENV['KNAPSACK_PRO_QUEUE_RECORDING_ENABLED'] = 'true'
122
126
  ENV['KNAPSACK_PRO_QUEUE_ID'] = KnapsackPro::Config::EnvGenerator.set_queue_id
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '7.13.0'
4
+ VERSION = '7.13.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.13.0
4
+ version: 7.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -433,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
433
433
  - !ruby/object:Gem::Version
434
434
  version: '0'
435
435
  requirements: []
436
- rubygems_version: 3.5.16
436
+ rubygems_version: 3.5.11
437
437
  signing_key:
438
438
  specification_version: 4
439
439
  summary: Knapsack Pro splits tests across parallel CI nodes and ensures each parallel