pg_search

https://github.com/casecommons/pg_search

Ruby

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

Gitlab::FileDetector.types_in_paths

Returns an Array of file types based on the given paths.

This method can be used to check if a list of file paths (e.g. of changed
files) involve any special files such as a README or a LICENSE file.

Example:

    types_in_paths(%w{README.md foo/bar.txt}) # => [:readme]

Source | Google | Stack overflow

Edit

git clone [email protected]:casecommons/pg_search.git

cd pg_search

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--FileDetector-types_in_paths-for-pr


# Commit to git

git add git commit -m "better docs for Gitlab::FileDetector.types_in_paths"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Gitlab--FileDetector-types_in_paths-for-pr

hub pull-request


# Celebrate!