libusb 0.7.0 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +8 -8
- data/History.md +16 -0
- data/Rakefile +2 -2
- data/lib/libusb/context.rb +3 -1
- data/lib/libusb/gem_helper.rb +1 -1
- data/lib/libusb/transfer.rb +1 -1
- data/lib/libusb/version_gem.rb +1 -1
- metadata +7 -29
- checksums.yaml.gz.sig +0 -4
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d72428d38fc654c53b2a8d3bb182ae790f2860154eb1d350f7ca57292bc0ff6
|
4
|
+
data.tar.gz: 737cc6576964289bc028380e39d5404fd91fec0fb85f2ab919df9c8c6449a297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae37e6a1cb842de3b0e1eacd17896a35276c7f68c4f55d9f9b00ae21d832aaacc6a671171f2b5c85ee64449147b668239e8c6fb44203a4a394c4dade30b16928
|
7
|
+
data.tar.gz: 7270194dac34b088447b998e76b805e7c33b17a03dd67209c80c4f9d7cbd52fd6610f1092e61027454179f1626f8f17649fdc414c6d80b68f09452235ae3f6eb
|
data/.github/workflows/ci.yml
CHANGED
@@ -28,8 +28,8 @@ jobs:
|
|
28
28
|
- x86-mingw32
|
29
29
|
- x64-mingw-ucrt
|
30
30
|
- x64-mingw32
|
31
|
-
- x86-linux
|
32
|
-
- x86_64-linux
|
31
|
+
# - x86-linux
|
32
|
+
# - x86_64-linux
|
33
33
|
|
34
34
|
runs-on: ubuntu-latest
|
35
35
|
env:
|
@@ -72,12 +72,12 @@ jobs:
|
|
72
72
|
- os: windows
|
73
73
|
ruby: "3.3"
|
74
74
|
platform: x64-mingw-ucrt
|
75
|
-
- os: ubuntu
|
76
|
-
|
77
|
-
|
78
|
-
- os: ubuntu
|
79
|
-
|
80
|
-
|
75
|
+
# - os: ubuntu
|
76
|
+
# ruby: "2.5"
|
77
|
+
# platform: x86_64-linux
|
78
|
+
# - os: ubuntu
|
79
|
+
# ruby: "3.3"
|
80
|
+
# platform: x86_64-linux
|
81
81
|
|
82
82
|
runs-on: ${{ matrix.os }}-latest
|
83
83
|
steps:
|
data/History.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
0.7.2 / 2024-10-23
|
2
|
+
------------------
|
3
|
+
|
4
|
+
Changed:
|
5
|
+
* Call libusb_set_log_cb only when available. #51
|
6
|
+
This was a regression leading to a crash on FreeBSD-14.1.
|
7
|
+
|
8
|
+
|
9
|
+
0.7.1 / 2024-04-20
|
10
|
+
------------------
|
11
|
+
|
12
|
+
Changed:
|
13
|
+
* Fix unreferencing LIBUSB::Context from Call::Transfer.
|
14
|
+
This prevented freeing of Context objects, as soon as a transfer was executed.
|
15
|
+
|
16
|
+
|
1
17
|
0.7.0 / 2024-04-18
|
2
18
|
------------------
|
3
19
|
|
data/Rakefile
CHANGED
@@ -52,8 +52,8 @@ CrossLibraries = [
|
|
52
52
|
['x86-mingw32', 'i686-w64-mingw32', 'bin/libusb-1.0.dll'],
|
53
53
|
['x64-mingw32', 'x86_64-w64-mingw32', 'bin/libusb-1.0.dll'],
|
54
54
|
['x64-mingw-ucrt', 'x86_64-w64-mingw32', 'bin/libusb-1.0.dll'],
|
55
|
-
['x86-linux', 'i686-linux-gnu', 'lib/libusb-1.0.so'],
|
56
|
-
['x86_64-linux', 'x86_64-linux-gnu', 'lib/libusb-1.0.so'],
|
55
|
+
# ['x86-linux', 'i686-linux-gnu', 'lib/libusb-1.0.so'],
|
56
|
+
# ['x86_64-linux', 'x86_64-linux-gnu', 'lib/libusb-1.0.so'],
|
57
57
|
].map do |ruby_platform, host_platform, libusb_dll|
|
58
58
|
LIBUSB::CrossLibrary.new ruby_platform, host_platform, libusb_dll
|
59
59
|
end
|
data/lib/libusb/context.rb
CHANGED
@@ -140,7 +140,9 @@ module LIBUSB
|
|
140
140
|
if id # Is Context is about to be garbage collected?
|
141
141
|
# In GC mode there's no way to call the registered collbacks, since they are GC'ed as well.
|
142
142
|
# So disable callbacks now.
|
143
|
-
Call.libusb_set_log_cb
|
143
|
+
if Call.respond_to?(:libusb_set_log_cb)
|
144
|
+
Call.libusb_set_log_cb(self, nil, LOG_CB_CONTEXT)
|
145
|
+
end
|
144
146
|
Call.libusb_set_pollfd_notifiers(self, nil, nil, nil)
|
145
147
|
end
|
146
148
|
Call.libusb_exit(self)
|
data/lib/libusb/gem_helper.rb
CHANGED
data/lib/libusb/transfer.rb
CHANGED
@@ -63,7 +63,7 @@ module LIBUSB
|
|
63
63
|
# Now that the transfer is bound to a DevHandle, it must be registered in the Context.
|
64
64
|
# This ensures that the Call::Transfer is freed before libusb_exit, avoiding warnings about still referenced devices.
|
65
65
|
ctx = dev.device.context.instance_variable_get(:@ctx)
|
66
|
-
@transfer.instance_variable_set(:@ctx, ctx.ref_context)
|
66
|
+
@transfer.pointer.instance_variable_set(:@ctx, ctx.ref_context)
|
67
67
|
end
|
68
68
|
|
69
69
|
# The handle for the device to communicate with.
|
data/lib/libusb/version_gem.rb
CHANGED
metadata
CHANGED
@@ -1,38 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libusb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Kanis
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
|
-
cert_chain:
|
10
|
-
-
|
11
|
-
-----BEGIN CERTIFICATE-----
|
12
|
-
MIIEBDCCAmygAwIBAgIBAzANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJz
|
13
|
-
L0RDPWdyZWl6LXJlaW5zZG9yZi9EQz1kZTAeFw0yNDAyMjgxOTMxNDdaFw0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KlBQm6l7XMtr5EMnQt0EfcmZEi9H4t/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
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
36
12
|
dependencies:
|
37
13
|
- !ruby/object:Gem::Dependency
|
38
14
|
name: ffi
|
@@ -127,6 +103,7 @@ licenses:
|
|
127
103
|
- LGPL-3.0
|
128
104
|
metadata:
|
129
105
|
yard.run: yri
|
106
|
+
post_install_message:
|
130
107
|
rdoc_options:
|
131
108
|
- "--main"
|
132
109
|
- README.md
|
@@ -144,7 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
121
|
- !ruby/object:Gem::Version
|
145
122
|
version: '0'
|
146
123
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
124
|
+
rubygems_version: 3.3.26
|
125
|
+
signing_key:
|
148
126
|
specification_version: 4
|
149
127
|
summary: Access USB devices from Ruby via libusb-1.0
|
150
128
|
test_files: []
|
checksums.yaml.gz.sig
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
gN_lU�>�̎]��zM��
|
2
|
-
ڏ�(I���k�}z�h��8"[.�w���{��b|�
|
3
|
-
���~y���5��U_�3e[t�Q��!�GdC�7=ѪZ(_��)B���<���� �[W��2+B~5ܝ}a�I���UxR�k]��Yt9�@�j��A�����̵��~Bp�є��;��&V�A�P<!.�Q�3�v��w�k��]ۋwF��o��{�9� �J�I� �����������[ܕ�Pӿ�z��!TOolx��6�[q'p<=+��p$�V��O�Z�k�-�l;Lxsn3����F/X8�!HI���iQ��Xů� ���K�������N2��T���e1�!��^<��/�|�Zt��[�j�
|
4
|
-
r�5L��[߫�
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED