optify-config 1.17.9 → 1.17.10
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/optify_ruby/Cargo.toml +2 -2
- data/ext/optify_ruby/src/preferences.rs +8 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9104a6b72d330c9521340c970acb693a53746ab53e5d21b018e71b5391bcf3d9
|
|
4
|
+
data.tar.gz: '0954e4c0eaa24d8d651e0c7e69316c02e778d87d4bc8c8c54677ad1bb1b645f8'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f76b82d39ffd71edf64b524864f52ee2178bd1247ac5d568a899576a61d47da323cc0435835c7d5124d91d03fb3452a56131995f70bdbeb2ce649afcf7822389
|
|
7
|
+
data.tar.gz: 1088ae5e6ff93caf2c2c06f0877f5afa0e7445db1821838a06e6279ef1926cf3c8fad3a04a18816a301420c74e938c090dd6571f0fd53ef1ca29fb12c97fe38d
|
data/ext/optify_ruby/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "optify_ruby"
|
|
3
|
-
version = "0.19.
|
|
3
|
+
version = "0.19.4"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
|
|
6
6
|
description = "optify bindings for Ruby"
|
|
@@ -21,6 +21,6 @@ crate-type = ["cdylib"]
|
|
|
21
21
|
|
|
22
22
|
[dependencies]
|
|
23
23
|
magnus = "0.8.0"
|
|
24
|
-
optify = { path = "../../../../rust/optify", version = "0.20.
|
|
24
|
+
optify = { path = "../../../../rust/optify", version = "0.20.4" }
|
|
25
25
|
rb-sys = { version = "*", default-features = false, features = ["ruby-static"] }
|
|
26
26
|
serde_json = "1.0.143"
|
|
@@ -47,15 +47,20 @@ impl MutGetOptionsPreferences {
|
|
|
47
47
|
|
|
48
48
|
// Overrides Section
|
|
49
49
|
pub fn has_overrides(&self) -> bool {
|
|
50
|
-
self.0.borrow().
|
|
50
|
+
self.0.borrow().overrides.is_some()
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
pub fn set_overrides_json(&self, overrides: Option<String>) {
|
|
54
|
-
self.0.borrow_mut().
|
|
54
|
+
self.0.borrow_mut().overrides =
|
|
55
|
+
overrides.map(|s| serde_json::from_str(&s).expect("overrides should be valid JSON"));
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
pub fn get_overrides_json(&self) -> Option<String> {
|
|
58
|
-
self.0
|
|
59
|
+
self.0
|
|
60
|
+
.borrow()
|
|
61
|
+
.overrides
|
|
62
|
+
.as_ref()
|
|
63
|
+
.map(|o| serde_json::to_string(&o).unwrap())
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
// Skip Feature Name Conversion Section
|