jmadlibs 0.8.1 → 0.8.2

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jmadlibs.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c413d2fa2a1d13a3d8d9d8bf0dc9569a6ba5e64a
4
- data.tar.gz: 54d44c3e455169e03d6071781fcfd92cc519684c
3
+ metadata.gz: 6f83474876cd9a7be9c1bf10249339431f0b2d4f
4
+ data.tar.gz: 0ba2f288cc8a1a18c69fcd32cfd7cc48e8417e3e
5
5
  SHA512:
6
- metadata.gz: a2bd5e151781f33f19cf2a7befea70c7e9ef50017537f26548d48bf315d05c65d554e2c649e121eff0e5ce874b701eac2c86190e35396cca9564a4d33f99736b
7
- data.tar.gz: ebc8adcf8697f8ec0682646fe32b0c5d0f408941fce52ec905e2103bae8a9cd88138ed32667abd2f4fdc9072635747a5876706fdd54b77cf62b1ee2b8b10facd
6
+ metadata.gz: a8d2a726486a64425d4a3329c507a2cdbf25149ad976c078a4c31162022990babc32dc827b0e661a076a25cb4147df2434926c15afabb83f7469fc100322783f
7
+ data.tar.gz: bb742fdde3dbd1886b49db77e0b7fc14e53d9c9f81038866a8d99a19e68166282ca762ac10af57d653daf01f8285f4ab8f59668071f7ae99d67b4178a0d80076
data/lib/jmadlibs.rb CHANGED
@@ -63,14 +63,14 @@ class JMadlibs
63
63
  def loadList(filename)
64
64
  if File.file?(filename)
65
65
  log "Loading word lists from " + filename, "INFO"
66
- @library = ()
66
+ @library = {}
67
67
  currentList = ""
68
68
  currentListContents = []
69
69
 
70
70
  File.foreach(filename).with_index do |line|
71
71
  line = line.strip
72
72
  if line != "" and !line.start_with?('#')
73
- matched = /==(.+)==/.match(line)
73
+ matched = /^==(.+)==$/.match(line)
74
74
  if !matched.nil? # new list identifier
75
75
  if currentList != "" # save old list, if one exists.
76
76
  addList(currentList, currentListContents)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jmadlibs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth Morgan