async 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/version.rb +1 -1
- data/lib/async/wrapper.rb +4 -0
- data/spec/async/wrapper_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c453be8cbd3dc65bb808ad0757c8bfcf713c21419d031dae45ca6f79ab15538c
|
4
|
+
data.tar.gz: 0bc5b188d86f1b41a7cf7ee5feb394d93ec29aa1b80d603b962db6c1642bd33a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca7bb807f50d1657d1e1727ca73817567358e2bc15776fe80d9cb9111cf2e2679e70d17bde9b29fe09baa7bfefef3621991282e18118b894e41109b611786c3
|
7
|
+
data.tar.gz: 937b4cf7109b3252a65e80f9fe42bdbbb0f5468302ff3b9fef8f67e96dae96f47a0d865a016732bafa445fcaf2799a4e6649ae62e738be852ea881d18eafb197
|
data/lib/async/version.rb
CHANGED
data/lib/async/wrapper.rb
CHANGED
data/spec/async/wrapper_spec.rb
CHANGED
@@ -167,6 +167,18 @@ RSpec.describe Async::Wrapper do
|
|
167
167
|
end
|
168
168
|
end
|
169
169
|
|
170
|
+
describe '#dup' do
|
171
|
+
let(:dup) {input.dup}
|
172
|
+
|
173
|
+
it 'dups the underlying io' do
|
174
|
+
expect(dup.io).to_not eq input.io
|
175
|
+
|
176
|
+
dup.close
|
177
|
+
|
178
|
+
expect(input).to_not be_closed
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
170
182
|
describe '#close' do
|
171
183
|
it "closes monitor when closing wrapper" do
|
172
184
|
input.wait_writable
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nio4r
|