Sha256: aad31278d552c43b9e9f6bab8a8cc1fa0d2822796d0130e041aae062e911eab8
Contents?: true
Size: 807 Bytes
Versions: 2
Compression:
Stored size: 807 Bytes
Contents
module Evernicious class Runner def self.generate_evernote_file(delicious_bookmarks_file_path) bookmarks = parse_delicious_bookmarks(delicious_bookmarks_file_path) evernote_contents = EnexBuilder.new.build_enex_document(bookmarks).to_xml(:encoding => 'UTF-8') write_contents_to_output_file("#{delicious_bookmarks_file_path}.enex", evernote_contents) end private def self.parse_delicious_bookmarks(delicious_bookmarks_file_path) delicious_bookmarks_file = File.open(delicious_bookmarks_file_path, "r") BookmarksParser.new.parse(delicious_bookmarks_file) end def self.write_contents_to_output_file(output_file_path, contents) File.open(output_file_path, "w"){|file| file.write(contents)} output_file_path end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
evernicious-0.9.0.1 | lib/evernicious/runner.rb |
evernicious-0.9.0 | lib/evernicious/runner.rb |