hello_rusty_world 0.1.1-x64-mingw-ucrt → 0.1.3-x64-mingw-ucrt
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/docker/dev/Dockerfile +1 -1
- data/lib/hello_rusty_world/3.4/hello_rusty_world.so +0 -0
- data/lib/hello_rusty_world/4.0/hello_rusty_world.so +0 -0
- data/lib/hello_rusty_world/greeting.rb +9 -0
- data/lib/hello_rusty_world/version.rb +1 -1
- data/lib/hello_rusty_world.rb +24 -4
- data/mise.toml +2 -0
- metadata +7 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbb26072288ad34ba374310941402be69507ed0b8037a4d717ffe1778178d9c9
|
|
4
|
+
data.tar.gz: ce0e1431d5c94da5f82a9d79d0b0776a429066134a29305d49e007aa6a59eec9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8d6186ff6b31b06885fe3ccd45832d53bf2cd1bf9032c60d9175dac21a53fefb6ca7cb333ac199399ce75d92946a3c3d52ec0dee6bf4898d11e75ea0efe1a51
|
|
7
|
+
data.tar.gz: 2fac1906d70d59eee7c7cfff2aefb7cac742097788985a16b3faec829abe156021eb4b8fd41c5265f64ce1c6e14c48d5b0eda9535209e2d560d4781d0e92c6b0
|
data/docker/dev/Dockerfile
CHANGED
|
Binary file
|
|
Binary file
|
data/lib/hello_rusty_world.rb
CHANGED
|
@@ -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
|
-
|
|
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
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.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: x64-mingw-ucrt
|
|
6
6
|
authors:
|
|
7
7
|
- Ken C. Demanawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
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.so
|
|
31
31
|
- lib/hello_rusty_world/4.0/hello_rusty_world.so
|
|
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/
|
|
36
|
+
homepage: https://kanutocd.github.com/hello_rusty_world
|
|
35
37
|
licenses:
|
|
36
38
|
- MIT
|
|
37
39
|
metadata:
|
|
38
|
-
homepage_uri: https://github.com/
|
|
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:
|