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 +4 -4
- data/lib/active_prompt/version.rb +1 -1
- data/lib/generators/active_prompt/prompt_generator.rb +5 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3754ff026414a9edd716d6e1d329d11d7d29798827217564762bf33ef35aa00e
|
4
|
+
data.tar.gz: f453f83f29564f0dfcdefa42d51f63c9c600d4374fdf86417c72c1363ab8e5ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3024a65f6c8771a5a0adc83be15bfc66b81f1c798f8095b53222e720e8381998f45d7c4b1e4d1766f5cee130bb9dd522088ac466a09b02cd88af078fe7db961a
|
7
|
+
data.tar.gz: 14718befdd2d61bd5b1efc60bf7f7e16c988451bb6a03d2983faa91dc42b32760c1b85aa78bfd1433bde6fbb9ef672c084b179b92e7c3aa660396dd2c52bdb97
|
@@ -10,13 +10,12 @@ module ActivePrompt
|
|
10
10
|
source_root File.expand_path("templates", __dir__)
|
11
11
|
|
12
12
|
def create_prompt_files
|
13
|
-
|
14
|
-
|
15
|
-
template "
|
16
|
-
|
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 #{
|
18
|
+
class #{name.camelize}Prompt < ActivePrompt::Base
|
20
19
|
# Define your prompt methods here
|
21
20
|
end
|
22
21
|
RUBY
|