dynarex-tags 0.1.4 → 0.1.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.
- data/lib/dynarex-tags.rb +2 -2
- metadata +1 -1
data/lib/dynarex-tags.rb
CHANGED
|
@@ -23,7 +23,7 @@ class DynarexTags
|
|
|
23
23
|
|
|
24
24
|
url, title = item.values[0..1]
|
|
25
25
|
fields = title.scan(/#(\w+)/)
|
|
26
|
-
next
|
|
26
|
+
next if fields.empty?
|
|
27
27
|
|
|
28
28
|
fields.flatten.each {|tag| save_tag(h, tag, title, url)}
|
|
29
29
|
end
|
|
@@ -34,7 +34,7 @@ class DynarexTags
|
|
|
34
34
|
def save_title_tags(title, url)
|
|
35
35
|
|
|
36
36
|
fields = title.scan(/#(\w+)/)
|
|
37
|
-
return
|
|
37
|
+
return if fields.empty?
|
|
38
38
|
|
|
39
39
|
if File.exists? @index_filename then
|
|
40
40
|
dynarex = Dynarex.new @index_filename
|