ffi-clang 0.12.0 → 0.13.0

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: 37f934d60fbdb3b3595b30bce1e3aa64606bb6a98a7e096e4d26f9deec4bdbf0
4
- data.tar.gz: 5e82c4739b554e83fbb1753a4a7ccaa976d7e271b9ddde53d68f389e03d21f22
3
+ metadata.gz: 81d116e3cb3034740ddb9959f4ebee08b8f4c0a3973b0b7de9b6041bb8191da3
4
+ data.tar.gz: 717ce7577201ee0c5f7561df8630c01894272c4a8457cd6080533aee66af0f58
5
5
  SHA512:
6
- metadata.gz: '09dfa50b6c4e1ba906d0a6114ab54d3f3e7b32af7ed23a1d5d149c879ff01a6131bf48280e2bc4b4002e04522c5665123383b9f6a786c390908c8a4202c9e6e9'
7
- data.tar.gz: 92ab385b15e7ba6d548b796c175032c693fd467f2e308bdd76f5ba2edd10736ec184f7af7db8e7b2a9f03d3000d5aab6fd84737b212775edf8aa093859310fcb
6
+ metadata.gz: 4e006fa7e657709591dc109d653e03f439dd9f60de75de7348b6dd126ff96c06801d44858172362d295e3a74e99652b7604e607840872eb21d3e561390e61309
7
+ data.tar.gz: ec3246af36541a1396252ec65028e61e2bf872803e8d01453787a55e5815e340fefbeb7738ddb4e1eb4647db8fb3466317e6fbff6441680d4c73a9deae0e5256
checksums.yaml.gz.sig CHANGED
Binary file
@@ -192,6 +192,7 @@ module FFI
192
192
 
193
193
  attach_function :get_type_kind_spelling, :clang_getTypeKindSpelling, [:kind], CXString.by_value
194
194
  attach_function :get_type_spelling, :clang_getTypeSpelling, [CXType.by_value], CXString.by_value
195
+ attach_function :get_named_type, :clang_Type_getNamedType, [CXType.by_value], CXType.by_value
195
196
 
196
197
  attach_function :is_function_type_variadic, :clang_isFunctionTypeVariadic, [CXType.by_value], :uint
197
198
  attach_function :is_pod_type, :clang_isPODType, [CXType.by_value], :uint
@@ -2,8 +2,8 @@ module FFI
2
2
  module Clang
3
3
  module Types
4
4
  class Elaborated < Type
5
- def canonical
6
- Type.create Lib.get_canonical_type(@type), @translation_unit
5
+ def named_type
6
+ Type.create Lib.get_named_type(@type), @translation_unit
7
7
  end
8
8
 
9
9
  # Example anonymous union where `u` is an elaborated type
@@ -53,6 +53,10 @@ module FFI
53
53
  Lib.extract_string Lib.get_type_spelling(@type)
54
54
  end
55
55
 
56
+ def canonical
57
+ Type.create Lib.get_canonical_type(@type), @translation_unit
58
+ end
59
+
56
60
  def pod?
57
61
  Lib.is_pod_type(@type) != 0
58
62
  end
@@ -7,6 +7,6 @@
7
7
 
8
8
  module FFI
9
9
  module Clang
10
- VERSION = "0.12.0"
10
+ VERSION = "0.13.0"
11
11
  end
12
12
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-clang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -23,7 +23,6 @@ authors:
23
23
  - Cameron Dutro
24
24
  - Dominic Sisnero
25
25
  - Hal Brodigan
26
- autorequire:
27
26
  bindir: bin
28
27
  cert_chain:
29
28
  - |
@@ -55,7 +54,7 @@ cert_chain:
55
54
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
56
55
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
57
56
  -----END CERTIFICATE-----
58
- date: 2024-11-27 00:00:00.000000000 Z
57
+ date: 2025-02-16 00:00:00.000000000 Z
59
58
  dependencies:
60
59
  - !ruby/object:Gem::Dependency
61
60
  name: ffi
@@ -71,8 +70,6 @@ dependencies:
71
70
  - - ">="
72
71
  - !ruby/object:Gem::Version
73
72
  version: '0'
74
- description:
75
- email:
76
73
  executables: []
77
74
  extensions: []
78
75
  extra_rdoc_files: []
@@ -128,7 +125,6 @@ licenses:
128
125
  metadata:
129
126
  funding_uri: https://github.com/sponsors/ioquatix/
130
127
  source_code_uri: https://github.com/ioquatix/ffi-clang.git
131
- post_install_message:
132
128
  rdoc_options: []
133
129
  require_paths:
134
130
  - lib
@@ -143,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
139
  - !ruby/object:Gem::Version
144
140
  version: '0'
145
141
  requirements: []
146
- rubygems_version: 3.5.22
147
- signing_key:
142
+ rubygems_version: 3.6.2
148
143
  specification_version: 4
149
144
  summary: Ruby FFI bindings for libclang C interface.
150
145
  test_files: []
metadata.gz.sig CHANGED
Binary file