lib/meiou/book.rb in meiou-0.1.0 vs lib/meiou/book.rb in meiou-0.1.3
- old
+ new
@@ -47,12 +47,11 @@
if !/^[[[:upper:]]|[[:blank:]]|[[:punct:]]|[[:digit:]]]*$/.match(x)
s = BOOK.size?(x.split(/\s/))
@bin[s].transaction { |db| db[i] = x }
@ind.transaction { |db| db[i] = s }
@mod.transaction { |db| db[i] = MOOD[x] }
- if s == :info
- Meiou.extract(x) { |e| @tag.transaction { |db| if !db.key?(e[:word]); db[e[:word]] = []; end; db[e[:word]] << i; } }
- end
+ puts ":INFO"
+ Meiou.extract(x) { |e| @tag.transaction { |db| if !db.key?(e[:word]); db[e[:word]] = []; end; db[e[:word]] << i; } }
else
if !/GUTENBERG/.match(x)
puts %[#{@id}>#{i}: #{x}]
@sec.transaction { |db| db[i] = x }
@top.transaction { |db| db[x] = i }