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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 016b3f6e343bb73e7275396a4054d1e8d9f446ca72e355c7e3d880e6409764d7
4
- data.tar.gz: d0448dd1f803ba631b7a71ca16cc9331dc9a7e52f7847bb55268001a9b5b153a
3
+ metadata.gz: 87ed84d86b5778bc272afdb158255b4bf807c799559d8d10a479d5c39c4d1220
4
+ data.tar.gz: cdf48955a9768156828d7f9750792d8615c94b1df34ab9ecaf824672df9e9116
5
5
  SHA512:
6
- metadata.gz: 622f9dd285c0082e028aa7ce7aab98b2482939d269eaaba5c3dc4aec546645c755926a974b3c6c1671e72d2157b3c723f9b280bc164baa2a5e6d95d9416f4680
7
- data.tar.gz: 43df8ffaa55b08aeb5c0d13bda4ff6110e6c12ed3104dcbfdbe4fa9745ab1253b61297557163fc666e6e9dfaa158648e1f945511b5211bd10982da1d7f26b6cf
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}] #{url}\r"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HttpSieve
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_sieve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Romero