microby 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/README.md +1 -1
- data/lib/microby/h_entry.rb +4 -1
- data/lib/microby/version.rb +1 -1
- metadata +1 -1
data/.gitignore
CHANGED
data/README.md
CHANGED
data/lib/microby/h_entry.rb
CHANGED
@@ -28,7 +28,7 @@ module Microby
|
|
28
28
|
when 'p-category'
|
29
29
|
self.categories[microformat.text.gsub('\n', " ").strip] = microformat["href"]
|
30
30
|
when 'e-content'
|
31
|
-
self.content = microformat
|
31
|
+
self.content = parse_content(microformat)
|
32
32
|
when'dt-published'
|
33
33
|
self.published_at = microformat["datetime"]
|
34
34
|
when "u-uid"
|
@@ -38,5 +38,8 @@ module Microby
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
def parse_content(microformat)
|
42
|
+
microformat.inner_html
|
43
|
+
end
|
41
44
|
end
|
42
45
|
end
|
data/lib/microby/version.rb
CHANGED