libbeachcomber 0.8.0 → 0.9.1
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/lib/beachcomber/client.rb +7 -3
- 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: 33c71976f78100c4d66bed305d8ce20a9a3ef47887426d584a4ef57d786a8253
|
|
4
|
+
data.tar.gz: 980c0b4e878b7fc1372d5f9d543a554abcd4b2b65467ce3191dd295a08163a69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a41a648a7de7e71930635cc1881a71ddbc596ab2c4cef8a311206e8794dc392d9c724462300a44655aa32d0fa3850e918f4cad9e3cc45b9cc52dd4acaa3faea4
|
|
7
|
+
data.tar.gz: 074e44fc57027685cd2f19a36000249398ba2e2c8755825883e0e96f854bd2fdca2f551483eba3ca1a259f3bd9051a3b25f1959e781236372b2cbc098268df12
|
data/lib/beachcomber/client.rb
CHANGED
|
@@ -333,14 +333,18 @@ module Beachcomber
|
|
|
333
333
|
Beachcomber::FFI.call!(:bc_resolve, @handle, key, cwd, json_or_nil(env), json_or_nil(overrides))
|
|
334
334
|
end
|
|
335
335
|
|
|
336
|
-
# Evaluates
|
|
337
|
-
#
|
|
336
|
+
# Evaluates a value expression against `env.*`/`cache.*` refs, using the
|
|
337
|
+
# same evaluator {#resolve} uses for a declared field.
|
|
338
|
+
#
|
|
339
|
+
# +template+ accepts a bare expression, a single <tt>{{ expr }}</tt>
|
|
340
|
+
# tag, or literal text/several tags — the first two keep the
|
|
341
|
+
# expression's natural type, the third is always a string.
|
|
338
342
|
#
|
|
339
343
|
# @param template [String]
|
|
340
344
|
# @param cwd [String] required, matching {#resolve}
|
|
341
345
|
# @param env [Hash, nil]
|
|
342
346
|
# @param overrides [Hash, nil]
|
|
343
|
-
# @return [
|
|
347
|
+
# @return [Object]
|
|
344
348
|
def eval_expression(template, cwd:, env: nil, overrides: nil)
|
|
345
349
|
Beachcomber::FFI.call!(:bc_eval, @handle, template, cwd, json_or_nil(env), json_or_nil(overrides))
|
|
346
350
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libbeachcomber
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NavistAu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Communicates with the beachcomber daemon over a Unix domain socket to
|
|
14
14
|
query cached shell-environment data (git state, hostname, battery, etc.).
|