libusb 0.7.0-x86-mingw32 → 0.7.2-x86-mingw32
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
- data/lib/libusb-1.0.dll +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed8c6bb4aed45747e2f0f762ebde5a9c1d2f0b14b8d93731f636c3658bc51115
|
4
|
+
data.tar.gz: '0844353928accc0583c32b1b0a5506435aaae7cfa5d8434873913f5efc2520f2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d62cd3327887cfc0fc691134d2318dca0215cc0d872906753a24f8a1bf1bdc2cc78e9491d81ed7f61d7aa87725b065556eb3127864da612039f6c1bdaa810563
|
7
|
+
data.tar.gz: 0ab923c405330e08df2e0220a1bc44b33bb14a5b21d24b294795efdfd9fedb89a2388719648351f592f16e8e946caae0d82d5bd48923176ad6e5f73d1d058150
|
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
data/lib/libusb-1.0.dll
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +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: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Lars Kanis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|