libusb 0.7.0 → 0.7.1

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: a9f860cd6e9affa3e425cec4c19af7ba3ef489aa5ad29775d52e6cc9dbc032af
4
- data.tar.gz: 45863d812a7e27c925c5514b003689b548473275c3e7d81513020f59075068a7
3
+ metadata.gz: 165049d0195bc1cf3452f12b69f89ecafe6b3a180b08f882f882d1784ad42efe
4
+ data.tar.gz: 4f8fcd9cfc795cf601dc5058104a8406f59ed3f3c775b9d92c371d91dfab915c
5
5
  SHA512:
6
- metadata.gz: fe3a508e7c7a5359a26893a56a90f4d697b438510dd0a8ee62977960254b75d79a136b882abca364bc3c8baa7039e7a74bba131fdec4f792ccd1b93d2824b37b
7
- data.tar.gz: a31f536e4956e5a4e3094cb881ed835b22bc03815d8229f9bebf1c4c5c2660b920880c858ba9d7f17a6d4f138fd281b714f38e53d2ac3114d11de87239c292cd
6
+ metadata.gz: 11a2df6d3c53464eb4db59267cffc9e1f090f511c234d6a44ae573004f6953cb6fad6c5564595df612c314f7adea0507e3edf99be5e70a5745a6246b4ace51de
7
+ data.tar.gz: 2e5288dfee1264a0edb1cc41a1ee58ea1e13a40a46032be0394ac8a0230c8c9ec77a59a01fc9ddef913260e279f6bf6f0da81c45567141bca07ab5674b75c151
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_with_code "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
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.0
4
+ version: 0.7.1
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
- MIIEBDCCAmygAwIBAgIBAzANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJ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XMtr5EMnQt0EfcmZEi9H4t/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-04-20 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.6.0.dev
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
@@ -1,3 +0,0 @@
1
- ���14;�0���-c����m��+`�sU��bC{Ed��o��f�lkX�Ÿ�Vž�}���ψL���S�
2
- 쿩˓�A�}��|���رL$��m��H��b7�����4�oa�ȯ���>RBv֍Z�"�횮qp�����_��}{�"&/��x��P�����edg?cJj %N���'���*k}ӷ���KKt����6R[2&4�S�t%��ѱY������v�
3
- #f @Nle8]�Q��O�=�?,�:���orա