active_prompt_rails 0.1.7 → 0.1.8
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 +2 -1
- 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: 734b59de6d00983540105a4fd31c8b0afc5e1c29a19c623a3823099cec641bed
|
4
|
+
data.tar.gz: 5fe5dd21a39e8589c8eb44b416a6aa97322b7cbe84802276ad0e6015e546b5c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fa8187a6314ed2545fc18555b6d569dc365be6c18d7bf141d9aa591137a622fc246e8cdd3b2cedcd1287e3666077a9249abda3a7e9625dc9b87587c404fc4bc
|
7
|
+
data.tar.gz: 26f90672216956bf128c9f67ba7bf927fb597319bd3a4a6bb0d5d677e2b8572c33c3eb8bf0d983912d79573639bf227fc3b2d157374e2bd90e43979c95fb68ad
|
@@ -9,7 +9,8 @@ module ActivePrompt
|
|
9
9
|
desc "This generator creates a new prompt in the app/prompts directory"
|
10
10
|
source_root File.expand_path("templates", __dir__)
|
11
11
|
|
12
|
-
def create_prompt_files
|
12
|
+
def create_prompt_files(file_name)
|
13
|
+
file_name = file_name.underscore
|
13
14
|
empty_directory "app/prompts/#{file_name}"
|
14
15
|
template "system.liquid", "app/prompts/#{file_name}/system.liquid"
|
15
16
|
template "user.liquid", "app/prompts/#{file_name}/user.liquid"
|