train 3.7.2 → 3.7.4

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: 7cc8b0938a9260b0b811cc132c94c8db514c59ab5fcabf88c07de31cdcc90f18
4
- data.tar.gz: 4a9404300b20e64dcfb65b1fdba7b92b992cdb2153952643abdc08870e8d4e0d
3
+ metadata.gz: 3a635c9c1309b6c1b95a92d535773aabf7d51f25957f454f683eaa09f8a86b52
4
+ data.tar.gz: 5af13a937a6c21279d4042ba244a9d31670f9bd184b81ee067178646675a8c66
5
5
  SHA512:
6
- metadata.gz: 85d5ffd5072c547c66fbadc86affdb1bcd305ad76b4c8ed9658e65bafdd0d936faadbe1071081447c3ab86f5085cca90c5b2a42fbfa7353c3c4e66fdabedb05a
7
- data.tar.gz: 3925c95d221b89e40810df95652ec91e2716957e92f60a2a69b872079b90719e96dfde2d88f53d23741f69cb8cf46f7aa40838394a2f5a809c910a497f31d905
6
+ metadata.gz: 6f9049829dad441bce260c1d600243d8ac98a38425a7bc52f4008b7b3363f4f1206825e097bf8d71ebc756e6cc0a5fb90b88d7d0aa09c3d1e37b4be2e22a0ffc
7
+ data.tar.gz: e92f42fcd4dc1b959a886dc90c89036df0b6e88b65cd33c9f96361a93f10fd93f44e8623b74f5ba96d7fc8eb49881ea576d19f8ee0a81e356065c19c8569a252
@@ -163,12 +163,10 @@ module Train::Transports
163
163
 
164
164
  def port_open?(port, seconds = 3)
165
165
  Timeout.timeout(seconds) do
166
- begin
167
- TCPSocket.new("localhost", port).close
168
- true
169
- rescue SystemCallError
170
- false
171
- end
166
+ TCPSocket.new("localhost", port).close
167
+ true
168
+ rescue SystemCallError
169
+ false
172
170
  end
173
171
  rescue Timeout::Error
174
172
  false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.2
4
+ version: 3.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef InSpec Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-24 00:00:00.000000000 Z
11
+ date: 2021-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: train-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.7.2
19
+ version: 3.7.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.7.2
26
+ version: 3.7.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train-winrm
29
29
  requirement: !ruby/object:Gem::Requirement