libusb 0.7.0 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9f860cd6e9affa3e425cec4c19af7ba3ef489aa5ad29775d52e6cc9dbc032af
4
- data.tar.gz: 45863d812a7e27c925c5514b003689b548473275c3e7d81513020f59075068a7
3
+ metadata.gz: 5d72428d38fc654c53b2a8d3bb182ae790f2860154eb1d350f7ca57292bc0ff6
4
+ data.tar.gz: 737cc6576964289bc028380e39d5404fd91fec0fb85f2ab919df9c8c6449a297
5
5
  SHA512:
6
- metadata.gz: fe3a508e7c7a5359a26893a56a90f4d697b438510dd0a8ee62977960254b75d79a136b882abca364bc3c8baa7039e7a74bba131fdec4f792ccd1b93d2824b37b
7
- data.tar.gz: a31f536e4956e5a4e3094cb881ed835b22bc03815d8229f9bebf1c4c5c2660b920880c858ba9d7f17a6d4f138fd281b714f38e53d2ac3114d11de87239c292cd
6
+ metadata.gz: ae37e6a1cb842de3b0e1eacd17896a35276c7f68c4f55d9f9b00ae21d832aaacc6a671171f2b5c85ee64449147b668239e8c6fb44203a4a394c4dade30b16928
7
+ data.tar.gz: 7270194dac34b088447b998e76b805e7c33b17a03dd67209c80c4f9d7cbd52fd6610f1092e61027454179f1626f8f17649fdc414c6d80b68f09452235ae3f6eb
@@ -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
- ruby: "2.5"
77
- platform: x86_64-linux
78
- - os: ubuntu
79
- ruby: "3.3"
80
- platform: x86_64-linux
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
@@ -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(self, nil, LOG_CB_CONTEXT)
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)
@@ -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.2"
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.2
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
- MIIEBDCCAmygAwIBAgIBAzANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJz
13
- L0RDPWdyZWl6LXJlaW5zZG9yZi9EQz1kZTAeFw0yNDAyMjgxOTMxNDdaFw0yNTAy
14
- MjcxOTMxNDdaMCgxJjAkBgNVBAMMHWxhcnMvREM9Z3JlaXotcmVpbnNkb3JmL0RD
15
- PWRlMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAwum6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4F6sM5JEPT0ZPxRx0i3G4TNNIYziVos
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-10-23 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ա