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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/knapsack_pro/client/api/v1/queues.rb +3 -3
- data/lib/knapsack_pro/version.rb +1 -1
- data/spec/knapsack_pro/client/api/v1/queues_spec.rb +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cce96343b30d782aa576d77ab957b9af2b767ff7896f6507bcf6d0fed5ad8ea
|
4
|
+
data.tar.gz: b1ff76bcc2c99420049e1a52d0f9715dfa8c208dc2dd5e35b1e56756982ef059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70721672e47f388e2826baa88da884e596bc4784891ea5177e51584510579ce08f6297b853ac4c821c9e7d32861362587295a8e0ac1c5b290495df847f99acd9
|
7
|
+
data.tar.gz: 475fe2a76e55a56575ed8d81cb8534b8d0fd2d5df044b8dd0a35a8a98d0e9e89a0045645d23e550e6833d80b7bc4d0c526c11e7035dec06699eae7d4d6ab8efb
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/knapsack_pro/version.rb
CHANGED
@@ -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
|