libusb 0.7.0-x86-mingw32 → 0.7.1-x86-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: f60f874061fbe4f26ca413e4b46b7d46cb51e8891309a25a4d04eec64799953a
4
- data.tar.gz: f83b61c302763962891191cac0bcee9e01975481b6b7be685fd27603153fccf3
3
+ metadata.gz: 6c5eaee13200735ec0c245f01a166d6b288562351687ca84d55ebf82739947be
4
+ data.tar.gz: a7855b3dec9923bc15036c1bfdf3892283165a3ed50ae3af59ec1277cfa5b3c0
5
5
  SHA512:
6
- metadata.gz: 94c9147db652ac78a9e67bc63139f79e3e32861b28a4cb2e409417ab974e8ebb7ed7c31f7cac46d5385b015a031cb83db36b79938bd03b18e5c5424c531358f7
7
- data.tar.gz: 9982d014b7ddb3bb10780e988a3b33dd28f2dbf80e51eb9c33d761c1352d24d5eb2e8652bd4cfdc5a3cdca720f5b9c630a5de7d24af7685a24efdfbdfd28543b
6
+ metadata.gz: 3ccf31aa140ea34ee19ecb27e537e1e3ffe22b0caf4ba5b4ef81fd14c4f279400116589a1912ae3ec04ce50bf76bd720e4805e39a8213bf0529581a9eed453ba
7
+ data.tar.gz: c96f97716568bd138cdfadc1398ed8ba247ff492058ad080fef9aa96079c26a4d2725299772e5669761eaebae7cafc75189f27dbd4340e38758eae2a98df00e1
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: x86-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