File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 6
6
require 'open-uri'
7
7
require 'net/http'
8
8
9
+ def check_sbt_openapi_generator
10
+ print "Checking sbt-openapi-generator... "
11
+
12
+ url = "https://raw.githubusercontent.com/upstart-commerce/sbt-openapi-generator/master/build.sbt"
13
+ open ( url ) do |f |
14
+ content = f . read
15
+ if !content . nil? && content . include? ( $version)
16
+ puts "[OK]"
17
+ else
18
+ puts "[ERROR]"
19
+ puts "> #{ url } not yet updated with #{ $version} "
20
+ end
21
+ end
22
+ end
23
+
9
24
def check_npmjs
10
25
print "Checking npmjs... "
11
26
@@ -180,6 +195,7 @@ def check_url url
180
195
content = Net ::HTTP . get ( URI . parse ( url ) )
181
196
url = URI . parse ( url )
182
197
req = Net ::HTTP . new ( url . host , url . port )
198
+ req . use_ssl = true
183
199
res = req . request_head ( url . path )
184
200
if res . code == "200"
185
201
true
@@ -203,6 +219,7 @@ def usage
203
219
204
220
puts "Running checkout on OpenAPI Generator release #{ $version} "
205
221
222
+ check_sbt_openapi_generator
206
223
check_openapi_generator_online_docker
207
224
check_openapi_generator_cli_docker
208
225
check_npmjs
You can’t perform that action at this time.
0 commit comments