rucy 0.3.10 → 0.3.11
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/.github/workflows/release-gem.yml +1 -1
- data/.github/workflows/test.yml +4 -4
- data/ChangeLog.md +5 -0
- data/Gemfile.lock +6 -5
- data/VERSION +1 -1
- data/rucy.gemspec +1 -1
- data/src/module.cpp.erb +8 -4
- 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: 89db0f3be96a0564f5ed99044093f111decff6d0dd89a613251be1bda89163ca
|
|
4
|
+
data.tar.gz: 6c7b8d8aafc090fb75d7fb2c3cfc16fe9026b8da93d4673ee5cc9b3d8e2aba6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a82fd0de0e5e372e8dbb25b335c3cb27e7209c691522058e26c324dfb16204b181c72326439e5f05c2a54ed7199fb23d5315f3a02b4f8de8d35533b1e9977036
|
|
7
|
+
data.tar.gz: 510edf2d681cc108435efc854c26446afc4560e7a0471269f68661bc6f8f9eedbf2c8d55ef2733dce46e78c1a01c5ca86b8dcb0c2b84723474a2d60cf2b3c885
|
data/.github/workflows/test.yml
CHANGED
|
@@ -25,13 +25,13 @@ jobs:
|
|
|
25
25
|
run: "ruby -I.github/workflows -rutils -e 'setup_dependencies'"
|
|
26
26
|
|
|
27
27
|
- name: packages
|
|
28
|
-
run: bundle exec rake packages
|
|
28
|
+
run: bundle exec rake verbose packages
|
|
29
29
|
|
|
30
30
|
- name: lib
|
|
31
|
-
run: bundle exec rake lib
|
|
31
|
+
run: bundle exec rake verbose lib
|
|
32
32
|
|
|
33
33
|
- name: ext
|
|
34
|
-
run: bundle exec rake ext
|
|
34
|
+
run: bundle exec rake verbose ext
|
|
35
35
|
|
|
36
36
|
- name: test
|
|
37
|
-
run: bundle exec rake test
|
|
37
|
+
run: bundle exec rake verbose test
|
data/ChangeLog.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
power_assert (
|
|
5
|
-
rake (13.1
|
|
6
|
-
test-unit (3.
|
|
4
|
+
power_assert (3.0.1)
|
|
5
|
+
rake (13.3.1)
|
|
6
|
+
test-unit (3.7.7)
|
|
7
7
|
power_assert
|
|
8
|
-
yard (0.9.
|
|
8
|
+
yard (0.9.39)
|
|
9
9
|
|
|
10
10
|
PLATFORMS
|
|
11
11
|
arm64-darwin-21
|
|
12
12
|
arm64-darwin-23
|
|
13
|
+
arm64-darwin-24
|
|
13
14
|
|
|
14
15
|
DEPENDENCIES
|
|
15
16
|
rake
|
|
@@ -17,4 +18,4 @@ DEPENDENCIES
|
|
|
17
18
|
yard
|
|
18
19
|
|
|
19
20
|
BUNDLED WITH
|
|
20
|
-
2.4.
|
|
21
|
+
2.4.19
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.11
|
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.11'
|
|
29
29
|
|
|
30
30
|
s.files = `git ls-files`.split $/
|
|
31
31
|
s.executables = s.files.grep(%r{^bin/}) {|f| File.basename f}
|
data/src/module.cpp.erb
CHANGED
|
@@ -66,13 +66,15 @@ namespace Rucy
|
|
|
66
66
|
void
|
|
67
67
|
Module::<%= op %> (const char* name, RubyFunctionN fun)
|
|
68
68
|
{
|
|
69
|
-
|
|
69
|
+
typedef VALUE (*Fun) (int, const VALUE*, VALUE);
|
|
70
|
+
<%= rb_op %>(value(), name, (Fun) fun, -1);
|
|
70
71
|
}
|
|
71
72
|
% NTIMES.each do |n|
|
|
72
73
|
void
|
|
73
74
|
Module::<%= op %> (const char* name, RubyFunction<%= n %> fun)
|
|
74
75
|
{
|
|
75
|
-
|
|
76
|
+
typedef VALUE (*Fun) (<%= (['VALUE'] * (n + 1)).join(', ') %>);
|
|
77
|
+
<%= rb_op %>(value(), name, (Fun) fun, <%= n %>);
|
|
76
78
|
}
|
|
77
79
|
% end
|
|
78
80
|
% end
|
|
@@ -100,14 +102,16 @@ namespace Rucy
|
|
|
100
102
|
void
|
|
101
103
|
define_function (const char* name, RubyFunctionN fun)
|
|
102
104
|
{
|
|
103
|
-
|
|
105
|
+
typedef VALUE (*Fun) (int, const VALUE*, VALUE);
|
|
106
|
+
rb_define_global_function(name, (Fun) fun, -1);
|
|
104
107
|
}
|
|
105
108
|
% NTIMES.each do |n|
|
|
106
109
|
|
|
107
110
|
void
|
|
108
111
|
define_function (const char* name, RubyFunction<%= n %> fun)
|
|
109
112
|
{
|
|
110
|
-
|
|
113
|
+
typedef VALUE (*Fun) (<%= (['VALUE'] * (n + 1)).join(', ') %>);
|
|
114
|
+
rb_define_global_function(name, (Fun) fun, <%= n %>);
|
|
111
115
|
}
|
|
112
116
|
% end
|
|
113
117
|
|
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.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- xordog
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-17 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.11
|
|
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.11
|
|
27
27
|
description: This library helps you to develop Ruby Extension by C++.
|
|
28
28
|
email: xordog@gmail.com
|
|
29
29
|
executables:
|