knapsack_pro 7.8.0 → 7.8.2

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: 305d35a49e09ed66729fda89d59557df29b05f260ad7495cf7c37f5e886f55f8
4
- data.tar.gz: 07efa1a33e29ea7d0ea8b83e7134558dda4e94e14c3753d386cb5d46ad8e1dee
3
+ metadata.gz: b5ab7ad3dc194e05627836c95059415cc305c763b4e14facfd7139ea3888265e
4
+ data.tar.gz: 6e8f3bdf4bff758695e2a11398dddfe0bf03f38a3c3e687b13ca69f96de63cab
5
5
  SHA512:
6
- metadata.gz: 0b3af0a93381d94a03afa13a3bddb9de2c2b91958ffb8b0d83707c168300a51bf863d6907ce3b5f2cbe22fc87954fe01f4b61557b9cafddceabd35ba541a2344
7
- data.tar.gz: f195aebb076beac551dbd4923fdb516d08d2d2f15d6b663499be5ed432dc502048a93bafdd48ff46f1632ac1d9adf5de2e4c261a9c4d80a9eab31e2ddb62a5e6
6
+ metadata.gz: b6655218987352b0916596ed6320e900df07e7fbdeb8390fdd167d3577d9b5a2fd9c6f3917b06dc7c1496435dbc808fed314e23b661eab792efa9e68c5b4946a
7
+ data.tar.gz: 5c171a12bc010155e4401df17a87de1bc7059fc8454b897fa16ab589211fbefb637e8545ab38ec4e73b630d3262e524b2f9f49c0c40a99156cae26a0a63c0084
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ### UNRELEASED
3
+ ### 7.8.2
4
+
5
+ * Set `RSpec.world.wants_to_quit` to true when any signal is received by the knapsack_pro gem to allow graceful exit.
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/273
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.8.1...v7.8.2
10
+
11
+ ### 7.8.1
12
+
13
+ * Handle `nil` in `Thread#backtrace` and `Exception#backtrace`.
14
+
15
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/272
16
+
17
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.8.0...v7.8.1
4
18
 
5
19
  ### 7.8.0
6
20
 
@@ -59,6 +59,7 @@ 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
63
  log_threads
63
64
  }
64
65
  end
@@ -81,7 +82,7 @@ module KnapsackPro
81
82
  puts "Non-main thread inspect: #{thread.inspect}"
82
83
  puts "Non-main thread backtrace:"
83
84
  end
84
- puts thread.backtrace.join("\n")
85
+ puts thread.backtrace&.join("\n")
85
86
  puts
86
87
  end
87
88
 
@@ -58,7 +58,7 @@ module KnapsackPro
58
58
  rescue Exception => exception
59
59
  KnapsackPro.logger.error("An unexpected exception happened. RSpec cannot handle it. The exception: #{exception.inspect}")
60
60
  KnapsackPro.logger.error("Exception message: #{exception.message}")
61
- KnapsackPro.logger.error("Exception backtrace: #{exception.backtrace.join("\n")}")
61
+ KnapsackPro.logger.error("Exception backtrace: #{exception.backtrace&.join("\n")}")
62
62
 
63
63
  message = @rspec_pure.exit_summary(unexecuted_test_files)
64
64
  KnapsackPro.logger.warn(message) if message
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '7.8.0'
4
+ VERSION = '7.8.2'
5
5
  end
@@ -1383,8 +1383,8 @@ describe "#{KnapsackPro::Runners::Queue::RSpecRunner} - Integration tests", :cle
1383
1383
  expect(actual.stdout).to include('B1.1.1 test example (PENDING: Temporarily skipped with xit)')
1384
1384
  expect(actual.stdout).to include('INT signal has been received. Terminating Knapsack Pro...')
1385
1385
  expect(actual.stdout).to include('B1.1.2 test example')
1386
- expect(actual.stdout).to include('B1.1.3 test example (FAILED - 1)')
1387
- expect(actual.stdout).to include('B1.2.1 test example')
1386
+ expect(actual.stdout).to_not include('B1.1.3 test example (FAILED - 1)')
1387
+ expect(actual.stdout).to_not include('B1.2.1 test example')
1388
1388
 
1389
1389
  # next ExampleGroup within the same b_spec.rb is not executed
1390
1390
  expect(actual.stdout).to_not include('B2.1 test example')
@@ -1404,14 +1404,6 @@ describe "#{KnapsackPro::Runners::Queue::RSpecRunner} - Integration tests", :cle
1404
1404
  OUTPUT
1405
1405
  )
1406
1406
 
1407
- expect(actual.stdout).to include(
1408
- <<~OUTPUT
1409
- Failures:
1410
-
1411
- 1) B1_describe B1.1_describe B1.1.3 test example
1412
- OUTPUT
1413
- )
1414
-
1415
1407
 
1416
1408
  expect(actual.stdout).to include('Use the following backtrace(s) to find the line of code that got stuck if the CI node hung and terminated your tests.')
1417
1409
  expect(actual.stdout).to include('Main thread backtrace:')
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.8.0
4
+ version: 7.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-08 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake