utils 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/myex +3 -2
- data/bin/search +1 -1
- data/lib/utils/config/vimrc +8 -4
- data/lib/utils/grepper.rb +2 -0
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +5 -5
- metadata +11 -11
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.21
|
data/bin/myex
CHANGED
@@ -37,7 +37,7 @@ def bell(n = 1, s = 1)
|
|
37
37
|
end
|
38
38
|
|
39
39
|
cmd = ARGV.shift or usage
|
40
|
-
opts = go('
|
40
|
+
opts = go('dtDi')
|
41
41
|
|
42
42
|
STDOUT.sync = true
|
43
43
|
case cmd
|
@@ -68,8 +68,9 @@ when 'truncate'
|
|
68
68
|
end
|
69
69
|
when 'insert'
|
70
70
|
truncated = {}
|
71
|
-
STDIN.grep(/^INSERT INTO `(#{ARGV.empty? ? '[^`]+' : ARGV * '|'})`/) do |stmt|
|
71
|
+
STDIN.grep(/^INSERT (?:IGNORE )?INTO `(#{ARGV.empty? ? '[^`]+' : ARGV * '|'})`/) do |stmt|
|
72
72
|
table = $1
|
73
|
+
stmt.sub!(/(^INSERT) (INTO)/, '\1 IGNORE \2') if opts['i']
|
73
74
|
if opts['t'] and not truncated.key?(table)
|
74
75
|
puts "TRUNCATE TABLE `#{table}`;"
|
75
76
|
truncated[table] = true
|
data/bin/search
CHANGED
data/lib/utils/config/vimrc
CHANGED
@@ -51,16 +51,20 @@ set visualbell t_vb=
|
|
51
51
|
set wildchar=<TAB>
|
52
52
|
set wildmenu
|
53
53
|
set winminheight=0
|
54
|
-
|
54
|
+
if has("persistent_undo")
|
55
|
+
set undofile
|
56
|
+
if has("win32") || has("win64")
|
57
|
+
set undodir=$TMP
|
58
|
+
else
|
59
|
+
set undodir=/tmp
|
60
|
+
end
|
61
|
+
end
|
55
62
|
if has("win32") || has("win64")
|
56
|
-
set undodir=$TMP
|
57
63
|
set directory=$TMP
|
58
64
|
else
|
59
|
-
set undodir=/tmp
|
60
65
|
set directory=/tmp
|
61
66
|
end
|
62
67
|
|
63
|
-
|
64
68
|
filetype on
|
65
69
|
filetype indent on
|
66
70
|
filetype plugin on
|
data/lib/utils/grepper.rb
CHANGED
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.21"
|
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-08
|
9
|
+
s.date = "2011-09-08"
|
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", "errf", "git-empty", "myex", "number_files", "path", "probe", "same_files", "search", "sedit", "sshscreen", "strip_spaces", "unquarantine_apps", "untest", "utils-install-config", "vacuum_firefox_sqlite", "xmp"]
|
@@ -22,18 +22,18 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.specification_version = 3
|
23
23
|
|
24
24
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
25
|
-
s.add_development_dependency(%q<gem_hadar>, ["~> 0.0.
|
25
|
+
s.add_development_dependency(%q<gem_hadar>, ["~> 0.0.12"])
|
26
26
|
s.add_runtime_dependency(%q<spruz>, ["~> 0.2.13"])
|
27
27
|
s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
28
28
|
s.add_runtime_dependency(%q<dslkit>, ["~> 0.2"])
|
29
29
|
else
|
30
|
-
s.add_dependency(%q<gem_hadar>, ["~> 0.0.
|
30
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.0.12"])
|
31
31
|
s.add_dependency(%q<spruz>, ["~> 0.2.13"])
|
32
32
|
s.add_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
33
33
|
s.add_dependency(%q<dslkit>, ["~> 0.2"])
|
34
34
|
end
|
35
35
|
else
|
36
|
-
s.add_dependency(%q<gem_hadar>, ["~> 0.0.
|
36
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.0.12"])
|
37
37
|
s.add_dependency(%q<spruz>, ["~> 0.2.13"])
|
38
38
|
s.add_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
39
39
|
s.add_dependency(%q<dslkit>, ["~> 0.2"])
|
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.21
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08
|
12
|
+
date: 2011-09-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gem_hadar
|
16
|
-
requirement: &
|
16
|
+
requirement: &2168807720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.0.
|
21
|
+
version: 0.0.12
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2168807720
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: spruz
|
27
|
-
requirement: &
|
27
|
+
requirement: &2168807280 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.2.13
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2168807280
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: term-ansicolor
|
38
|
-
requirement: &
|
38
|
+
requirement: &2168806760 !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: *
|
46
|
+
version_requirements: *2168806760
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: dslkit
|
49
|
-
requirement: &
|
49
|
+
requirement: &2168806200 !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: *
|
57
|
+
version_requirements: *2168806200
|
58
58
|
description: This ruby gem provides some useful command line utilities
|
59
59
|
email: flori@ping.de
|
60
60
|
executables:
|