libusb 0.3.3-x86-mingw32 → 0.3.4-x86-mingw32

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: d2c894dae24af0c81cbd13674b7d617eade2b4ea
4
- data.tar.gz: 866da61a097f24465d196786f7fffe7bc333e1f8
3
+ metadata.gz: 5eb7b9496ecfb580df1770a1cbf7b5e3ba71998b
4
+ data.tar.gz: 7498ba012bb5c0ed90633ae9d47a9527032cdce6
5
5
  SHA512:
6
- metadata.gz: 766589c249ee17b352fa7d5488f08c4f6551ee95c80efdfa326771e51dac53b683c1bfb1d55cbe9e7ba6d1e447a861ba35bd21f6978f25d385c12c805bfdfcb4
7
- data.tar.gz: 4251831f5ed597ed1ac458dd3b041d037cb2bd61b27cb44c3e7ae19b78eebb4d2de002e062c1fec3b3589f8d01bd44283e57e9047d681a46ed799eba37383374
6
+ metadata.gz: 501b4f798c2ee75724f5c9e3fa5eb534ededae87a868241dca7cbd1edb052b5c1926c6de5c1ffcd5464f0b8b8d6a71c8b84d993e52c305bcfea1e0272fb9f19e
7
+ data.tar.gz: b1cd8bd6a03bc8d53550b976429b7a25acabeae45dcb71f0a5067c15f8f3b6455ff7e7737476560e23af00ab2ca1968c4fa81aee9527acacffe668d49aba9f90
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: x86-mingw32
6
6
  authors:
7
7
  - Lars Kanis