prompt-lists 0.0.4 → 0.0.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/prompt_lists.rb +3 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a32d7160bd03ddb40bea30eaabeb90c2f4ba99e85c972c70fd26b43f6f33d19
4
- data.tar.gz: 11e7d757572711d98ee978731ed99b81364d11e378f5f19f9b19ba3e1b539355
3
+ metadata.gz: ba5c42aab5e78e9a50a6cb2d86bb4da1105f38ec58bcb2e9967518a9ea81e3fe
4
+ data.tar.gz: 6593c4106092d8da9f2d33ac53da44831fcdeff32a690a4cbe436ff773f16bc9
5
5
  SHA512:
6
- metadata.gz: 5363c5c8edd63ea2c027b2f35b0284d9cf45c274bf9910eaf4328493aec16960690d52bbaac05b7d9aded9064cfc83e5cb1716d8f3caaeae21d002a23e2ca861
7
- data.tar.gz: 18fc2b6cc2eebe17643c0f66e56af74dcb14987eb49771542518e0eee4bbd642c3a587570c588142a51eb832d23d27070ce593f6198b882885e329df0fbc843e
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.4'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prompt-lists
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dreaming Tulpa