utils 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.25
1
+ 0.0.26
data/bin/sshscreen CHANGED
@@ -20,7 +20,7 @@ Usage: #{File.basename($0)} [OPTS] [user@]remote[:port]"
20
20
 
21
21
  OPTS is one of
22
22
  -N list all session names on the specified remote
23
- -n NAME name of the screen session to attach to
23
+ -n NAME name of the screen session to attach to (defaults to $USER)
24
24
  -t [HOST[:PORT]] host:port to tunnel if different from LOCALPORT
25
25
  -l LOCALPORT the localport to forward to
26
26
  -h to display this help
@@ -56,6 +56,7 @@ end
56
56
  ssh_dir = File.expand_path('~/.ssh')
57
57
  mkdir_p ssh_dir
58
58
  sock_file = "#{ssh_dir}/#{user}@#{remote}:#{rport}.sock"
59
+ user = ENV['USER'] and opts['n'] ||= user
59
60
  if opts['N']
60
61
  exec "ssh -p #{rport} -S #{sock_file} #{user}@#{remote} screen -ls"
61
62
  elsif lport
@@ -7,7 +7,7 @@ set autoindent
7
7
  set autowrite
8
8
  set backspace=indent,eol,start
9
9
  set dictionary=/usr/dict/words
10
- set digraph
10
+ set nodigraph
11
11
  set encoding=utf8
12
12
  set errorformat+=%f:%l
13
13
  set expandtab shiftwidth=2 tabstop=2
@@ -178,6 +178,7 @@ map <leader>e :e <C-R>=substitute(expand("%:p:h") . "/", " ", "\\\\ ", "g")<CR>
178
178
  map <leader>t :tabe <C-R>=substitute(expand("%:p:h") . "/", " ", "\\\\ ", "g")<CR>
179
179
  map <leader>s :split <C-R>=substitute(expand("%:p:h") . "/", " ", "\\\\ ", "g")<CR>
180
180
  map <leader>c :cd <C-R>=substitute(expand("%:p:h") . "/", " ", "\\\\ ", "g")<CR>
181
+ map <leader>K :%s/\([^:]\):\([^:'" ]\{1,\}\) *=>/\1\2:/g<CR>
181
182
  " Switch of search highlighting
182
183
  map <silent> <F9> :nohlsearch<CR>
183
184
  if has("fullscreen")
@@ -221,10 +222,10 @@ noremap <PageDown> <Nop>
221
222
  cnoremap <C-0> <Home>
222
223
  cnoremap <C-^> <Home>
223
224
  cnoremap <C-$> <End>
224
- cnoremap <C-h> <Left>
225
- cnoremap <C-l> <Right>
226
- cnoremap <C-k> <Up>
227
- cnoremap <C-j> <Down>
225
+ cnoremap <C-H> <Left>
226
+ cnoremap <C-L> <Right>
227
+ cnoremap <C-K> <Up>
228
+ cnoremap <C-J> <Down>
228
229
  vnoremap < <gv
229
230
  vnoremap > >gv
230
231
  " Marks
@@ -315,6 +316,7 @@ if has("autocmd")
315
316
  autocmd FileType ruby setl path+=lib/**
316
317
  autocmd FileType ruby setl path+=test/**
317
318
  autocmd FileType ruby setl path+=tests/**
319
+ autocmd FileType ruby setl path+=spec/**
318
320
  autocmd FileType ruby imap <C-l> <C-k>l*
319
321
  augroup END
320
322
 
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.25'
3
+ VERSION = '0.0.26'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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.25"
5
+ s.version = "0.0.26"
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 = "2011-11-07"
9
+ s.date = "2011-12-05"
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", "discover", "edit", "edit_wait", "enum", "errf", "git-empty", "myex", "number_files", "path", "probe", "same_files", "search", "sedit", "sshscreen", "strip_spaces", "unquarantine_apps", "untest", "utils-install-config", "utils-utilsrc", "vacuum_firefox_sqlite", "xmp"]
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.homepage = "http://github.com/flori/utils"
16
16
  s.rdoc_options = ["--title", "Utils - Some useful command line utilities", "--main", "README.rdoc"]
17
17
  s.require_paths = ["lib"]
18
- s.rubygems_version = "1.8.10"
18
+ s.rubygems_version = "1.8.11"
19
19
  s.summary = "Some useful command line utilities"
20
20
 
21
21
  if s.respond_to? :specification_version then
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.25
4
+ version: 0.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-07 00:00:00.000000000 Z
12
+ date: 2011-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gem_hadar
16
- requirement: &2158031260 !ruby/object:Gem::Requirement
16
+ requirement: &2162524720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.1.1
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2158031260
24
+ version_requirements: *2162524720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tins
27
- requirement: &2158030820 !ruby/object:Gem::Requirement
27
+ requirement: &2162524280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.3'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2158030820
35
+ version_requirements: *2162524280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: term-ansicolor
38
- requirement: &2158030400 !ruby/object:Gem::Requirement
38
+ requirement: &2162523860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2158030400
46
+ version_requirements: *2162523860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: dslkit
49
- requirement: &2158029980 !ruby/object:Gem::Requirement
49
+ requirement: &2162523440 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0.2'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2158029980
57
+ version_requirements: *2162523440
58
58
  description: This ruby gem provides some useful command line utilities
59
59
  email: flori@ping.de
60
60
  executables:
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  requirements: []
212
212
  rubyforge_project:
213
- rubygems_version: 1.8.10
213
+ rubygems_version: 1.8.11
214
214
  signing_key:
215
215
  specification_version: 3
216
216
  summary: Some useful command line utilities