random-port 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: 5143c763f2fbc205a137c68cc6a2c9be7638fd1d9fc0fb5ca3f1ed4e58590bd9
4
- data.tar.gz: cfbc6e6536b6f62d86047692ca6c21e4a432ad3ec3a382f6c51a556c4e9fbe5b
3
+ metadata.gz: 9e01aea3fa1a1312743cb72b99efb0b681810fb1b55ebd1a485a448b6c02445a
4
+ data.tar.gz: 6b9ebc0d4c32fb2b5b7169df3a58099aad4c4b3861947737f1409d37a493b250
5
5
  SHA512:
6
- metadata.gz: 2eaf1625139da4ded0b4ddcb14be6820087ff4bf402d06f7f9df9751d8192341da563c2dcd3ab03f50c096d81ad5d1216acb670b818ed5ea3413221207d62adb
7
- data.tar.gz: f458beb3a250be31b57ffed39342ee51db825524c8611885e3f68f5730fc462d8453a386eced0b7fc53c2333c5b9e909af6be2f04d87cbda17a9db1918221d32
6
+ metadata.gz: 9f6a0ba81ed19487fd4950a55932820f23bc32b516a7844ca69f55b89129cfe5110a5339c5cee09f41cf6bc87d830f3351ed391d23f94ecaa83e4f3351b1b9b1
7
+ data.tar.gz: 765c02a047d1e153d41e9325efc481b36f09883536f71d19dc33eab3e1597e4b0b77774c3c29dc6b9544ee82e5c3f938679122e2c188d2fb940503fb2723abc0
@@ -48,6 +48,8 @@ module RandomPort
48
48
  # If can't acquire by time out.
49
49
  class Timeout < StandardError; end
50
50
 
51
+ attr_reader :limit
52
+
51
53
  # Ctor.
52
54
  def initialize(sync: false, limit: 65_536)
53
55
  @ports = []
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.rubygems_version = '2.3.3'
32
32
  s.required_ruby_version = '>=2.3'
33
33
  s.name = 'random-port'
34
- s.version = '0.4.1'
34
+ s.version = '0.4.2'
35
35
  s.license = 'MIT'
36
36
  s.summary = 'Random TCP port'
37
37
  s.description = 'Reserves a random TCP port'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: random-port
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
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov