uninterruptible 2.3.0 → 2.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b2930d6fcae73edfbb4d6f39cd6e5995304d8a5
4
- data.tar.gz: 6c22d922f5cd20810d5849d322af57bb69a22abe
3
+ metadata.gz: 658c5837ae17777ac2f5d53223b61941444c26ca
4
+ data.tar.gz: db14a041c27690a14565f5938255856b1bfde528
5
5
  SHA512:
6
- metadata.gz: 32742c8851a675116a8489b3f62b666eb0e1ede1ba54f9682d0c47287ead8d1ba6c4abe50bd9755f8bd1d579b35d20e880f3aa2b3328569cf45413104a322343
7
- data.tar.gz: 740993f1d8a5d940acd874ba3f990846dfde887dd26124fd0944f59ef7d542104890ed879b4cb7bc369a8248318ec2fb98932433ac7e556ef3efc97f0aa73de7
6
+ metadata.gz: 5421a7627be91b402d0189ae4791dbcce3c5a2d259ffbcaaa3177a4e577d18d1b7a384a86d700dcdf8ae493e872516593f25b4f83daea6dc020a5ea24b847417
7
+ data.tar.gz: 214ded520ee70b7c87fbf8ed9efaf139803830db02d294189a56d9c9f0ecc76277159599ac950abb1338642e300d38bcf9c624327563364e7ff4c9106fa9dd7e
@@ -31,7 +31,7 @@ module Uninterruptible
31
31
  #
32
32
  # @raise [Uninterruptible::ConfigurationError] Correct options are not set for network restrictions
33
33
  def check_configuration!
34
- unless configuration.bind.start_with?('tcp://')
34
+ if configuration.block_connections? && !configuration.bind.start_with?('tcp://')
35
35
  raise ConfigurationError, "Network restrictions can only be used on TCP servers"
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Uninterruptible
2
- VERSION = "2.3.0".freeze
2
+ VERSION = "2.3.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uninterruptible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Wentworth
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-16 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler