X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d77e5f9d4d18f2eac88d0db69a1f460323618119..deb3c74fc7e527098e206af342d27010617968f2:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index 3043eb395..5f31e31bf 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -311,7 +311,7 @@ module OSM image << link end - def add(latitude=0, longitude=0, title_text='dummy title', url='http://www.example.com/', description_text='dummy description', timestamp=DateTime.now) + def add(latitude=0, longitude=0, title_text='dummy title', author_text='anonymous', url='http://www.example.com/', description_text='dummy description', timestamp=DateTime.now) item = XML::Node.new 'item' title = XML::Node.new 'title' @@ -329,6 +329,10 @@ module OSM description << description_text item << description + author = XML::Node.new 'author' + author << author_text + item << author + pubDate = XML::Node.new 'pubDate' pubDate << timestamp.to_s(:rfc822) item << pubDate