knapsack_pro 8.3.2 → 8.3.3

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: 479679af72441adcef212263c4a92e92760fc3bb82779616c47504d0a137a69c
4
- data.tar.gz: 6376bcc3c00f50efa3633a1d015b23bb7a6fd3d8a3188d6912327e5f79c1ae27
3
+ metadata.gz: 7a43269c3d826dc9e9faed08299cffbc2d12afc454de28b58435e2bc05861e55
4
+ data.tar.gz: 41c2129c7f580d3637a2cf7a189d4b4cf4e0ce10fa677162fd82640c2bf1b582
5
5
  SHA512:
6
- metadata.gz: 7dc0407f4c64d578cac17f64f71d93ac123e8ee7a96eeca2637e7e131449c35318bed7b6636d9e722528f36059a4cb5a8748b18e7737aaa8e92ba8212c82f83e
7
- data.tar.gz: b3c505870912614006845bbf65b488ca1fe201f0a22e0dc449d5b2f7651603eceea5693fa7db5eff68bc7cd5bc89dde673eb21097a4cb341473b5b06bbcacaf5
6
+ metadata.gz: e3a172a78479d59fd9a5becff1606df2555e5db961573ab42786ee37942f8a3c56305c996c3c774a5890189ad1ad75be1057066b0043f3260d4ce97668154a84
7
+ data.tar.gz: a8176152345555ddcac3024a903cc6749b7d32ea0f432f5b01b8e10813202288f511b5ba06f5a1dd6b20738d4f4a25d9af7f6604d70544c771c2b30f186cc4e0
@@ -1,23 +1,11 @@
1
- # Story
2
-
3
- TODO: link to the internal story
4
-
5
- ## Related
6
-
7
- TODO: links to related PRs or issues
8
-
9
1
  # Description
10
2
 
11
3
  TODO
12
4
 
13
- # Changes
14
-
15
- TODO: changes introduced by this PR
16
-
17
- # Checklist reminder
5
+ # Checks
18
6
 
19
- - [ ] You added the changes to the `UNRELEASED` section of the `CHANGELOG.md`, including the needed bump (ie, patch, minor, major)
20
- - [ ] You follow the architecture outlined below for RSpec in Queue Mode, which is a work in progress (feel free to propose changes):
7
+ - [ ] I added the changes to the `UNRELEASED` section of the `CHANGELOG.md`, including the needed bump (i.e., patch, minor, major)
8
+ - [ ] I followed the architecture outlined below for RSpec in Queue Mode:
21
9
  - Pure: `lib/knapsack_pro/pure/queue/rspec_pure.rb` contains pure functions that are unit tested.
22
- - Extension: `lib/knapsack_pro/extensions/rspec_extension.rb` encapsulates calls to RSpec internals and is integration and e2e tested.
23
- - Runner: `lib/knapsack_pro/runners/queue/rspec_runner.rb` invokes the pure code and the extension to produce side effects, which are integration and e2e tested.
10
+ - Extension: `lib/knapsack_pro/extensions/rspec_extension.rb` encapsulates calls to RSpec internals and is integration and E2E tested.
11
+ - Runner: `lib/knapsack_pro/runners/queue/rspec_runner.rb` invokes the pure code and the extension to produce side effects, which are integration and E2E tested.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ### UNRELEASED (patch)
4
4
 
5
+ ### 8.3.3
6
+
7
+ * Fix a `Hash#sum` bug in the time tracker for RSpec
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/305
10
+
11
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v8.3.2...v8.3.3
12
+
5
13
  ### 8.3.2
6
14
 
7
15
  * Fix infinite recursion when the logger enters a loop. [The issue](https://github.com/KnapsackPro/knapsack_pro-ruby/issues/269) occurs when `KNAPSACK_PRO_LOG_DIR=log` is set and a conflict arises between the values of environment variables from the CI provider and those configured by the user (e.g., `KNAPSACK_PRO_CI_NODE_INDEX`, `KNAPSACK_PRO_CI_NODE_TOTAL`).
@@ -109,12 +109,12 @@ module KnapsackPro
109
109
  group.each do |_, example|
110
110
  next if example[:time_execution] == 0.0
111
111
 
112
- example[:time_execution] += time_all_by_group_id_path.sum do |group_id_path, time|
112
+ example[:time_execution] += time_all_by_group_id_path.reduce(0.0) do |sum, (group_id_path, time)|
113
113
  # :path is a file path (a_spec.rb), sum any before/after(:all) in the file
114
- next time if group_id_path.start_with?(example[:path])
114
+ next sum + time if group_id_path.start_with?(example[:path])
115
115
  # :path is an id path (a_spec.rb[1:1]), sum any before/after(:all) above it
116
- next time if example[:path].start_with?(group_id_path[0..-2])
117
- 0
116
+ next sum + time if example[:path].start_with?(group_id_path[0..-2])
117
+ sum
118
118
  end
119
119
  end
120
120
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '8.3.2'
4
+ VERSION = '8.3.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.2
4
+ version: 8.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT