ci_toolkit 1.2.8 → 1.2.9

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: fcb2f396f954502fd4181fd9f96daedf067cf3800f5425b6b251515f4c4d81b0
4
- data.tar.gz: 938bea990d63ced3c0f5b66d91ddec92a07ea0d8262536f81f6d149ce6da1bae
3
+ metadata.gz: b4bfe956c92fad69ac062c30ab70aa5577d63cbdcab7f8e4ffb1d36bae851f2d
4
+ data.tar.gz: '087c4b667f9c79307132d6c26c34d4e08a3960b4ff9c2c3ab7c5b62477e5fee0'
5
5
  SHA512:
6
- metadata.gz: 64c8f72d6346a665bb43abf1e63ea1adc28fe183a3ccb1232120ad4e5ee1b1eddc015e87f8de2e6ed7655a417f53feda48f40ac9d2fca61b695fbf49f35acbcb
7
- data.tar.gz: 7414b1b22c2da208fff9a266cdaa1cfb6657c9c6e29b1507c314d95544ab9b5453e4737638fb34bdde77f5af10e8741aa16fa37e6a2cc9d40fd3d9295fdad1c0
6
+ metadata.gz: 163a4bd2abb17fd25a69de5dbc78e32ce032817d5e2d6cca898a7a7c24f60048c49598f5558e06bff0bcfd455cd55813e6cd733a0735584d1f11a9a9cbe3e03e
7
+ data.tar.gz: 82decc260cc2080262bb2c67ab372fca9a2b79e8be03267039c743beeda9e4070bc5f88a8a37b24be0e09601ac4f41da92d16ccde53f00e97c2d668c8ed74463
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci_toolkit (1.2.8)
4
+ ci_toolkit (1.2.9)
5
5
  faraday
6
6
  faraday_middleware
7
7
  jwt
@@ -21,7 +21,6 @@ module CiToolkit
21
21
  @app_slug = options[:app_slug]
22
22
  @connection = faraday
23
23
  configure_connection
24
- @connection&.use Faraday::Response::Logger, nil, { headers: true, bodies: true }
25
24
  end
26
25
 
27
26
  def configure_connection
@@ -65,16 +64,11 @@ module CiToolkit
65
64
  pull_request_id: pull_request.to_i,
66
65
  status: 0 # status: 0 == not finished
67
66
  })
68
- puts "Response:\n"
69
- puts response.inspect
70
-
71
67
  builds = response.body["data"]
72
68
  filter_builds_by_commit(builds, commit)
73
69
  end
74
70
 
75
71
  def filter_builds_by_commit(builds, commit)
76
- puts "Builds:\n"
77
- puts builds.inspect
78
72
  builds&.select! { |build| build["commit_hash"] == commit && build["build_number"] != @build_number }
79
73
  builds || []
80
74
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CiToolkit
4
- VERSION = "1.2.8"
4
+ VERSION = "1.2.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gero Keller