libusb 0.2.2 → 0.3.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 (101) hide show
  1. data/.gitignore +8 -0
  2. data/.travis.yml +10 -0
  3. data/.yardopts +6 -1
  4. data/Gemfile +16 -0
  5. data/{History.txt → History.md} +28 -16
  6. data/README.md +144 -0
  7. data/Rakefile +28 -24
  8. data/ext/extconf.rb +33 -0
  9. data/ext/libusbx-1.0.14/AUTHORS +50 -0
  10. data/ext/libusbx-1.0.14/COPYING +504 -0
  11. data/ext/libusbx-1.0.14/ChangeLog +139 -0
  12. data/ext/libusbx-1.0.14/INSTALL +234 -0
  13. data/ext/libusbx-1.0.14/Makefile.am +23 -0
  14. data/ext/libusbx-1.0.14/Makefile.in +803 -0
  15. data/ext/libusbx-1.0.14/NEWS +2 -0
  16. data/ext/libusbx-1.0.14/PORTING +94 -0
  17. data/ext/libusbx-1.0.14/README +28 -0
  18. data/ext/libusbx-1.0.14/THANKS +7 -0
  19. data/ext/libusbx-1.0.14/TODO +2 -0
  20. data/ext/libusbx-1.0.14/aclocal.m4 +9480 -0
  21. data/ext/libusbx-1.0.14/compile +143 -0
  22. data/ext/libusbx-1.0.14/config.guess +1501 -0
  23. data/ext/libusbx-1.0.14/config.h.in +116 -0
  24. data/ext/libusbx-1.0.14/config.sub +1705 -0
  25. data/ext/libusbx-1.0.14/configure +14818 -0
  26. data/ext/libusbx-1.0.14/configure.ac +230 -0
  27. data/ext/libusbx-1.0.14/depcomp +630 -0
  28. data/ext/libusbx-1.0.14/doc/Makefile.am +9 -0
  29. data/ext/libusbx-1.0.14/doc/Makefile.in +380 -0
  30. data/ext/libusbx-1.0.14/doc/doxygen.cfg.in +1288 -0
  31. data/ext/libusbx-1.0.14/examples/Makefile.am +18 -0
  32. data/ext/libusbx-1.0.14/examples/Makefile.in +596 -0
  33. data/ext/libusbx-1.0.14/examples/dpfp.c +506 -0
  34. data/ext/libusbx-1.0.14/examples/dpfp_threaded.c +544 -0
  35. data/ext/libusbx-1.0.14/examples/ezusb.c +616 -0
  36. data/ext/libusbx-1.0.14/examples/ezusb.h +107 -0
  37. data/ext/libusbx-1.0.14/examples/fxload.c +261 -0
  38. data/ext/libusbx-1.0.14/examples/getopt/getopt.c +1060 -0
  39. data/ext/libusbx-1.0.14/examples/getopt/getopt.h +180 -0
  40. data/ext/libusbx-1.0.14/examples/getopt/getopt1.c +188 -0
  41. data/ext/libusbx-1.0.14/examples/listdevs.c +63 -0
  42. data/ext/libusbx-1.0.14/examples/xusb.c +1036 -0
  43. data/ext/libusbx-1.0.14/install-sh +520 -0
  44. data/ext/libusbx-1.0.14/libusb-1.0.pc.in +11 -0
  45. data/ext/libusbx-1.0.14/libusb/Makefile.am +56 -0
  46. data/ext/libusbx-1.0.14/libusb/Makefile.in +721 -0
  47. data/ext/libusbx-1.0.14/libusb/core.c +1951 -0
  48. data/ext/libusbx-1.0.14/libusb/descriptor.c +731 -0
  49. data/ext/libusbx-1.0.14/libusb/io.c +2450 -0
  50. data/ext/libusbx-1.0.14/libusb/libusb-1.0.def +126 -0
  51. data/ext/libusbx-1.0.14/libusb/libusb-1.0.rc +59 -0
  52. data/ext/libusbx-1.0.14/libusb/libusb.h +1506 -0
  53. data/ext/libusbx-1.0.14/libusb/libusbi.h +910 -0
  54. data/ext/libusbx-1.0.14/libusb/os/darwin_usb.c +1807 -0
  55. data/ext/libusbx-1.0.14/libusb/os/darwin_usb.h +169 -0
  56. data/ext/libusbx-1.0.14/libusb/os/linux_usbfs.c +2569 -0
  57. data/ext/libusbx-1.0.14/libusb/os/linux_usbfs.h +149 -0
  58. data/ext/libusbx-1.0.14/libusb/os/openbsd_usb.c +727 -0
  59. data/ext/libusbx-1.0.14/libusb/os/poll_posix.h +10 -0
  60. data/ext/libusbx-1.0.14/libusb/os/poll_windows.c +747 -0
  61. data/ext/libusbx-1.0.14/libusb/os/poll_windows.h +114 -0
  62. data/ext/libusbx-1.0.14/libusb/os/threads_posix.c +80 -0
  63. data/ext/libusbx-1.0.14/libusb/os/threads_posix.h +50 -0
  64. data/ext/libusbx-1.0.14/libusb/os/threads_windows.c +211 -0
  65. data/ext/libusbx-1.0.14/libusb/os/threads_windows.h +87 -0
  66. data/ext/libusbx-1.0.14/libusb/os/windows_usb.c +4369 -0
  67. data/ext/libusbx-1.0.14/libusb/os/windows_usb.h +979 -0
  68. data/ext/libusbx-1.0.14/libusb/sync.c +321 -0
  69. data/ext/libusbx-1.0.14/libusb/version.h +18 -0
  70. data/ext/libusbx-1.0.14/libusb/version_nano.h +1 -0
  71. data/ext/libusbx-1.0.14/ltmain.sh +9636 -0
  72. data/ext/libusbx-1.0.14/missing +376 -0
  73. data/lib/libusb.rb +2 -3
  74. data/lib/libusb/call.rb +49 -7
  75. data/lib/libusb/compat.rb +15 -9
  76. data/lib/libusb/configuration.rb +15 -3
  77. data/lib/libusb/constants.rb +19 -6
  78. data/lib/libusb/context.rb +181 -3
  79. data/lib/libusb/dev_handle.rb +91 -40
  80. data/lib/libusb/endpoint.rb +41 -14
  81. data/lib/libusb/eventmachine.rb +183 -0
  82. data/lib/libusb/transfer.rb +21 -8
  83. data/lib/libusb/version_gem.rb +19 -0
  84. data/lib/libusb/{version.rb → version_struct.rb} +0 -0
  85. data/libusb.gemspec +31 -0
  86. data/test/test_libusb_compat.rb +1 -1
  87. data/test/test_libusb_compat_mass_storage.rb +2 -2
  88. data/test/test_libusb_descriptors.rb +1 -1
  89. data/test/test_libusb_event_machine.rb +118 -0
  90. data/test/test_libusb_iso_transfer.rb +6 -1
  91. data/test/test_libusb_mass_storage.rb +9 -3
  92. data/test/test_libusb_mass_storage2.rb +1 -1
  93. data/test/test_libusb_structs.rb +45 -0
  94. data/test/test_libusb_threads.rb +89 -0
  95. data/test/test_libusb_version.rb +4 -0
  96. metadata +109 -44
  97. data/.autotest +0 -23
  98. data/.gemtest +0 -0
  99. data/Manifest.txt +0 -3
  100. data/README.rdoc +0 -115
  101. data/test/test_libusb_keyboard.rb +0 -50
