utils 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +3 -0
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/bin/chroot-libs +1 -1
- data/bin/discover +10 -95
- data/bin/edit +53 -38
- data/bin/search +10 -156
- data/bin/strip_spaces +17 -5
- data/bin/xmp +1 -1
- data/lib/utils.rb +3 -0
- data/lib/utils/config/gdb/ruby +1 -15
- data/lib/utils/config/irbrc +5 -3
- data/lib/utils/config/vim/autoload/Align.vim +6 -6
- data/lib/utils/config/vim/autoload/rails.vim +16 -16
- data/lib/utils/config/vim/autoload/sqlcomplete.vim +48 -48
- data/lib/utils/config/vim/autoload/vimball.vim +7 -7
- data/lib/utils/config/vim/ftplugin/xml.vim +26 -26
- data/lib/utils/config/vim/indent/IndentAnything_html.vim +1 -1
- data/lib/utils/config/vim/indent/javascript.vim +4 -4
- data/lib/utils/config/vim/plugin/Decho.vim +14 -14
- data/lib/utils/config/vim/plugin/IndentAnything.vim +26 -26
- data/lib/utils/config/vim/plugin/bufexplorer.vim +16 -16
- data/lib/utils/config/vim/plugin/cecutil.vim +16 -16
- data/lib/utils/config/vim/plugin/rubyextra.vim +11 -11
- data/lib/utils/config/vim/plugin/taglist.vim +4 -4
- data/lib/utils/config/vim/plugin/test/IndentAnything/test.js +2 -2
- data/lib/utils/config/vim/syntax/javascript.vim +2 -2
- data/lib/utils/config/vim/syntax/ragel.vim +3 -3
- data/lib/utils/config/vimrc +1 -1
- data/lib/utils/editor.rb +138 -0
- data/lib/utils/finder.rb +92 -0
- data/lib/utils/grepper.rb +156 -0
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +15 -15
- metadata +67 -93
- data/lib/utils/edit.rb +0 -33
data/lib/utils/edit.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
module Utils
|
2
|
-
module Edit
|
3
|
-
module_function
|
4
|
-
|
5
|
-
def locate_vim_binary
|
6
|
-
case `uname -s`
|
7
|
-
when /\Adarwin/i
|
8
|
-
if File.directory?('/Applications')
|
9
|
-
'/Applications/MacVim.app/Contents/MacOS/Vim'
|
10
|
-
else
|
11
|
-
'gvim'
|
12
|
-
end
|
13
|
-
else
|
14
|
-
'gvim'
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def cmd(*parts)
|
19
|
-
command = parts.inject([]) do |a, p|
|
20
|
-
case
|
21
|
-
when p == nil, p == []
|
22
|
-
a
|
23
|
-
when p.respond_to?(:to_ary)
|
24
|
-
a.concat p.to_ary
|
25
|
-
else
|
26
|
-
a << p.to_s
|
27
|
-
end
|
28
|
-
end
|
29
|
-
$DEBUG and warn command * ' '
|
30
|
-
command
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|