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/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