reversed 0.4.1 → 0.4.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: dd9f6328cbd5be97594a5bae2f2a48506628cf6fcf17924408442647cccc27e2
4
- data.tar.gz: 5adcd195cfd69de89460f51c2306058e124f41d5db714a2970cf4ef555bf13c0
3
+ metadata.gz: 7b38ef6ac048b44ecefdebe3a9eeae19cb76d2cdad5d03535e175da267c03eb3
4
+ data.tar.gz: b341d25f2d60f239bdc4c8b01e9415d9f862790acbd41e4ff55720dc21d0cc80
5
5
  SHA512:
6
- metadata.gz: b67e975eee622d55fdd878888e7e1049091f253a50aceb388d9b943bb71d738d13107752b014c07fbb418c67a29b81377ca18cb8732fe6e7758bfeb96c94e34f
7
- data.tar.gz: 797949b1d5ce6a8535bbe63b28e9f565e887cc205aaf719b81e33f3b6b28f57c1e73404f0a50a3f96f343565d4c3ccc4417423069fd3fbaf765952651b6f3c66
6
+ metadata.gz: c2feaa96527df5e165c87642ff1a4b74e8713d1cc2f6ebbc1d9bdf0c20cc26c17d2684383c9ee6d22a76011ff3fd805591b629124860cf861a2f980dbe74be15
7
+ data.tar.gz: 602179691e1db8288df87c0ae650b2d24786df7e698ad281ec8cfe8c4170423bb1baf495d6db857cd52e78c2e0363399dd25b8c8bcb61dfc91e6ec7bc7e08e4f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.2 (2023-01-10)
2
+
3
+ - Fixed error with timeout with Ruby 3.1+
4
+
1
5
  ## 0.4.1 (2022-12-28)
2
6
 
3
7
  - Added `fallback` option
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2022 Andrew Kane
1
+ Copyright (c) 2016-2023 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -38,7 +38,7 @@ Set nameservers
38
38
  Reversed.lookup(ip, nameservers: ["1.1.1.1"])
39
39
  ```
40
40
 
41
- Disable SOA fallback (only check PTR record) [unreleased]
41
+ Disable SOA fallback (only check PTR record)
42
42
 
43
43
  ```ruby
44
44
  Reversed.lookup(ip, fallback: false)
@@ -1,3 +1,3 @@
1
1
  module Reversed
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
data/lib/reversed.rb CHANGED
@@ -42,3 +42,11 @@ module Reversed
42
42
  end
43
43
  end
44
44
  end
45
+
46
+ # not ideal, but fixes error on timeout with Ruby 3.1+
47
+ # (which removed TimeoutError)
48
+ # need to define rather than rescue NameError
49
+ # to allow for multiple nameservers to be checked
50
+ # define here rather than for duration of search method for thread-safety
51
+ # apply to all Ruby versions to fix deprecation warnings
52
+ Net::DNS::Resolver::TimeoutError = Timeout::Error
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reversed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-28 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-dns