examples/atom.rb in xommelier-0.1.19 vs examples/atom.rb in xommelier-0.1.20

- old
+ new

@@ -5,22 +5,22 @@ # Reading a feed feed = Xommelier::Atom::Feed.parse(open('spec/fixtures/feed.atom.xml')) puts feed.id, feed.title, feed.updated feed.entries do |entry| - puts feed.id, feed.title, feed.published, feed.updated - puts feed.content || feed.summary + puts entry.id, entry.title, entry.published, entry.updated + puts entry.content || entry.summary end # 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!", + title: 'Happy Xommelier\'s day!', updated: 5.days.ago ).tap do |entry| entry.link = Xommelier::Atom::Link.new(href: entry.id, rel: 'alternate', type: 'text/html') entry.links << Xommelier::Atom::Link.new(href: "#{entry.id}/comments.atom", rel: 'replies', type: 'application/atom+xml', count: 5) end