rangescan 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: bacbfd805037d62c75718f21ef09116eb30a675606267959c9008b6a23c11607
4
- data.tar.gz: 60c0236c232a57d66a72e7926e820b8a0940b20d4bdd5970c2dd5dccdef2bfd5
3
+ metadata.gz: '091f1965640f47e7388f95a42cc9e787c417fe10431e136d4b1d53903741a7ce'
4
+ data.tar.gz: 1bfe329bab43732f42a3ba8416e0bf3ffa9f357684d5c18f2658c19e2670af1b
5
5
  SHA512:
6
- metadata.gz: 3cf068f8884b6abf3231ae183a9190573d9371ec3054a66ee5fe85e9ed5babf5dcf3ff7ffc1f7e9ded672bc99e128fee3ec37023fb47f5e124c73afeefd30570
7
- data.tar.gz: aa5cb7c38d41199fec63a3b04b0456e20fe36a6cf51a95fa8870fe5220e00c1ea11e277a5dc7810c8fb9c5a7e6528dbb40cd4fdfe7a7f6f05b9c5923427f9bbf
6
+ metadata.gz: 04a9e7acda25595b2b05efa506a2a9c21364804bda569e3af281399ba46785df6b99625319dfd539ae40a7c0bd06d0a5084a34f47c8d01796703ba325e4228c1
7
+ data.tar.gz: '079ec52307a9e18f86baffd3510ec1db8d3cc16f291e68ade601d38a6e0949a9dd8d4c827f10bf9fb43c90d6e9958d6852de99107b73a2f036d49e56c46e995f'
@@ -11,7 +11,11 @@ module RangeScan
11
11
  def filter(results)
12
12
  results.select do |result|
13
13
  body = result.dig(:body) || ""
14
- body =~ regexp
14
+ begin
15
+ body =~ regexp
16
+ rescue ArgumentError, Encoding::CompatibilityError
17
+ false
18
+ end
15
19
  end
16
20
  end
17
21
  end
@@ -52,7 +52,7 @@ module RangeScan
52
52
  headers: res.headers.to_h,
53
53
  body: res.body.to_s
54
54
  }
55
- rescue StandardError
55
+ rescue OpenSSL::SSL::SSLError, HTTP::Error, Addressable::URI::InvalidURIError
56
56
  nil
57
57
  end
58
58
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RangeScan
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rangescan
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
  - Manabu Niseki