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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cb3592a7a5f0e3f69138e53d5659954e0e84190ad84380d823e776268d4e900
4
- data.tar.gz: b40c96cebfb9c4446998291b01c435f6e29cd937a51848593510ed633e56b14b
3
+ metadata.gz: f23120ba50c0ecf87cb9812a1238debd7d723c59e87fd006b93e1bbed2077cc1
4
+ data.tar.gz: 65758d5c380cb93332756af1ce05c1ad917d59340d5ca0e3c5fb563783b56059
5
5
  SHA512:
6
- metadata.gz: 8308e34071c72b055335ded1422bb49762c600fffbc86f83a54911dde1cc23db59e472233bd53c1ec558fbf612c11b537587e241774dd8824d14e6665fd914e8
7
- data.tar.gz: 35829c1ba92de81be2d7b3f5bd428b9fb2a66a8ad3da940f21e196b02b7962ce13f0c453f27c85c3acfce681223b3a83145baf2b26ef12b10a66dcf67f0d9fa3
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
- - v1-bundler-ruby-{{ checksum "knapsack_pro.gemspec" }}
10
- - v1-bundler-ruby-
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
- - 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-
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.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
- - 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-
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/master/CHANGELOG.md',
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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '8.1.2'
4
+ VERSION = '8.1.3'
5
5
  end
@@ -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":"master","node_total":"2","node_index":"1","ci_build_id":"missing-build-id"}'
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":"master","node_total":"2","node_index":"1","ci_build_id":"missing-build-id"}'
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":"master","node_total":"2","node_index":"1","test_files":[{"path":"a_spec.rb","time_execution":1.2},{"path":"b_spec.rb","time_execution":0.3}],"test_suite_token":"fake"}'
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":"master","node_total":"2","node_index":"1","test_files":[{"path":"a_spec.rb","time_execution":1.2},{"path":"b_spec.rb","time_execution":0.3}],"test_suite_token":"3fa64859337f6e56409d49f865d13fd7"}'
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: 'master',
11
+ branch: 'main',
12
12
  node_total: '2',
13
13
  node_index: '1',
14
14
  test_files: [
@@ -7,7 +7,7 @@ describe 'Request API /v1/build_subsets' do
7
7
  let(:action) do
8
8
  KnapsackPro::Client::API::V1::BuildSubsets.create(
9
9
  commit_hash: 'abcdefg',
10
- branch: 'master',
10
+ branch: 'main',
11
11
  node_total: '2',
12
12
  node_index: '1',
13
13
  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' => 'master' } }
53
- it { should eql 'master' }
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' => 'master' } }
67
- it { should eql 'master' }
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' => 'master' } }
53
- it { should eql 'master' }
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' => 'master' } }
67
- it { should eql 'master' }
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' => 'master' } }
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' => 'master' } }
77
- it { should eql 'master' }
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' => 'master' } }
67
- it { should eql 'master' }
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' => 'master' } }
53
- it { should eql 'master' }
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' => 'master' }) }
317
- it { should eq 'master' }
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) { 'master' }
338
+ let(:env_value) { 'main' }
339
339
  let(:ci_value) { 'feature-branch' }
340
340
 
341
- it { should eq 'master' }
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 master which could be automatically determined from the CI environment as feature-branch.'
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) { 'master' }
353
- let(:ci_value) { 'master' }
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?('master')).to be true }
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.2
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-04-17 00:00:00.000000000 Z
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/master/CHANGELOG.md
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