utils 0.0.84 → 0.0.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/probe +7 -3
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc63c9706c910335881a4b0d9e83037811cdbdea
|
4
|
+
data.tar.gz: f5de311f8e3a51672bd490df3f4e6da4e2db36d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30856d4b336f28aa01d7d32fa7ec628221cdbf37984d1f8227df06d8ffb22ff15a1d038e99cc15fb8367c101b4a69419e4763efa15a3b34da7a5b8f8034986d9
|
7
|
+
data.tar.gz: 8413431f778eb52d52fe76b4a5b72502aa80a46b10a84fb4acd8a2822a36431e499593598085868370ad093e9e4a142baad4fabd8f59118310b5efd3e657c637
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.85
|
data/bin/probe
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
# encoding: UTF-8
|
3
3
|
|
4
4
|
require 'tins/xt'
|
5
|
+
require 'term/ansicolor'
|
6
|
+
class String
|
7
|
+
include Term::ANSIColor
|
8
|
+
end
|
5
9
|
require 'tins/lines_file'
|
6
10
|
include Tins::GO
|
7
11
|
require 'utils'
|
@@ -57,7 +61,7 @@ if $opt['l']
|
|
57
61
|
end
|
58
62
|
|
59
63
|
def enqueue(job)
|
60
|
-
output_message "Job #{job.inspect} enqueued."
|
64
|
+
output_message "Job #{job.inspect} enqueued.".black.on_green
|
61
65
|
@jobs.push job
|
62
66
|
end
|
63
67
|
alias run enqueue
|
@@ -70,12 +74,12 @@ if $opt['l']
|
|
70
74
|
end
|
71
75
|
|
72
76
|
def run_job(job)
|
73
|
-
output_message "Job #{job.inspect} about to run now.
|
77
|
+
output_message "Job #{job.inspect} about to run now:".black.on_yellow
|
74
78
|
fork do
|
75
79
|
exec(*cmd(job))
|
76
80
|
end
|
77
81
|
Process.wait
|
78
|
-
output_message "Job #{job.inspect} was just run."
|
82
|
+
output_message "Job #{job.inspect} was just run.".black.on_red
|
79
83
|
end
|
80
84
|
|
81
85
|
def work_loop
|
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.85"
|
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 = "2013-06-
|
9
|
+
s.date = "2013-06-20"
|
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", "irb_connect", "myex", "number_files", "on_change", "path", "probe", "remote_copy", "same_files", "search", "sedit", "ssh-tunnel", "strip_spaces", "unquarantine_apps", "untest", "utils-install-config", "utils-utilsrc", "vacuum_firefox_sqlite", "xmp"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|