utils 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +2 -1
- data/TODO +3 -0
- data/VERSION +1 -1
- data/bin/discover +5 -2
- data/bin/edit +2 -0
- data/bin/probe +16 -1
- data/bin/search +5 -2
- data/bin/strip_spaces +14 -7
- data/lib/utils/config/config_file.rb +112 -0
- data/lib/utils/config/utilsrc +14 -0
- data/lib/utils/config/vimrc +13 -1
- data/lib/utils/finder.rb +20 -7
- data/lib/utils/grepper.rb +11 -17
- data/lib/utils/version.rb +1 -1
- data/lib/utils.rb +1 -0
- data/utils.gemspec +17 -14
- metadata +24 -9
data/Rakefile
CHANGED
@@ -15,8 +15,9 @@ GemHadar do
|
|
15
15
|
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock'
|
16
16
|
readme 'README.rdoc'
|
17
17
|
|
18
|
-
dependency 'spruz',
|
18
|
+
dependency 'spruz', '~>0.2.13'
|
19
19
|
dependency 'term-ansicolor', '~>1.0'
|
20
|
+
dependency 'dslkit', '~>0.2'
|
20
21
|
|
21
22
|
install_library do
|
22
23
|
libdir = CONFIG["sitelibdir"]
|
data/TODO
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.19
|
data/bin/discover
CHANGED
@@ -31,6 +31,7 @@ Options are
|
|
31
31
|
-I SUFFIX only include files with suffix SUFFIX during finding
|
32
32
|
-h display this help
|
33
33
|
|
34
|
+
Version is #{File.basename($0)} #{Utils::VERSION}.
|
34
35
|
EOT
|
35
36
|
exit 1
|
36
37
|
end
|
@@ -42,11 +43,13 @@ roots = (ARGV.empty? ? [ Dir.pwd ] : ARGV).map { |f| File.expand_path(f) }
|
|
42
43
|
|
43
44
|
Term::ANSIColor.coloring = (STDIN.tty? && ENV['TERM'] !~ /dumb/) && !args['c']
|
44
45
|
STDOUT.sync = true
|
45
|
-
|
46
|
+
config = Utils::Config::ConfigFile.new
|
47
|
+
config.parse_config_file File.expand_path('~/.utilsrc')
|
46
48
|
finder = Finder.new(
|
47
49
|
:pattern => pattern,
|
48
50
|
:args => args,
|
49
|
-
:roots => roots
|
51
|
+
:roots => roots,
|
52
|
+
:config => config
|
50
53
|
).search do |output|
|
51
54
|
puts output
|
52
55
|
end
|
data/bin/edit
CHANGED
@@ -19,6 +19,7 @@ Options are
|
|
19
19
|
-p DURATION pause for this many seconds to wait for vim's reaction
|
20
20
|
-h display this help
|
21
21
|
|
22
|
+
Version is #{File.basename($0)} #{Utils::VERSION}.
|
22
23
|
EOT
|
23
24
|
exit 1
|
24
25
|
end
|
@@ -39,6 +40,7 @@ if $opt['s']
|
|
39
40
|
editor.edit(line)
|
40
41
|
end
|
41
42
|
rescue Interrupt
|
43
|
+
exit 1
|
42
44
|
end
|
43
45
|
else
|
44
46
|
argv = ARGV.dup
|
data/bin/probe
CHANGED
@@ -7,13 +7,28 @@ include Spruz::GO
|
|
7
7
|
require 'utils'
|
8
8
|
include Utils
|
9
9
|
|
10
|
+
def usage
|
11
|
+
puts <<-EOT
|
12
|
+
Usage: #{File.basename($0)} [OPTS] FILENAME[:LINENO]
|
13
|
+
|
14
|
+
Options are
|
15
|
+
|
16
|
+
-n TESTNAME run the test TESTNAME in file FILENAME
|
17
|
+
-h display this help
|
18
|
+
|
19
|
+
Version is #{File.basename($0)} #{Utils::VERSION}.
|
20
|
+
EOT
|
21
|
+
exit 1
|
22
|
+
end
|
23
|
+
|
10
24
|
def cmd(*args)
|
11
25
|
puts args * ' '
|
12
26
|
exec *args
|
13
27
|
end
|
14
28
|
|
15
29
|
filename = ARGV.shift or fail "require filename or filename:line_number as first argument"
|
16
|
-
$opt = go 'n:'
|
30
|
+
$opt = go 'n:h'
|
31
|
+
$opt['h'] and usage
|
17
32
|
if testname = $opt['n']
|
18
33
|
cmd "testrb", '-I', 'lib:test:ext', '-n', testname , filename
|
19
34
|
elsif filename =~ /^\s*([^:]+):(\d+)/
|
data/bin/search
CHANGED
@@ -43,6 +43,7 @@ Options are
|
|
43
43
|
-a CSET use only character set CSET from PATTERN
|
44
44
|
-h display this help
|
45
45
|
|
46
|
+
Version is #{File.basename($0)} #{Utils::VERSION}.
|
46
47
|
EOT
|
47
48
|
exit 1
|
48
49
|
end
|
@@ -54,11 +55,13 @@ roots = (ARGV.empty? ? [ Dir.pwd ] : ARGV).map { |f| File.expand_path(f) }
|
|
54
55
|
|
55
56
|
Term::ANSIColor.coloring = (STDIN.tty? && ENV['TERM'] !~ /dumb/) && !args['c']
|
56
57
|
STDOUT.sync = true
|
57
|
-
|
58
|
+
config = Utils::Config::ConfigFile.new
|
59
|
+
config.parse_config_file File.expand_path('~/.utilsrc')
|
58
60
|
grepper = Grepper.new(
|
59
61
|
:pattern => pattern,
|
60
62
|
:args => args,
|
61
|
-
:roots => roots
|
63
|
+
:roots => roots,
|
64
|
+
:config => config
|
62
65
|
).search
|
63
66
|
case
|
64
67
|
when args['e'] then edit_files pattern, grepper.pathes
|
data/bin/strip_spaces
CHANGED
@@ -12,13 +12,20 @@ end
|
|
12
12
|
pathes = ARGV.empty? ? %w[.] : ARGV
|
13
13
|
pathes = pathes.map { |p| File.expand_path(p) }
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
15
|
+
config = Utils::Config::ConfigFile.new
|
16
|
+
config.parse_config_file File.expand_path('~/.utilsrc')
|
17
|
+
|
18
|
+
find(*pathes) do |filename|
|
19
|
+
bn, s = File.basename(filename), File.stat(filename)
|
20
|
+
if s.directory?
|
21
|
+
config.strip_spaces.prune?(bn) and prune
|
22
|
+
next
|
23
|
+
end
|
24
|
+
config.strip_spaces.skip?(bn) and next
|
25
|
+
File.ascii?(filename) or next
|
26
|
+
STDOUT.puts "Stripping spaces from #{filename.inspect}."
|
27
|
+
secure_write(filename) do |output|
|
28
|
+
File.open(filename) do |file|
|
22
29
|
old_mode = file.stat.mode
|
23
30
|
file.each do |line|
|
24
31
|
line.gsub!(/[ \t\v]+$/, '')
|
@@ -0,0 +1,112 @@
|
|
1
|
+
require 'dslkit/polite'
|
2
|
+
require 'spruz/xt/string'
|
3
|
+
|
4
|
+
class Utils::Config::ConfigFile
|
5
|
+
include DSLKit::Interpreter
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
end
|
9
|
+
|
10
|
+
def parse_config_file(config_file_name)
|
11
|
+
File.open(config_file_name) do |cf|
|
12
|
+
parse cf.read
|
13
|
+
end
|
14
|
+
self
|
15
|
+
rescue SystemCallError => e
|
16
|
+
$DEBUG and warn "Couldn't read config file #{config_file_name.inspect}."
|
17
|
+
return nil
|
18
|
+
end
|
19
|
+
|
20
|
+
def parse(source)
|
21
|
+
interpret_with_binding source, binding
|
22
|
+
self
|
23
|
+
end
|
24
|
+
|
25
|
+
class BlockConfig
|
26
|
+
class << self
|
27
|
+
def inherited(modul)
|
28
|
+
modul.extend DSLKit::DSLAccessor
|
29
|
+
super
|
30
|
+
end
|
31
|
+
|
32
|
+
def config(name, *r, &block)
|
33
|
+
self.dsl_attributes ||= []
|
34
|
+
dsl_attributes << name.to_sym
|
35
|
+
dsl_accessor name, *r, &block
|
36
|
+
self
|
37
|
+
end
|
38
|
+
|
39
|
+
attr_accessor :dsl_attributes
|
40
|
+
end
|
41
|
+
|
42
|
+
def initialize(&block)
|
43
|
+
block and instance_eval(&block)
|
44
|
+
end
|
45
|
+
|
46
|
+
def to_ruby
|
47
|
+
result = ''
|
48
|
+
result << "#{self.class.name[/::([^:]+)\Z/, 1].underscore} do\n"
|
49
|
+
for da in self.class.dsl_attributes
|
50
|
+
result << " #{da} #{Array(__send__(da)).map(&:inspect) * ', '}\n"
|
51
|
+
end
|
52
|
+
result << "end\n"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class FileFinder < BlockConfig
|
57
|
+
def prune?(basename)
|
58
|
+
Array(prune_dirs).any? { |pd| pd.match(basename) }
|
59
|
+
end
|
60
|
+
|
61
|
+
def skip?(basename)
|
62
|
+
Array(skip_files).any? { |sf| sf.match(basename) }
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class Search < FileFinder
|
67
|
+
config :prune_dirs, /\A(\.svn|\.git|CVS|tmp)\Z/
|
68
|
+
|
69
|
+
config :skip_files, /(\A\.|\.sw[pon]\Z|\.log\Z|~\Z)/
|
70
|
+
end
|
71
|
+
|
72
|
+
def search(&block)
|
73
|
+
if block
|
74
|
+
@search = Search.new(&block)
|
75
|
+
end
|
76
|
+
@search ||= Search.new
|
77
|
+
end
|
78
|
+
|
79
|
+
class Discover < FileFinder
|
80
|
+
config :prune_dirs, /\A(\.svn|\.git|CVS|tmp)\Z/
|
81
|
+
|
82
|
+
config :skip_files, /(\A\.|\.sw[pon]\Z|\.log\Z|~\Z)/
|
83
|
+
end
|
84
|
+
|
85
|
+
def discover(&block)
|
86
|
+
if block
|
87
|
+
@discover = Discover.new(&block)
|
88
|
+
end
|
89
|
+
@discover ||= Discover.new
|
90
|
+
end
|
91
|
+
|
92
|
+
class StripSpaces < FileFinder
|
93
|
+
config :prune_dirs, /\A(\..*|CVS)\Z/
|
94
|
+
|
95
|
+
config :skip_files, /(\A\.|\.sw[pon]\Z|\.log\Z|~\Z)/
|
96
|
+
end
|
97
|
+
|
98
|
+
def strip_spaces(&block)
|
99
|
+
if block
|
100
|
+
@strip_spaces = StripSpaces.new(&block)
|
101
|
+
end
|
102
|
+
@strip_spaces ||= StripSpaces.new
|
103
|
+
end
|
104
|
+
|
105
|
+
def to_ruby
|
106
|
+
result = "# vim: set ft=ruby:\n"
|
107
|
+
for bc in %w[search discover]
|
108
|
+
result << "\n" << __send__(bc).to_ruby
|
109
|
+
end
|
110
|
+
result
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# vim: set ft=ruby:
|
2
|
+
|
3
|
+
search do
|
4
|
+
prune_dirs /\A(\.svn|\.git|CVS|tmp)\Z/
|
5
|
+
skip_files /(\A\.|\.sw[pon]\Z|~\Z)/, /\.log\Z/
|
6
|
+
end
|
7
|
+
|
8
|
+
discover do
|
9
|
+
# skip_files /(\A\.|\.sw[pon]\Z|~\Z)/, /\.log\Z/
|
10
|
+
end
|
11
|
+
|
12
|
+
strip_spaces do
|
13
|
+
prune_dirs /\A(\..*|CVS)\Z/
|
14
|
+
end
|
data/lib/utils/config/vimrc
CHANGED
@@ -52,6 +52,15 @@ set visualbell t_vb=
|
|
52
52
|
set wildchar=<TAB>
|
53
53
|
set wildmenu
|
54
54
|
set winminheight=0
|
55
|
+
set undofile
|
56
|
+
if has("win32") || has("win64")
|
57
|
+
set undodir=$TMP
|
58
|
+
set directory=$TMP
|
59
|
+
else
|
60
|
+
set undodir=/tmp
|
61
|
+
set directory=/tmp
|
62
|
+
end
|
63
|
+
|
55
64
|
|
56
65
|
filetype on
|
57
66
|
filetype indent on
|
@@ -63,7 +72,10 @@ if has("gui_running")
|
|
63
72
|
set guipty
|
64
73
|
colorscheme flori
|
65
74
|
hi Pmenu ctermbg=Grey guibg=DarkGrey
|
66
|
-
set guioptions-=
|
75
|
+
set guioptions-=r
|
76
|
+
set guioptions-=R
|
77
|
+
set guioptions-=l
|
78
|
+
set guioptions-=L
|
67
79
|
if exists("+guioptions")
|
68
80
|
set guioptions+=c
|
69
81
|
end
|
data/lib/utils/finder.rb
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
require 'term/ansicolor'
|
2
2
|
require 'spruz/xt'
|
3
3
|
|
4
|
-
class ::String
|
5
|
-
include Term::ANSIColor
|
6
|
-
end
|
7
|
-
|
8
4
|
class ::File
|
9
5
|
include Utils::FileXt
|
10
6
|
end
|
@@ -12,10 +8,12 @@ end
|
|
12
8
|
class Utils::Finder
|
13
9
|
include Utils::Find
|
14
10
|
include Utils::Patterns
|
11
|
+
include Term::ANSIColor
|
15
12
|
|
16
13
|
def initialize(opts = {})
|
17
14
|
@args = opts[:args] || {}
|
18
15
|
@roots = opts[:roots] || []
|
16
|
+
@config = opts[:config] || Utils::Config::ConfigFile.new
|
19
17
|
pattern_opts = opts.subhash(:pattern) | {
|
20
18
|
:cset => @args['a'],
|
21
19
|
:icase => @args['i'],
|
@@ -49,7 +47,22 @@ class Utils::Finder
|
|
49
47
|
|
50
48
|
def search
|
51
49
|
pathes = []
|
52
|
-
find(*@roots)
|
50
|
+
find(*@roots) do |filename|
|
51
|
+
begin
|
52
|
+
bn, s = File.basename(filename), File.stat(filename)
|
53
|
+
if s.directory? && @config.discover.prune?(bn)
|
54
|
+
$DEBUG and warn "Pruning #{filename.inspect}."
|
55
|
+
Utils::Find.prune
|
56
|
+
end
|
57
|
+
if s.file? && @config.discover.skip?(bn)
|
58
|
+
$DEBUG and warn "Skipping #{filename.inspect}."
|
59
|
+
next
|
60
|
+
end
|
61
|
+
pathes << filename
|
62
|
+
rescue SystemCallError => e
|
63
|
+
warn "Caught #{e.class}: #{e}"
|
64
|
+
end
|
65
|
+
end
|
53
66
|
pathes.uniq!
|
54
67
|
pathes.map! { |p| a = File.split(p) ; a.unshift(p) ; a }
|
55
68
|
@suffix = @args['I']
|
@@ -67,7 +80,7 @@ class Utils::Finder
|
|
67
80
|
match[i] or next
|
68
81
|
b = match.begin(i)
|
69
82
|
marked_file << file[current...b]
|
70
|
-
marked_file << file[b, 1]
|
83
|
+
marked_file << red(file[b, 1])
|
71
84
|
score += (b - e)
|
72
85
|
e = match.end(i)
|
73
86
|
current = b + 1
|
@@ -76,7 +89,7 @@ class Utils::Finder
|
|
76
89
|
[ score, file.size, path, File.join(dir, marked_file) ]
|
77
90
|
else
|
78
91
|
marked_file = file[0...match.begin(0)] <<
|
79
|
-
file[match.begin(0)...match.end(0)]
|
92
|
+
red(file[match.begin(0)...match.end(0)]) <<
|
80
93
|
file[match.end(0)..-1]
|
81
94
|
[ 0, file.size, path, File.join(dir, marked_file) ]
|
82
95
|
end
|
data/lib/utils/grepper.rb
CHANGED
@@ -1,19 +1,13 @@
|
|
1
1
|
require 'term/ansicolor'
|
2
2
|
require 'spruz/xt'
|
3
3
|
|
4
|
-
class ::String
|
5
|
-
include Term::ANSIColor
|
6
|
-
end
|
7
|
-
|
8
4
|
class ::File
|
9
5
|
include Utils::FileXt
|
10
6
|
end
|
11
7
|
|
12
8
|
class Utils::Grepper
|
13
|
-
PRUNE = /\A(\.svn|\.git|CVS|tmp)\Z/
|
14
|
-
SKIP = /(\A\.|\.sw[pon]\Z|~\Z)/
|
15
|
-
|
16
9
|
include Utils::Patterns
|
10
|
+
include Term::ANSIColor
|
17
11
|
|
18
12
|
class Queue
|
19
13
|
def initialize(max_size)
|
@@ -37,6 +31,7 @@ class Utils::Grepper
|
|
37
31
|
def initialize(opts = {})
|
38
32
|
@args = opts[:args] || {}
|
39
33
|
@roots = opts[:roots] || []
|
34
|
+
@config = opts[:config] || Utils::Config::ConfigFile.new
|
40
35
|
if n = @args.values_at(*%w[A B C]).compact.first
|
41
36
|
if n.to_s =~ /\A\d+\Z/ and (n = n.to_i) >= 1
|
42
37
|
@queue = Queue.new n
|
@@ -70,24 +65,23 @@ class Utils::Grepper
|
|
70
65
|
|
71
66
|
def match(filename)
|
72
67
|
@filename = filename
|
73
|
-
bn = File.basename(filename)
|
74
68
|
@output = []
|
75
|
-
s = File.stat(filename)
|
76
|
-
if s.directory? && bn
|
77
|
-
$DEBUG and warn "Pruning
|
69
|
+
bn, s = File.basename(filename), File.stat(filename)
|
70
|
+
if s.directory? && @config.search.prune?(bn)
|
71
|
+
$DEBUG and warn "Pruning #{filename.inspect}."
|
78
72
|
Utils::Find.prune
|
79
73
|
end
|
80
|
-
if s.file? && bn
|
74
|
+
if s.file? && !@config.search.skip?(bn) && (!@name_pattern || @name_pattern.match(bn))
|
81
75
|
File.open(filename, 'rb') do |file|
|
82
76
|
if file.binary? != true
|
83
|
-
$DEBUG and warn "Matching
|
77
|
+
$DEBUG and warn "Matching #{filename.inspect}."
|
84
78
|
match_lines file
|
85
79
|
else
|
86
|
-
$DEBUG and warn "Skipping binary file
|
80
|
+
$DEBUG and warn "Skipping binary file #{filename.inspect}."
|
87
81
|
end
|
88
82
|
end
|
89
83
|
else
|
90
|
-
$DEBUG and warn "Skipping
|
84
|
+
$DEBUG and warn "Skipping #{filename.inspect}."
|
91
85
|
end
|
92
86
|
unless @output.empty?
|
93
87
|
case
|
@@ -109,14 +103,14 @@ class Utils::Grepper
|
|
109
103
|
for line in file
|
110
104
|
if m = @pattern.match(line)
|
111
105
|
@skip_pattern and @skip_pattern =~ line and next
|
112
|
-
line[m.begin(0)...m.end(0)] = m[0]
|
106
|
+
line[m.begin(0)...m.end(0)] = black on_white m[0]
|
113
107
|
@queue and @queue << line
|
114
108
|
if @args['l']
|
115
109
|
@output << @filename
|
116
110
|
elsif @args['L'] or @args['e']
|
117
111
|
@output << "#{@filename}:#{file.lineno}"
|
118
112
|
else
|
119
|
-
@output << "#{@filename}:#{file.lineno}"
|
113
|
+
@output << red("#{@filename}:#{file.lineno}")
|
120
114
|
if @args['B'] or @args['C']
|
121
115
|
@output.concat @queue.data
|
122
116
|
else
|
data/lib/utils/version.rb
CHANGED
data/lib/utils.rb
CHANGED
data/utils.gemspec
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.name =
|
5
|
-
s.version = "0.0.
|
4
|
+
s.name = "utils"
|
5
|
+
s.version = "0.0.19"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = [
|
9
|
-
s.date =
|
10
|
-
s.description =
|
11
|
-
s.email =
|
12
|
-
s.executables = [
|
13
|
-
s.extra_rdoc_files = [
|
14
|
-
s.files = [
|
15
|
-
s.homepage =
|
16
|
-
s.rdoc_options = [
|
17
|
-
s.require_paths = [
|
18
|
-
s.rubygems_version =
|
19
|
-
s.summary =
|
8
|
+
s.authors = ["Florian Frank"]
|
9
|
+
s.date = "2011-08-29"
|
10
|
+
s.description = "This ruby gem provides some useful command line utilities"
|
11
|
+
s.email = "flori@ping.de"
|
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"]
|
13
|
+
s.extra_rdoc_files = ["README.rdoc", "lib/utils/config/config_file.rb", "lib/utils/config.rb", "lib/utils/editor.rb", "lib/utils/file_xt.rb", "lib/utils/find.rb", "lib/utils/finder.rb", "lib/utils/grepper.rb", "lib/utils/md5.rb", "lib/utils/patterns.rb", "lib/utils/version.rb", "lib/utils.rb"]
|
14
|
+
s.files = [".gitignore", ".rvmrc", "COPYING", "Gemfile", "README.rdoc", "Rakefile", "TODO", "VERSION", "bin/chroot-exec", "bin/chroot-libs", "bin/classify", "bin/discover", "bin/edit", "bin/edit_wait", "bin/errf", "bin/git-empty", "bin/myex", "bin/number_files", "bin/path", "bin/probe", "bin/same_files", "bin/search", "bin/sedit", "bin/sshscreen", "bin/strip_spaces", "bin/unquarantine_apps", "bin/untest", "bin/utils-install-config", "bin/vacuum_firefox_sqlite", "bin/xmp", "lib/utils.rb", "lib/utils/config.rb", "lib/utils/config/config_file.rb", "lib/utils/config/gdb/asm", "lib/utils/config/gdb/ruby", "lib/utils/config/gdbinit", "lib/utils/config/irbrc", "lib/utils/config/rdebugrc", "lib/utils/config/screenrc", "lib/utils/config/utilsrc", "lib/utils/config/vim/autoload/Align.vim", "lib/utils/config/vim/autoload/AlignMaps.vim", "lib/utils/config/vim/autoload/rails.vim", "lib/utils/config/vim/autoload/rubycomplete.vim", "lib/utils/config/vim/autoload/sqlcomplete.vim", "lib/utils/config/vim/autoload/vimball.vim", "lib/utils/config/vim/colors/flori.vim", "lib/utils/config/vim/compiler/eruby.vim", "lib/utils/config/vim/compiler/ruby.vim", "lib/utils/config/vim/compiler/rubyunit.vim", "lib/utils/config/vim/ftdetect/ragel.vim", "lib/utils/config/vim/ftdetect/ruby.vim", "lib/utils/config/vim/ftplugin/eruby.vim", "lib/utils/config/vim/ftplugin/ruby.vim", "lib/utils/config/vim/ftplugin/xml.vim", "lib/utils/config/vim/indent/IndentAnything_html.vim", "lib/utils/config/vim/indent/eruby.vim", "lib/utils/config/vim/indent/javascript.vim", "lib/utils/config/vim/indent/ruby.vim", "lib/utils/config/vim/plugin/AlignMapsPlugin.vim", "lib/utils/config/vim/plugin/AlignPlugin.vim", "lib/utils/config/vim/plugin/Decho.vim", "lib/utils/config/vim/plugin/IndentAnything.vim", "lib/utils/config/vim/plugin/bufexplorer.vim", "lib/utils/config/vim/plugin/cecutil.vim", "lib/utils/config/vim/plugin/fugitive.vim", "lib/utils/config/vim/plugin/lusty-explorer.vim", "lib/utils/config/vim/plugin/rails.vim", "lib/utils/config/vim/plugin/rubyextra.vim", "lib/utils/config/vim/plugin/surround.vim", "lib/utils/config/vim/plugin/taglist.vim", "lib/utils/config/vim/plugin/test/IndentAnything/test.js", "lib/utils/config/vim/plugin/vimballPlugin.vim", "lib/utils/config/vim/syntax/Decho.vim", "lib/utils/config/vim/syntax/eruby.vim", "lib/utils/config/vim/syntax/javascript.vim", "lib/utils/config/vim/syntax/ragel.vim", "lib/utils/config/vim/syntax/ruby.vim", "lib/utils/config/vimrc", "lib/utils/editor.rb", "lib/utils/file_xt.rb", "lib/utils/find.rb", "lib/utils/finder.rb", "lib/utils/grepper.rb", "lib/utils/md5.rb", "lib/utils/patterns.rb", "lib/utils/version.rb", "utils.gemspec"]
|
15
|
+
s.homepage = "http://github.com/flori/utils"
|
16
|
+
s.rdoc_options = ["--title", "Utils - Some useful command line utilities", "--main", "README.rdoc"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubygems_version = "1.8.10"
|
19
|
+
s.summary = "Some useful command line utilities"
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
22
22
|
s.specification_version = 3
|
@@ -25,14 +25,17 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_development_dependency(%q<gem_hadar>, ["~> 0.0.11"])
|
26
26
|
s.add_runtime_dependency(%q<spruz>, ["~> 0.2.13"])
|
27
27
|
s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
28
|
+
s.add_runtime_dependency(%q<dslkit>, ["~> 0.2"])
|
28
29
|
else
|
29
30
|
s.add_dependency(%q<gem_hadar>, ["~> 0.0.11"])
|
30
31
|
s.add_dependency(%q<spruz>, ["~> 0.2.13"])
|
31
32
|
s.add_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
33
|
+
s.add_dependency(%q<dslkit>, ["~> 0.2"])
|
32
34
|
end
|
33
35
|
else
|
34
36
|
s.add_dependency(%q<gem_hadar>, ["~> 0.0.11"])
|
35
37
|
s.add_dependency(%q<spruz>, ["~> 0.2.13"])
|
36
38
|
s.add_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
39
|
+
s.add_dependency(%q<dslkit>, ["~> 0.2"])
|
37
40
|
end
|
38
41
|
end
|
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.19
|
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-08-
|
12
|
+
date: 2011-08-29 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gem_hadar
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153168560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.0.11
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153168560
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: spruz
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153168120 !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: *2153168120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: term-ansicolor
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153167700 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,18 @@ dependencies:
|
|
43
43
|
version: '1.0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153167700
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: dslkit
|
49
|
+
requirement: &2153167280 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.2'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2153167280
|
47
58
|
description: This ruby gem provides some useful command line utilities
|
48
59
|
email: flori@ping.de
|
49
60
|
executables:
|
@@ -72,6 +83,7 @@ executables:
|
|
72
83
|
extensions: []
|
73
84
|
extra_rdoc_files:
|
74
85
|
- README.rdoc
|
86
|
+
- lib/utils/config/config_file.rb
|
75
87
|
- lib/utils/config.rb
|
76
88
|
- lib/utils/editor.rb
|
77
89
|
- lib/utils/file_xt.rb
|
@@ -89,6 +101,7 @@ files:
|
|
89
101
|
- Gemfile
|
90
102
|
- README.rdoc
|
91
103
|
- Rakefile
|
104
|
+
- TODO
|
92
105
|
- VERSION
|
93
106
|
- bin/chroot-exec
|
94
107
|
- bin/chroot-libs
|
@@ -114,12 +127,14 @@ files:
|
|
114
127
|
- bin/xmp
|
115
128
|
- lib/utils.rb
|
116
129
|
- lib/utils/config.rb
|
130
|
+
- lib/utils/config/config_file.rb
|
117
131
|
- lib/utils/config/gdb/asm
|
118
132
|
- lib/utils/config/gdb/ruby
|
119
133
|
- lib/utils/config/gdbinit
|
120
134
|
- lib/utils/config/irbrc
|
121
135
|
- lib/utils/config/rdebugrc
|
122
136
|
- lib/utils/config/screenrc
|
137
|
+
- lib/utils/config/utilsrc
|
123
138
|
- lib/utils/config/vim/autoload/Align.vim
|
124
139
|
- lib/utils/config/vim/autoload/AlignMaps.vim
|
125
140
|
- lib/utils/config/vim/autoload/rails.vim
|
@@ -192,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
207
|
version: '0'
|
193
208
|
requirements: []
|
194
209
|
rubyforge_project:
|
195
|
-
rubygems_version: 1.8.
|
210
|
+
rubygems_version: 1.8.10
|
196
211
|
signing_key:
|
197
212
|
specification_version: 3
|
198
213
|
summary: Some useful command line utilities
|