galaaz 2.1.2 → 2.1.3
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/CHANGELOG.md +10 -2
- data/ext/new_bridge/galaaz_gatekeeper_phase1.cpp +13 -3
- data/version.rb +1 -1
- 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: '085fd47fe76016fb5b078f3c44a02100a7d9af05c2f7cf9e19ded83058947c8e'
|
|
4
|
+
data.tar.gz: 19f36b20968fd4456ad95024f2a33dbde60dfdf62a3bbda295d49e08a8c32bc7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7db477fca2f6de435d9eb6bd5ccc5ee709a779e3a5816febc9a0eda9be51f5f18812af79889e7fd4ce1e5facd79a080e80a98829381b19670d6a380765554c4
|
|
7
|
+
data.tar.gz: 6ba4144e49328b6bb70188ab6330ed086f969cb952076758db0207171c54c2ff41e6fb21c8666a6cd87b459f47b2786a31edf8f1f1b98343d7d536aae902de36
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.3
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Gatekeeper builds on **R 4.5+/4.6** (Omarchy): replace removed `Rf_findVar` with
|
|
8
|
+
`R_getVarEx` (fallback to `Rf_findVar` on older R).
|
|
9
|
+
|
|
3
10
|
## 2.1.2
|
|
4
11
|
|
|
5
12
|
### Fixed
|
|
@@ -13,8 +20,9 @@
|
|
|
13
20
|
|
|
14
21
|
### Notes
|
|
15
22
|
|
|
16
|
-
- Omarchy dogfood:
|
|
17
|
-
|
|
23
|
+
- Omarchy dogfood: `script/omarchy/install-galaaz.sh` installs latest from RubyGems
|
|
24
|
+
(optional pin: `GALAAZ_GEM_VERSION=x.y.z`). Re-copy into `~/.local/bin/omarchy-install-galaaz`
|
|
25
|
+
after updating the script.
|
|
18
26
|
|
|
19
27
|
## 2.1.1
|
|
20
28
|
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
// -----------------------------------------------------------------------------
|
|
46
46
|
|
|
47
47
|
#include <Rcpp.h>
|
|
48
|
+
#include <Rversion.h>
|
|
48
49
|
#include <arpa/inet.h>
|
|
49
50
|
#include <chrono>
|
|
50
51
|
#include <cstdint>
|
|
@@ -61,6 +62,15 @@
|
|
|
61
62
|
#include <unistd.h>
|
|
62
63
|
#include <vector>
|
|
63
64
|
|
|
65
|
+
// R 4.5+: Rf_findVar is no longer a public API entry (hidden in R 4.6).
|
|
66
|
+
// R_getVarEx(sym, rho, inherits, ifnotfound) is the supported replacement.
|
|
67
|
+
static inline SEXP galaaz_find_var(SEXP sym, SEXP env) {
|
|
68
|
+
#if defined(R_VERSION) && R_VERSION >= R_Version(4, 5, 0)
|
|
69
|
+
return R_getVarEx(sym, env, TRUE, R_UnboundValue);
|
|
70
|
+
#else
|
|
71
|
+
return Rf_findVar(sym, env);
|
|
72
|
+
#endif
|
|
73
|
+
}
|
|
64
74
|
// Active bridge socket used by main loop and callback path.
|
|
65
75
|
static int g_bridge_fd = -1;
|
|
66
76
|
// Instance id of the currently serviced REQ; reused by callback CALL messages.
|
|
@@ -848,7 +858,7 @@ EvalResult eval_unbox_walk_cmd(const std::string& cmd, const Rcpp::Environment&
|
|
|
848
858
|
}
|
|
849
859
|
|
|
850
860
|
SEXP sym = Rf_install(handle.c_str());
|
|
851
|
-
SEXP root =
|
|
861
|
+
SEXP root = galaaz_find_var(sym, env);
|
|
852
862
|
if (root == R_UnboundValue) return {false, payload_error("unbox_walk unknown handle")};
|
|
853
863
|
|
|
854
864
|
std::vector<std::pair<SEXP, int>> stack;
|
|
@@ -1001,7 +1011,7 @@ EvalResult eval_unbox_materialize_cmd(const std::string& cmd, const Rcpp::Enviro
|
|
|
1001
1011
|
}
|
|
1002
1012
|
|
|
1003
1013
|
SEXP sym = Rf_install(handle.c_str());
|
|
1004
|
-
SEXP root =
|
|
1014
|
+
SEXP root = galaaz_find_var(sym, env);
|
|
1005
1015
|
if (root == R_UnboundValue) return {false, payload_error("unbox_materialize unknown handle")};
|
|
1006
1016
|
|
|
1007
1017
|
std::vector<uint8_t> value_bytes;
|
|
@@ -1176,7 +1186,7 @@ static EvalResult eval_pull_vector_cmd(const std::string& cmd, const Rcpp::Envir
|
|
|
1176
1186
|
}
|
|
1177
1187
|
|
|
1178
1188
|
SEXP sym = Rf_install(handle.c_str());
|
|
1179
|
-
SEXP vec =
|
|
1189
|
+
SEXP vec = galaaz_find_var(sym, env);
|
|
1180
1190
|
if (vec == R_UnboundValue) {
|
|
1181
1191
|
return {false, payload_error("pull_vector unknown handle")};
|
|
1182
1192
|
}
|
data/version.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$gem_name = "galaaz"
|
|
2
|
-
$version="2.1.
|
|
2
|
+
$version="2.1.3"
|