libusb 0.3.3-x64-mingw32 → 0.3.4-x64-mingw32

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: 0d18541f453e558cf50d82137a307dfda9752beb
4
- data.tar.gz: a5e5bee3ff8935925240f3dd7efc1883050da5fe
3
+ metadata.gz: 8574ced09a4724959aa505bfdabb5954b8fcd6dc
4
+ data.tar.gz: fbc1e8fad6243fc3c6f2e6e5ee77e46d2df768c7
5
5
  SHA512:
6
- metadata.gz: 569c2f1906fbaf6b533c9f386ec3072f4f73352562d16c22722c87ff7b9404f009745bbbc74ba49ca2e2ff677f13885f66e7eccf0e8c5716b936835697afe06d
7
- data.tar.gz: 2df95cfe0d73ac4ecd4047f147a0385ff253849eaadbe788417a5bdc5fcd64b259eb38af311d9a5746bb1aeef43c143ae29a664d5a3258f6b2a44702982447ff
6
+ metadata.gz: 0da496f019922da5c226c3e49921b0d301fbcafd00042bb82847f5c01a1d63007050a6ebfb74a5f61dd75145ee2ae4220313c7fc53a5b0bcffff10c6cda28079
7
+ data.tar.gz: 08f447cb62b881f9dfc1f917a98bc748d242842037320f6779ce73adaad69178286f10d0e4ce5263bd99ff7d90289da08aeb70223f7fc181232676dee4fa5c01
@@ -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: x64-mingw32
6
6
  authors:
7
7
  - Lars Kanis