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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/beachcomber/client.rb +7 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9913f2904d89a4bdff62c16c549796236c3b4ed9a12bcaed23d1eefbdd080a39
4
- data.tar.gz: 50cf3b189a487242bd2e9259b41a41097bc58030e75bd731025db02a219a1f10
3
+ metadata.gz: 33c71976f78100c4d66bed305d8ce20a9a3ef47887426d584a4ef57d786a8253
4
+ data.tar.gz: 980c0b4e878b7fc1372d5f9d543a554abcd4b2b65467ce3191dd295a08163a69
5
5
  SHA512:
6
- metadata.gz: b4eb991a7205ea712c21d7033d5a88335edd4f1599e53ea1a95ebd32d8d640110e1b22928a283d2c8e3ba367927d0beff54150bd1a54ccbef1bd52023340104e
7
- data.tar.gz: 9ede8d2296696e916b499766a18394bce4e87a7948e082dd12a23ca30968572886cf1fae9608e8160657755936c532f95cd118f37b36467ded51bb2eb1328623
6
+ metadata.gz: a41a648a7de7e71930635cc1881a71ddbc596ab2c4cef8a311206e8794dc392d9c724462300a44655aa32d0fa3850e918f4cad9e3cc45b9cc52dd4acaa3faea4
7
+ data.tar.gz: 074e44fc57027685cd2f19a36000249398ba2e2c8755825883e0e96f854bd2fdca2f551483eba3ca1a259f3bd9051a3b25f1959e781236372b2cbc098268df12
@@ -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 an arbitrary expression string against `env.*`/`cache.*`
337
- # refs, using the same evaluator {#resolve} uses for a declared field.
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 [String]
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.8.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-23 00:00:00.000000000 Z
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.).