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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe7e81157b29ea65c61ca9bb97ab5a7f458b90b601cd1c76d8e1740e95e1f69f
4
- data.tar.gz: bfd7e6b8f867ef903cb5119837d0e045b11c57e3aa2b5c9a717447abd0922478
3
+ metadata.gz: '085fd47fe76016fb5b078f3c44a02100a7d9af05c2f7cf9e19ded83058947c8e'
4
+ data.tar.gz: 19f36b20968fd4456ad95024f2a33dbde60dfdf62a3bbda295d49e08a8c32bc7
5
5
  SHA512:
6
- metadata.gz: 5599509abe5d487fb7e19d8ae3fb1a80a558dcc6928e4a526753253ff816820d41509d2f179d6968ca985bbb19084c60ab0f0fc82e34276d840a49a627ad171d
7
- data.tar.gz: 3560c286e71ce88fe5486d71f62c4fb2cba342bf8af03f93e87a2c34ded854fce98eed90b57fb094acd39d333d0d0ea9bb49c35f651a0b33367b2bbc96c09b62
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: pin `script/omarchy/install-galaaz.sh` to this version; re-copy
17
- the installer into `~/.local/bin/omarchy-install-galaaz` after updating.
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 = Rf_findVar(sym, env);
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 = Rf_findVar(sym, env);
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 = Rf_findVar(sym, env);
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"
2
+ $version="2.1.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: galaaz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Botafogo