knapsack_pro 6.0.1 → 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 +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/knapsack_pro/formatters/time_tracker.rb +5 -0
- data/lib/knapsack_pro/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01f99e32731d4f72887d579cffe6f72dc955f8b18fa3527edd4c20a33290fb22
|
4
|
+
data.tar.gz: bafeb90b8e27a7a8ad6d5cac4820947810887227646502f96a4a110eec205eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/knapsack_pro/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|