ci_toolkit 1.5.0 → 1.5.1

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: 238ec72a39230c130d1549038d90ba84e4d3beaeba53c2b2633a6acb6af6bac6
4
- data.tar.gz: 8d01f899283bbda751b4045f4e9682007b6a3a804270f8f360f3572baa871c02
3
+ metadata.gz: a76550025b344c5539c79e2002b47c2e622ce90e1f1dd4dcf9710e148a41174f
4
+ data.tar.gz: 182d9df1e68adb7f825ba57a1b3ad61e39d42e1b0a42f2011302f0559113e0b9
5
5
  SHA512:
6
- metadata.gz: fc8532b4c11720ec2faeb7ea9a7ba9440959d181c78d3e38b4d0bfa9b9b864b60ecaca51865a80ee22fbc876e7f5e31442814d85cebe56377895ce43426c26d5
7
- data.tar.gz: 5788789adb3ccc914c1179a004dd7ad002bd57908777a8587432047f421aa79f45ae947e2beb8fbf1d8a576fa4a4162b5d4258c850e1a4f22a8b6ce31774dd5a
6
+ metadata.gz: bca4a5115ea7fcfbf351d961cd5390c8235068306d1480337d06b6a6177cd6617d4f9132976e980789ef853531ba9d67ba61cc876f2895fdc041796ed105affc
7
+ data.tar.gz: 333c32e5bd377d2947f3c705bd8ffb96af4d7a5c5720282eaf6264e5211342fb52e0851dfe5e0fe8bed6e9b341269f5e5509c264b06e1285f635673b5bad7ca3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci_toolkit (1.5.0)
4
+ ci_toolkit (1.5.1)
5
5
  faraday
6
6
  faraday_middleware
7
7
  gitlab
@@ -4,7 +4,11 @@ module CiToolkit
4
4
  # allows to have a combined build status for all builds that are triggered for a pull request
5
5
  # it uses the description of the status check on Github to parse the number of builds remaining and total
6
6
  class BuildStatus
7
- def initialize(context = "Builds", github = CiToolkit::GithubPr.new, env = CiToolkit::BitriseEnv.new)
7
+ def initialize(
8
+ context = "Builds",
9
+ github = CiToolkit::DvcsPrFactory.create(CiToolkit::BitriseEnv.new),
10
+ env = CiToolkit::BitriseEnv.new
11
+ )
8
12
  @context = context
9
13
  @github = github
10
14
  @env = env
@@ -4,7 +4,7 @@ module CiToolkit
4
4
  # Sends messages to a Github PR for predefined build events
5
5
  class PrMessenger
6
6
  def initialize(
7
- github_pr = CiToolkit::GithubPr.new,
7
+ github_pr = CiToolkit::DvcsPrFactory.create(CiToolkit::BitriseEnv.new),
8
8
  messenger_text = CiToolkit::PrMessengerText.new
9
9
  )
10
10
  @github_pr = github_pr
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gero Keller
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday