Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
e2b3ae92
Commit
e2b3ae92
authored
Jul 24, 2017
by
Dave Machado
Committed by
GitHub
Jul 24, 2017
Browse files
Update progress bar formatting
parent
267c7bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/validate_links.rb
View file @
e2b3ae92
...
@@ -33,7 +33,8 @@ end
...
@@ -33,7 +33,8 @@ end
links
=
links
.
uniq
links
=
links
.
uniq
count
=
0
count
=
0
total
=
links
.
length
total
=
links
.
length
progressbar
=
ProgressBar
.
create
(
:total
=>
total
)
progressbar
=
ProgressBar
.
create
(
:total
=>
total
,
:format
=>
"%a %P% | Processed: %c from %C"
)
# GET each link and check for valid response code from allowed_codes
# GET each link and check for valid response code from allowed_codes
links
.
each
do
|
link
|
links
.
each
do
|
link
|
begin
begin
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment