active_prompt_rails 0.1.19 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9b0ed834ff87bf6e5e43d1a513cebece5021afc6b4306dda7c4bd7b89038066
4
- data.tar.gz: 5febc8f1d53ef6309da8d579c78c58bd6ab5b302f7dd1304e999005dd5e89caa
3
+ metadata.gz: e9c2658bd0d092b2a01c16cb74ea28785c6add022bc740ab5aca3a6f0f85f566
4
+ data.tar.gz: a940568ddd601c386746285ce5923a23715efb7a9ddf25c2befe17c6b1f3c0ff
5
5
  SHA512:
6
- metadata.gz: f3b645c825c321dad775b564d1e2d7001b66fd8c94114f10dd1570ea3498f9e03af62b42f6009f9b73f7b4dad59cc8e457b7c4e238d7a5135dd631c480c4be4a
7
- data.tar.gz: d4d0f0a9b498f3ff84ecb65e79a5ef3a8f2f3b674fff8b722c7b9442985c8aa715294e70454d9a420d59fd2fed0ef1efd4b7787e01c5d5236b502c58e61ca537
6
+ metadata.gz: 2507294a695ca1573613a1fbcbab247cb3164ed76a757e1242d04c991d96571ff885330c7c3c2e5acc2a3d9556a0b70ace6fc6f08cad0bf0780e8168f2430913
7
+ data.tar.gz: 13b5cc0a9066b8750d72059eed2e8768690156aeaedda108f3ce99dfb0559071e1a8be66fec2fd0812b92c644d221d3c8cb100dae127d2930cea61cb675a5e0a
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.21", require: "active_prompt"
11
11
  ```
12
12
 
13
13
  and run `bundle install`
@@ -9,8 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Shane Perreault"]
10
10
  spec.email = ["shaneprrlt@gmail.com"]
11
11
  spec.summary = "Easily create and manage LLM prompt templates in your rails app."
12
- spec.description = "Easily create and manage LLM prompt templates in your rails app." \
13
- "Use your own custom templating engine like ERB or Shopify Liquid."
12
+ spec.description = "Easily create and manage LLM prompt templates in your rails app."
14
13
  spec.homepage = "https://www.github.com/Shaneprrlt/active_prompt"
15
14
  spec.required_ruby_version = ">= 2.6.0"
16
15
  spec.metadata["homepage_uri"] = spec.homepage
@@ -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.21"
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.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Perreault
@@ -50,8 +50,7 @@ dependencies:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 6.0.0
53
- description: Easily create and manage LLM prompt templates in your rails app.Use your
54
- own custom templating engine like ERB or Shopify Liquid.
53
+ description: Easily create and manage LLM prompt templates in your rails app.
55
54
  email:
56
55
  - shaneprrlt@gmail.com
57
56
  executables: []