From 06b1026fd8772157e83cc870647645b4ccabae28 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 9 May 2013 15:51:31 +0100 Subject: [PATCH] Update with Plaque Guide info --- csv2georss.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/csv2georss.rb b/csv2georss.rb index 381d7d8..9d3cac2 100644 --- a/csv2georss.rb +++ b/csv2georss.rb @@ -3,12 +3,13 @@ require 'pp' require 'erb' require 'time' +# https://gist.github.com/adrianshort/5547284 # $ ruby csv2georss.rb myfile.csv > feed.xml template = ERB.new <<-EOF - + <%= channel[:title] %> <%= channel[:link] %> <%= channel[:description] %> @@ -30,9 +31,9 @@ template = ERB.new <<-EOF EOF channel = { - :title => "Open Plaques", - :link => "http://openplaques.org/", - :description => "Documenting the historical links between people and places, as recorded by commemorative plaques." + :title => "Plaque Guide", + :link => "http://www.plaqueguide.com/", + :description => "" } items = [] @@ -50,7 +51,7 @@ CSV.foreach(ARGV[0]) do |row| :link => link, :description => row[32], # note1 :pubDate => Time.now.rfc822, - :author => "feedback@openplaques.org", + :author => "info@plaqueguide.com", :guid => link, :lat => row[5], :long => row[6]