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 CHANGED
@@ -15,4 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
- .rvmrc
18
+ .rvmrc
19
+ .DS_Store
data/README.md CHANGED
@@ -21,7 +21,7 @@ serialized h-entry objects. The returned Object structure looks something like t
21
21
 
22
22
  ## Current Version
23
23
 
24
- 0.0.1
24
+ 0.0.2
25
25
 
26
26
 
27
27
  ## Requirements
@@ -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.inner_html
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
@@ -1,3 +1,3 @@
1
1
  module Microby
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: