unofficial_buildkite_client 0.4.0 → 0.5.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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/unofficial_buildkite_client.rb +4 -3
- data/lib/unofficial_buildkite_client/version.rb +1 -1
- 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: cfc3ef5eb820f058dcd1dc391158d57cc296b0e4466b159d31e1a592d49662c5
|
4
|
+
data.tar.gz: dd9a8805be162f84898521756c617e0a0d6aa4570b9bf0383f4463f5dd139ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cde557cdd5370ab97ec2243d7080bb76af50de9273829c7319afd15c06dd26d418e6c3b3de8a31a8e62e1c27d94a1af8cc40cf5db997b0a0a51a2a3be955725e
|
7
|
+
data.tar.gz: 2f7d31b5e4ee377e99141160de174b47cc27ad1696e88e0176a62a025d2d42df6718d7a0e9a5357e4a39de5fb1b9556d6dc004eaada766af4221c8eb4e2e8550
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -14,14 +14,15 @@ class UnofficialBuildkiteClient
|
|
14
14
|
@pipeline_slug = pipeline_slug
|
15
15
|
end
|
16
16
|
|
17
|
-
def fetch_builds(org_slug: @org_slug, pipeline_slug: @pipeline_slug, created_at_from: nil, first
|
18
|
-
variables = {slug: "#{org_slug}/#{pipeline_slug}", createdAtFrom: created_at_from, first: first, state: state}
|
17
|
+
def fetch_builds(org_slug: @org_slug, pipeline_slug: @pipeline_slug, created_at_from: nil, first: nil, last: nil, state: nil)
|
18
|
+
variables = {slug: "#{org_slug}/#{pipeline_slug}", createdAtFrom: created_at_from, first: first, last: last, state: state}
|
19
19
|
|
20
20
|
post_graphql(<<~GRAPHQL, variables: variables).dig(:data, :pipeline, :builds, :edges).map {|b| b[:node] }
|
21
|
-
query ($createdAtFrom: DateTime, $slug: ID!, $first: Int, $state: [BuildStates!]) {
|
21
|
+
query ($createdAtFrom: DateTime, $slug: ID!, $first: Int, $last: Int, $state: [BuildStates!]) {
|
22
22
|
pipeline(slug: $slug) {
|
23
23
|
builds(
|
24
24
|
first: $first
|
25
|
+
last: $last
|
25
26
|
state: $state
|
26
27
|
createdAtFrom: $createdAtFrom
|
27
28
|
) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unofficial_buildkite_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fumiaki MATSUSHIMA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|