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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c66fa9a97ecf163d05713d9e124447d8de0cef6e
4
- data.tar.gz: 54c7ec8a19d226fbbd21fec0f2d0372252ba691c
3
+ metadata.gz: 1425207f83b268ee1050a13374313d26266e9240
4
+ data.tar.gz: f99a0d6169f80df3159d9c2c2c1cfcd1d51355dd
5
5
  SHA512:
6
- metadata.gz: 7da5f1b663be5de6dd92d4d5c1e8487cfb8238d83e6e94201e4771bf378c82ff998fbcf55b8d568ae329f9de0165fcbdc064953523212c45eed19059735adedb
7
- data.tar.gz: eacb7067b56c6e454178679e880b986a0f393b1548f111e5ad9eba3cc5f256c222f70c616dc4bcb5fcee2d0c205286486ca23f9bafb62d3960536443359a5e81
6
+ metadata.gz: dba59042db5e982c7440f4a94d824e3385e58290fb2d45223fdb9ce7b4665da92c9ea55cab1d416932b9f5a276e740c8680b4774d0d483270f9794c484056356
7
+ data.tar.gz: 0533627d303ef38c49d0735faee36df039c69b4919580dbed3fe599bcac5bf200878483c8550c48af08d7bd7b1c577ad1ec45cb178e7de2584812dbe68b663ad
data/.travis.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - "1.8.7"
4
- - "1.9.2"
5
4
  - "1.9.3"
5
+ - "2.0.0"
6
6
  - jruby-18mode # JRuby in 1.8 mode
7
7
  - jruby-19mode # JRuby in 1.9 mode
8
8
  - rbx-18mode
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.3.4 / 2013-04-05
2
+ ------------------
3
+ * Avoid closing of pollfds by the Ruby GC when used as IO object.
4
+
1
5
  0.3.3 / 2013-04-05
2
6
  ------------------
3
7
  * Build and package binary x64 version of libusb for Windows in addition to x86.
@@ -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
@@ -15,5 +15,5 @@
15
15
 
16
16
  module LIBUSB
17
17
  # Library version of libusb for Ruby
18
- VERSION = "0.3.3"
18
+ VERSION = "0.3.4"
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libusb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Kanis