knapsack_pro 6.0.1 → 6.0.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: 300a23bb327345712cf1a4c256073461ac22ac19d6aad51ab2a5c0676a6b5e3d
4
- data.tar.gz: 7a2f868e5ff853f1329f676266efd23f5b2c9a6b3a8348b3ed55558394b91d0e
3
+ metadata.gz: 01f99e32731d4f72887d579cffe6f72dc955f8b18fa3527edd4c20a33290fb22
4
+ data.tar.gz: bafeb90b8e27a7a8ad6d5cac4820947810887227646502f96a4a110eec205eb6
5
5
  SHA512:
6
- metadata.gz: f7a22a7ba6c8e36cf6a77149e081d07cf22053b8991252d62782332063ee92d8e42c943cdedeb8fac003fa56adcd328fa43d9c7e5e5a6c9f094a00b9a92a4905
7
- data.tar.gz: 197a2568354954113ac93a74b057b36a01ba7d6aa83ac255a6e1a0092f509abe64dc47ff95bffa2d4d1fd631727689eeaf0e8b46429efd708bc6f9268e6b0fd3
6
+ metadata.gz: 66ce104356dab398f399b4a882eb7a296ba02fcfec84b025776cdcfb306c42a7ae3d1d35b9027ca5ff91e45d8f99cf1b1ea9201bfdddcb949397b7bb37f998d3
7
+ data.tar.gz: 3947753ad22f500d9a8102fd5183f07dec1cb9fef884894da3da28bf03a8e7259cb88b0d8139893874db4367568f7a2b648d77276bd5f118cbc4afa6671eea63
data/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
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
+
3
11
  ### 6.0.1
4
12
 
5
- * fix(RSpec): allow to use Queue Mode for RSpec <= 3.10 when the `rspec_is_quitting` method is not present for RSpec World object
13
+ * fix(RSpec): allow using Queue Mode in RSpec <= 3.10 when the `rspec_is_quitting` method is not present for RSpec World object
6
14
 
7
15
  https://github.com/KnapsackPro/knapsack_pro-ruby/pull/231
8
16
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '6.0.1'
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.1
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-12-04 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