libusb 0.7.0-x64-mingw-ucrt → 0.7.1-x64-mingw-ucrt

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: dc910549250e503a8d367f199199ac7fb2b58629d20616f75d9cb7cf67e5efaf
4
- data.tar.gz: 6225ccbcc2c35169106b1c0cb5a78e36f9d24972c6eeb698e0cf104250aca619
3
+ metadata.gz: ce8b17cfd4c90fb80cf22ad59f4f0fd19bc91d4a43c360736718c7959f02ae53
4
+ data.tar.gz: 6719a5ce6ec2b0adef68ffb69b4fcabc9670ed0e05bd7cd72ab2dedfbd1399f6
5
5
  SHA512:
6
- metadata.gz: 7eb46d18970c9b92f8d05e003ce893264ade31ff9b3cc05d5b5dd5a79189a8ea3367f2db7819867bb33be6b36184bc1a7e4869bd26337c6bce0897e0e7e0c8a0
7
- data.tar.gz: b2229eea4abf30c22df289a84a9226b5803ff929d491420b2d66095ab611ad65df3bb6e70481653fc5a195ab98c81f257923b6613cd9b442eb9eeee30f3be561
6
+ metadata.gz: 6160123a3ce440588182d63783b6426057a3b841614a936c0626ab04cca1fbcf86e252532884ff1f280b58f35637f858163b45494c33e8a842f8a4c966f45b40
7
+ data.tar.gz: b061c8c87d9d15fbe70b126a8d79983cee54579854756be5d659060ae30e1ac65f7b55d9adeb2b2e594b43d5b69002c1f6d878054422831254f86aece26256bd
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-mingw-ucrt
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