utils 0.0.59 → 0.0.60
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/utils/config/vimrc +4 -2
- data/lib/utils/editor.rb +3 -3
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.60
|
data/lib/utils/config/vimrc
CHANGED
@@ -32,7 +32,7 @@ set nocursorcolumn
|
|
32
32
|
set nocursorline
|
33
33
|
set nofoldenable
|
34
34
|
set noignorecase
|
35
|
-
set
|
35
|
+
set noincsearch
|
36
36
|
set nojoinspaces
|
37
37
|
set nopaste
|
38
38
|
set nosmartcase
|
@@ -186,6 +186,8 @@ map <leader>c :cd <C-R>=substitute(expand("%:p:h") . "/", " ", "\\\\ ", "g")<CR>
|
|
186
186
|
map <leader>h :call Csymbolhash()<CR>
|
187
187
|
map <leader>H :%call Csymbolhash()<CR>
|
188
188
|
map <leader>C :call Ccamelunderscore()<CR>
|
189
|
+
map <leader>f :!echo %\|pbcopy<CR><CR>
|
190
|
+
map <leader>n :new <cfile><CR>
|
189
191
|
|
190
192
|
" Switch of search highlighting
|
191
193
|
map <silent> <F9> :nohlsearch<CR>
|
@@ -440,7 +442,7 @@ function! Cgrep(...)
|
|
440
442
|
set grepprg=search
|
441
443
|
set hlsearch
|
442
444
|
let @/=args[0]
|
443
|
-
silent execute "silent gr -c
|
445
|
+
silent execute "silent gr -c " . args_string
|
444
446
|
copen
|
445
447
|
redraw!
|
446
448
|
endfunction
|
data/lib/utils/editor.rb
CHANGED
@@ -14,11 +14,11 @@ module Utils
|
|
14
14
|
linenumber = nil
|
15
15
|
if respond_to?(:to_str)
|
16
16
|
string = to_str
|
17
|
-
case
|
18
|
-
when FILE_LINENUMBER_REGEXP
|
17
|
+
case
|
18
|
+
when string =~ FILE_LINENUMBER_REGEXP && File.exist?($1)
|
19
19
|
filename = $1
|
20
20
|
linenumber = $2.to_i
|
21
|
-
when CLASS_METHOD_REGEXP
|
21
|
+
when string =~ CLASS_METHOD_REGEXP && !File.exist?(string)
|
22
22
|
klassname = $1
|
23
23
|
method_kind = $2 == '#' ? :instance_method : :method
|
24
24
|
methodname = $3
|
data/lib/utils/version.rb
CHANGED
data/utils.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "utils"
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.60"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Florian Frank"]
|
9
|
-
s.date = "2012-
|
9
|
+
s.date = "2012-11-07"
|
10
10
|
s.description = "This ruby gem provides some useful command line utilities"
|
11
11
|
s.email = "flori@ping.de"
|
12
12
|
s.executables = ["chroot-exec", "chroot-libs", "classify", "create_tags", "discover", "edit", "edit_wait", "enum", "errf", "git-empty", "myex", "number_files", "on_change", "path", "probe", "same_files", "search", "sedit", "sshscreen", "strip_spaces", "unquarantine_apps", "untest", "utils-install-config", "utils-utilsrc", "vacuum_firefox_sqlite", "xmp"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.60
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gem_hadar
|
@@ -276,7 +276,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
276
276
|
version: '0'
|
277
277
|
segments:
|
278
278
|
- 0
|
279
|
-
hash:
|
279
|
+
hash: -504316675304331963
|
280
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
281
|
none: false
|
282
282
|
requirements:
|