utils 0.0.61 → 0.0.62

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.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/probe +32 -2
  3. data/lib/utils/version.rb +1 -1
  4. data/utils.gemspec +2 -2
  5. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.61
1
+ 0.0.62
data/bin/probe CHANGED
@@ -6,6 +6,7 @@ require 'tins/lines_file'
6
6
  include Tins::GO
7
7
  require 'utils'
8
8
  include Utils
9
+ require 'drb/drb'
9
10
 
10
11
  def usage
11
12
  puts <<-EOT
@@ -41,10 +42,39 @@ if i = ARGV.index('--')
41
42
  else
42
43
  args = ARGV.dup
43
44
  end
44
- $opt = go 't:n:h', args
45
- args.empty? and fail "require filename or filename:linenumber as arguments"
45
+ $opt = go 'lcp:t:n:h', args
46
46
  $opt['h'] and usage
47
47
 
48
+ uri = "druby://localhost:#{$opt['p'] || 6623}"
49
+
50
+ if $opt['l']
51
+ class ProbeServer
52
+ def run(args)
53
+ fork do
54
+ exec $0, *args
55
+ end
56
+ end
57
+ end
58
+ puts "Starting probe server listening to #{uri.inspect}."
59
+ DRb.start_service(uri, ProbeServer.new)
60
+ begin
61
+ DRb.thread.join
62
+ rescue Interrupt
63
+ warn " *** Interrupted ***"
64
+ exit
65
+ end
66
+ end
67
+
68
+ args.empty? and fail "require filename or filename:linenumber as arguments"
69
+
70
+ if $opt['c']
71
+ puts "Connecting probe server on #{uri.inspect}."
72
+ DRb.start_service
73
+ probe_server = DRbObject.new_with_uri(uri)
74
+ opts = $opt.subhash('n', 't').map { |k, v| v.full? { "-#{k} #{v.inspect}" } }.compact
75
+ probe_server.run opts + args
76
+ end
77
+
48
78
  puts "Running tests in #{args.inspect}"
49
79
 
50
80
  case ($opt['t'] || $config.probe.test_framework).to_sym
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.61'
3
+ VERSION = '0.0.62'
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.61"
5
+ s.version = "0.0.62"
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 = "2012-11-22"
9
+ s.date = "2012-11-29"
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", "myex", "number_files", "on_change", "path", "probe", "same_files", "search", "sedit", "sshscreen", "strip_spaces", "unquarantine_apps", "untest", "utils-install-config", "utils-utilsrc", "vacuum_firefox_sqlite", "xmp"]
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.61
4
+ version: 0.0.62
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-22 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gem_hadar
@@ -277,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
277
277
  version: '0'
278
278
  segments:
279
279
  - 0
280
- hash: -777458577067885259
280
+ hash: -3694031983983466450
281
281
  required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  none: false
283
283
  requirements: