summaryrefslogtreecommitdiff
path: root/lib/update_importer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/update_importer.rb')
-rw-r--r--lib/update_importer.rb7
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
135end 136end \ No newline at end of file
136
137i = UpdateImporter.new ('/Users/hukl/Desktop/updates')
138i.import_xml
139