test_native 1.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0ed49298d11a5937d7356e7ad97f939dc209dbb4948df9839f1e59e7b57257af
4
+ data.tar.gz: d155da1a28f560a792f1131c0929e67bbe2bf9fbeaf2ae641955a3932091baef
5
+ SHA512:
6
+ metadata.gz: ba72b59d86acb0431f397a82d964fb79cd552cc8fe177ab109be12245265ef2bd1e395690294a68606b78ed0f8e5614f8f46b7bea55f9afe284c12b36298c8c1
7
+ data.tar.gz: 30bdcf79489c6def1f9162cb05f8e0b64675654d34a2fd5680770e2b0b5334f2047805d81dd70a22da461e6e68e5e1c6a36ff67fd807d205d20766b2313d3227
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Eileen Uchitelle
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "mkmf"
4
+
5
+ create_makefile("test_native/test_native")
@@ -0,0 +1,10 @@
1
+ #include "ruby.h"
2
+
3
+ static VALUE test_native_hello(VALUE self) {
4
+ return rb_str_new_cstr("Hello from test_native C extension!");
5
+ }
6
+
7
+ void Init_test_native(void) {
8
+ VALUE mod = rb_define_module("TestNative");
9
+ rb_define_singleton_method(mod, "hello", test_native_hello, 0);
10
+ }
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "test_native/test_native"
4
+
5
+ module TestNative
6
+ VERSION = "1.0.0"
7
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: test_native
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Eileen Uchitelle
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ email:
13
+ - eileencodes@gmail.com
14
+ executables: []
15
+ extensions:
16
+ - ext/test_native/extconf.rb
17
+ extra_rdoc_files: []
18
+ files:
19
+ - LICENSE
20
+ - ext/test_native/extconf.rb
21
+ - ext/test_native/test_native.c
22
+ - lib/test_native.rb
23
+ homepage: https://github.com/eileencodes/test_native
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '3.0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 4.0.3
42
+ specification_version: 4
43
+ summary: 'A test gem with a native extension for testing the binaries: source feature'
44
+ test_files: []