openstreetmap-website

https://github.com/openstreetmap/openstreetmap-website

Ruby

The Rails application that powers OpenStreetMap

DiffReader#initialize

Construct a diff reader by giving it a bunch of XML +data+ to parse
in OsmChange format. All diffs must be limited to a single changeset
given in +changeset+.

Source | Google | Stack overflow

Edit

git clone [email protected]:openstreetmap/openstreetmap-website.git

cd openstreetmap-website

open lib/diff_reader.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-DiffReader-initialize-for-pr


# Commit to git

git add lib/diff_reader.rbgit commit -m "better docs for DiffReader#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-DiffReader-initialize-for-pr

hub pull-request


# Celebrate!