ci_toolkit 1.5.0 → 1.5.3

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: 238ec72a39230c130d1549038d90ba84e4d3beaeba53c2b2633a6acb6af6bac6
4
- data.tar.gz: 8d01f899283bbda751b4045f4e9682007b6a3a804270f8f360f3572baa871c02
3
+ metadata.gz: 87feaa62793778d43ee9e9ad8cb0c80c47060e3430637deeda2f16ca8d582504
4
+ data.tar.gz: f7f316e25915399f317d852fad2f9bc31ade2aab39c6ca0e0dc020641d960d62
5
5
  SHA512:
6
- metadata.gz: fc8532b4c11720ec2faeb7ea9a7ba9440959d181c78d3e38b4d0bfa9b9b864b60ecaca51865a80ee22fbc876e7f5e31442814d85cebe56377895ce43426c26d5
7
- data.tar.gz: 5788789adb3ccc914c1179a004dd7ad002bd57908777a8587432047f421aa79f45ae947e2beb8fbf1d8a576fa4a4162b5d4258c850e1a4f22a8b6ce31774dd5a
6
+ metadata.gz: 6d84278903059b2a2ddb229d41c99c39d70ae608a33f91c0e97122f40441c33d324ef9d073776ed552e6f70871498fb50967eb5342472ed1609e714e1445963f
7
+ data.tar.gz: 061eb27df8659e1b1b64a6f7b5089fa286448fbb311ce73e50bd36b497f4f8da2656c90ecfa68b6ac9a5de7810c9980a2f5a6a3b6021892b7c0042d42888d6ee
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.3)
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
@@ -66,7 +66,7 @@ module CiToolkit
66
66
  end
67
67
 
68
68
  def files
69
- client.merge_request_changes(@repo_slug, @pr_number)
69
+ client.merge_request_changes(@repo_slug, @pr_number).changes
70
70
  end
71
71
 
72
72
  def create_status(state, context, target_url, description)
@@ -105,7 +105,7 @@ module CiToolkit
105
105
  end
106
106
 
107
107
  def big?
108
- lines_of_code_changed > 500
108
+ lines_of_code_changed.to_i > 500
109
109
  end
110
110
 
111
111
  def realm_module_modified?
@@ -117,8 +117,6 @@ module CiToolkit
117
117
 
118
118
  def client
119
119
  @_client = GitLab::Client.new if @_client.nil?
120
- # @_client.access_token = @bot.create_token if @_client.access_token.nil?
121
-
122
120
  @_client
123
121
  end
124
122
  end
@@ -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.3
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