ruby_llm-registry 0.1.0 → 0.1.2

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: b8cc22de69b90a698ba2fe765043e40881411bdef7d689fc38c3f4571a337a80
4
- data.tar.gz: 461d0a268c6cf3970f3ba03e120085ec6620ae46c390ff0ba9648961cf3ae01b
3
+ metadata.gz: 65621c31f861999b1c43c0fe7284ab1712286d2acea809ef39ce9f0d1e9ef011
4
+ data.tar.gz: 1621f96e394c208c27eadd8106b6eef2b2be24a9f6abb1fbf12c8646471f0295
5
5
  SHA512:
6
- metadata.gz: a9d1f5d97587744bf9090e7ba493cdbbb53842690a3faef1879acc6b99105c95f2a8937829e3b5c7f64ae60a8ac13c1ec823f1461bf7db3783cdad7bdfa53295
7
- data.tar.gz: e6f9d1b75b75eb40e08b1534aaceec12e9d34b72f9a50b88a1b9fcdfd011d9059900592dbb2f1f367e11d3aec9dd7e0e74eb3893d7b830411d697afc5e170004
6
+ metadata.gz: fddf7c8478a0f0616f4ecef453bf84da54473015e7a8c5a069ecc64afe8648465ac375083651325950b2d8e19cad060d823362203b7199afee6189c58bcd15a7
7
+ data.tar.gz: d6ad921b31b095d223cdc0a733c8cdbe814f246c358d0e766a9d1bb59d779f48a1c95e6bc48973336f27433d602179ac6e3452ed68b28fda3040c1d5fb0dee1e
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # RubyLlm::Registry
1
+ # RubyLLM::Registry
2
2
 
3
3
  [![CI](https://github.com/washu/ruby_llm-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/washu/ruby_llm-registry/actions/workflows/ci.yml)
4
4
 
@@ -6,7 +6,7 @@ Local-first, versioned prompt storage and rendering for RubyLLM applications.
6
6
 
7
7
  ## What it does
8
8
 
9
- `RubyLlm::Registry` treats prompts as immutable artifacts stored outside your app code. It can:
9
+ `RubyLLM::Registry` treats prompts as immutable artifacts stored outside your app code. It can:
10
10
 
11
11
  - load the latest or a specific semantic version
12
12
  - resolve labels like `production` or `staging`
@@ -19,7 +19,7 @@ Local-first, versioned prompt storage and rendering for RubyLLM applications.
19
19
  ## Quick start
20
20
 
21
21
  ```ruby
22
- prompt = RubyLlm::Registry.get("email/summarizer", label: :production)
22
+ prompt = RubyLLM::Registry.get("email/summarizer", label: :production)
23
23
 
24
24
  rendered = prompt.render(
25
25
  user_name: "Ava",
@@ -27,7 +27,7 @@ rendered = prompt.render(
27
27
  summary_length: "concise"
28
28
  )
29
29
 
30
- diff = RubyLlm::Registry.diff(prompt, prompt.export(format: :markdown))
30
+ diff = RubyLLM::Registry.diff(prompt, prompt.export(format: :markdown))
31
31
  puts diff.changed_fields
32
32
  ```
33
33
 
@@ -36,12 +36,12 @@ puts diff.changed_fields
36
36
  The gem stays filesystem-first by default. If you need a different store, opt in explicitly:
37
37
 
38
38
  ```ruby
39
- sqlite = RubyLlm::Registry.database_backend(:sqlite, path: "tmp/prompts.db")
39
+ sqlite = RubyLLM::Registry.database_backend(:sqlite, path: "tmp/prompts.db")
40
40
 
41
41
  # or, when those integrations are available in your app:
42
- # RubyLlm::Registry.database_backend(:active_record)
43
- # RubyLlm::Registry.database_backend(:mongo, collection: MyCollection)
44
- # RubyLlm::Registry.backend(:s3, client: s3_client, bucket: "my-bucket")
42
+ # RubyLLM::Registry.database_backend(:active_record)
43
+ # RubyLLM::Registry.database_backend(:mongo, collection: MyCollection)
44
+ # RubyLLM::Registry.backend(:s3, client: s3_client, bucket: "my-bucket")
45
45
  ```
46
46
 
47
47
  All non-filesystem adapters are loaded lazily, so your app only pulls in the storage stack it actually uses.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyLLM
4
4
  module Registry
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
- module RubyLlm
1
+ module RubyLLM
2
2
  module Registry
3
3
  VERSION: String
4
4
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm-registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sal Scotto