dynarex-tags 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- 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
|