libusb 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/History.md +4 -0
- data/lib/libusb/context.rb +4 -1
- data/lib/libusb/version_gem.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1425207f83b268ee1050a13374313d26266e9240
|
4
|
+
data.tar.gz: f99a0d6169f80df3159d9c2c2c1cfcd1d51355dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dba59042db5e982c7440f4a94d824e3385e58290fb2d45223fdb9ce7b4665da92c9ea55cab1d416932b9f5a276e740c8680b4774d0d483270f9794c484056356
|
7
|
+
data.tar.gz: 0533627d303ef38c49d0735faee36df039c69b4919580dbed3fe599bcac5bf200878483c8550c48af08d7bd7b1c577ad1ec45cb178e7de2584812dbe68b663ad
|
data/.travis.yml
CHANGED
data/History.md
CHANGED
data/lib/libusb/context.rb
CHANGED
@@ -31,7 +31,10 @@ module LIBUSB
|
|
31
31
|
|
32
32
|
# @return [IO] IO object bound to the file descriptor.
|
33
33
|
def io
|
34
|
-
IO.new @fd
|
34
|
+
rio = IO.new @fd
|
35
|
+
# autoclose is available in Ruby-1.9+ only
|
36
|
+
rio.autoclose = false if rio.respond_to?( :autoclose= )
|
37
|
+
rio
|
35
38
|
end
|
36
39
|
|
37
40
|
# @return [Integer] Numeric file descriptor
|
data/lib/libusb/version_gem.rb
CHANGED