BashRC: Added new ruby development helpers.

Signed-off-by: Hermann Mayer's avatarHermann Mayer <hermann.mayer92@gmail.com>
parent 5b731ae2
......@@ -403,6 +403,8 @@ if 1 == VimRCBundlesDevel
\ ['requires', 'optional'],
\ ['same', 'different'],
\ ['when', 'with', 'without'],
\ ['select', 'reject'],
\ ['create', 'build', 'attributes_for'],
\]
autocmd VimEnter * :IndentGuidesEnable
......
......@@ -22,6 +22,21 @@ function gemlocks()
| awk '{ print $2 "|" $1 }' \
| column -t -s '|'
}
export -f gemlocks
function railslocks()
{
grep -iPo '(rails|railties)\s|(action|active)[^\s]+' Gemfile.lock \
| sort -u \
| sed 's/\s//g' \
| parallel -j8 gemlocks {} \
| grep -P '\s(rails|railties)$|(action|active)'
}
function bundle-update-rails()
{
railslocks | awk '{print $2}' | xargs bundle update
}
function gemdesc()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment