active_prompt_rails 0.1.9 → 0.1.10

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: 9bf871847504f5d09f6b495faf583e573a45997891de572ba60f035a7110658b
4
- data.tar.gz: 87a52521203d4df780d7a72735a69a97b1e4691cc62ccda7dcb339f5d12badd4
3
+ metadata.gz: 3754ff026414a9edd716d6e1d329d11d7d29798827217564762bf33ef35aa00e
4
+ data.tar.gz: f453f83f29564f0dfcdefa42d51f63c9c600d4374fdf86417c72c1363ab8e5ec
5
5
  SHA512:
6
- metadata.gz: 3435bf1caa44e4b9f67f7b27f74d96e30e05196c7a9c81277784e66078e92b9383f606e1bbaba5ab92bce890760de24fb3370411f68ae64654263fc0c7dbd2ef
7
- data.tar.gz: 4e482bed7ac5fba42d9430b8eb06fed1e6083790fec241c3a981189fae6ec910f85fd6c6ff8247e04845ac9452aaefc20ed3de92920422be808c59290daaec40
6
+ metadata.gz: 3024a65f6c8771a5a0adc83be15bfc66b81f1c798f8095b53222e720e8381998f45d7c4b1e4d1766f5cee130bb9dd522088ac466a09b02cd88af078fe7db961a
7
+ data.tar.gz: 14718befdd2d61bd5b1efc60bf7f7e16c988451bb6a03d2983faa91dc42b32760c1b85aa78bfd1433bde6fbb9ef672c084b179b92e7c3aa660396dd2c52bdb97
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActivePrompt
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.10"
5
5
  end
@@ -10,13 +10,12 @@ module ActivePrompt
10
10
  source_root File.expand_path("templates", __dir__)
11
11
 
12
12
  def create_prompt_files
13
- file_name = file_name.underscore
14
- empty_directory "app/prompts/#{file_name}"
15
- template "system.liquid", "app/prompts/#{file_name}/system.liquid"
16
- template "user.liquid", "app/prompts/#{file_name}/user.liquid"
17
- create_file "app/prompts/#{file_name}/prompt.rb", <<~RUBY
13
+ empty_directory "app/prompts/#{name.underscore}"
14
+ template "system.liquid", "app/prompts/#{name.underscore}/system.liquid"
15
+ template "user.liquid", "app/prompts/#{name.underscore}/user.liquid"
16
+ create_file "app/prompts/#{name.underscore}/prompt.rb", <<~RUBY
18
17
  # This is a generated prompt class for #{file_name}
19
- class #{file_name.camelize}Prompt < ActivePrompt::Base
18
+ class #{name.camelize}Prompt < ActivePrompt::Base
20
19
  # Define your prompt methods here
21
20
  end
22
21
  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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Perreault