rex-core 0.1.7 → 0.1.8

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: 3fea71cce3fd3ae9a66a3b497a925eccc514b1a6
4
- data.tar.gz: d61bbc5425e6e5de99060906ede476a48710aeed
3
+ metadata.gz: fe8590b94c2d83e5e579288caa8acf87f81dea6a
4
+ data.tar.gz: 7680842301f654a9dd1151f197e337e9b12d8958
5
5
  SHA512:
6
- metadata.gz: 6e4ffd7648d8d4f4eb0a5207fd47e6bbc93cc1e0630b9af30424fc084a2fe6e4b4a4623d000b78e9afae55b9f8113b0fd4aff772d754057c54ae80918c25dac5
7
- data.tar.gz: 3f6dac207d4b9608928a6be3076898bf865f78f8dcb471586d0b8f58defb36b7dde41fa846ffb27ae3dd36540e9663b532f06141ac2987d89cc160cd76ceba8f
6
+ metadata.gz: de691c345a7a435b7831e6ee800cc19ed4f8ceb785313cf2c51600e6cf8b9ecbb8d007e1f86efc04f2e80916060e44284a7c6557bb7c8e7ba4ac3708b036f8d4
7
+ data.tar.gz: c293aa280cb07dae26cf8aea992a474ff057505f1242fe7db4a341963181a639804123507029dca67f1690762280cc65e01c0471b68ba35a87141fd4c2eabb50
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Core
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ module Rex
11
11
  ###
12
12
  module ThreadSafe
13
13
 
14
- DefaultCycle = 0.2
14
+ DEFAULT_CYCLE = 0.2
15
15
 
16
16
  #
17
17
  # Wraps calls to select with a lower timeout period and does the
@@ -33,7 +33,7 @@ module ThreadSafe
33
33
 
34
34
  # Poll the set supplied to us at least once.
35
35
  begin
36
- rv = ::IO.select(rfd, wfd, efd, DefaultCycle)
36
+ rv = ::IO.select(rfd, wfd, efd, [left || DEFAULT_CYCLE, DEFAULT_CYCLE].min)
37
37
  rescue ::IOError, ::Errno::EBADF, ::Errno::ENOTSOCK
38
38
  # If a stream was detected as being closed, re-raise the error as
39
39
  # a StreamClosedError with the specific file descriptor that was
@@ -59,7 +59,7 @@ module ThreadSafe
59
59
  return rv if (rv)
60
60
 
61
61
  # Decrement the amount of time left by the polling cycle
62
- left -= DefaultCycle if (left)
62
+ left -= DEFAULT_CYCLE if (left)
63
63
 
64
64
  # Keep chugging until we run out of time, if time was supplied.
65
65
  end while ((left == nil) or (left > 0))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
@@ -88,7 +88,7 @@ cert_chain:
88
88
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
89
89
  8mVuTXnyJOKRJA==
90
90
  -----END CERTIFICATE-----
91
- date: 2017-02-07 00:00:00.000000000 Z
91
+ date: 2017-03-30 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: bundler
metadata.gz.sig CHANGED
Binary file