grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Gitlab::GithubImport::UserFinder#read_id_from_cache
Reads an ID from the cache. The return value is an Array with two values: 1. A boolean indicating if the key was present or not. 2. The ID as an Integer, or nil in case no ID could be found.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--GithubImport--UserFinder-read_id_from_cache-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::GithubImport::UserFinder#read_id_from_cache"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--GithubImport--UserFinder-read_id_from_cache-for-pr
hub pull-request
# Celebrate!