http_sieve 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/sieve +5 -1
- data/lib/http_sieve/version.rb +1 -1
- data/lib/http_sieve.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87ed84d86b5778bc272afdb158255b4bf807c799559d8d10a479d5c39c4d1220
|
4
|
+
data.tar.gz: cdf48955a9768156828d7f9750792d8615c94b1df34ab9ecaf824672df9e9116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2c9840344a4ecf1532c90cc3454d982e98400c4484b5a4e676313e1bf69a3baedf79c8e4122466ce867e216c6af9985edca825fde314847715c4c9c65f39a70
|
7
|
+
data.tar.gz: 7f6df6868b5f85f126403463ad9eeeb1781f442770ee5ccaea661fdd899ae2b5c7f36efe66353590505d40c32edc7ee0e777679a4af538c05da6003bbf0f7427
|
data/exe/sieve
CHANGED
@@ -8,7 +8,11 @@ lines = STDIN.read.split("\n")
|
|
8
8
|
total_lines = lines.size
|
9
9
|
|
10
10
|
lines.each_with_index do |url, i|
|
11
|
-
print "[#{i}/#{total_lines}]
|
11
|
+
print "[#{i}/#{total_lines}]\r"
|
12
12
|
|
13
13
|
Sieve::API.new.get(url) { |json| json }
|
14
14
|
end
|
15
|
+
|
16
|
+
# This erases the trailing counter "[#{i}/#{total}]" to have a consistent output
|
17
|
+
# with only status and website.
|
18
|
+
puts
|
data/lib/http_sieve/version.rb
CHANGED
data/lib/http_sieve.rb
CHANGED
@@ -71,6 +71,8 @@ module Sieve
|
|
71
71
|
rescue Errno::ECONNRESET # Connection reset by peer - SSL_connect ().
|
72
72
|
rescue OpenSSL::SSL::SSLError
|
73
73
|
rescue Net::OpenTimeout
|
74
|
+
rescue Errno::ECONNREFUSED => e # Connection refused - connect(2) Port 80
|
75
|
+
puts e.message
|
74
76
|
end
|
75
77
|
end
|
76
78
|
end
|