riffer-rig 0.18.0 → 0.19.0

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: 3f763fde525806f5e4780b0d3c64fc1fa54aeecca27a37c04a6959672187ba58
4
- data.tar.gz: 65ac529e22f788cdd0dc30b2d07af925af178bb38be01c37d2ab5900e32630be
3
+ metadata.gz: 5b0f1827ee6bf5b6da18e1d9cc02bb14b0473426cc407106c6c070260a6f3791
4
+ data.tar.gz: 560d5c945653ef3076271a3c767b8fdb6e08b3284dfbf915ebfe8e1f872ef195
5
5
  SHA512:
6
- metadata.gz: eb10f8f4c869e48c6666b10de70e8df32ea18a60a0e52e2b93b6ddb07f0345b6895b93841f5ea6bf56d6ff0b4310216526b305d964b508c584d76abb573a5e94
7
- data.tar.gz: 929e2929f45fe8833737e4d3db3e2536c54181f95cfd7be0ee32a72bd84174008977a3f1ec221cbef505609cac61589698799bc70e624e02ecbb05883eb3516c
6
+ metadata.gz: 9a98f865e62d62f6feeda6303ba37757723c3ed22509bc7381d6029cd9426fc405cf1a7fe5bd79a18a3cebd1a6cbff63e8a1e01ed2069891d8d0d9165a578512
7
+ data.tar.gz: 84cb6adea8d80d6c96f93eb6c4b1d67ffba3085638f5b3c5eeeaf892a23f98389a39fcd3c91136717c3e70eb7ad6d8fd3fa28edf23260dadc0b3b0ae0b326ec2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.19.0](https://github.com/bottrall/riffer-rig/compare/v0.18.0...v0.19.0) (2026-11-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * expand ~ in catalog file paths ([#623](https://github.com/bottrall/riffer-rig/issues/623)) ([99609b5](https://github.com/bottrall/riffer-rig/commit/99609b536634108aeb472a31c63dc5ae545752e4))
9
+
3
10
  ## [0.18.0](https://github.com/bottrall/riffer-rig/compare/v0.17.0...v0.18.0) (2026-11-07)
4
11
 
5
12
 
@@ -24,4 +24,17 @@ module Riffer::Rig::Directories
24
24
  def riffer(root, *names)
25
25
  File.join(root, '.riffer', *names)
26
26
  end
27
+
28
+ # @rbs path: String
29
+ # @rbs home: String
30
+ # @rbs return: String
31
+ def expand_home(path, home)
32
+ if path == '~'
33
+ home
34
+ elsif path.start_with?('~/')
35
+ File.join(home, path.delete_prefix('~/'))
36
+ else
37
+ path
38
+ end
39
+ end
27
40
  end
@@ -88,7 +88,7 @@ class Riffer::Rig::Loader
88
88
  credentials = install_credentials(provider)
89
89
  raise ConfigurationError, credentials if credentials.is_a?(String)
90
90
 
91
- @riffer_config.catalog_files = document.catalog_files
91
+ @riffer_config.catalog_files = document.catalog_files.map { |path| Riffer::Rig::Directories.expand_home(path, @home) }
92
92
  stripped = { skills: options.skills, agents_md: options.agents_md }.reject { |_name, kept| kept }.keys
93
93
  discovered = options.extensions ? @source.discover(autoload: document.autoload) : [] #: Array[Riffer::Rig::Extension]
94
94
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Riffer
4
4
  module Rig
5
- VERSION = '0.18.0'
5
+ VERSION = '0.19.0'
6
6
  end
7
7
  end
@@ -13,4 +13,9 @@ module Riffer::Rig::Directories
13
13
  # @rbs *names: String
14
14
  # @rbs return: String
15
15
  def riffer: (String root, *String names) -> String
16
+
17
+ # @rbs path: String
18
+ # @rbs home: String
19
+ # @rbs return: String
20
+ def expand_home: (String path, String home) -> String
16
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riffer-rig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Bottrall