openstreetmap-website

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

Ruby

The Rails application that powers OpenStreetMap

DiffReader#check

Checks a few invariants. Others are checked in the model methods
such as save_ and delete_with_history.

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-check-for-pr


# Commit to git

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


# 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-check-for-pr

hub pull-request


# Celebrate!