ci_toolkit 1.5.19 → 1.5.21

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: 0caae7232b53d65bcd7f5eb7103b3ce36d56d22120beee7534bdcfa3beb8d1c9
4
- data.tar.gz: 5a1bf7389dec806379b9b0f6544950f026638c53e614481bd2d8b4dd3152a980
3
+ metadata.gz: c1e460504bc5d274e82021dacfcd7065ff46b65ca747956a0809d734e0985d8f
4
+ data.tar.gz: 938bfce127bc20430c4543bb6fefda1b5ae203563ae8234950724578f57c1015
5
5
  SHA512:
6
- metadata.gz: dd550bfe914c50d9b3f21f691ee933d06f4048dbae2c430c7499f1b164757a5870bb51f561e789986bf35d6400c14b1ebcf90b6374a5135a3737a2fb1d4ad267
7
- data.tar.gz: efc45ea4f35a27d452e56d43b51e32fe4cf1f407c692eeacaed5f438b3b808c58212200d5b87ae7c01a2672535d52ce8c0b9442b9a8cfd819e26d08f5232fd8c
6
+ metadata.gz: 6964d3d2d9e1108b8513aabb6011501b5db2ee0eebe85e7ef4e253e952b81acfbd89148ba496524fffed5f1e790d2f6e3455a79e8e82cf75f0590d8021290dae
7
+ data.tar.gz: 5238ece91784b8962584eab1d057943b7f3d1dc23814bdfa3fc8622e040b76ad69dec80484b4917dd1f2fb61847d30325df284067b573a57f659927cc7d0b108
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci_toolkit (1.5.19)
4
+ ci_toolkit (1.5.21)
5
5
  faraday
6
6
  faraday-multipart
7
7
  faraday_middleware
@@ -43,18 +43,16 @@ GEM
43
43
  faraday-rack (1.0.0)
44
44
  faraday_middleware (1.2.0)
45
45
  faraday (~> 1.0)
46
- gitlab (4.18.0)
47
- httparty (~> 0.18)
46
+ gitlab (4.19.0)
47
+ httparty (~> 0.20)
48
48
  terminal-table (>= 1.5.1)
49
- httparty (0.20.0)
50
- mime-types (~> 3.0)
49
+ httparty (0.21.0)
50
+ mini_mime (>= 1.0.0)
51
51
  multi_xml (>= 0.5.2)
52
52
  ipaddr (1.2.3)
53
53
  json (2.5.1)
54
54
  jwt (2.3.0)
55
- mime-types (3.4.1)
56
- mime-types-data (~> 3.2015)
57
- mime-types-data (3.2022.0105)
55
+ mini_mime (1.1.2)
58
56
  multi_xml (0.6.0)
59
57
  multipart-post (2.1.1)
60
58
  octokit (4.21.0)
@@ -116,7 +114,7 @@ GEM
116
114
  unicode-display_width (>= 1.1.1, < 3)
117
115
  time (0.2.0)
118
116
  date
119
- unicode-display_width (2.1.0)
117
+ unicode-display_width (2.4.2)
120
118
 
121
119
  PLATFORMS
122
120
  universal-darwin-20
@@ -134,4 +132,4 @@ DEPENDENCIES
134
132
  simplecov-json
135
133
 
136
134
  BUNDLED WITH
137
- 2.3.16
135
+ 2.4.12
@@ -15,7 +15,7 @@ module CiToolkit
15
15
  end
16
16
 
17
17
  def start(num_builds)
18
- state = "pending"
18
+ state = CiToolkit::DvcsPrUtil.status_state_pending
19
19
  target_url = @env.app_url
20
20
  desc = "Finished building 0/#{num_builds}"
21
21
  if num_builds.zero?
@@ -44,8 +44,6 @@ module CiToolkit
44
44
  @github.create_status(state, @context, @env.app_url, "Building failed")
45
45
  end
46
46
 
47
- private
48
-
49
47
  def load_counter
50
48
  description = @github.get_status_description(@context)
51
49
  return if description.nil?
@@ -75,8 +75,12 @@ module CiToolkit
75
75
  full_path_to_file,
76
76
  content_type
77
77
  )
78
- faraday_delete_application(application_id)
79
- faraday_upload_file_with_error_handling(project_name, unique_name, full_path_to_file, content_type)
78
+ response = faraday_delete_application(application_id)
79
+
80
+ if response.status == SUCCESS && response.code == OKAY
81
+ response = faraday_upload_file_with_error_handling(project_name, unique_name, full_path_to_file, content_type)
82
+ end
83
+ response
80
84
  end
81
85
 
82
86
  def faraday_upload_file_with_error_handling(
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.19
4
+ version: 1.5.21
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-10-05 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday