knapsack_pro 6.0.0 → 6.0.2

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: 315a4ff2f5885be68529cc0799affd8163fcad51558e4813a254b99bd057992a
4
- data.tar.gz: 5709757ca30a22401be4dc170a926b16f5206d494d5b80c583bf03088d8570a6
3
+ metadata.gz: 01f99e32731d4f72887d579cffe6f72dc955f8b18fa3527edd4c20a33290fb22
4
+ data.tar.gz: bafeb90b8e27a7a8ad6d5cac4820947810887227646502f96a4a110eec205eb6
5
5
  SHA512:
6
- metadata.gz: c43ee2474109d5e509fb57534857164ec0596cb018f61b44942ab261bdcb55345ac3025239fd3dde12c7d31f30841aa39aa480fb07bcab1519272788dad9c4b7
7
- data.tar.gz: 9511b45fb2b0d59a309517ccc70ca10ebbb2b8a3cf0cfb2f2198e38a776838a402b531f64aea2ca94ce37489288dde8171b5fd36c45038014d781cba0fd5462d
6
+ metadata.gz: 66ce104356dab398f399b4a882eb7a296ba02fcfec84b025776cdcfb306c42a7ae3d1d35b9027ca5ff91e45d8f99cf1b1ea9201bfdddcb949397b7bb37f998d3
7
+ data.tar.gz: 3947753ad22f500d9a8102fd5183f07dec1cb9fef884894da3da28bf03a8e7259cb88b0d8139893874db4367568f7a2b648d77276bd5f118cbc4afa6671eea63
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ### 6.0.2
4
+
5
+ * fix(RSpec): allow using `TimeTracker` in RSpec < 3.10.2 when formatters were required to expose `#output`
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/232
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v6.0.1...v6.0.2
10
+
11
+ ### 6.0.1
12
+
13
+ * fix(RSpec): allow using Queue Mode in RSpec <= 3.10 when the `rspec_is_quitting` method is not present for RSpec World object
14
+
15
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/231
16
+
17
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v6.0.0...v6.0.1
18
+
3
19
  ### 6.0.0
4
20
 
5
21
  * __(breaking change)__ Dropped support for Turnip < 2.0.0
@@ -8,7 +24,7 @@
8
24
 
9
25
  https://github.com/KnapsackPro/knapsack_pro-ruby/pull/229
10
26
 
11
- https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.7.0...UNRELEASED
27
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.7.0...v6.0.0
12
28
 
13
29
  ### 5.7.0
14
30
 
data/bin/test CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
3
  bundle exec ruby spec/knapsack_pro/formatters/time_tracker_specs.rb
4
- export FORMATTERS_EXIT_CODE=$?
4
+ FORMATTERS_EXIT_CODE=$?
5
5
 
6
6
  bundle exec rspec spec
7
- export RSPEC_EXIT_CODE=$?
7
+ RSPEC_EXIT_CODE=$?
8
8
 
9
9
  if [ "$FORMATTERS_EXIT_CODE" -ne "0" ]; then
10
10
  exit $FORMATTERS_EXIT_CODE
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'stringio'
4
+
3
5
  module KnapsackPro
4
6
  module Formatters
5
7
  class TimeTracker
@@ -10,10 +12,13 @@ module KnapsackPro
10
12
  :example_group_finished,
11
13
  :stop
12
14
 
15
+ attr_reader :output # RSpec < v3.10.2
16
+
13
17
  # Called at the beginning of each batch,
14
18
  # but only the first instance of this class is used,
15
19
  # so don't rely on the initializer to reset values.
16
20
  def initialize(_output)
21
+ @output = StringIO.new
17
22
  @time_each = nil
18
23
  @time_all = nil
19
24
  @before_all = 0.0
@@ -110,7 +110,7 @@ module KnapsackPro
110
110
  KnapsackPro.logger.warn('RSpec wants to quit.')
111
111
  set_terminate_process
112
112
  end
113
- if rspec_runner.world.rspec_is_quitting
113
+ if rspec_runner.world.respond_to?(:rspec_is_quitting) && rspec_runner.world.rspec_is_quitting
114
114
  KnapsackPro.logger.warn('RSpec is quitting.')
115
115
  set_terminate_process
116
116
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '6.0.0'
4
+ VERSION = '6.0.2'
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: 6.0.0
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-29 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake