libusb 0.6.4 → 0.7.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -0
- data/.appveyor.yml +33 -0
- data/.github/workflows/ci.yml +185 -0
- data/.gitignore +1 -0
- data/.travis.yml +12 -7
- data/Gemfile +4 -1
- data/History.md +38 -0
- data/README.md +29 -4
- data/Rakefile +41 -12
- data/ext/extconf.rb +1 -0
- data/lib/libusb/bos.rb +85 -29
- data/lib/libusb/call.rb +132 -16
- data/lib/libusb/configuration.rb +3 -4
- data/lib/libusb/constants.rb +4 -0
- data/lib/libusb/context.rb +176 -35
- data/lib/libusb/context_reference.rb +38 -0
- data/lib/libusb/dependencies.rb +2 -2
- data/lib/libusb/dev_handle.rb +34 -24
- data/lib/libusb/device.rb +50 -8
- data/lib/libusb/endpoint.rb +3 -2
- data/lib/libusb/eventmachine.rb +8 -4
- data/lib/libusb/gem_helper.rb +8 -5
- data/lib/libusb/libusb_recipe.rb +2 -3
- data/lib/libusb/ss_companion.rb +9 -6
- data/lib/libusb/transfer.rb +10 -6
- data/lib/libusb/version_gem.rb +1 -1
- data/lib/libusb.rb +106 -18
- data/libusb.gemspec +1 -5
- data/ports/archives/libusb-1.0.27.tar.bz2 +0 -0
- data/test/test_libusb_bos.rb +22 -0
- data/test/test_libusb_bulk_stream_transfer.rb +23 -12
- data/test/test_libusb_context.rb +47 -0
- data/test/test_libusb_descriptors.rb +44 -11
- data/test/test_libusb_gc.rb +15 -0
- data/test/test_libusb_hotplug.rb +3 -1
- data/test/test_libusb_iso_transfer.rb +6 -0
- data/test/test_libusb_mass_storage.rb +6 -6
- data.tar.gz.sig +0 -0
- metadata +34 -67
- metadata.gz.sig +3 -0
- data/appveyor.yml +0 -36
- data/ports/archives/libusb-1.0.22.tar.bz2 +0 -0
metadata
CHANGED
@@ -1,14 +1,38 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libusb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Kanis
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
9
|
+
cert_chain:
|
10
|
+
- |
|
11
|
+
-----BEGIN CERTIFICATE-----
|
12
|
+
MIIEBDCCAmygAwIBAgIBAzANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJz
|
13
|
+
L0RDPWdyZWl6LXJlaW5zZG9yZi9EQz1kZTAeFw0yNDAyMjgxOTMxNDdaFw0yNTAy
|
14
|
+
MjcxOTMxNDdaMCgxJjAkBgNVBAMMHWxhcnMvREM9Z3JlaXotcmVpbnNkb3JmL0RD
|
15
|
+
PWRlMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAwum6Y1KznfpzXOT/
|
16
|
+
mZgJTBbxZuuZF49Fq3K0WA67YBzNlDv95qzSp7V/7Ek3NCcnT7G+2kSuhNo1FhdN
|
17
|
+
eSDO/moYebZNAcu3iqLsuzuULXPLuoU0GsMnVMqV9DZPh7cQHE5EBZ7hlzDBK7k/
|
18
|
+
8nBMvR0mHo77kIkapHc26UzVq/G0nKLfDsIHXVylto3PjzOumjG6GhmFN4r3cP6e
|
19
|
+
SDfl1FSeRYVpt4kmQULz/zdSaOH3AjAq7PM2Z91iGwQvoUXMANH2v89OWjQO/NHe
|
20
|
+
JMNDFsmHK/6Ji4Kk48Z3TyscHQnipAID5GhS1oD21/WePdj7GhmbF5gBzkV5uepd
|
21
|
+
eJQPgWGwrQW/Z2oPjRuJrRofzWfrMWqbOahj9uth6WSxhNexUtbjk6P8emmXOJi5
|
22
|
+
chQPnWX+N3Gj+jjYxqTFdwT7Mj3pv1VHa+aNUbqSPpvJeDyxRIuo9hvzDaBHb/Cg
|
23
|
+
9qRVcm8a96n4t7y2lrX1oookY6bkBaxWOMtWlqIprq8JZXM9AgMBAAGjOTA3MAkG
|
24
|
+
A1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQ4h1tIyvdUWtMI739xMzTR
|
25
|
+
7EfMFzANBgkqhkiG9w0BAQsFAAOCAYEArBmHSfnUyNWf3R1Fx0mMHloWGdcKn2D2
|
26
|
+
BsqTApXU2nADiyppIqRq4b9e7hw342uzadSLkoQcEFOxThLRhAcijoWfQVBcsbV/
|
27
|
+
ZsCY1qlUTIJuSWxaSyS4efUX+N4eMNyPM9oW/sphlWFo0DgI34Y9WB6HDzH+O71y
|
28
|
+
R7PARke3f4kYnRJf5yRQLPDrH9UYt9KlBQm6l7XMtr5EMnQt0EfcmZEi9H4t/vS2
|
29
|
+
haxvpFMdAKo4H46GBYNO96r6b74t++vgQSBTg/AFVwvRZwNSrPPcBfb4xxeEAhRR
|
30
|
+
x+LU7feIH7lZ//3buiyD03gLAEtHXai0Y+/VfuWIpwYJAl2BO/tU7FS/dtbJq9oc
|
31
|
+
dI36Yyzy+BrCM0WT4oCsagePNb97FaNhl4F6sM5JEPT0ZPxRx0i3G4TNNIYziVos
|
32
|
+
5wFER6XhvvLDFAMh/jMg+s7Wd5SbSHgHNSUaUGVtdWkVPOer6oF0aLdZUR3CETkn
|
33
|
+
5nWXZma/BUd3YgYA/Xumc6QQqIS4p7mr
|
34
|
+
-----END CERTIFICATE-----
|
35
|
+
date: 2024-04-18 00:00:00.000000000 Z
|
12
36
|
dependencies:
|
13
37
|
- !ruby/object:Gem::Dependency
|
14
38
|
name: ffi
|
@@ -38,62 +62,6 @@ dependencies:
|
|
38
62
|
- - "~>"
|
39
63
|
- !ruby/object:Gem::Version
|
40
64
|
version: '2.1'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake-compiler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake-compiler-dock
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.2'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.2'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: bundler
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: yard
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.6'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.6'
|
97
65
|
description: LIBUSB is a Ruby binding that gives Ruby programmers access to arbitrary
|
98
66
|
USB devices
|
99
67
|
email:
|
@@ -103,6 +71,8 @@ extensions:
|
|
103
71
|
- ext/extconf.rb
|
104
72
|
extra_rdoc_files: []
|
105
73
|
files:
|
74
|
+
- ".appveyor.yml"
|
75
|
+
- ".github/workflows/ci.yml"
|
106
76
|
- ".gitignore"
|
107
77
|
- ".travis.yml"
|
108
78
|
- ".yardopts"
|
@@ -111,7 +81,6 @@ files:
|
|
111
81
|
- History.md
|
112
82
|
- README.md
|
113
83
|
- Rakefile
|
114
|
-
- appveyor.yml
|
115
84
|
- ext/extconf.rb
|
116
85
|
- lib/libusb.rb
|
117
86
|
- lib/libusb/bos.rb
|
@@ -120,6 +89,7 @@ files:
|
|
120
89
|
- lib/libusb/configuration.rb
|
121
90
|
- lib/libusb/constants.rb
|
122
91
|
- lib/libusb/context.rb
|
92
|
+
- lib/libusb/context_reference.rb
|
123
93
|
- lib/libusb/dependencies.rb
|
124
94
|
- lib/libusb/dev_handle.rb
|
125
95
|
- lib/libusb/device.rb
|
@@ -135,7 +105,7 @@ files:
|
|
135
105
|
- lib/libusb/version_gem.rb
|
136
106
|
- lib/libusb/version_struct.rb
|
137
107
|
- libusb.gemspec
|
138
|
-
- ports/archives/libusb-1.0.
|
108
|
+
- ports/archives/libusb-1.0.27.tar.bz2
|
139
109
|
- test/test_libusb.rb
|
140
110
|
- test/test_libusb_bos.rb
|
141
111
|
- test/test_libusb_bulk_stream_transfer.rb
|
@@ -157,7 +127,6 @@ licenses:
|
|
157
127
|
- LGPL-3.0
|
158
128
|
metadata:
|
159
129
|
yard.run: yri
|
160
|
-
post_install_message:
|
161
130
|
rdoc_options:
|
162
131
|
- "--main"
|
163
132
|
- README.md
|
@@ -168,16 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
137
|
requirements:
|
169
138
|
- - ">="
|
170
139
|
- !ruby/object:Gem::Version
|
171
|
-
version:
|
140
|
+
version: 2.5.0
|
172
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
142
|
requirements:
|
174
143
|
- - ">="
|
175
144
|
- !ruby/object:Gem::Version
|
176
145
|
version: '0'
|
177
146
|
requirements: []
|
178
|
-
|
179
|
-
rubygems_version: 2.7.3
|
180
|
-
signing_key:
|
147
|
+
rubygems_version: 3.6.0.dev
|
181
148
|
specification_version: 4
|
182
149
|
summary: Access USB devices from Ruby via libusb-1.0
|
183
150
|
test_files: []
|
metadata.gz.sig
ADDED
data/appveyor.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
init:
|
2
|
-
- SET PATH=C:/Ruby%ruby_version%/bin;%PATH%
|
3
|
-
- SET RAKEOPT=-rdevkit
|
4
|
-
install:
|
5
|
-
- ps: |
|
6
|
-
if ($env:ruby_version -like "*head*") {
|
7
|
-
$(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-$env:ruby_version.exe", "$pwd/ruby-setup.exe")
|
8
|
-
cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:ruby_version
|
9
|
-
}
|
10
|
-
- ruby --version
|
11
|
-
- gem --version
|
12
|
-
- ps: |
|
13
|
-
if ($env:BROKEN_SSL -eq "true") {
|
14
|
-
$(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt', "$env:TMP/ca-bundle.crt")
|
15
|
-
$env:SSL_CERT_FILE = "$env:TMP/ca-bundle.crt"
|
16
|
-
Write-Host "Using SSL CA list $env:SSL_CERT_FILE" -foreground Green
|
17
|
-
}
|
18
|
-
- gem install bundler --conservative
|
19
|
-
- bundle config force_ruby_platform true
|
20
|
-
- bundle install
|
21
|
-
build_script:
|
22
|
-
- bundle exec rake compile
|
23
|
-
test_script:
|
24
|
-
- bundle exec rake travis
|
25
|
-
environment:
|
26
|
-
matrix:
|
27
|
-
- ruby_version: "head-x64"
|
28
|
-
- ruby_version: "200"
|
29
|
-
BROKEN_SSL: true
|
30
|
-
- ruby_version: "21-x64"
|
31
|
-
BROKEN_SSL: true
|
32
|
-
- ruby_version: "22"
|
33
|
-
BROKEN_SSL: true
|
34
|
-
- ruby_version: "23-x64"
|
35
|
-
BROKEN_SSL: true
|
36
|
-
- ruby_version: "24"
|
Binary file
|