Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mruby-math/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mrubyedge-math"
version = "0.1.1"
version = "0.1.2"
edition = "2024"
authors = ["Uchio Kondo <[email protected]>"]
description = "mruby-math provides Math module for mruby/edge"
Expand Down
4 changes: 4 additions & 0 deletions mruby-math/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ use mrubyedge::{
};

pub fn init_math(vm: &mut VM) {
if vm.get_const_by_name("Math").is_some() {
return;
}

let math_module = vm.define_module("Math", None);

// Define constants
Expand Down
2 changes: 1 addition & 1 deletion mruby-serde-json/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mrubyedge-serde-json"
version = "0.1.1"
version = "0.1.2"
edition = "2024"
authors = ["Uchio Kondo <[email protected]>"]
description = "mruby-serde-json provides JSON serialization/deserialization for mruby/edge using serde_json"
Expand Down
4 changes: 4 additions & 0 deletions mruby-serde-json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ use mrubyedge::{
};

pub fn init_json(vm: &mut VM) {
if vm.get_const_by_name("JSON").is_some() {
return;
}

let json_class = vm.define_class("JSON", None, None);

mrb_define_class_cmethod(
Expand Down
2 changes: 1 addition & 1 deletion mruby-time/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mrubyedge-time"
version = "0.1.2"
version = "0.1.3"
edition = "2024"
authors = ["Uchio Kondo <[email protected]>"]
description = "mruby-time provides Time class for mruby/edge"
Expand Down
4 changes: 4 additions & 0 deletions mruby-time/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ fn float_to_sec_nsec(obj: &RObject) -> Result<(i64, u32), Error> {
/// Initialize the Time class in the VM.
/// Call this after `VM::open` to make `Time` available in Ruby code.
pub fn init_time(vm: &mut VM) {
if vm.get_const_by_name("Time").is_some() {
return;
}

let time_class = vm.define_class("Time", None, None);

// Class methods
Expand Down
Loading