@@ -21,7 +21,12 @@ class TestLibusbIsoTransfer < Test::Unit::TestCase
21
21
 
22
22
  def setup
23
23
  c = Context.new
24
- @dev = c.devices.first.open
24
+ begin
25
+ @dev = c.devices.first.open
26
+ rescue LIBUSB::ERROR_ACCESS
27
+ @dev = nil
28
+ skip "error opening device"
29
+ end
25
30
  end
26
31
 
27
32
  def teardown
@@ -41,7 +41,7 @@ class TestLibusbMassStorage < Test::Unit::TestCase
41
41
  @asynchron = false
42
42
 
43
43
  @device = usb.devices( :bClass=>CLASS_MASS_STORAGE, :bSubClass=>[0x06,0x01], :bProtocol=>0x50 ).last
44
- abort "no mass storage device found" unless @device
44
+ skip "no mass storage device found" unless @device
45
45
 
46
46
  @endpoint_in = @device.endpoints.find{|ep| ep.bEndpointAddress&ENDPOINT_IN != 0 }
47
47
  @endpoint_out = @device.endpoints.find{|ep| ep.bEndpointAddress&ENDPOINT_IN == 0 }
@@ -215,9 +215,15 @@ class TestLibusbMassStorage < Test::Unit::TestCase
215
215
  sleep 0.01
