active_prompt_rails 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/active_prompt/version.rb +1 -1
- data/lib/generators/active_prompt/USAGE +3 -0
- data/lib/{active_prompt/generators/active_prompt/prompt → generators/active_prompt}/prompt_generator.rb +4 -3
- metadata +5 -4
- /data/lib/{active_prompt/generators/active_prompt/prompt → generators/active_prompt}/templates/system.liquid +0 -0
- /data/lib/{active_prompt/generators/active_prompt/prompt → generators/active_prompt}/templates/user.liquid +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e8e5583853860560a705b48e3acb311d90a4f8d3d4fdfdf2e74e6df71a15f11
|
4
|
+
data.tar.gz: ac0ff6956f6ad8e986fc9e0ba431f9818d88b431a5a9f8fb044a035bb0e71d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4209c1d3e8ef58ebc86da4094ada656058962cb833e29b14996c569919413b7137443968c6483e764002ff181bb50a006c2ef95bb1ad79606fdfecd58157cd2f
|
7
|
+
data.tar.gz: 6c6787fafbd4c14b5e24a8b24c2e44a7a96f6d0e8b4094a69df030f0e07a965d04317baf8af12686f23a51face96117503e5ec04af01d3414961a1c82b33e301
|
@@ -5,13 +5,14 @@ require 'rails/generators'
|
|
5
5
|
module ActivePrompt
|
6
6
|
module Generators
|
7
7
|
# This generator creates a new prompt in the app/prompts directory
|
8
|
-
class PromptGenerator < Rails::Generators::
|
8
|
+
class PromptGenerator < Rails::Generators::Base
|
9
|
+
desc "This generator creates a new prompt in the app/prompts directory"
|
9
10
|
source_root File.expand_path("templates", __dir__)
|
10
11
|
|
11
12
|
def create_prompt_files
|
12
13
|
empty_directory "app/prompts/#{file_name}"
|
13
|
-
|
14
|
-
|
14
|
+
template "system.liquid", "app/prompts/#{file_name}/system.liquid"
|
15
|
+
template "user.liquid", "app/prompts/#{file_name}/user.liquid"
|
15
16
|
create_file "app/prompts/#{file_name}/prompt.rb", <<~RUBY
|
16
17
|
# This is a generated prompt class for #{file_name}
|
17
18
|
class #{file_name.camelize}Prompt < ActivePrompt::Base
|
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.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Perreault
|
@@ -68,11 +68,12 @@ files:
|
|
68
68
|
- lib/active_prompt.rb
|
69
69
|
- lib/active_prompt/base.rb
|
70
70
|
- lib/active_prompt/errors.rb
|
71
|
-
- lib/active_prompt/generators/active_prompt/prompt/prompt_generator.rb
|
72
|
-
- lib/active_prompt/generators/active_prompt/prompt/templates/system.liquid
|
73
|
-
- lib/active_prompt/generators/active_prompt/prompt/templates/user.liquid
|
74
71
|
- lib/active_prompt/railtie.rb
|
75
72
|
- lib/active_prompt/version.rb
|
73
|
+
- lib/generators/active_prompt/USAGE
|
74
|
+
- lib/generators/active_prompt/prompt_generator.rb
|
75
|
+
- lib/generators/active_prompt/templates/system.liquid
|
76
|
+
- lib/generators/active_prompt/templates/user.liquid
|
76
77
|
- sig/active_prompt.rbs
|
77
78
|
homepage: https://www.github.com/Shaneprrlt/active_prompt
|
78
79
|
licenses:
|
File without changes
|
File without changes
|