rucy 0.3.13 → 0.3.14
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 +4 -4
- data/ChangeLog.md +5 -0
- data/VERSION +1 -1
- data/include/rucy/extension.h.erb +6 -1
- data/rucy.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7804c83f192ab8aa942081fa70f8560b3b0081422393442af610487689bae1cd
|
|
4
|
+
data.tar.gz: ed7bd6bd6ebac1f8fc5a6fc9c46b161dc7e56e28d8948e6df2a57b03bced54d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ff8427bed258c00ac672df796592100d0446890d90045a8506573d7a774ccda2bad6b7f074337511b838357253cfebb5a10f59684005c13093bdb7cea31caba
|
|
7
|
+
data.tar.gz: 2e0c40c6db19e450e0f4fc8eeb606e0069048135db87bf7cd8683550ced69459c6dfb9977e42b007d548c1a380fbac9762c926f8f6c1aa351771e814df27c91b
|
data/ChangeLog.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.14
|
|
@@ -425,7 +425,8 @@ namespace Rucy
|
|
|
425
425
|
inline Value new_type (Value klass, T* ptr)
|
|
426
426
|
{
|
|
427
427
|
if (!ptr) return nil();
|
|
428
|
-
|
|
428
|
+
const rb_data_type_t* type = get_data_type<T, mark, free>();
|
|
429
|
+
return TypedData_Wrap_Struct(klass, type, ptr);
|
|
429
430
|
}
|
|
430
431
|
|
|
431
432
|
template <
|
|
@@ -479,7 +480,11 @@ namespace Rucy
|
|
|
479
480
|
template <typename T> inline T* get_type_ptr (Value obj, Value klass = nil())
|
|
480
481
|
{
|
|
481
482
|
if (!klass.is_nil()) check_class(obj, klass);
|
|
483
|
+
#ifdef RTYPEDDATA_GET_DATA
|
|
484
|
+
return (T*) RTYPEDDATA_GET_DATA(obj.value());
|
|
485
|
+
#else
|
|
482
486
|
return (T*) DATA_PTR(obj.value());
|
|
487
|
+
#endif
|
|
483
488
|
}
|
|
484
489
|
|
|
485
490
|
|
data/rucy.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
s.platform = Gem::Platform::RUBY
|
|
26
26
|
s.required_ruby_version = '>= 3.0.0'
|
|
27
27
|
|
|
28
|
-
s.add_dependency 'xot', '~> 0.3.
|
|
28
|
+
s.add_dependency 'xot', '~> 0.3.14'
|
|
29
29
|
|
|
30
30
|
s.files = `git ls-files`.split $/
|
|
31
31
|
s.executables = s.files.grep(%r{^bin/}) {|f| File.basename f}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rucy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- xordog
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: xot
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.3.
|
|
19
|
+
version: 0.3.14
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.3.
|
|
26
|
+
version: 0.3.14
|
|
27
27
|
description: This library helps you to develop Ruby Extension by C++.
|
|
28
28
|
email: xordog@gmail.com
|
|
29
29
|
executables:
|