google 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/google.gemspec +1 -1
- data/lib/google.rb +1 -1
- data/lib/reverse-markdown/reverse_markdown.rb +2 -2
- metadata +1 -1
data/README.md
CHANGED
data/google.gemspec
CHANGED
data/lib/google.rb
CHANGED
@@ -8,7 +8,7 @@ require_relative 'google/grab'
|
|
8
8
|
require_relative 'google/pipe-view'
|
9
9
|
|
10
10
|
opts = Trollop::options do
|
11
|
-
version "google v1.0.
|
11
|
+
version "google v1.0.6 (c) 2012 Kerrick Long http://kerrick.github.com/google"
|
12
12
|
banner <<-EOM
|
13
13
|
The google gem is a simple tool to search Gooogle with via a CLI.
|
14
14
|
Usage:
|
@@ -36,7 +36,7 @@ class ReverseMarkdown
|
|
36
36
|
# To garantuee well-formed xml for REXML a <root> element will be added, but has no effect.
|
37
37
|
# After parsing all elements, the 'reference style'-links will be inserted.
|
38
38
|
def parse_string(string)
|
39
|
-
doc = Document.new("<root>\n"+string+"\n</root>")
|
39
|
+
doc = Document.new("<root>\n"+string.encode("UTF-8")+"\n</root>")
|
40
40
|
parse_element(doc.root, :none)
|
41
41
|
insert_links()
|
42
42
|
@output
|
@@ -57,7 +57,7 @@ class ReverseMarkdown
|
|
57
57
|
|
58
58
|
# 3a.
|
59
59
|
if (element.has_text? and element.children.size < 2)
|
60
|
-
@output << text_node(element, parent)
|
60
|
+
@output << (text_node(element, parent) || '')
|
61
61
|
end
|
62
62
|
|
63
63
|
# 3b.
|