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 +4 -4
- data/Gemfile.lock +8 -10
- data/lib/ci_toolkit/build_status.rb +1 -3
- data/lib/ci_toolkit/seetest_client.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1e460504bc5d274e82021dacfcd7065ff46b65ca747956a0809d734e0985d8f
|
4
|
+
data.tar.gz: 938bfce127bc20430c4543bb6fefda1b5ae203563ae8234950724578f57c1015
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
47
|
-
httparty (~> 0.
|
46
|
+
gitlab (4.19.0)
|
47
|
+
httparty (~> 0.20)
|
48
48
|
terminal-table (>= 1.5.1)
|
49
|
-
httparty (0.
|
50
|
-
|
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
|
-
|
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.
|
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.
|
135
|
+
2.4.12
|
@@ -15,7 +15,7 @@ module CiToolkit
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def start(num_builds)
|
18
|
-
state =
|
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
|
-
|
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.
|
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:
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|