216
216
  end
217
217
  end
218
- assert_raise(CSWError, LIBUSB::ERROR_TIMEOUT) do
219
- bulk_transfer(:endpoint=>endpoint_in, :dataIn=>123)
218
+ assert_raise(LIBUSB::ERROR_TIMEOUT) do
219
+ begin
220
+ bulk_transfer(:endpoint=>endpoint_in, :dataIn=>123)
221
+ rescue LIBUSB::ERROR_TIMEOUT => err
222
+ assert_kind_of String, err.transferred
223
+ raise
224
+ end
220
225
  end
226
+
221
227
  th.kill
222
228
  dev.clear_halt(endpoint_in)
223
229
  dev.clear_halt(endpoint_out)
@@ -28,7 +28,7 @@ class TestLibusbMassStorage2 < Test::Unit::TestCase
28
28
  @usb = Context.new
29
29
  @usb.debug = 3
30
30
  @device = usb.devices( :bClass=>CLASS_MASS_STORAGE, :bSubClass=>[0x06,0x01], :bProtocol=>0x50 ).last
31
- abort "no mass storage device found" unless @device
31
+ skip "no mass storage device found" unless @device
32
32
 
33
33
  @interface = device.interfaces.first
34
34
 
@@ -0,0 +1,45 @@
1
+ # This file is part of Libusb for Ruby.
2
+ #
3
+ # Libusb for Ruby is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # Libusb for Ruby is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with Libusb for Ruby. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ require "test/unit"
17
+ require "libusb"
18
+
19
+ class TestLibusbStructs < Test::Unit::TestCase
20
+ def test_struct_Timeval
21
+ s = LIBUSB::Call::Timeval.new
22
+ assert_equal 0, s.in_ms
23
+ s.in_ms = 12345678
24
+ assert_equal 12345, s[:tv_sec]
25
+ assert_equal 678000, s[:tv_usec]
26
+ assert_equal 12345678, s.in_ms
27
+
28
+ s.in_s = 1234.5678
29
+ assert_equal 1234, s[:tv_sec]
30
+ assert_equal 567800, s[:tv_usec]
31
+ assert_equal 1234.5678, s.in_s
32
+ end
33
+
34
+ def test_struct_CompletionFlag
35
+ s = LIBUSB::Context::CompletionFlag.new
36
+ assert_equal 0, s[:completed]
37
+ assert_equal false, s.completed?
38
+ s.completed = true
39
+ assert_equal 1, s[:completed]
40
+ assert_equal true, s.completed?
41
+ s.completed = false
42
+ assert_equal false, s.completed?
43
+ assert_equal 0, s[:completed]
44
+ end
45
+ end
@@ -0,0 +1,89 @@
1
+ # This file is part of Libusb for Ruby.
2
+ #
3
+ # Libusb for Ruby is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # Libusb for Ruby is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with Libusb for Ruby. If not, see <http://www.gnu.org/licenses/>.
15
+ #
16
+ # This test requires two connected, but not mounted mass storage device with
17
+ # read/write access allowed.
18
+
19
+ require "test/unit"
20
+ require "libusb"
21
+
22
+ class TestLibusbThreads < Test::Unit::TestCase
23
+ include LIBUSB
24
+
25
+ BOMS_GET_MAX_LUN = 0xFE
26
+
27
+ attr_accessor :usb
28
+ attr_accessor :devices
29
+ attr_accessor :devs
30
+ attr_accessor :endpoints_in
31
+ attr_accessor :endpoints_out
32
+
33
+ def setup
34
+ @usb = Context.new
35
+ @usb.debug = 3
36
+
37
+ @devices = usb.devices( :bClass=>CLASS_MASS_STORAGE, :bSubClass=>[0x06,0x01], :bProtocol=>0x50 )
38
+ skip "less than two mass storage devices found" unless @devices.length >= 2
39
+
40
+ @devs = @devices.map do |device|
41
+ dev = device.open
42
+ if RUBY_PLATFORM=~/linux/i && dev.kernel_driver_active?(0)
43
+ dev.detach_kernel_driver(0)
44
+ end
45
+ dev.claim_interface(0)
46
+ dev
47
+ end
48
+
49
+ @endpoints_in = {}
50
+ @endpoints_out = {}
51
+
52
+ @devs.each do |dev|
53
+ @endpoints_in[dev] = dev.device.endpoints.find{|ep| ep.bEndpointAddress&ENDPOINT_IN != 0 }
54
+ @endpoints_out[dev] = dev.device.endpoints.find{|ep| ep.bEndpointAddress&ENDPOINT_IN == 0 }
55
+ end
56
+
57
+ Thread.abort_on_exception = true
58
+ end
59
+
60
+ def teardown
61
+ if devs
62
+ devs.each do |dev|
63
+ dev.release_interface(0)
64
+ dev.close
65
+ end
66
+ end
67
+ end
68
+
69
+ def thread_worker(dev)
70
+ endpoint = endpoints_in[dev]
71
+ 1.times do
72
+ st = Time.now
73
+ assert_raise LIBUSB::ERROR_TIMEOUT do
74
+ dev.bulk_transfer(:endpoint=>endpoint, :dataIn=>123, :timeout=>100)
75
+ end
76
+ assert_operator Time.now-st, :<, 5
77
+ dev.clear_halt(endpoint)
78
+ end
79
+ end
80
+
81
+ def test_sync_api
82
+ threads = devs.map do |dev|
83
+ Thread.new do
84
+ thread_worker(dev)
85
+ end
86
+ end
87
+ threads.map(&:join)
88
+ end
89
+ end
@@ -33,4 +33,8 @@ class TestLibusbVersion < Test::Unit::TestCase
33
33
  assert_match(/^\d+\.\d+\.\d+/, @v.to_s)
