hello_rusty_world 0.1.1-arm64-darwin → 0.1.3-arm64-darwin

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: '019c7b76f6da1c592c093c2e77a9688bc44675af533f8d761bffc5f73b9c533c'
4
- data.tar.gz: 2bc2a49ec522b1309515ac5240bb22e1dae20b7746921b2ce0a2784bcccdc6d5
3
+ metadata.gz: 6b5569e112a6178d5250464005578200e0d9c1934db908e714a51983ffa91bed
4
+ data.tar.gz: 4d19a725865232a2bcc20ced44499d335fac1f8e27c9fee70ef75ce0e00ce77c
5
5
  SHA512:
6
- metadata.gz: 3f8e2a35b4e9a9a246fe99582be5716a0abaee3225755f3b13ce959cd468ca528dcad5db05b78ae4e83a7ed79922567f6b3758da2557726bc9e0687e1d7e82c8
7
- data.tar.gz: 41c681f9f0fd4aab54ef66f0b92132648822f255eaf92a2dda13db831ccbc837e7934183e7976629c8bcc4e79709b23402b87e575c46ab6c5feb7e0503c978c2
6
+ metadata.gz: faf3ea61789b71fb17ceace0fd27174b0e14ce31ef4699b6157c4c170807dfad7ad089169faa045c751236c8d708303644345a431120d41cb4ef0c102d504cd6
7
+ data.tar.gz: 20ebb4299ba957e512458f27d70e20bcbf38707aeddfb13a4360e9f94cb8ab3dbbb04db92d8877a640061e077a76a78e8542fb64c38904d409fb48fce8ddd2a0
@@ -25,7 +25,7 @@ RUN rustup target add \
25
25
  x86_64-unknown-linux-gnu \
26
26
  aarch64-unknown-linux-gnu \
27
27
  x86_64-unknown-linux-musl \
28
- aarch64-unknown-linux-musl
28
+ aarch64-unknown-linux-musl
29
29
 
30
30
  RUN groupadd --gid ${USER_GID} ${USERNAME}
31
31
  RUN useradd --uid ${USER_UID} \
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module HelloRustyWorld
4
+ class Greeting
5
+ def say
6
+ "Hello World!"
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HelloRustyWorld
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -1,9 +1,29 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "hello_rusty_world/version"
4
- require "hello_rusty_world/hello_rusty_world"
5
-
6
3
  module HelloRustyWorld
7
4
  class Error < StandardError; end
8
- # Your code goes here...
5
+
6
+ class << self
7
+ def load_native_extension
8
+ ruby_api_ver = RbConfig::CONFIG.fetch("ruby_version").split(".", 3)[0, 2].join(".")
9
+ require_relative "hello_rusty_world/#{ruby_api_ver}/hello_rusty_world"
10
+ @native_enabled = true
11
+ rescue LoadError
12
+ @native_enabled = false
13
+ ensure
14
+ unless @native_enabled
15
+ require_relative "hello_rusty_world/hello_rusty_world"
16
+ @native_enabled = true
17
+ end
18
+ end
19
+
20
+ def native_enabled?
21
+ @native_enabled == true
22
+ end
23
+ end
24
+ private_class_method :load_native_extension
9
25
  end
26
+
27
+ HelloRustyWorld.send(:load_native_extension)
28
+ require_relative "hello_rusty_world/version"
29
+ require "hello_rusty_world/greeting"
data/mise.toml ADDED
@@ -0,0 +1,2 @@
1
+ [tools]
2
+ ruby = "4"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hello_rusty_world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Ken C. Demanawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-03 00:00:00.000000000 Z
11
+ date: 2026-06-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Hello World Ruby Gem with Rust extension
14
14
  email:
@@ -29,15 +29,17 @@ files:
29
29
  - lib/hello_rusty_world.rb
30
30
  - lib/hello_rusty_world/3.4/hello_rusty_world.bundle
31
31
  - lib/hello_rusty_world/4.0/hello_rusty_world.bundle
32
+ - lib/hello_rusty_world/greeting.rb
32
33
  - lib/hello_rusty_world/version.rb
34
+ - mise.toml
33
35
  - sig/hello_rusty_world.rbs
34
- homepage: https://github.com/kanutocd/hello_rusty_world
36
+ homepage: https://kanutocd.github.com/hello_rusty_world
35
37
  licenses:
36
38
  - MIT
37
39
  metadata:
38
- homepage_uri: https://github.com/kanutocd/hello_rusty_world
40
+ homepage_uri: https://kanutocd.github.com/hello_rusty_world
39
41
  source_code_uri: https://github.com/kanutocd/hello_rusty_world
40
- changelog_uri: https://github.com/kanutocd/hello_rusty_world
42
+ changelog_uri: https://github.com/kanutocd/hello_rusty_world/blob/trunk/CHANGELOG.md
41
43
  post_install_message:
42
44
  rdoc_options: []
43
45
  require_paths: