libusb 0.3.4 → 0.4.0

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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Gemfile +1 -0
  5. data/History.md +10 -0
  6. data/README.md +19 -6
  7. data/Rakefile +1 -1
  8. data/ext/extconf.rb +17 -1
  9. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/AUTHORS +18 -6
  10. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/COPYING +0 -0
  11. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ChangeLog +58 -1
  12. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/INSTALL +0 -0
  13. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.am +6 -1
  14. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.in +248 -174
  15. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/NEWS +2 -2
  16. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/PORTING +0 -0
  17. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/README +2 -1
  18. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/TODO +0 -0
  19. data/ext/libusbx-1.0.17/Xcode/common.xcconfig +40 -0
  20. data/ext/libusbx-1.0.17/Xcode/config.h +28 -0
  21. data/ext/libusbx-1.0.17/Xcode/debug.xcconfig +29 -0
  22. data/ext/libusbx-1.0.17/Xcode/libusbx.xcconfig +21 -0
  23. data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +864 -0
  24. data/ext/libusbx-1.0.17/Xcode/libusbx_debug.xcconfig +21 -0
  25. data/ext/libusbx-1.0.17/Xcode/libusbx_release.xcconfig +21 -0
  26. data/ext/libusbx-1.0.17/Xcode/release.xcconfig +29 -0
  27. data/ext/libusbx-1.0.17/aclocal.m4 +1112 -0
  28. data/ext/libusbx-1.0.17/android/README +114 -0
  29. data/ext/libusbx-1.0.17/android/config.h +90 -0
  30. data/ext/libusbx-1.0.17/android/jni/Android.mk +23 -0
  31. data/ext/libusbx-1.0.17/android/jni/Application.mk +19 -0
  32. data/ext/libusbx-1.0.17/android/jni/examples.mk +134 -0
  33. data/ext/libusbx-1.0.17/android/jni/libusb.mk +54 -0
  34. data/ext/libusbx-1.0.17/android/jni/tests.mk +56 -0
  35. data/ext/libusbx-1.0.17/compile +347 -0
  36. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.guess +164 -130
  37. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.h.in +37 -1
  38. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.sub +174 -89
  39. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure +723 -302
  40. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure.ac +71 -20
  41. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/depcomp +345 -185
  42. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.am +0 -0
  43. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.in +95 -32
  44. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/doxygen.cfg.in +1 -1
  45. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.am +5 -4
  46. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.in +208 -104
  47. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp.c +1 -1
  48. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp_threaded.c +1 -1
  49. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.c +188 -8
  50. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.h +18 -5
  51. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/fxload.c +90 -64
  52. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.c +0 -0
  53. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.h +0 -0
  54. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt1.c +0 -0
  55. data/ext/libusbx-1.0.17/examples/hotplugtest.c +97 -0
  56. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/listdevs.c +12 -4
  57. data/ext/libusbx-1.0.17/examples/sam3u_benchmark.c +193 -0
  58. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/xusb.c +106 -49
  59. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/install-sh +21 -14
  60. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb-1.0.pc.in +1 -1
  61. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/Makefile.am +29 -10
  62. data/ext/libusbx-1.0.17/libusb/Makefile.in +914 -0
  63. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/core.c +378 -87
  64. data/ext/libusbx-1.0.17/libusb/descriptor.c +1199 -0
  65. data/ext/libusbx-1.0.17/libusb/hotplug.c +322 -0
  66. data/ext/libusbx-1.0.17/libusb/hotplug.h +82 -0
  67. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/io.c +182 -62
  68. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.def +32 -0
  69. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.rc +2 -0
  70. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb.h +481 -32
  71. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusbi.h +135 -38
  72. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.c +591 -496
  73. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.h +39 -46
  74. data/ext/libusbx-1.0.17/libusb/os/linux_netlink.c +345 -0
  75. data/ext/libusbx-1.0.17/libusb/os/linux_udev.c +306 -0
  76. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.c +653 -617
  77. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.h +32 -0
  78. data/ext/{libusbx-1.0.14/libusb/os/openbsd_usb.c → libusbx-1.0.17/libusb/os/netbsd_usb.c} +70 -63
  79. data/ext/libusbx-1.0.17/libusb/os/openbsd_usb.c +823 -0
  80. data/ext/libusbx-1.0.17/libusb/os/poll_posix.c +51 -0
  81. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_posix.h +2 -1
  82. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.c +85 -106
  83. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.h +14 -3
  84. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.c +3 -1
  85. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.h +0 -0
  86. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.c +6 -5
  87. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.h +0 -0
  88. data/ext/libusbx-1.0.17/libusb/os/wince_usb.c +1026 -0
  89. data/ext/libusbx-1.0.17/libusb/os/wince_usb.h +131 -0
  90. data/ext/libusbx-1.0.17/libusb/os/windows_common.h +108 -0
  91. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.c +92 -57
  92. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.h +2 -63
  93. data/ext/libusbx-1.0.17/libusb/strerror.c +184 -0
  94. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/sync.c +24 -38
  95. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/version.h +1 -1
  96. data/ext/libusbx-1.0.17/libusb/version_nano.h +1 -0
  97. data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ltmain.sh +60 -41
  98. data/ext/{libusbx-1.0.14/aclocal.m4 → libusbx-1.0.17/m4/libtool.m4} +229 -1723
  99. data/ext/libusbx-1.0.17/m4/ltoptions.m4 +384 -0
  100. data/ext/libusbx-1.0.17/m4/ltsugar.m4 +123 -0
  101. data/ext/libusbx-1.0.17/m4/ltversion.m4 +23 -0
  102. data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +98 -0
  103. data/ext/libusbx-1.0.17/missing +215 -0
  104. data/ext/libusbx-1.0.17/tests/Makefile.am +6 -0
  105. data/ext/libusbx-1.0.17/tests/Makefile.in +583 -0
  106. data/ext/libusbx-1.0.17/tests/libusbx_testlib.h +107 -0
  107. data/ext/libusbx-1.0.17/tests/stress.c +160 -0
  108. data/ext/libusbx-1.0.17/tests/testlib.c +276 -0
  109. data/lib/libusb.rb +4 -0
  110. data/lib/libusb/call.rb +43 -1
  111. data/lib/libusb/constants.rb +5 -0
  112. data/lib/libusb/context.rb +100 -0
  113. data/lib/libusb/dev_handle.rb +27 -0
  114. data/lib/libusb/device.rb +10 -4
  115. data/lib/libusb/version_gem.rb +1 -1
  116. data/test/test_libusb_capability.rb +2 -2
  117. data/test/test_libusb_compat.rb +2 -2
  118. data/test/test_libusb_compat_mass_storage.rb +2 -2
  119. data/test/test_libusb_descriptors.rb +4 -2
  120. data/test/test_libusb_event_machine.rb +2 -2
  121. data/test/test_libusb_gc.rb +2 -2
  122. data/test/test_libusb_hotplug.rb +115 -0
  123. data/test/test_libusb_iso_transfer.rb +3 -3
  124. data/test/test_libusb_mass_storage.rb +6 -16
  125. data/test/test_libusb_mass_storage2.rb +26 -3
  126. data/test/test_libusb_structs.rb +2 -2
  127. data/test/test_libusb_threads.rb +2 -2
  128. data/test/test_libusb_version.rb +2 -2
  129. metadata +127 -68
  130. metadata.gz.sig +0 -0
  131. data/ext/libusbx-1.0.14/THANKS +0 -7
  132. data/ext/libusbx-1.0.14/compile +0 -143
  133. data/ext/libusbx-1.0.14/libusb/Makefile.in +0 -721
  134. data/ext/libusbx-1.0.14/libusb/descriptor.c +0 -731
  135. data/ext/libusbx-1.0.14/libusb/version_nano.h +0 -1
  136. data/ext/libusbx-1.0.14/missing +0 -376
