ci_toolkit 1.5.3 → 1.5.4

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: 87feaa62793778d43ee9e9ad8cb0c80c47060e3430637deeda2f16ca8d582504
4
- data.tar.gz: f7f316e25915399f317d852fad2f9bc31ade2aab39c6ca0e0dc020641d960d62
3
+ metadata.gz: 5cedc7fa6c13bd1256e5724b8c36852f39c1893a99f55ebfef23fe1d7e99ab4a
4
+ data.tar.gz: 0e50375d5c21fcd106dfe9013de91a55f93ce5b805203d9d4867dc16270ad576
5
5
  SHA512:
6
- metadata.gz: 6d84278903059b2a2ddb229d41c99c39d70ae608a33f91c0e97122f40441c33d324ef9d073776ed552e6f70871498fb50967eb5342472ed1609e714e1445963f
7
- data.tar.gz: 061eb27df8659e1b1b64a6f7b5089fa286448fbb311ce73e50bd36b497f4f8da2656c90ecfa68b6ac9a5de7810c9980a2f5a6a3b6021892b7c0042d42888d6ee
6
+ metadata.gz: 74cdb925c2a57bcafbc4f5e663b21dd461203117e1e6c1bb71ea4489ad6b92e51cad298de9af2f820bf7bb8b61b14ba3a8d1cd1501cfba3a6c5b85fa88e0702a
7
+ data.tar.gz: 8b739f154a353585d1fdfba66f9d2d277217ab5e65d33923fb72af1632870bfe1bb4baaa49ec98117d43c56cfd3ab9c563ae0b17623e58107342d1a722ab643c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci_toolkit (1.5.3)
4
+ ci_toolkit (1.5.4)
5
5
  faraday
6
6
  faraday_middleware
7
7
  gitlab
@@ -47,10 +47,9 @@ module CiToolkit
47
47
  private
48
48
 
49
49
  def load_counter
50
- status = @github.get_status(@context)
51
- return if status.nil?
50
+ description = @github.get_status_description(@context)
51
+ return if description.nil?
52
52
 
53
- description = status[:description]
54
53
  build_counter = description[%r{(\d/\d)}] || "0/0"
55
54
  { num_finished: build_counter.split("/")[0].to_i, num_total: build_counter.split("/")[1].to_i }
56
55
  end
@@ -97,5 +97,9 @@ module CiToolkit
97
97
  def realm_module_modified?
98
98
  CiToolkit::DvcsPr.api_not_implemented(self)
99
99
  end
100
+
101
+ def get_status_description(_context)
102
+ CiToolkit::DvcsPr.api_not_implemented(self)
103
+ end
100
104
  end
101
105
  end
@@ -110,6 +110,13 @@ module CiToolkit
110
110
  modified_files.length.positive?
111
111
  end
112
112
 
113
+ def get_status_description(context)
114
+ status = get_status(context)
115
+ return if status.nil?
116
+
117
+ status[:description]
118
+ end
119
+
113
120
  private
114
121
 
115
122
  def client
@@ -74,7 +74,7 @@ module CiToolkit
74
74
  @repo_slug,
75
75
  @commit_sha,
76
76
  state,
77
- { context: context, target_url: target_url, description: description }
77
+ { name: context, target_url: target_url, description: description }
78
78
  )
79
79
  end
80
80
 
@@ -113,6 +113,13 @@ module CiToolkit
113
113
  modified_files.length.positive?
114
114
  end
115
115
 
116
+ def get_status_description(context)
117
+ status = get_status(context)
118
+ return if status.nil?
119
+
120
+ status.description
121
+ end
122
+
116
123
  private
117
124
 
118
125
  def client
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.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gero Keller