libusb 0.7.0-x64-mingw32 → 0.7.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13cb0f5eee03904372dfc17c7f990fc32c2a62e420e8d965ad14427bf1c050b7
4
- data.tar.gz: e55f618c12d90e3a710b838ef2214322240bd5bb76cfaa118ce4852edb9a7fa5
3
+ metadata.gz: 3673007123e82eda245f9ed3a80426a4757c6e6fe85a470dde4711584c1f4ee4
4
+ data.tar.gz: e0886f9434daf317f3fa117ddd3d24bce6b1f5169fc22119b80c3abb4d9166e2
5
5
  SHA512:
6
- metadata.gz: 914dbb583d8872226dd818b1ae9e10a6a0bb0de412ccb0ab4ec7ff1d9d74fbee347a4c7491620a1362ffd4458f95c48ad964d93f7dfcd352baa54c9b7a808e70
7
- data.tar.gz: 807a866f2d62eab24b1718b6a2922a709aea22d77ae82c40c5a70a895fe5967f830f26f26cf09ab76001c7d081295a2aa84d8ad7c30d817c32040fa64ecf6e07
6
+ metadata.gz: 22d1d8d6b58c09bcfb5f7953ede9bb6cf2c48eb7ca606e8f9b0822a69c48aeeaa7739971ec198485a88f34f4285c9993da7c7d2f454a2f11265d2f080d8ce3c8
7
+ data.tar.gz: b2471d8dc7e34b6ac5e6620fd2e1564807a8719d2af7b2c69578e721aed17d7ef070b8eea23053e1f7920e07e23980504e781f7b130b0297c8d574d3c8f16a0e
data/History.md CHANGED
@@ -1,3 +1,11 @@
1
+ 0.7.1 / 2024-04-20
2
+ ------------------
3
+
4
+ Changed:
5
+ * Fix unreferencing LIBUSB::Context from Call::Transfer.
6
+ This prevented freeing of Context objects, as soon as a transfer was executed.
7
+
8
+
1
9
  0.7.0 / 2024-04-18
2
10
  ------------------
3
11
 
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
@@ -66,7 +66,7 @@ module LIBUSB
66
66
  yield if block_given?
67
67
  rescue
68
68
  Bundler.ui.error "Untagging #{version_tag} due to error."
69
- sh "git tag -d #{version_tag}"
69
+ sh_with_status %W[git tag -d #{version_tag}]
70
70
  raise
71
71
  end
72
72
 
@@ -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.
@@ -15,5 +15,5 @@
15
15
 
16
16
  module LIBUSB
17
17
  # Library version of libusb for Ruby
18
- VERSION = "0.7.0"
18
+ VERSION = "0.7.1"
19
19
  end
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.0
4
+ version: 0.7.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Lars Kanis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-18 00:00:00.000000000 Z
11
+ date: 2024-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi