diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/update_importer.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/update_importer.rb b/lib/update_importer.rb index 4d4e1d5..af7064c 100644 --- a/lib/update_importer.rb +++ b/lib/update_importer.rb | |||
| @@ -80,6 +80,7 @@ class UpdateImporter | |||
| 80 | if node.pages.empty? | 80 | if node.pages.empty? |
| 81 | node.pages.create!( | 81 | node.pages.create!( |
| 82 | :title => xhtml.elements['title'].get_text.to_s, | 82 | :title => xhtml.elements['title'].get_text.to_s, |
| 83 | :abstract => xhtml.elements['abstract'].get_text.to_s, | ||
| 83 | :body => body, | 84 | :body => body, |
| 84 | :published_at => date | 85 | :published_at => date |
| 85 | ) | 86 | ) |
| @@ -132,8 +133,4 @@ class UpdateImporter | |||
| 132 | element | 133 | element |
| 133 | end | 134 | end |
| 134 | 135 | ||
| 135 | end | 136 | end \ No newline at end of file |
| 136 | |||
| 137 | i = UpdateImporter.new ('/Users/hukl/Desktop/updates') | ||
| 138 | i.import_xml | ||
| 139 | |||