34
34
  assert_match(/^#<LIBUSB::Version \d+\.\d+\.\d+/, @v.inspect)
35
35
  end
36
+
37
+ def test_gem_version_string
38
+ assert_match(/^\d+\.\d+\.\d+/, LIBUSB::VERSION)
39
+ end
36
40
  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.2.2
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-19 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &18919580 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,15 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18919580
25
- - !ruby/object:Gem::Dependency
26
- name: rdoc
27
- requirement: &18918980 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
- - - ~>
27
+ - - ! '>='
31
28
  - !ruby/object:Gem::Version
32
- version: '3.10'
33
- type: :development
34
- prerelease: false
35
- version_requirements: *18918980
29
+ version: '1.0'
36
30
  - !ruby/object:Gem::Dependency
37
31
  name: rake-compiler
38
- requirement: &18918460 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
34
  requirements:
41
35
  - - ! '>='
@@ -43,35 +37,110 @@ dependencies:
43
37
  version: '0.6'
44
38
  type: :development
45
39
  prerelease: false
46
- version_requirements: *18918460
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0.6'
47
46
  - !ruby/object:Gem::Dependency
48
- name: hoe
49
- requirement: &18917960 !ruby/object:Gem::Requirement
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
50
49
  none: false
51
50
  requirements:
52
- - - ~>
51
+ - - ! '>='
53
52
  - !ruby/object:Gem::Version
54
- version: '3.0'
53
+ version: '0'
55
54
  type: :development
56
55
  prerelease: false
57
- version_requirements: *18917960
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
58
62
  description: LIBUSB is a Ruby binding that gives Ruby programmers access to arbitrary
59
63
  USB devices
60
64
  email:
61
- - kanis@comcard.de
65
+ - lars@greiz-reinsdorf.de
62
66
  executables: []
63
- extensions: []
64
- extra_rdoc_files:
65
- - README.rdoc
67
+ extensions:
68
+ - ext/extconf.rb
69
+ extra_rdoc_files: []
66
70
  files:
67
- - .autotest
68
- - .gemtest
71
+ - .gitignore
72
+ - .travis.yml
69
73
  - .yardopts
70
74
  - COPYING
71
- - History.txt
72
- - Manifest.txt
73
- - README.rdoc
75
+ - Gemfile
76
+ - History.md
77
+ - README.md
74
78
  - Rakefile
79
+ - ext/extconf.rb
80
+ - ext/libusbx-1.0.14/AUTHORS
81
+ - ext/libusbx-1.0.14/COPYING
82
+ - ext/libusbx-1.0.14/ChangeLog
83
+ - ext/libusbx-1.0.14/INSTALL
84
+ - ext/libusbx-1.0.14/Makefile.am
85
+ - ext/libusbx-1.0.14/Makefile.in
86
+ - ext/libusbx-1.0.14/NEWS
87
+ - ext/libusbx-1.0.14/PORTING
88
+ - ext/libusbx-1.0.14/README
89
+ - ext/libusbx-1.0.14/THANKS
90
+ - ext/libusbx-1.0.14/TODO
91
+ - ext/libusbx-1.0.14/aclocal.m4
92
+ - ext/libusbx-1.0.14/compile
93
+ - ext/libusbx-1.0.14/config.guess
94
+ - ext/libusbx-1.0.14/config.h.in
95
+ - ext/libusbx-1.0.14/config.sub
96
+ - ext/libusbx-1.0.14/configure
97
+ - ext/libusbx-1.0.14/configure.ac
98
+ - ext/libusbx-1.0.14/depcomp
99
+ - ext/libusbx-1.0.14/doc/Makefile.am
100
+ - ext/libusbx-1.0.14/doc/Makefile.in
101
+ - ext/libusbx-1.0.14/doc/doxygen.cfg.in
102
+ - ext/libusbx-1.0.14/examples/Makefile.am
103
+ - ext/libusbx-1.0.14/examples/Makefile.in
104
+ - ext/libusbx-1.0.14/examples/dpfp.c
105
+ - ext/libusbx-1.0.14/examples/dpfp_threaded.c
106
+ - ext/libusbx-1.0.14/examples/ezusb.c
107
+ - ext/libusbx-1.0.14/examples/ezusb.h
108
+ - ext/libusbx-1.0.14/examples/fxload.c
109
+ - ext/libusbx-1.0.14/examples/getopt/getopt.c
110
+ - ext/libusbx-1.0.14/examples/getopt/getopt.h
111
+ - ext/libusbx-1.0.14/examples/getopt/getopt1.c
112
+ - ext/libusbx-1.0.14/examples/listdevs.c
113
+ - ext/libusbx-1.0.14/examples/xusb.c
114
+ - ext/libusbx-1.0.14/install-sh
115
+ - ext/libusbx-1.0.14/libusb-1.0.pc.in
116
+ - ext/libusbx-1.0.14/libusb/Makefile.am
117
+ - ext/libusbx-1.0.14/libusb/Makefile.in
118
+ - ext/libusbx-1.0.14/libusb/core.c
119
+ - ext/libusbx-1.0.14/libusb/descriptor.c
120
+ - ext/libusbx-1.0.14/libusb/io.c
121
+ - ext/libusbx-1.0.14/libusb/libusb-1.0.def
122
+ - ext/libusbx-1.0.14/libusb/libusb-1.0.rc
123
+ - ext/libusbx-1.0.14/libusb/libusb.h
124
+ - ext/libusbx-1.0.14/libusb/libusbi.h
125
+ - ext/libusbx-1.0.14/libusb/os/darwin_usb.c
126
+ - ext/libusbx-1.0.14/libusb/os/darwin_usb.h
127
+ - ext/libusbx-1.0.14/libusb/os/linux_usbfs.c
128
+ - ext/libusbx-1.0.14/libusb/os/linux_usbfs.h
129
+ - ext/libusbx-1.0.14/libusb/os/openbsd_usb.c
130
+ - ext/libusbx-1.0.14/libusb/os/poll_posix.h
131
+ - ext/libusbx-1.0.14/libusb/os/poll_windows.c
132
+ - ext/libusbx-1.0.14/libusb/os/poll_windows.h
133
+ - ext/libusbx-1.0.14/libusb/os/threads_posix.c
134
+ - ext/libusbx-1.0.14/libusb/os/threads_posix.h
135
+ - ext/libusbx-1.0.14/libusb/os/threads_windows.c
136
+ - ext/libusbx-1.0.14/libusb/os/threads_windows.h
137
+ - ext/libusbx-1.0.14/libusb/os/windows_usb.c
138
+ - ext/libusbx-1.0.14/libusb/os/windows_usb.h
139
+ - ext/libusbx-1.0.14/libusb/sync.c
140
+ - ext/libusbx-1.0.14/libusb/version.h
141
+ - ext/libusbx-1.0.14/libusb/version_nano.h
142
+ - ext/libusbx-1.0.14/ltmain.sh
143
+ - ext/libusbx-1.0.14/missing
75
144
  - lib/libusb.rb
76
145
  - lib/libusb/call.rb
77
146
  - lib/libusb/compat.rb
@@ -81,26 +150,31 @@ files:
81
150
  - lib/libusb/dev_handle.rb
82
151
  - lib/libusb/device.rb
83
152
  - lib/libusb/endpoint.rb
153
+ - lib/libusb/eventmachine.rb
84
154
  - lib/libusb/interface.rb
85
155
  - lib/libusb/setting.rb
86
156
  - lib/libusb/transfer.rb
87
- - lib/libusb/version.rb
157
+ - lib/libusb/version_gem.rb
158
+ - lib/libusb/version_struct.rb
159
+ - libusb.gemspec
88
160
  - test/test_libusb_capability.rb
89
161
  - test/test_libusb_compat.rb
90
162
  - test/test_libusb_compat_mass_storage.rb
91
163
  - test/test_libusb_descriptors.rb
164
+ - test/test_libusb_event_machine.rb
92
165
  - test/test_libusb_gc.rb
93
166
  - test/test_libusb_iso_transfer.rb
94
167
  - test/test_libusb_mass_storage.rb
95
168
  - test/test_libusb_mass_storage2.rb
169
+ - test/test_libusb_structs.rb
170
+ - test/test_libusb_threads.rb
96
171
  - test/test_libusb_version.rb
97
- - test/test_libusb_keyboard.rb
98
- homepage:
172
+ homepage: http://github.com/larskanis/libusb
99
173
  licenses: []
100
174
  post_install_message:
101
175
  rdoc_options:
102
176
  - --main
103
- - README.rdoc
177
+ - README.md
104
178
  - --charset=UTF-8
105
179
  require_paths:
106
180
  - lib
@@ -118,18 +192,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
192
  version: '0'
119
193
  requirements: []
120
194
  rubyforge_project: libusb
121
- rubygems_version: 1.8.10
195
+ rubygems_version: 1.8.24
122
196
  signing_key:
123
197
  specification_version: 3
124
198
  summary: Access USB devices from Ruby via libusb-1.0
125
- test_files:
126
- - test/test_libusb_keyboard.rb
127
- - test/test_libusb_gc.rb
128
- - test/test_libusb_mass_storage2.rb
129
- - test/test_libusb_capability.rb
130
- - test/test_libusb_iso_transfer.rb
131
- - test/test_libusb_mass_storage.rb
132
- - test/test_libusb_compat.rb
133
- - test/test_libusb_compat_mass_storage.rb
134
- - test/test_libusb_version.rb
135
- - test/test_libusb_descriptors.rb
199
+ test_files: []
200
+ has_rdoc:
data/.autotest DELETED
@@ -1,23 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'autotest/restart'
4
-
5
- # Autotest.add_hook :initialize do |at|
6
- # at.extra_files << "../some/external/dependency.rb"
7
- #
8
- # at.libs << ":../some/external"
9
- #
10
- # at.add_exception 'vendor'
11
- #
12
- # at.add_mapping(/dependency.rb/) do |f, _|
13
- # at.files_matching(/test_.*rb$/)
14
- # end
15
- #
16
- # %w(TestA TestB).each do |klass|
17
- # at.extra_class_map[klass] = "test/test_misc.rb"
18
- # end
19
- # end
20
-
21
- # Autotest.add_hook :run_command do |at|
22
- # system "rake build"
23
- # end