openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
DiffReader#with_element
An element-block mapping for using the LibXML reader interface. Since a lot of LibXML reader usage is boilerplate iteration through elements, it would be better to DRY and do this in a block. This could also help with error handling...?
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open lib/diff_reader.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-DiffReader-with_element-for-pr
# Commit to gitgit add lib/diff_reader.rbgit commit -m "better docs for DiffReader#with_element"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-DiffReader-with_element-for-pr
hub pull-request
# Celebrate!