@@ -13,10 +13,10 @@
13
13
  # You should have received a copy of the GNU Lesser General Public License
14
14
  # along with Libusb for Ruby. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
- require "test/unit"
16
+ require "minitest/autorun"
17
17
  require "libusb"
18
18
 
19
- class TestLibusbIsoTransfer < Test::Unit::TestCase
19
+ class TestLibusbIsoTransfer < Minitest::Test
20
20
  include LIBUSB
21
21
 
22
22
  def setup
@@ -43,7 +43,7 @@ class TestLibusbIsoTransfer < Test::Unit::TestCase
43
43
  assert_equal 12, tr[7].length, "packet length should be set"
44
44
  assert_equal 13, tr[8].length, "packet length should be set"
45
45
 
46
- assert_raise(LIBUSB::ERROR_IO, "the randomly choosen device will probably not handle iso transfer") do
46
+ assert_raises(LIBUSB::ERROR_IO, "the randomly choosen device will probably not handle iso transfer") do
47
47
  tr.submit!
48
48
  end
49
49
  end
@@ -19,10 +19,10 @@
19
19
  # http://en.wikipedia.org/wiki/SCSI_command
20
20
  #
21
21
 
22
- require "test/unit"
22
+ require "minitest/autorun"
23
23
  require "libusb"
