Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Linux Environment
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Hermann Mayer
Linux Environment
Commits
692c33a9
Unverified
Commit
692c33a9
authored
Oct 16, 2020
by
Hermann Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BashRC: Added new ruby development helpers.
Signed-off-by:
Hermann Mayer
<
hermann.mayer92@gmail.com
>
parent
5b731ae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
bundles-options.vim
dotrc/.vim/vimrc/bundles-options.vim
+2
-0
ruby.sh
lib/helper/development/ruby.sh
+15
-0
No files found.
dotrc/.vim/vimrc/bundles-options.vim
View file @
692c33a9
...
...
@@ -403,6 +403,8 @@ if 1 == VimRCBundlesDevel
\
[
'requires'
,
'optional'
],
\
[
'same'
,
'different'
],
\
[
'when'
,
'with'
,
'without'
],
\
[
'select'
,
'reject'
],
\
[
'create'
,
'build'
,
'attributes_for'
],
\
]
autocmd
VimEnter
*
:
IndentGuidesEnable
...
...
lib/helper/development/ruby.sh
View file @
692c33a9
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment