knapsack_pro 5.2.1 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf6661c02960aefdda92e8fd84ce692e22e59e9fb4d593f677577cda62acb57
4
- data.tar.gz: c56e9069badb8ed6090e1b8afb6f2c7d5aebb52a8b7e484484399586b3b7f82c
3
+ metadata.gz: 8cce96343b30d782aa576d77ab957b9af2b767ff7896f6507bcf6d0fed5ad8ea
4
+ data.tar.gz: b1ff76bcc2c99420049e1a52d0f9715dfa8c208dc2dd5e35b1e56756982ef059
5
5
  SHA512:
6
- metadata.gz: df2abe40a8b601acd3db8eedce7fc985273e4ff0100346300080ef0de7c8a3df96ecb98f7ab038f121f365d852da0ff877c579a57a652c1c5fb8318a72bc53a7
7
- data.tar.gz: 032132b675a088531b3dd112f3258823ec4fd7b9beae8f982dbb3abc85508b4d4ccbd56112ab0e8f1faaf9b0af74edc98fd6896fb01d25ba77f20bef14f61273
6
+ metadata.gz: 70721672e47f388e2826baa88da884e596bc4784891ea5177e51584510579ce08f6297b853ac4c821c9e7d32861362587295a8e0ac1c5b290495df847f99acd9
7
+ data.tar.gz: 475fe2a76e55a56575ed8d81cb8534b8d0fd2d5df044b8dd0a35a8a98d0e9e89a0045645d23e550e6833d80b7bc4d0c526c11e7035dec06699eae7d4d6ab8efb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ### 5.3.0
4
+
5
+ * Perf: Send authors to the API only on the first request (for Queue Mode)
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.2.1...v5.3.0
8
+
3
9
  ### 5.2.1
4
10
 
5
11
  * Shallow fetch the last month of commits only on CI
@@ -17,13 +17,13 @@ module KnapsackPro
17
17
  :node_index => args.fetch(:node_index),
18
18
  :node_build_id => KnapsackPro::Config::Env.ci_node_build_id,
19
19
  :user_seat => KnapsackPro::Config::Env.masked_user_seat,
20
- :build_author => KnapsackPro::RepositoryAdapters::GitAdapter.new.build_author,
21
- :commit_authors => KnapsackPro::RepositoryAdapters::GitAdapter.new.commit_authors,
22
20
  }
23
21
 
24
22
  if request_hash[:can_initialize_queue] && !request_hash[:attempt_connect_to_queue]
25
23
  request_hash.merge!({
26
- :test_files => args.fetch(:test_files)
24
+ :test_files => args.fetch(:test_files),
25
+ :build_author => KnapsackPro::RepositoryAdapters::GitAdapter.new.build_author,
26
+ :commit_authors => KnapsackPro::RepositoryAdapters::GitAdapter.new.commit_authors,
27
27
  })
28
28
  end
29
29
 
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '5.2.1'
2
+ VERSION = '5.3.0'
3
3
  end
@@ -53,6 +53,16 @@ describe KnapsackPro::Client::API::V1::Queues do
53
53
  ).and_return(action)
54
54
  expect(subject).to eq action
55
55
  end
56
+
57
+ it "sends authors" do
58
+ action = double
59
+
60
+ expect(KnapsackPro::Client::API::Action).to receive(:new).with(
61
+ hash_including(request_hash: hash_including(:build_author, :commit_authors))
62
+ ).and_return(action)
63
+
64
+ expect(subject).to eq action
65
+ end
56
66
  end
57
67
 
58
68
  context 'when can_initialize_queue=false and attempt_connect_to_queue=false' do
@@ -67,15 +77,5 @@ describe KnapsackPro::Client::API::V1::Queues do
67
77
  expect(subject).to eq action
68
78
  end
69
79
  end
70
-
71
- it "sends authors" do
72
- action = double
73
-
74
- expect(KnapsackPro::Client::API::Action).to receive(:new).with(
75
- hash_including(request_hash: hash_including(:build_author, :commit_authors))
76
- ).and_return(action)
77
-
78
- expect(subject).to eq action
79
- end
80
80
  end
81
81
  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: 5.2.1
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT