knapsack_pro 8.1.0 → 8.1.1
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/.circleci/config.yml +8 -8
- data/CHANGELOG.md +46 -0
- data/lib/knapsack_pro/version.rb +1 -1
- data/lib/tasks/queue/minitest.rake +1 -0
- data/lib/tasks/queue/rspec.rake +1 -0
- 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: 5ad155a65c67bffcb3dad75d114396d2e53cc8896f21a84de7325a56f9a582ba
|
4
|
+
data.tar.gz: 6a6e0958d5596b150cdc6ee46453d5ff9991255e98113990015e34a8fef8aa1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee9feec10df81e17331b3664af0a30f8d75c4d436bb9c897829588518bb3468e5c00a3729d0e5c9f731ce535ab2b02dc5747a52a743e400bd49ffd046bb7ef51
|
7
|
+
data.tar.gz: d982189a7880df48104810628f1ff6e416c420325ace9fc2827c988c0289bfe27d2e78ff4bdffd94fe20891e37333805f2d530ab40aa822632847daed5b9596d
|
data/.circleci/config.yml
CHANGED
@@ -445,27 +445,27 @@ workflows:
|
|
445
445
|
name: integration__ruby-<< matrix.ruby >>__rspec-<< matrix.rspec >>
|
446
446
|
matrix:
|
447
447
|
parameters:
|
448
|
-
ruby: ["3.
|
449
|
-
rspec: ["3.
|
448
|
+
ruby: ["3.2", "3.3", "3.4"]
|
449
|
+
rspec: ["3.12.3", "3.13.3"]
|
450
450
|
- e2e-regular-rspec:
|
451
451
|
name: e2e-regular__ruby-<< matrix.ruby >>__rspec-<< matrix.rspec >>
|
452
452
|
matrix:
|
453
453
|
parameters:
|
454
|
-
ruby: ["3.
|
455
|
-
rspec: ["3.
|
454
|
+
ruby: ["3.2", "3.3", "3.4"]
|
455
|
+
rspec: ["3.12.3", "3.13.3"]
|
456
456
|
- e2e-queue-rspec:
|
457
457
|
name: e2e-queue__ruby-<< matrix.ruby >>__rspec-<< matrix.rspec >>
|
458
458
|
matrix:
|
459
459
|
parameters:
|
460
|
-
ruby: ["3.
|
461
|
-
rspec: ["3.
|
460
|
+
ruby: ["3.2", "3.3", "3.4"]
|
461
|
+
rspec: ["3.12.3", "3.13.3"]
|
462
462
|
- e2e-regular-minitest:
|
463
463
|
name: e2e-regular__ruby-<< matrix.ruby >>__minitest
|
464
464
|
matrix:
|
465
465
|
parameters:
|
466
|
-
ruby: ["3.
|
466
|
+
ruby: ["3.2", "3.3", "3.4"]
|
467
467
|
- e2e-queue-minitest:
|
468
468
|
name: e2e-queue__ruby-<< matrix.ruby >>__minitest
|
469
469
|
matrix:
|
470
470
|
parameters:
|
471
|
-
ruby: ["3.
|
471
|
+
ruby: ["3.2", "3.3", "3.4"]
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,51 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 8.1.1
|
4
|
+
|
5
|
+
* Do not load Rake tasks on behalf of the user for RSpec and Minitest in Queue Mode
|
6
|
+
|
7
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/297
|
8
|
+
|
9
|
+
Workarounds like [this one](https://docs.knapsackpro.com/ruby/troubleshooting/#rake-tasks-under-tests-are-run-more-than-once-in-queue-mode) are no more needed to test Rake tasks, you can now remove them and test Rake tasks like you would normally do:
|
10
|
+
|
11
|
+
RSpec:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
before do
|
15
|
+
MY_APPLICATION_NAME::Application.load_tasks if Rake::Task.tasks.empty?
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
Rake::Task[MY_TASK_NAME].reenable
|
20
|
+
end
|
21
|
+
|
22
|
+
it "tests the rake task" do
|
23
|
+
Rake::Task[MY_TASK_NAME].invoke
|
24
|
+
# ...
|
25
|
+
end
|
26
|
+
```
|
27
|
+
|
28
|
+
Minitest:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
setup do
|
32
|
+
MY_APPLICATION_NAME::Application.load_tasks if Rake::Task.tasks.empty?
|
33
|
+
end
|
34
|
+
|
35
|
+
teardown do
|
36
|
+
Rake::Task[MY_TASK_NAME].reenable
|
37
|
+
end
|
38
|
+
|
39
|
+
test "tests the rake task" do
|
40
|
+
Rake::Task[MY_TASK_NAME].invoke
|
41
|
+
# ...
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
It's also ok to use `Rake.application.rake_require("tasks/MY_TASK")` instead of `MY_APPLICATION_NAME::Application.load_tasks if Rake::Task.tasks.empty?`.
|
46
|
+
|
47
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v8.1.0...v8.1.1
|
48
|
+
|
3
49
|
### 8.1.0
|
4
50
|
|
5
51
|
* Improve the performance of the [RSpec split by test examples](https://docs.knapsackpro.com/ruby/split-by-test-examples/).
|
data/lib/knapsack_pro/version.rb
CHANGED
data/lib/tasks/queue/rspec.rake
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knapsack_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.
|
4
|
+
version: 8.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|