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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e8e5583853860560a705b48e3acb311d90a4f8d3d4fdfdf2e74e6df71a15f11
4
- data.tar.gz: ac0ff6956f6ad8e986fc9e0ba431f9818d88b431a5a9f8fb044a035bb0e71d29
3
+ metadata.gz: 734b59de6d00983540105a4fd31c8b0afc5e1c29a19c623a3823099cec641bed
4
+ data.tar.gz: 5fe5dd21a39e8589c8eb44b416a6aa97322b7cbe84802276ad0e6015e546b5c7
5
5
  SHA512:
6
- metadata.gz: 4209c1d3e8ef58ebc86da4094ada656058962cb833e29b14996c569919413b7137443968c6483e764002ff181bb50a006c2ef95bb1ad79606fdfecd58157cd2f
7
- data.tar.gz: 6c6787fafbd4c14b5e24a8b24c2e44a7a96f6d0e8b4094a69df030f0e07a965d04317baf8af12686f23a51face96117503e5ec04af01d3414961a1c82b33e301
6
+ metadata.gz: 1fa8187a6314ed2545fc18555b6d569dc365be6c18d7bf141d9aa591137a622fc246e8cdd3b2cedcd1287e3666077a9249abda3a7e9625dc9b87587c404fc4bc
7
+ data.tar.gz: 26f90672216956bf128c9f67ba7bf927fb597319bd3a4a6bb0d5d677e2b8572c33c3eb8bf0d983912d79573639bf227fc3b2d157374e2bd90e43979c95fb68ad
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActivePrompt
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
@@ -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"
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Perreault