examples/atom.rb in xommelier-0.1.2 vs examples/atom.rb in xommelier-0.1.3

- old
+ new

@@ -1,7 +1,7 @@ require 'xommelier/atom' -require 'xommelier/atom/thread' +require 'xommelier/atom/threading' require 'active_support/core_ext' # Reading a feed feed = Xommelier::Atom::Feed.parse(open('spec/fixtures/feed.atom.xml')) puts feed.id, feed.title, feed.updated @@ -13,10 +13,11 @@ # Building a feed feed = Xommelier::Atom::Feed.new feed.id = 'http://example.com/blog' feed.title = 'Example.com blog' +feed.complete = Xommelier::Atom::History::Complete.new entry = feed.entry = Xommelier::Atom::Entry.new( id: 'http://example.com/blog/2012/03/05', title: "Happy Xommelier's day!", updated: 5.days.ago @@ -30,10 +31,10 @@ feed.entries << Xommelier::Atom::Entry.new( id: "http://example.com/blog/2012/03/05#comment_#{i}", title: ('Hooray! ' * (i + 1)).strip, updated: (5 - i).days.ago ).tap do |comment| - comment.in_reply_to = Xommelier::Atom::Thread::InReplyTo.new(ref: entry.id, href: entry.link.href) + comment.in_reply_to = Xommelier::Atom::Threading::InReplyTo.new(ref: entry.id, href: entry.link.href) end end puts feed.to_xml