utils 0.0.84 → 0.0.85

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d92bad72e629a9acd39afa710d1202cfc1df4532
4
- data.tar.gz: 0a992a3777e0038ee3d8903b691a52dc8603576a
3
+ metadata.gz: bc63c9706c910335881a4b0d9e83037811cdbdea
4
+ data.tar.gz: f5de311f8e3a51672bd490df3f4e6da4e2db36d1
5
5
  SHA512:
6
- metadata.gz: c102c0c04523d659caeee788b6d13ebf3d719e17fa0c831910e55aa4d3a04422505e8724b5c8e521d2d209141271f8fb46c5e06915ca4ec02db198689dab4088
7
- data.tar.gz: 7d6fce6c45d6e193aabc6229ae20421f9951d11b216f16df93338d3b64474c94c363f781688c5ab26d532460eca136d409e065d1f65472c4f7aa962c0cb14f7b
6
+ metadata.gz: 30856d4b336f28aa01d7d32fa7ec628221cdbf37984d1f8227df06d8ffb22ff15a1d038e99cc15fb8367c101b4a69419e4763efa15a3b34da7a5b8f8034986d9
7
+ data.tar.gz: 8413431f778eb52d52fe76b4a5b72502aa80a46b10a84fb4acd8a2822a36431e499593598085868370ad093e9e4a142baad4fabd8f59118310b5efd3e657c637
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.84
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
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.84'
3
+ VERSION = '0.0.85'
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:
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "utils"
5
- s.version = "0.0.84"
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-19"
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.84
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-19 00:00:00.000000000 Z
11
+ date: 2013-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar