knapsack_pro 8.1.2 → 8.1.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 +4 -4
- data/.circleci/config.yml +11 -11
- data/CHANGELOG.md +8 -2
- data/knapsack_pro.gemspec +1 -1
- data/lib/knapsack_pro/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/api/v1/build_distributions/subset/invalid_test_suite_token.yml +1 -1
- data/spec/fixtures/vcr_cassettes/api/v1/build_distributions/subset/success.yml +1 -1
- data/spec/fixtures/vcr_cassettes/api/v1/build_subsets/create/invalid_test_suite_token.yml +1 -1
- data/spec/fixtures/vcr_cassettes/api/v1/build_subsets/create/success.yml +1 -1
- data/spec/integration/api/build_distributions_subset_spec.rb +1 -1
- data/spec/integration/api/build_subsets_create_spec.rb +1 -1
- data/spec/knapsack_pro/config/ci/app_veyor_spec.rb +2 -2
- data/spec/knapsack_pro/config/ci/cirrus_ci_spec.rb +2 -2
- data/spec/knapsack_pro/config/ci/codeship_spec.rb +2 -2
- data/spec/knapsack_pro/config/ci/heroku_spec.rb +2 -2
- data/spec/knapsack_pro/config/ci/semaphore2_spec.rb +3 -3
- data/spec/knapsack_pro/config/ci/semaphore_spec.rb +2 -2
- data/spec/knapsack_pro/config/ci/travis_spec.rb +2 -2
- data/spec/knapsack_pro/config/env_spec.rb +7 -7
- data/spec/knapsack_pro/repository_adapters/git_adapter_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f23120ba50c0ecf87cb9812a1238debd7d723c59e87fd006b93e1bbed2077cc1
|
4
|
+
data.tar.gz: 65758d5c380cb93332756af1ce05c1ad917d59340d5ca0e3c5fb563783b56059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e54574fe5e0656917394d6246ab61f0b4840262907c35fff7c824f2a8ed854b9b072a30968d82230b4e6454d7683fdb095bba31a21bf4458361ea399e0a93653
|
7
|
+
data.tar.gz: 8a5030dd9184aa6d85330f884d849efdc3037e43614736386c718c041170553fdf1aadfe00331f748f2111fec299bd9b8332aa5e14719c241f1761c02c3b8bf4
|
data/.circleci/config.yml
CHANGED
@@ -6,8 +6,8 @@ commands:
|
|
6
6
|
- checkout
|
7
7
|
- restore_cache:
|
8
8
|
keys:
|
9
|
-
|
10
|
-
|
9
|
+
- v1-bundler-ruby-{{ checksum "knapsack_pro.gemspec" }}
|
10
|
+
- v1-bundler-ruby-
|
11
11
|
- run:
|
12
12
|
command: |
|
13
13
|
bundle config set --local path './vendor/bundle'
|
@@ -37,10 +37,10 @@ commands:
|
|
37
37
|
fi
|
38
38
|
- restore_cache:
|
39
39
|
keys:
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
- v1-bundler-rails-{{ checksum "Gemfile.lock" }}-ruby-<< parameters.ruby >>-rspec-<< parameters.rspec >>
|
41
|
+
- v1-bundler-rails-{{ checksum "Gemfile.lock" }}-ruby-<< parameters.ruby >>-
|
42
|
+
- v1-bundler-rails-{{ checksum "Gemfile.lock" }}-
|
43
|
+
- v1-bundler-rails-
|
44
44
|
- run:
|
45
45
|
working_directory: << parameters.path >>
|
46
46
|
command: |
|
@@ -57,7 +57,7 @@ jobs:
|
|
57
57
|
working_directory: ~/knapsack_pro-ruby
|
58
58
|
resource_class: small
|
59
59
|
docker:
|
60
|
-
- image: cimg/ruby:3.
|
60
|
+
- image: cimg/ruby:3.4
|
61
61
|
steps:
|
62
62
|
- setup_knapsack_pro_ruby
|
63
63
|
- run: gem install rubocop
|
@@ -88,10 +88,10 @@ jobs:
|
|
88
88
|
fi
|
89
89
|
- restore_cache:
|
90
90
|
keys:
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
91
|
+
- v1-bundler-gem-{{ checksum "knapsack_pro.gemspec" }}-ruby-<< parameters.ruby >>-rspec-<< parameters.rspec >>
|
92
|
+
- v1-bundler-gem-{{ checksum "knapsack_pro.gemspec" }}-ruby-<< parameters.ruby >>-
|
93
|
+
- v1-bundler-gem-{{ checksum "knapsack_pro.gemspec" }}-
|
94
|
+
- v1-bundler-gem-
|
95
95
|
- run:
|
96
96
|
command: |
|
97
97
|
bundle config set --local path './vendor/bundle'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### UNRELEASED
|
4
|
+
|
5
|
+
### 8.1.3
|
6
|
+
|
7
|
+
* Update `changelog_uri` in gemspec
|
8
|
+
|
3
9
|
### 8.1.2
|
4
10
|
|
5
11
|
* Allow running RSpec with `--force-color` (and the default Split by Test Examples)
|
@@ -792,7 +798,7 @@ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v3.3.0...v3.3.1
|
|
792
798
|
|
793
799
|
### 3.3.0
|
794
800
|
|
795
|
-
* Show a JSON report file content when RSpec fails during a dry run
|
801
|
+
* Show a JSON report file content when RSpec fails during a dry run
|
796
802
|
|
797
803
|
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/172
|
798
804
|
|
@@ -873,7 +879,7 @@ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v2.18.0...v2.18.1
|
|
873
879
|
|
874
880
|
### 2.18.0
|
875
881
|
|
876
|
-
* Do not allow to use the RSpec tag option together with the RSpec split by test examples feature in knapsack_pro gem in Regular Mode
|
882
|
+
* Do not allow to use the RSpec tag option together with the RSpec split by test examples feature in knapsack_pro gem in Regular Mode
|
877
883
|
|
878
884
|
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/148
|
879
885
|
|
data/knapsack_pro.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.license = 'MIT'
|
16
16
|
spec.metadata = {
|
17
17
|
'bug_tracker_uri' => 'https://github.com/KnapsackPro/knapsack_pro-ruby/issues',
|
18
|
-
'changelog_uri' => 'https://github.com/KnapsackPro/knapsack_pro-ruby/blob/
|
18
|
+
'changelog_uri' => 'https://github.com/KnapsackPro/knapsack_pro-ruby/blob/main/CHANGELOG.md',
|
19
19
|
'documentation_uri' => 'https://docs.knapsackpro.com/knapsack_pro-ruby/guide/',
|
20
20
|
'homepage_uri' => 'https://knapsackpro.com',
|
21
21
|
'source_code_uri' => 'https://github.com/KnapsackPro/knapsack_pro-ruby'
|
data/lib/knapsack_pro/version.rb
CHANGED
data/spec/fixtures/vcr_cassettes/api/v1/build_distributions/subset/invalid_test_suite_token.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://api.knapsackpro.test:3000/v1/build_distributions/subset
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"fixed_test_suite_split":true,"cache_read_attempt":true,"commit_hash":"abcdefg","branch":"
|
8
|
+
string: '{"fixed_test_suite_split":true,"cache_read_attempt":true,"commit_hash":"abcdefg","branch":"main","node_total":"2","node_index":"1","ci_build_id":"missing-build-id"}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://api.knapsackpro.test:3000/v1/build_distributions/subset
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"fixed_test_suite_split":true,"cache_read_attempt":true,"commit_hash":"abcdefg","branch":"
|
8
|
+
string: '{"fixed_test_suite_split":true,"cache_read_attempt":true,"commit_hash":"abcdefg","branch":"main","node_total":"2","node_index":"1","ci_build_id":"missing-build-id"}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://api.knapsackpro.test:3000/v1/build_subsets
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"commit_hash":"abcdefg","branch":"
|
8
|
+
string: '{"commit_hash":"abcdefg","branch":"main","node_total":"2","node_index":"1","test_files":[{"path":"a_spec.rb","time_execution":1.2},{"path":"b_spec.rb","time_execution":0.3}]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://api.knapsackpro.test:3000/v1/build_subsets
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"commit_hash":"abcdefg","branch":"
|
8
|
+
string: '{"commit_hash":"abcdefg","branch":"main","node_total":"2","node_index":"1","test_files":[{"path":"a_spec.rb","time_execution":1.2},{"path":"b_spec.rb","time_execution":0.3}]}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -8,7 +8,7 @@ describe 'Request API /v1/build_distributions/subset' do
|
|
8
8
|
KnapsackPro::Client::API::V1::BuildDistributions.subset(
|
9
9
|
cache_read_attempt: true,
|
10
10
|
commit_hash: 'abcdefg',
|
11
|
-
branch: '
|
11
|
+
branch: 'main',
|
12
12
|
node_total: '2',
|
13
13
|
node_index: '1',
|
14
14
|
test_files: [
|
@@ -49,8 +49,8 @@ describe KnapsackPro::Config::CI::AppVeyor do
|
|
49
49
|
subject { described_class.new.branch }
|
50
50
|
|
51
51
|
context 'when the environment exists' do
|
52
|
-
let(:env) { { 'APPVEYOR_REPO_BRANCH' => '
|
53
|
-
it { should eql '
|
52
|
+
let(:env) { { 'APPVEYOR_REPO_BRANCH' => 'main' } }
|
53
|
+
it { should eql 'main' }
|
54
54
|
end
|
55
55
|
|
56
56
|
context "when the environment doesn't exist" do
|
@@ -63,8 +63,8 @@ describe KnapsackPro::Config::CI::CirrusCI do
|
|
63
63
|
subject { described_class.new.branch }
|
64
64
|
|
65
65
|
context 'when the environment exists' do
|
66
|
-
let(:env) { { 'CIRRUS_BRANCH' => '
|
67
|
-
it { should eql '
|
66
|
+
let(:env) { { 'CIRRUS_BRANCH' => 'main' } }
|
67
|
+
it { should eql 'main' }
|
68
68
|
end
|
69
69
|
|
70
70
|
context "when the environment doesn't exist" do
|
@@ -49,8 +49,8 @@ describe KnapsackPro::Config::CI::Codeship do
|
|
49
49
|
subject { described_class.new.branch }
|
50
50
|
|
51
51
|
context 'when the environment exists' do
|
52
|
-
let(:env) { { 'CI_BRANCH' => '
|
53
|
-
it { should eql '
|
52
|
+
let(:env) { { 'CI_BRANCH' => 'main' } }
|
53
|
+
it { should eql 'main' }
|
54
54
|
end
|
55
55
|
|
56
56
|
context "when the environment doesn't exist" do
|
@@ -63,8 +63,8 @@ describe KnapsackPro::Config::CI::Heroku do
|
|
63
63
|
subject { described_class.new.branch }
|
64
64
|
|
65
65
|
context 'when the environment exists' do
|
66
|
-
let(:env) { { 'HEROKU_TEST_RUN_BRANCH' => '
|
67
|
-
it { should eql '
|
66
|
+
let(:env) { { 'HEROKU_TEST_RUN_BRANCH' => 'main' } }
|
67
|
+
it { should eql 'main' }
|
68
68
|
end
|
69
69
|
|
70
70
|
context "when the environment doesn't exist" do
|
@@ -68,13 +68,13 @@ describe KnapsackPro::Config::CI::Semaphore2 do
|
|
68
68
|
end
|
69
69
|
|
70
70
|
context 'when both SEMAPHORE_GIT_WORKING_BRANCH and SEMAPHORE_GIT_BRANCH are set' do
|
71
|
-
let(:env) { { 'SEMAPHORE_GIT_WORKING_BRANCH' => 'feature', 'SEMAPHORE_GIT_BRANCH' => '
|
71
|
+
let(:env) { { 'SEMAPHORE_GIT_WORKING_BRANCH' => 'feature', 'SEMAPHORE_GIT_BRANCH' => 'main' } }
|
72
72
|
it { should eql 'feature' }
|
73
73
|
end
|
74
74
|
|
75
75
|
context 'when SEMAPHORE_GIT_BRANCH is set' do
|
76
|
-
let(:env) { { 'SEMAPHORE_GIT_BRANCH' => '
|
77
|
-
it { should eql '
|
76
|
+
let(:env) { { 'SEMAPHORE_GIT_BRANCH' => 'main' } }
|
77
|
+
it { should eql 'main' }
|
78
78
|
end
|
79
79
|
|
80
80
|
context "when no ENVs are set" do
|
@@ -63,8 +63,8 @@ describe KnapsackPro::Config::CI::Semaphore do
|
|
63
63
|
subject { described_class.new.branch }
|
64
64
|
|
65
65
|
context 'when the environment exists' do
|
66
|
-
let(:env) { { 'BRANCH_NAME' => '
|
67
|
-
it { should eql '
|
66
|
+
let(:env) { { 'BRANCH_NAME' => 'main' } }
|
67
|
+
it { should eql 'main' }
|
68
68
|
end
|
69
69
|
|
70
70
|
context "when the environment doesn't exist" do
|
@@ -49,8 +49,8 @@ describe KnapsackPro::Config::CI::Travis do
|
|
49
49
|
subject { described_class.new.branch }
|
50
50
|
|
51
51
|
context 'when the environment exists' do
|
52
|
-
let(:env) { { 'TRAVIS_BRANCH' => '
|
53
|
-
it { should eql '
|
52
|
+
let(:env) { { 'TRAVIS_BRANCH' => 'main' } }
|
53
|
+
it { should eql 'main' }
|
54
54
|
end
|
55
55
|
|
56
56
|
context "when the environment doesn't exist" do
|
@@ -313,8 +313,8 @@ describe KnapsackPro::Config::Env do
|
|
313
313
|
|
314
314
|
context 'when ENV exists' do
|
315
315
|
context 'when KNAPSACK_PRO_BRANCH has value' do
|
316
|
-
before { stub_const("ENV", { 'KNAPSACK_PRO_BRANCH' => '
|
317
|
-
it { should eq '
|
316
|
+
before { stub_const("ENV", { 'KNAPSACK_PRO_BRANCH' => 'main' }) }
|
317
|
+
it { should eq 'main' }
|
318
318
|
end
|
319
319
|
|
320
320
|
context 'when CI environment has value' do
|
@@ -335,22 +335,22 @@ describe KnapsackPro::Config::Env do
|
|
335
335
|
end
|
336
336
|
|
337
337
|
context 'when values are different' do
|
338
|
-
let(:env_value) { '
|
338
|
+
let(:env_value) { 'main' }
|
339
339
|
let(:ci_value) { 'feature-branch' }
|
340
340
|
|
341
|
-
it { should eq '
|
341
|
+
it { should eq 'main' }
|
342
342
|
|
343
343
|
it 'logs a warning' do
|
344
344
|
expect(logger).to receive(:info).with(
|
345
|
-
'You have set the environment variable KNAPSACK_PRO_BRANCH to
|
345
|
+
'You have set the environment variable KNAPSACK_PRO_BRANCH to main which could be automatically determined from the CI environment as feature-branch.'
|
346
346
|
)
|
347
347
|
subject
|
348
348
|
end
|
349
349
|
end
|
350
350
|
|
351
351
|
context 'when values are the same' do
|
352
|
-
let(:env_value) { '
|
353
|
-
let(:ci_value) { '
|
352
|
+
let(:env_value) { 'main' }
|
353
|
+
let(:ci_value) { 'main' }
|
354
354
|
|
355
355
|
it 'does not log a warning' do
|
356
356
|
expect(logger).not_to receive(:info)
|
@@ -28,7 +28,7 @@ describe KnapsackPro::RepositoryAdapters::GitAdapter do
|
|
28
28
|
describe '#branches' do
|
29
29
|
subject { described_class.new.branches }
|
30
30
|
|
31
|
-
it { expect(subject.include?('
|
31
|
+
it { expect(subject.include?('main')).to be true }
|
32
32
|
it { expect(subject.include?(circle_branch)).to be true } if ENV['CIRCLECI']
|
33
33
|
end
|
34
34
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-05-09 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|
@@ -410,7 +410,7 @@ licenses:
|
|
410
410
|
- MIT
|
411
411
|
metadata:
|
412
412
|
bug_tracker_uri: https://github.com/KnapsackPro/knapsack_pro-ruby/issues
|
413
|
-
changelog_uri: https://github.com/KnapsackPro/knapsack_pro-ruby/blob/
|
413
|
+
changelog_uri: https://github.com/KnapsackPro/knapsack_pro-ruby/blob/main/CHANGELOG.md
|
414
414
|
documentation_uri: https://docs.knapsackpro.com/knapsack_pro-ruby/guide/
|
415
415
|
homepage_uri: https://knapsackpro.com
|
416
416
|
source_code_uri: https://github.com/KnapsackPro/knapsack_pro-ruby
|