useful_utilities 5.5.0 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/useful_utilities/api.rb +7 -1
- data/lib/useful_utilities/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2edc4f41fc8f7da803304c1e5031d848ab711689bad084b6fed7023aa61b29c7
|
4
|
+
data.tar.gz: ca3f8c2015aefbf3339ec300804aa2fc3931b205369aa5e7d992605dd0b68e0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29cf2d4ede6e67e099fb9a2ea383ceaa61bfaf9de06bd4a84ec5365d798a06ac259dfebc8bfef9b42584145c091a09c442ae1c183be45772386f79d37728d482
|
7
|
+
data.tar.gz: 47a994aad14cda73ec7719ad94d2f680ccc50ccc2a59480582dac7258a4b6988ea43243eed753e899c273e23358e1ce9e2bd61a41d6208fed4d96318e78e2d3d
|
data/lib/useful_utilities/api.rb
CHANGED
@@ -8,7 +8,13 @@ module UsefulUtilities
|
|
8
8
|
|
9
9
|
# @note Exceptions to handle
|
10
10
|
# @see #port_open?
|
11
|
-
RESCUE_PORT_OPEN_EXCEPTIONS = [
|
11
|
+
RESCUE_PORT_OPEN_EXCEPTIONS = [
|
12
|
+
Errno::ENETUNREACH,
|
13
|
+
Errno::ECONNREFUSED,
|
14
|
+
Errno::EHOSTUNREACH,
|
15
|
+
Errno::ECONNRESET,
|
16
|
+
SocketError,
|
17
|
+
Timeout::Error].freeze
|
12
18
|
|
13
19
|
# @param value [Numeric]
|
14
20
|
# @return [FalseClass/Numeric] false if value is infinity or value if not
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: useful_utilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.5.
|
4
|
+
version: 5.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OnApp Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.7.7
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Helpful methods for time, sizes, hashes etc.
|