gem-ext-zig_builder 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gem/ext/zig_builder/version.rb +1 -1
- data/lib/gem/ext/zig_builder.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz: '
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03379280313d8b11b9c8691fb81075201ee5117a4f724b1c61835b7d9ccfe689'
|
4
|
+
data.tar.gz: 4b6fe88c3c8a8e7675d1cdea2aa33c827c22a71fdfbc25900f5e7c2b5bf75cfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af65f1d76f60627756ec80c78b199d057c43374ac50942fc37aade1c1f1edc0046e4a1f0cf88875783da6a674f0011452ed124d5828ffa42ddedd3d6ca32884
|
7
|
+
data.tar.gz: f4f08ad85c177bfb5fff1bf3ada995d43094607ac45014242da073dccd9c3dbdeff272e2cbeb7b4a7119f726bee5e90ed24c60dfac04ac5d2177a97d37c223cc
|
data/lib/gem/ext/zig_builder.rb
CHANGED
@@ -41,10 +41,16 @@ require 'tmpdir'
|
|
41
41
|
#
|
42
42
|
# const std = @import("std");
|
43
43
|
# const ruby = @cImport(@cInclude("ruby/ruby.h"));
|
44
|
+
#
|
45
|
+
# // Export the extension init function:
|
44
46
|
# export fn Init_libzigrb_example() void {
|
45
47
|
# ruby.ruby_init();
|
46
48
|
# }
|
47
49
|
#
|
50
|
+
# // For development releases of ruby:
|
51
|
+
# const rubyABIVersion = if (@hasField(ruby, "RUBY_ABI_VERSION")) ruby.RUBY_ABI_VERSION else 0;
|
52
|
+
# export fn ruby_abi_version() ruby.VALUE { return rubyABIVersion; }
|
53
|
+
#
|
48
54
|
# An example of defining a ruby class and adding a zig method:
|
49
55
|
#
|
50
56
|
# const zig_rb_class: ruby.VALUE = ruby.rb_define_class("ZigExample", ruby.rb_cObject);
|
@@ -81,7 +87,7 @@ class Gem::Ext::ZigBuilder < Gem::Ext::Builder
|
|
81
87
|
end
|
82
88
|
|
83
89
|
class << self
|
84
|
-
def build(_extension, dest_path, results, _args = [], _lib_dir = nil, extension_dir = nil)
|
90
|
+
def build(_extension, dest_path, results, _args = [], _lib_dir = nil, extension_dir = nil, _target_rbconfig = nil)
|
85
91
|
dlext = RbConfig::CONFIG['DLEXT']
|
86
92
|
tmp_dir = Dir.mktmpdir
|
87
93
|
command = _build_command(tmp_dir)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-ext-zig_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank J. Cameron
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ''
|
14
14
|
email:
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
|
-
rubygems_version: 3.3.
|
46
|
+
rubygems_version: 3.3.15
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: Gem extension builder for zig
|