From 7c45d8dbfd8e7f8f7279bab67058109d244d9752 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 18 Sep 2009 14:38:45 -0700 Subject: NEWS.atom.xml only lists the first 10 entries No need to waste bandwidth with more. --- Rakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 16bcb6b..6585e9f 100644 --- a/Rakefile +++ b/Rakefile @@ -37,6 +37,7 @@ cgit_url = "http://git.bogomips.org/cgit/unicorn.git" desc 'prints news as an Atom feed' task :news_atom do require 'nokogiri' + new_tags = tags[0,10] puts(Nokogiri::XML::Builder.new do feed :xmlns => "http://www.w3.org/2005/Atom" do id! "http://unicorn.bogomips.org/NEWS.atom.xml" @@ -44,8 +45,8 @@ task :news_atom do subtitle "Rack HTTP server for Unix and fast clients" link! :rel => 'alternate', :type => 'text/html', :href => 'http://unicorn.bogomips.org/NEWS.html' - updated tags.first[:time] - tags.each do |tag| + updated new_tags.first[:time] + new_tags.each do |tag| entry do title tag[:subject] updated tag[:time] -- cgit v1.2.3-24-ge0c7