24
24
 
25
- class TestLibusbMassStorage < Test::Unit::TestCase
25
+ class TestLibusbMassStorage < Minitest::Test
26
26
  include LIBUSB
27
27
 
28
28
  class CSWError < RuntimeError; end
@@ -215,7 +215,7 @@ class TestLibusbMassStorage < Test::Unit::TestCase
215
215
  sleep 0.01
216
216
  end
217
217
  end
218
- assert_raise(LIBUSB::ERROR_TIMEOUT) do
218
+ assert_raises(LIBUSB::ERROR_TIMEOUT) do
219
219
  begin
220
220
  bulk_transfer(:endpoint=>endpoint_in, :dataIn=>123)
221
221
  rescue LIBUSB::ERROR_TIMEOUT => err
@@ -257,20 +257,10 @@ class TestLibusbMassStorage < Test::Unit::TestCase
257
257
  end
258
258
  end
259
259
 
260
- def test_attach_kernel_driver
261
- dev.release_interface(0)
262
- if RUBY_PLATFORM=~/linux/i
263
- dev.attach_kernel_driver(0)
264
- assert dev.kernel_driver_active?(0), "kernel driver should be active again"
265
- end
266
- dev.close
267
- @dev = nil
268
- end
269
-
270
260
  def test_wrong_argument
