diaspora

https://github.com/diaspora/diaspora

Ruby

A privacy-aware, distributed, open source social network.

Environment#generate_slug

An environment name is not necessarily suitable for use in URLs, DNS
or other third-party contexts, so provide a slugified version. A slug has
the following properties:
  * contains only lowercase letters (a-z), numbers (0-9), and '-'
  * begins with a letter
  * has a maximum length of 24 bytes (OpenShift limitation)
  * cannot end with `-`

Source | Google | Stack overflow

Edit

git clone [email protected]:diaspora/diaspora.git

cd diaspora

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Environment-generate_slug-for-pr


# Commit to git

git add git commit -m "better docs for Environment#generate_slug"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Environment-generate_slug-for-pr

hub pull-request


# Celebrate!