pg_search
https://github.com/casecommons/pg_search
Ruby
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
Repository#has_visible_content?
Git repository can contains some hidden refs like: /refs/notes/* /refs/git-as-svn/* /refs/pulls/* This refs by default not visible in project page and not cloned to client side. This method return true if repository contains some content visible in project page.
Edit
git clone [email protected]:casecommons/pg_search.git
cd pg_search
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Repository-has_visible_content--for-pr
# Commit to gitgit add git commit -m "better docs for Repository#has_visible_content?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Repository-has_visible_content--for-pr
hub pull-request
# Celebrate!