271
- assert_raise(ArgumentError){ dev.bulk_transfer(:endpoint=>endpoint_in, :dataOut=>"data") }
272
- assert_raise(ArgumentError){ dev.interrupt_transfer(:endpoint=>endpoint_in, :dataOut=>"data") }
273
- assert_raise(ArgumentError){ dev.control_transfer(
261
+ assert_raises(ArgumentError){ dev.bulk_transfer(:endpoint=>endpoint_in, :dataOut=>"data") }
262
+ assert_raises(ArgumentError){ dev.interrupt_transfer(:endpoint=>endpoint_in, :dataOut=>"data") }
263
+ assert_raises(ArgumentError){ dev.control_transfer(
274
264
  :bmRequestType=>ENDPOINT_OUT|REQUEST_TYPE_CLASS|RECIPIENT_INTERFACE,
275
265
  :bRequest=>BOMS_RESET,
276
266
  :wValue=>0, :wIndex=>0, :dataIn=>123) }
@@ -14,10 +14,10 @@
14
14
  # along with Libusb for Ruby. If not, see <http://www.gnu.org/licenses/>.
15
15
  #
16
16
 
17
- require "test/unit"
17
+ require "minitest/autorun"
18
18
  require "libusb"
19
19
 
20
- class TestLibusbMassStorage2 < Test::Unit::TestCase
20
+ class TestLibusbMassStorage2 < Minitest::Test
21
21
  include LIBUSB
22
22
 
23
23
  attr_accessor :usb
@@ -35,7 +35,6 @@ class TestLibusbMassStorage2 < Test::Unit::TestCase
35
35
  # Ensure kernel driver is detached
36
36
  device.open do |dev|
37
37
  if RUBY_PLATFORM=~/linux/i && dev.kernel_driver_active?(interface)
38
- assert dev.kernel_driver_active?(0), "DevHandle#kernel_driver_active? may be called with an Interface instance or a Fixnum"
39
38
  dev.detach_kernel_driver(interface)
40
39
  end
41
40
  end
@@ -70,4 +69,28 @@ class TestLibusbMassStorage2 < Test::Unit::TestCase
70
69
  end
71
70
  assert_equal 12345, res, "Block versions should pass through the result"
72
71
  end
72
+
73
+ def test_attach_kernel_driver
74
+ # Should work with both Fixnum and Interface parameter
75
+ [0, interface].each do |i|
76
+ device.open do |dev|
77
+ dev.attach_kernel_driver(i)
78
+ assert dev.kernel_driver_active?(i), "kernel driver should be active again"
79
+ dev.detach_kernel_driver(i)
80
+ refute dev.kernel_driver_active?(i), "kernel driver should be detached"
81
+ end
82
+ end
83
+ end
84
+
85
+ def test_auto_detach_kernel_driver
86
+ assert LIBUSB.has_capability?(:CAP_SUPPORTS_DETACH_KERNEL_DRIVER), "libusb should have CAP_SUPPORTS_DETACH_KERNEL_DRIVER"
87
+
88
+ device.open do |dev|
89
+ dev.attach_kernel_driver 0
90
+ assert dev.kernel_driver_active?(0), "kernel driver should attached, now"
91
+ dev.auto_detach_kernel_driver = true
92
+ dev.claim_interface(0)
93
+ refute dev.kernel_driver_active?(0), "kernel driver should get detached automatically"
94
+ end
95
+ end
73
96
  end
@@ -13,10 +13,10 @@
13
13
  # You should have received a copy of the GNU Lesser General Public License
14
14
  # along with Libusb for Ruby. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
- require "test/unit"
16
+ require "minitest/autorun"
17
17
  require "libusb"
18
18
 
19
- class TestLibusbStructs < Test::Unit::TestCase
19
+ class TestLibusbStructs < Minitest::Test
20
20
  def test_struct_Timeval
21
21
  s = LIBUSB::Call::Timeval.new
22
22
  assert_equal 0, s.in_ms
@@ -16,10 +16,10 @@
16
16
  # This test requires two connected, but not mounted mass storage device with
17
17
  # read/write access allowed.
18
18
 
19
- require "test/unit"
19
+ require "minitest/autorun"
20
20
  require "libusb"
21
21
 
22
- class TestLibusbThreads < Test::Unit::TestCase
22
+ class TestLibusbThreads < Minitest::Test
23
23
  include LIBUSB
24
24
 
25
25
  BOMS_GET_MAX_LUN = 0xFE
@@ -13,10 +13,10 @@
13
13
  # You should have received a copy of the GNU Lesser General Public License
14
14
  # along with Libusb for Ruby. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
- require "test/unit"
16
+ require "minitest/autorun"
17
17
  require "libusb"
18
18
 
19
- class TestLibusbVersion < Test::Unit::TestCase
19
+ class TestLibusbVersion < Minitest::Test
20
20
  def setup
21
21
  @v = LIBUSB.version
22
22
  end
metadata CHANGED
@@ -1,14 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libusb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Kanis
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2013-04-05 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
14
+ MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
15
+ GRYCZGUwHhcNMTMwMzExMjAyMjIyWhcNMTQwMzExMjAyMjIyWjBEMQ0wCwYDVQQD
16
+ DARsYXJzMR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZIm
17
+ iZPyLGQBGRYCZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZb4Uv
18
+ RFJfRu/VEWiy3psh2jinETjiuBrL0NeRFGf8H7iU9+gx/DI/FFhfHGLrDeIskrJx
19
+ YIWDMmEjVO10UUdj7wu4ZhmU++0Cd7Kq9/TyP/shIP3IjqHjVLCnJ3P6f1cl5rxZ
20
+ gqo+d3BAoDrmPk0rtaf6QopwUw9RBiF8V4HqvpiY+ruJotP5UQDP4/lVOKvA8PI9
21
+ P0GmVbFBrbc7Zt5h78N3UyOK0u+nvOC23BvyHXzCtcFsXCoEkt+Wwh0RFqVZdnjM
22
+ LMO2vULHKKHDdX54K/sbVCj9pN9h1aotNzrEyo55zxn0G9PHg/G3P8nMvAXPkUTe
23
+ brhXrfCwWRvOXA4TAgMBAAGjOTA3MAsGA1UdDwQEAwIEsDAJBgNVHRMEAjAAMB0G
24
+ A1UdDgQWBBRAHK81igrXodaDj8a8/BIKsaZrETANBgkqhkiG9w0BAQUFAAOCAQEA
25
+ Iswhcol3ytXthaUH3k5LopZ09viZrZHzAw0QleI3Opl/9QEGJ2BPV9+93iC0OrNL
26
+ hmnxig6vKK1EeJ5PHXJ8hOI3nTZBrOmQcEXNBqyToP1FHMWZqwZ8wiBPXtiCqDBR
27
+ ePQ25J9xFNzQ1ItgzNSpx5cs67QNKrx5woocoBHD6kStFbshZPJx4axl3GbUFQd5
28
+ H//3YdPQOH3jaVeUXhS+pz/gfbx8fhFAtsQ+855A3HO7g2ZRIg/atAp/0MFyn5s5
29
+ 0rq+VHOIPyvxF5khT0mYAcNmZTC8z1yPsqdgwfYNDjsSWwiIRSPUSmJRvfjM8hsW
30
+ mMFp4kPUHbWOqCp2mz9gCA==
31
+ -----END CERTIFICATE-----
32
+ date: 2013-11-20 00:00:00.000000000 Z
12
33
  dependencies:
13
34
  - !ruby/object:Gem::Dependency
14
35
  name: ffi
@@ -70,70 +91,106 @@ files:
70
91
  - README.md
71
92
  - Rakefile
72
93
  - ext/extconf.rb
73
- - ext/libusbx-1.0.14/AUTHORS
74
- - ext/libusbx-1.0.14/COPYING
75
- - ext/libusbx-1.0.14/ChangeLog
76
- - ext/libusbx-1.0.14/INSTALL
77
- - ext/libusbx-1.0.14/Makefile.am
78
- - ext/libusbx-1.0.14/Makefile.in
79
- - ext/libusbx-1.0.14/NEWS
80
- - ext/libusbx-1.0.14/PORTING
81
- - ext/libusbx-1.0.14/README
82
- - ext/libusbx-1.0.14/THANKS
83
- - ext/libusbx-1.0.14/TODO
84
- - ext/libusbx-1.0.14/aclocal.m4
85
- - ext/libusbx-1.0.14/compile
86
- - ext/libusbx-1.0.14/config.guess
87
- - ext/libusbx-1.0.14/config.h.in
88
- - ext/libusbx-1.0.14/config.sub
89
- - ext/libusbx-1.0.14/configure
90
- - ext/libusbx-1.0.14/configure.ac
91
- - ext/libusbx-1.0.14/depcomp
92
- - ext/libusbx-1.0.14/doc/Makefile.am
93
- - ext/libusbx-1.0.14/doc/Makefile.in
94
- - ext/libusbx-1.0.14/doc/doxygen.cfg.in
95
- - ext/libusbx-1.0.14/examples/Makefile.am
96
- - ext/libusbx-1.0.14/examples/Makefile.in
97
- - ext/libusbx-1.0.14/examples/dpfp.c
98
- - ext/libusbx-1.0.14/examples/dpfp_threaded.c
99
- - ext/libusbx-1.0.14/examples/ezusb.c
100
- - ext/libusbx-1.0.14/examples/ezusb.h
101
- - ext/libusbx-1.0.14/examples/fxload.c
102
- - ext/libusbx-1.0.14/examples/getopt/getopt.c
103
- - ext/libusbx-1.0.14/examples/getopt/getopt.h
104
- - ext/libusbx-1.0.14/examples/getopt/getopt1.c
105
- - ext/libusbx-1.0.14/examples/listdevs.c
106
- - ext/libusbx-1.0.14/examples/xusb.c
107
- - ext/libusbx-1.0.14/install-sh
108
- - ext/libusbx-1.0.14/libusb-1.0.pc.in
109
- - ext/libusbx-1.0.14/libusb/Makefile.am
110
- - ext/libusbx-1.0.14/libusb/Makefile.in
111
- - ext/libusbx-1.0.14/libusb/core.c
112
- - ext/libusbx-1.0.14/libusb/descriptor.c
113
- - ext/libusbx-1.0.14/libusb/io.c
114
- - ext/libusbx-1.0.14/libusb/libusb-1.0.def
115
- - ext/libusbx-1.0.14/libusb/libusb-1.0.rc
116
- - ext/libusbx-1.0.14/libusb/libusb.h
117
- - ext/libusbx-1.0.14/libusb/libusbi.h
118
- - ext/libusbx-1.0.14/libusb/os/darwin_usb.c
119
- - ext/libusbx-1.0.14/libusb/os/darwin_usb.h
120
- - ext/libusbx-1.0.14/libusb/os/linux_usbfs.c
121
- - ext/libusbx-1.0.14/libusb/os/linux_usbfs.h
122
- - ext/libusbx-1.0.14/libusb/os/openbsd_usb.c
123
- - ext/libusbx-1.0.14/libusb/os/poll_posix.h
124
- - ext/libusbx-1.0.14/libusb/os/poll_windows.c
125
- - ext/libusbx-1.0.14/libusb/os/poll_windows.h
126
- - ext/libusbx-1.0.14/libusb/os/threads_posix.c
127
- - ext/libusbx-1.0.14/libusb/os/threads_posix.h
128
- - ext/libusbx-1.0.14/libusb/os/threads_windows.c
129
- - ext/libusbx-1.0.14/libusb/os/threads_windows.h
130
- - ext/libusbx-1.0.14/libusb/os/windows_usb.c
131
- - ext/libusbx-1.0.14/libusb/os/windows_usb.h
132
- - ext/libusbx-1.0.14/libusb/sync.c
133
- - ext/libusbx-1.0.14/libusb/version.h
134
- - ext/libusbx-1.0.14/libusb/version_nano.h
135
- - ext/libusbx-1.0.14/ltmain.sh
136
- - ext/libusbx-1.0.14/missing
94
+ - ext/libusbx-1.0.17/AUTHORS
95
+ - ext/libusbx-1.0.17/COPYING
96
+ - ext/libusbx-1.0.17/ChangeLog
97
+ - ext/libusbx-1.0.17/INSTALL
98
+ - ext/libusbx-1.0.17/Makefile.am
99
+ - ext/libusbx-1.0.17/Makefile.in
100
+ - ext/libusbx-1.0.17/NEWS
101
+ - ext/libusbx-1.0.17/PORTING
102
+ - ext/libusbx-1.0.17/README
103
+ - ext/libusbx-1.0.17/TODO
104
+ - ext/libusbx-1.0.17/Xcode/common.xcconfig
105
+ - ext/libusbx-1.0.17/Xcode/config.h
106
+ - ext/libusbx-1.0.17/Xcode/debug.xcconfig
107
+ - ext/libusbx-1.0.17/Xcode/libusbx.xcconfig
108
+ - ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj
109
+ - ext/libusbx-1.0.17/Xcode/libusbx_debug.xcconfig
110
+ - ext/libusbx-1.0.17/Xcode/libusbx_release.xcconfig
111
+ - ext/libusbx-1.0.17/Xcode/release.xcconfig
112
+ - ext/libusbx-1.0.17/aclocal.m4
113
+ - ext/libusbx-1.0.17/android/README
114
+ - ext/libusbx-1.0.17/android/config.h
115
+ - ext/libusbx-1.0.17/android/jni/Android.mk
116
+ - ext/libusbx-1.0.17/android/jni/Application.mk
117
+ - ext/libusbx-1.0.17/android/jni/examples.mk
118
+ - ext/libusbx-1.0.17/android/jni/libusb.mk
119
+ - ext/libusbx-1.0.17/android/jni/tests.mk
120
+ - ext/libusbx-1.0.17/compile
121
+ - ext/libusbx-1.0.17/config.guess
122
+ - ext/libusbx-1.0.17/config.h.in
123
+ - ext/libusbx-1.0.17/config.sub
124
+ - ext/libusbx-1.0.17/configure
125
+ - ext/libusbx-1.0.17/configure.ac
126
+ - ext/libusbx-1.0.17/depcomp
127
+ - ext/libusbx-1.0.17/doc/Makefile.am
128
+ - ext/libusbx-1.0.17/doc/Makefile.in
129
+ - ext/libusbx-1.0.17/doc/doxygen.cfg.in
130
+ - ext/libusbx-1.0.17/examples/Makefile.am
131
+ - ext/libusbx-1.0.17/examples/Makefile.in
132
+ - ext/libusbx-1.0.17/examples/dpfp.c
133
+ - ext/libusbx-1.0.17/examples/dpfp_threaded.c
134
+ - ext/libusbx-1.0.17/examples/ezusb.c
135
+ - ext/libusbx-1.0.17/examples/ezusb.h
136
+ - ext/libusbx-1.0.17/examples/fxload.c
137
+ - ext/libusbx-1.0.17/examples/getopt/getopt.c
138
+ - ext/libusbx-1.0.17/examples/getopt/getopt.h
139
+ - ext/libusbx-1.0.17/examples/getopt/getopt1.c
140
+ - ext/libusbx-1.0.17/examples/hotplugtest.c
141
+ - ext/libusbx-1.0.17/examples/listdevs.c
142
+ - ext/libusbx-1.0.17/examples/sam3u_benchmark.c
143
+ - ext/libusbx-1.0.17/examples/xusb.c
144
+ - ext/libusbx-1.0.17/install-sh
145
+ - ext/libusbx-1.0.17/libusb-1.0.pc.in
146
+ - ext/libusbx-1.0.17/libusb/Makefile.am
147
+ - ext/libusbx-1.0.17/libusb/Makefile.in
148
+ - ext/libusbx-1.0.17/libusb/core.c
149
+ - ext/libusbx-1.0.17/libusb/descriptor.c
150
+ - ext/libusbx-1.0.17/libusb/hotplug.c
151
+ - ext/libusbx-1.0.17/libusb/hotplug.h
152
+ - ext/libusbx-1.0.17/libusb/io.c
153
+ - ext/libusbx-1.0.17/libusb/libusb-1.0.def
154
+ - ext/libusbx-1.0.17/libusb/libusb-1.0.rc
155
+ - ext/libusbx-1.0.17/libusb/libusb.h
156
+ - ext/libusbx-1.0.17/libusb/libusbi.h
157
+ - ext/libusbx-1.0.17/libusb/os/darwin_usb.c
158
+ - ext/libusbx-1.0.17/libusb/os/darwin_usb.h
159
+ - ext/libusbx-1.0.17/libusb/os/linux_netlink.c
160
+ - ext/libusbx-1.0.17/libusb/os/linux_udev.c
161
+ - ext/libusbx-1.0.17/libusb/os/linux_usbfs.c
162
+ - ext/libusbx-1.0.17/libusb/os/linux_usbfs.h
163
+ - ext/libusbx-1.0.17/libusb/os/netbsd_usb.c
164
+ - ext/libusbx-1.0.17/libusb/os/openbsd_usb.c
165
+ - ext/libusbx-1.0.17/libusb/os/poll_posix.c
166
+ - ext/libusbx-1.0.17/libusb/os/poll_posix.h
167
+ - ext/libusbx-1.0.17/libusb/os/poll_windows.c
168
+ - ext/libusbx-1.0.17/libusb/os/poll_windows.h
169
+ - ext/libusbx-1.0.17/libusb/os/threads_posix.c
170
+ - ext/libusbx-1.0.17/libusb/os/threads_posix.h
171
+ - ext/libusbx-1.0.17/libusb/os/threads_windows.c
172
+ - ext/libusbx-1.0.17/libusb/os/threads_windows.h
173
+ - ext/libusbx-1.0.17/libusb/os/wince_usb.c
174
+ - ext/libusbx-1.0.17/libusb/os/wince_usb.h
175
+ - ext/libusbx-1.0.17/libusb/os/windows_common.h
176
+ - ext/libusbx-1.0.17/libusb/os/windows_usb.c
177
+ - ext/libusbx-1.0.17/libusb/os/windows_usb.h
178
+ - ext/libusbx-1.0.17/libusb/strerror.c
179
+ - ext/libusbx-1.0.17/libusb/sync.c
180
+ - ext/libusbx-1.0.17/libusb/version.h
181
+ - ext/libusbx-1.0.17/libusb/version_nano.h
182
+ - ext/libusbx-1.0.17/ltmain.sh
183
+ - ext/libusbx-1.0.17/m4/libtool.m4
184
+ - ext/libusbx-1.0.17/m4/ltoptions.m4
185
+ - ext/libusbx-1.0.17/m4/ltsugar.m4
186
+ - ext/libusbx-1.0.17/m4/ltversion.m4
187
+ - ext/libusbx-1.0.17/m4/lt~obsolete.m4
188
+ - ext/libusbx-1.0.17/missing
189
+ - ext/libusbx-1.0.17/tests/Makefile.am
190
+ - ext/libusbx-1.0.17/tests/Makefile.in
191
+ - ext/libusbx-1.0.17/tests/libusbx_testlib.h
192
+ - ext/libusbx-1.0.17/tests/stress.c
193
+ - ext/libusbx-1.0.17/tests/testlib.c
137
194
  - lib/libusb.rb
138
195
  - lib/libusb/call.rb
139
196
  - lib/libusb/compat.rb
@@ -156,6 +213,7 @@ files:
156
213
  - test/test_libusb_descriptors.rb
157
214
  - test/test_libusb_event_machine.rb
158
215
  - test/test_libusb_gc.rb
216
+ - test/test_libusb_hotplug.rb
159
217
  - test/test_libusb_iso_transfer.rb
160
218
  - test/test_libusb_mass_storage.rb
161
219
  - test/test_libusb_mass_storage2.rb
@@ -184,8 +242,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
242
  version: '0'
185
243
  requirements: []
186
244
  rubyforge_project: libusb
187
- rubygems_version: 2.0.0.rc.2
245
+ rubygems_version: 2.0.3
188
246
  signing_key:
189
247
  specification_version: 4
190
248
  summary: Access USB devices from Ruby via libusb-1.0
191
249
  test_files: []
250
+ has_rdoc:
metadata.gz.sig ADDED
Binary file
@@ -1,7 +0,0 @@
1
- Development contributors are listed in the AUTHORS file. Community members who
2
- have also made significant contributions in other areas are listed below:
3
-
4
- Alan Stern
5
- Ludovic Rousseau
6
- Tim Roberts
7
- Xiaofan Chen
@@ -1,143 +0,0 @@
1
- #! /bin/sh
2
- # Wrapper for compilers which do not understand `-c -o'.
3
-
4
- scriptversion=2009-10-06.20; # UTC
5
-
6
- # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
7
- # Foundation, Inc.
8
- # Written by Tom Tromey <tromey@cygnus.com>.
9
- #
10
- # This program is free software; you can redistribute it and/or modify
11
- # it under the terms of the GNU General Public License as published by
12
- # the Free Software Foundation; either version 2, or (at your option)
13
- # any later version.
14
- #
15
- # This program is distributed in the hope that it will be useful,
16
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- # GNU General Public License for more details.
19
- #
20
- # You should have received a copy of the GNU General Public License
21
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
22
-
23
- # As a special exception to the GNU General Public License, if you
24
- # distribute this file as part of a program that contains a
25
- # configuration script generated by Autoconf, you may include it under
26
- # the same distribution terms that you use for the rest of that program.
27
-
28
- # This file is maintained in Automake, please report
29
- # bugs to <bug-automake@gnu.org> or send patches to
30
- # <automake-patches@gnu.org>.
31
-
32
- case $1 in
33
- '')
34
- echo "$0: No command. Try \`$0 --help' for more information." 1>&2
35
- exit 1;
36
- ;;
37
- -h | --h*)
38
- cat <<\EOF
39
- Usage: compile [--help] [--version] PROGRAM [ARGS]
40
-
41
- Wrapper for compilers which do not understand `-c -o'.
42
- Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
43
- arguments, and rename the output as expected.
44
-
45
- If you are trying to build a whole package this is not the
46
- right script to run: please start by reading the file `INSTALL'.
47
-
48
- Report bugs to <bug-automake@gnu.org>.
49
- EOF
50
- exit $?
51
- ;;
52
- -v | --v*)
53
- echo "compile $scriptversion"
54
- exit $?
55
- ;;
56
- esac
57
-
58
- ofile=
59
- cfile=
60
- eat=
61
-
62
- for arg
63
- do
64
- if test -n "$eat"; then
65
- eat=
66
- else
67
- case $1 in
68
- -o)
69
- # configure might choose to run compile as `compile cc -o foo foo.c'.
70
- # So we strip `-o arg' only if arg is an object.
71
- eat=1
72
- case $2 in
73
- *.o | *.obj)
74
- ofile=$2
75
- ;;
76
- *)
77
- set x "$@" -o "$2"
78
- shift
79
- ;;
80
- esac
81
- ;;
82
- *.c)
83
- cfile=$1
84
- set x "$@" "$1"
85
- shift
86
- ;;
87
- *)
88
- set x "$@" "$1"
89
- shift
90
- ;;
91
- esac
92
- fi
93
- shift
94
- done
95
-
96
- if test -z "$ofile" || test -z "$cfile"; then
97
- # If no `-o' option was seen then we might have been invoked from a
98
- # pattern rule where we don't need one. That is ok -- this is a
99
- # normal compilation that the losing compiler can handle. If no
100
- # `.c' file was seen then we are probably linking. That is also
101
- # ok.
102
- exec "$@"
103
- fi
104
-
105
- # Name of file we expect compiler to create.
106
- cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
107
-
108
- # Create the lock directory.
109
- # Note: use `[/\\:.-]' here to ensure that we don't use the same name
110
- # that we are using for the .o file. Also, base the name on the expected
111
- # object file name, since that is what matters with a parallel build.
112
- lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
113
- while true; do
114
- if mkdir "$lockdir" >/dev/null 2>&1; then
115
- break
116
- fi
117
- sleep 1
118
- done
119
- # FIXME: race condition here if user kills between mkdir and trap.
120
- trap "rmdir '$lockdir'; exit 1" 1 2 15
121
-
122
- # Run the compile.
123
- "$@"
124
- ret=$?
125
-
126
- if test -f "$cofile"; then
127
- test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
128
- elif test -f "${cofile}bj"; then
129
- test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
130
- fi
131
-
132
- rmdir "$lockdir"
133
- exit $ret
134
-
135
- # Local Variables:
136
- # mode: shell-script
137
- # sh-indentation: 2
138
- # eval: (add-hook 'write-file-hooks 'time-stamp)
139
- # time-stamp-start: "scriptversion="
140
- # time-stamp-format: "%:y-%02m-%02d.%02H"
141
- # time-stamp-time-zone: "UTC"
142
- # time-stamp-end: "; # UTC"
143
- # End: