lib/atom/feed.rb in atom-tools-0.9.3 vs lib/atom/feed.rb in atom-tools-0.9.4

- old
+ new

@@ -195,17 +195,17 @@ return self end coll = Atom::Feed.parse(coll, self.base.to_s) merge! coll - - link = coll.links.find { |l| l["rel"] = "next" and l["type"] == "application/atom+xml" } + + link = coll.links.find { |l| l["rel"] == "next" and l["type"] == "application/atom+xml" } if link abs_uri = @uri + link["href"] @next = Feed.new(abs_uri.to_s, @http) end - link = coll.links.find { |l| l["rel"] = "previous" and l["type"] == "application/atom+xml" } + link = coll.links.find { |l| l["rel"] == "previous" and l["type"] == "application/atom+xml" } if link abs_uri = @uri + link["href"] @prev = Feed.new(abs_uri.to_s, @http) end