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.
- checksums.yaml +4 -4
- data/lib/jmadlibs.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f83474876cd9a7be9c1bf10249339431f0b2d4f
|
|
4
|
+
data.tar.gz: 0ba2f288cc8a1a18c69fcd32cfd7cc48e8417e3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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)
|