prompt-lists 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/prompt_lists.rb +3 -2
- 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: ba5c42aab5e78e9a50a6cb2d86bb4da1105f38ec58bcb2e9967518a9ea81e3fe
|
4
|
+
data.tar.gz: 6593c4106092d8da9f2d33ac53da44831fcdeff32a690a4cbe436ff773f16bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc05c3226b3f5c97e88a2e1013d0d27e397c111677d8247126e71b4ac79d089df5112d5bf021837173e73dc7e4dae73dd013a84288f1b0152bf4ccf7de8d8888
|
7
|
+
data.tar.gz: cc4473f95de1e688d1a704952da369b1d5c90dfdc81815dd7adfeb141c01212d70c3c09e77b6a7936f78c72360894814399c048cfeb85f9ca23052ea6c2bcf1c
|
data/Gemfile.lock
CHANGED
data/lib/prompt_lists.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'yaml'
|
4
4
|
|
5
5
|
module PromptLists
|
6
|
-
VERSION = '0.0.
|
6
|
+
VERSION = '0.0.5'
|
7
7
|
|
8
8
|
class List
|
9
9
|
def initialize(list_name, sublist_names)
|
@@ -14,7 +14,8 @@ module PromptLists
|
|
14
14
|
def method_missing(method_name, *args)
|
15
15
|
sublist = @sublists.find { |sublist| sublist == method_name }
|
16
16
|
if sublist
|
17
|
-
|
17
|
+
sublist_filename = method_name.to_s.gsub(/_/, "-")
|
18
|
+
path = File.expand_path("../lists/#{@id}/#{sublist_filename}.yml", __dir__)
|
18
19
|
Sublist.new(path)
|
19
20
|
else
|
20
21
|
super
|