unofficial_buildkite_client 0.4.0 → 0.5.0

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: afa192680f4d0216d5ac1015671130414f34f4f93fc807564474f41642f89e45
4
- data.tar.gz: 2dae276b1a0ec78ec8028434d0a8b1fe892f9efeaef5dc6e94ff263af7842826
3
+ metadata.gz: cfc3ef5eb820f058dcd1dc391158d57cc296b0e4466b159d31e1a592d49662c5
4
+ data.tar.gz: dd9a8805be162f84898521756c617e0a0d6aa4570b9bf0383f4463f5dd139ff8
5
5
  SHA512:
6
- metadata.gz: d633d7fec4be055875b5c6960541a03f4e0083c38d4e1534ecf0a2a42d8311248edcd991cdbf0ec1d88088e8383e9a9a152c2d17f96a79c4f068a796edf3f113
7
- data.tar.gz: 6e35016d2bfb96837c684207c01046542320acc2e11fd61ebaa528a828e61ec889fca34200d649509aacd45114c9eb326197ec0009597a22e4e5bd94f31026d9
6
+ metadata.gz: cde557cdd5370ab97ec2243d7080bb76af50de9273829c7319afd15c06dd26d418e6c3b3de8a31a8e62e1c27d94a1af8cc40cf5db997b0a0a51a2a3be955725e
7
+ data.tar.gz: 2f7d31b5e4ee377e99141160de174b47cc27ad1696e88e0176a62a025d2d42df6718d7a0e9a5357e4a39de5fb1b9556d6dc004eaada766af4221c8eb4e2e8550
@@ -1,3 +1,7 @@
1
+ # 0.5.0
2
+
3
+ - Add last option for Client#fetch_builds
4
+
1
5
  # 0.4.0
2
6
 
3
7
  - Add Client#fetch_artifact and Client#fetch_artifacts
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unofficial_buildkite_client (0.3.0)
4
+ unofficial_buildkite_client (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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:, state: nil)
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
  ) {
@@ -1,3 +1,3 @@
1
1
  class UnofficialBuildkiteClient
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
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.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-06 00:00:00.000000000 Z
11
+ date: 2019-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler