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.
- data/.gitignore +8 -0
- data/.travis.yml +10 -0
- data/.yardopts +6 -1
- data/Gemfile +16 -0
- data/{History.txt → History.md} +28 -16
- data/README.md +144 -0
- data/Rakefile +28 -24
- data/ext/extconf.rb +33 -0
- data/ext/libusbx-1.0.14/AUTHORS +50 -0
- data/ext/libusbx-1.0.14/COPYING +504 -0
- data/ext/libusbx-1.0.14/ChangeLog +139 -0
- data/ext/libusbx-1.0.14/INSTALL +234 -0
- data/ext/libusbx-1.0.14/Makefile.am +23 -0
- data/ext/libusbx-1.0.14/Makefile.in +803 -0
- data/ext/libusbx-1.0.14/NEWS +2 -0
- data/ext/libusbx-1.0.14/PORTING +94 -0
- data/ext/libusbx-1.0.14/README +28 -0
- data/ext/libusbx-1.0.14/THANKS +7 -0
- data/ext/libusbx-1.0.14/TODO +2 -0
- data/ext/libusbx-1.0.14/aclocal.m4 +9480 -0
- data/ext/libusbx-1.0.14/compile +143 -0
- data/ext/libusbx-1.0.14/config.guess +1501 -0
- data/ext/libusbx-1.0.14/config.h.in +116 -0
- data/ext/libusbx-1.0.14/config.sub +1705 -0
- data/ext/libusbx-1.0.14/configure +14818 -0
- data/ext/libusbx-1.0.14/configure.ac +230 -0
- data/ext/libusbx-1.0.14/depcomp +630 -0
- data/ext/libusbx-1.0.14/doc/Makefile.am +9 -0
- data/ext/libusbx-1.0.14/doc/Makefile.in +380 -0
- data/ext/libusbx-1.0.14/doc/doxygen.cfg.in +1288 -0
- data/ext/libusbx-1.0.14/examples/Makefile.am +18 -0
- data/ext/libusbx-1.0.14/examples/Makefile.in +596 -0
- data/ext/libusbx-1.0.14/examples/dpfp.c +506 -0
- data/ext/libusbx-1.0.14/examples/dpfp_threaded.c +544 -0
- data/ext/libusbx-1.0.14/examples/ezusb.c +616 -0
- data/ext/libusbx-1.0.14/examples/ezusb.h +107 -0
- data/ext/libusbx-1.0.14/examples/fxload.c +261 -0
- data/ext/libusbx-1.0.14/examples/getopt/getopt.c +1060 -0
- data/ext/libusbx-1.0.14/examples/getopt/getopt.h +180 -0
- data/ext/libusbx-1.0.14/examples/getopt/getopt1.c +188 -0
- data/ext/libusbx-1.0.14/examples/listdevs.c +63 -0
- data/ext/libusbx-1.0.14/examples/xusb.c +1036 -0
- data/ext/libusbx-1.0.14/install-sh +520 -0
- data/ext/libusbx-1.0.14/libusb-1.0.pc.in +11 -0
- data/ext/libusbx-1.0.14/libusb/Makefile.am +56 -0
- data/ext/libusbx-1.0.14/libusb/Makefile.in +721 -0
- data/ext/libusbx-1.0.14/libusb/core.c +1951 -0
- data/ext/libusbx-1.0.14/libusb/descriptor.c +731 -0
- data/ext/libusbx-1.0.14/libusb/io.c +2450 -0
- data/ext/libusbx-1.0.14/libusb/libusb-1.0.def +126 -0
- data/ext/libusbx-1.0.14/libusb/libusb-1.0.rc +59 -0
- data/ext/libusbx-1.0.14/libusb/libusb.h +1506 -0
- data/ext/libusbx-1.0.14/libusb/libusbi.h +910 -0
- data/ext/libusbx-1.0.14/libusb/os/darwin_usb.c +1807 -0
- data/ext/libusbx-1.0.14/libusb/os/darwin_usb.h +169 -0
- data/ext/libusbx-1.0.14/libusb/os/linux_usbfs.c +2569 -0
- data/ext/libusbx-1.0.14/libusb/os/linux_usbfs.h +149 -0
- data/ext/libusbx-1.0.14/libusb/os/openbsd_usb.c +727 -0
- data/ext/libusbx-1.0.14/libusb/os/poll_posix.h +10 -0
- data/ext/libusbx-1.0.14/libusb/os/poll_windows.c +747 -0
- data/ext/libusbx-1.0.14/libusb/os/poll_windows.h +114 -0
- data/ext/libusbx-1.0.14/libusb/os/threads_posix.c +80 -0
- data/ext/libusbx-1.0.14/libusb/os/threads_posix.h +50 -0
- data/ext/libusbx-1.0.14/libusb/os/threads_windows.c +211 -0
- data/ext/libusbx-1.0.14/libusb/os/threads_windows.h +87 -0
- data/ext/libusbx-1.0.14/libusb/os/windows_usb.c +4369 -0
- data/ext/libusbx-1.0.14/libusb/os/windows_usb.h +979 -0
- data/ext/libusbx-1.0.14/libusb/sync.c +321 -0
- data/ext/libusbx-1.0.14/libusb/version.h +18 -0
- data/ext/libusbx-1.0.14/libusb/version_nano.h +1 -0
- data/ext/libusbx-1.0.14/ltmain.sh +9636 -0
- data/ext/libusbx-1.0.14/missing +376 -0
- data/lib/libusb.rb +2 -3
- data/lib/libusb/call.rb +49 -7
- data/lib/libusb/compat.rb +15 -9
- data/lib/libusb/configuration.rb +15 -3
- data/lib/libusb/constants.rb +19 -6
- data/lib/libusb/context.rb +181 -3
- data/lib/libusb/dev_handle.rb +91 -40
- data/lib/libusb/endpoint.rb +41 -14
- data/lib/libusb/eventmachine.rb +183 -0
- data/lib/libusb/transfer.rb +21 -8
- data/lib/libusb/version_gem.rb +19 -0
- data/lib/libusb/{version.rb → version_struct.rb} +0 -0
- data/libusb.gemspec +31 -0
- data/test/test_libusb_compat.rb +1 -1
- data/test/test_libusb_compat_mass_storage.rb +2 -2
- data/test/test_libusb_descriptors.rb +1 -1
- data/test/test_libusb_event_machine.rb +118 -0
- data/test/test_libusb_iso_transfer.rb +6 -1
- data/test/test_libusb_mass_storage.rb +9 -3
- data/test/test_libusb_mass_storage2.rb +1 -1
- data/test/test_libusb_structs.rb +45 -0
- data/test/test_libusb_threads.rb +89 -0
- data/test/test_libusb_version.rb +4 -0
- metadata +109 -44
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/Manifest.txt +0 -3
- data/README.rdoc +0 -115
- 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
|
-
|
|
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
|
-
|
|
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(
|
|
219
|
-
|
|
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
|
-
|
|
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
|
data/test/test_libusb_version.rb
CHANGED
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.
|
|
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:
|
|
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:
|
|
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:
|
|
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: '
|
|
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:
|
|
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:
|
|
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:
|
|
49
|
-
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: '
|
|
53
|
+
version: '0'
|
|
55
54
|
type: :development
|
|
56
55
|
prerelease: false
|
|
57
|
-
version_requirements:
|
|
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
|
-
-
|
|
65
|
+
- lars@greiz-reinsdorf.de
|
|
62
66
|
executables: []
|
|
63
|
-
extensions:
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
extensions:
|
|
68
|
+
- ext/extconf.rb
|
|
69
|
+
extra_rdoc_files: []
|
|
66
70
|
files:
|
|
67
|
-
- .
|
|
68
|
-
- .
|
|
71
|
+
- .gitignore
|
|
72
|
+
- .travis.yml
|
|
69
73
|
- .yardopts
|
|
70
74
|
- COPYING
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
- README.
|
|
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/
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|