prompt-lists 0.0.3 → 0.0.5

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: 470a9a2e1784148f8e3f564e148858b5d6d2282ac0c5be577cdb82b142292f1c
4
- data.tar.gz: 4a9cc2d872bd350372562a38722c51706be6600d3abc8ae01a92bf53709dd77d
3
+ metadata.gz: ba5c42aab5e78e9a50a6cb2d86bb4da1105f38ec58bcb2e9967518a9ea81e3fe
4
+ data.tar.gz: 6593c4106092d8da9f2d33ac53da44831fcdeff32a690a4cbe436ff773f16bc9
5
5
  SHA512:
6
- metadata.gz: b224390cb3c7acf9b0a925de3da24edb62842219e92a132369f67128da1dd71af2b7c6365e9ab4df4216e5c22a55c9a641068773e340fd63b1c2dedbf9bd2dee
7
- data.tar.gz: e4b1ecd1cd6d03e3f6001837115c5946e008ec7231f822d82038e7978ac23d78c8cdee7d601e1fc5971b224f7390dffb0ce351ac666a2e8b2e537388c1b62f93
6
+ metadata.gz: fc05c3226b3f5c97e88a2e1013d0d27e397c111677d8247126e71b4ac79d089df5112d5bf021837173e73dc7e4dae73dd013a84288f1b0152bf4ccf7de8d8888
7
+ data.tar.gz: cc4473f95de1e688d1a704952da369b1d5c90dfdc81815dd7adfeb141c01212d70c3c09e77b6a7936f78c72360894814399c048cfeb85f9ca23052ea6c2bcf1c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prompt-lists (0.0.3)
4
+ prompt-lists (0.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/prompt_lists.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'yaml'
4
4
 
5
5
  module PromptLists
6
- VERSION = '0.0.3'
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
- path = File.expand_path("../lists/#{@id}/#{sublist}.yml", __dir__)
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