active_prompt_rails 0.1.15 → 0.1.16

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: 669de17537172fcd6a97aaafcedaa4941f54ab367a2896be2b3edbf8def8bd01
4
- data.tar.gz: 6bf0f56be8d62f4d19eccf0417419a8c3216e8ffbadaad2c2175b50ed3a0a8db
3
+ metadata.gz: cbcc6b67633bb249817ae5116777bbc5608997e88a9a90327062c57f7b0b5e05
4
+ data.tar.gz: f551319c27839c42a9d713c07599698a080465d81c9e4312fc25940d3df4a019
5
5
  SHA512:
6
- metadata.gz: 2362c8ab8fb54333169873c4aed3a52b4c8b17338aab205f50c750b081f152a61e719379b440432385163f7eda7dcfbc6ed2d65f6a6a4b60c07a7a16317aa9aa
7
- data.tar.gz: a26e71742117fbd82bfe87822d7b90bbdf35f5c5306ae5e5b047b0a69dfd80e4233104e2b9aa29db8a5b534a601b99489c44e6b4a64ca3ba12d572902d318c89
6
+ metadata.gz: 52e1eead573874c4e7b4af689de7bf24f6e55035f51dcd2c624323b490bd14416daa33199b871303c6fbd8ecb5ccef3aed3e40878fe180f1008dba21c6c2487a
7
+ data.tar.gz: 8c09402217c7d068ddc3be06376c7fe2e47a1760361d95716b79e6215ae0c1ec53cd2895ade5f1a30ef0cf828c8bdde90fe8dd562ea0e6b33a8d5d69995f3361
@@ -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", "#{self.class.name.underscore}_prompt", template_name)
46
+ template_path = File.join("app", "prompts", "#{self.class.name.underscore}", 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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActivePrompt
4
- VERSION = "0.1.15"
4
+ VERSION = "0.1.16"
5
5
  end
@@ -10,7 +10,7 @@ module ActivePrompt
10
10
  source_root File.expand_path("templates", __dir__)
11
11
 
12
12
  def create_prompt_files
13
- empty_directory "app/prompts/#{name.underscore}"
13
+ empty_directory "app/prompts/#{name.underscore}_prompt"
14
14
  template "system.liquid", "app/prompts/#{name.underscore}_prompt/system.liquid"
15
15
  template "user.liquid", "app/prompts/#{name.underscore}_prompt/user.liquid"
16
16
  create_file "app/prompts/#{name.underscore}_prompt.rb", <<~RUBY
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.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Perreault