srb_lens 0.3.0 → 0.4.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 +4 -4
- data/ext/srb_lens/Cargo.toml +2 -2
- data/ext/srb_lens/src/lib.rs +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb35217e28cdc99b739ddab25524b6093b7a4d65628e6b6f8088f2fd989e18df
|
|
4
|
+
data.tar.gz: b09cbfacb7116667ad012faa80c3b1023bc9bf63d7b6f5744084e3b35de8e890
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 877d86d4f39a222622ac78658f3132e9019c9568bb136096c25e0eb041294d4400bd7dbb0fdde9b9eaaf7bec52a4f658b1a6db449aefd488f7ad0c5490750a6b
|
|
7
|
+
data.tar.gz: c8f49fd8e7de13e0cd644f4303cd313e0584b77ceb540f57f8ffdd0ee2ce7df29aac6a58351ccf205e6ada467f7d9ef64c8d946880f71b0f1133867e8862beab
|
data/ext/srb_lens/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "srb_lens"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.0"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
description = "Ruby native extension for srb-lens"
|
|
6
6
|
license = "MIT"
|
|
@@ -13,4 +13,4 @@ crate-type = ["cdylib"]
|
|
|
13
13
|
|
|
14
14
|
[dependencies]
|
|
15
15
|
magnus = { version = "0.8", features = ["rb-sys"] }
|
|
16
|
-
srb-lens = "0.
|
|
16
|
+
srb-lens = "0.4.0"
|
data/ext/srb_lens/src/lib.rs
CHANGED
|
@@ -318,6 +318,7 @@ struct RbMethodCall {
|
|
|
318
318
|
receiver_type: String,
|
|
319
319
|
method_name: String,
|
|
320
320
|
return_type: String,
|
|
321
|
+
target_fqn: Option<String>,
|
|
321
322
|
conditions: Vec<model::BranchCondition>,
|
|
322
323
|
}
|
|
323
324
|
|
|
@@ -327,6 +328,7 @@ impl RbMethodCall {
|
|
|
327
328
|
receiver_type: c.receiver_type.to_string(),
|
|
328
329
|
method_name: c.method_name.clone(),
|
|
329
330
|
return_type: c.return_type.to_string(),
|
|
331
|
+
target_fqn: c.target_fqn.clone(),
|
|
330
332
|
conditions: c.conditions.clone(),
|
|
331
333
|
}
|
|
332
334
|
}
|
|
@@ -343,6 +345,10 @@ impl RbMethodCall {
|
|
|
343
345
|
&self.return_type
|
|
344
346
|
}
|
|
345
347
|
|
|
348
|
+
fn target_fqn(&self) -> Option<&str> {
|
|
349
|
+
self.target_fqn.as_deref()
|
|
350
|
+
}
|
|
351
|
+
|
|
346
352
|
fn conditions(&self) -> RArray {
|
|
347
353
|
let ruby = ruby();
|
|
348
354
|
let ary = ruby.ary_new_capa(self.conditions.len());
|
|
@@ -468,6 +474,7 @@ fn init(ruby: &Ruby) -> Result<(), Error> {
|
|
|
468
474
|
method_call.define_method("receiver_type", method!(RbMethodCall::receiver_type, 0))?;
|
|
469
475
|
method_call.define_method("method_name", method!(RbMethodCall::method_name, 0))?;
|
|
470
476
|
method_call.define_method("return_type", method!(RbMethodCall::return_type, 0))?;
|
|
477
|
+
method_call.define_method("target_fqn", method!(RbMethodCall::target_fqn, 0))?;
|
|
471
478
|
method_call.define_method("conditions", method!(RbMethodCall::conditions, 0))?;
|
|
472
479
|
|
|
473
480
|
// BranchCondition
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: srb_lens
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kazzix14
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-03-
|
|
10
|
+
date: 2026-03-12 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rb_sys
|