active_prompt_rails 0.1.19 → 0.1.20

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: d9b0ed834ff87bf6e5e43d1a513cebece5021afc6b4306dda7c4bd7b89038066
4
- data.tar.gz: 5febc8f1d53ef6309da8d579c78c58bd6ab5b302f7dd1304e999005dd5e89caa
3
+ metadata.gz: 0d884aa97e92b98c307785818064cc0df6e65a4f290f000c9410f2203779dd75
4
+ data.tar.gz: d858cadc9db796cc036f148259c17eebdcb803b9288cea7506b3554de601279e
5
5
  SHA512:
6
- metadata.gz: f3b645c825c321dad775b564d1e2d7001b66fd8c94114f10dd1570ea3498f9e03af62b42f6009f9b73f7b4dad59cc8e457b7c4e238d7a5135dd631c480c4be4a
7
- data.tar.gz: d4d0f0a9b498f3ff84ecb65e79a5ef3a8f2f3b674fff8b722c7b9442985c8aa715294e70454d9a420d59fd2fed0ef1efd4b7787e01c5d5236b502c58e61ca537
6
+ metadata.gz: 8c38b600e5fcd89cabd640654e799d28ff9f529b607109843c7d40290c9a8c6e4b4ab908498b3e318cff62592493df4a38f38b0b7c5012b8e093dffbbba041c8
7
+ data.tar.gz: c1b6aa197e94d8acfb4cde43e4631855cbc3f458f7e9db35df4bf90d7d7bc12e2705d03c3a043e3ded0bf8f746d678777e147dfff514bb4bee1a0e329c8fe7a3
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # ActivePrompt
2
2
 
3
- ActivePrompt is a gem that helps you structure and manage LLM prompts in your rails apps.
3
+ ActivePrompt is a gem that helps you structure and manage LLM prompts in your rails apps. View the gem on [RubyGems](https://rubygems.org/gems/active_prompt_rails).
4
4
 
5
5
  ## Installation
6
6
 
7
7
  Add the following line to your Gemfile:
8
8
 
9
9
  ```Gemfile
10
- gem "active_prompt_rails", "~> 0.1.18", require: "active_prompt"
10
+ gem "active_prompt_rails", "~> 0.1.20", require: "active_prompt"
11
11
  ```
12
12
 
13
13
  and run `bundle install`
@@ -43,7 +43,7 @@ module ActivePrompt
43
43
  private
44
44
 
45
45
  def render_template(template_name)
46
- template_path = File.join("app", "prompts", "templates", "#{self.class.name.underscore}", template_name)
46
+ template_path = File.join("app", "prompts", "templates", self.class.name.underscore.to_s, template_name)
47
47
  template = File.read(template_path)
48
48
  context = # Dynamic method call to get the variable value
49
49
  self.class.variables.map do |var|
@@ -3,6 +3,7 @@
3
3
  require "rails/railtie"
4
4
 
5
5
  module ActivePrompt
6
+ # This class is a Railtie that allows ActivePrompt to be loaded as a Rails engine
6
7
  class Railtie < Rails::Railtie
7
8
  config.eager_load_namespaces << ActivePrompt
8
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActivePrompt
4
- VERSION = "0.1.19"
4
+ VERSION = "0.1.20"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_prompt_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Perreault