utils 0.0.95 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2dac1f83a4dd6b72644ff55a4e8a25739ddf72c
4
- data.tar.gz: ad875a032b04323d2eb2680f01e66cd8fa30fe09
3
+ metadata.gz: 266c90fe7703c6489e6d66096965c92b59f80e1c
4
+ data.tar.gz: 51d36018ce055b1887c081ae93f401c826f6d79f
5
5
  SHA512:
6
- metadata.gz: b10aefc8448a99346cb51093d3061d655f734f37c668908544b538e87e7e9c25b4c6e31f1a812f96237608ccc4be81e43f532c825a10b7ed41ed28880d1a4789
7
- data.tar.gz: 88d34d3d0e82ecf2408fbd10d3910aa546767faf4c6e0f0dd9bca4f0172a48c6771903981f4f8c0125ef3022471831b5ee094acd8c0273b07166779e7a34eee4
6
+ metadata.gz: 77964738b8e9413f48ad1b73cef2709e789539fa9ee4227953cbcebfbce40cde887319b7ccf06653828093e5994c04516c624cfe383804fc223cfc86ee3a8f43
7
+ data.tar.gz: b567bc1621be74d10258a5e3f1a6040b0a1fb719ddfba11d14ae94fe000e14f46bfacff07d01576ec5b59137616a4808e24b285270b5bb2fa027daf8b4c1cf1e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.95
1
+ 0.0.96
data/bin/probe CHANGED
@@ -75,9 +75,9 @@ def connect_server
75
75
  DRb.start_service
76
76
  probe_server = DRbObject.new_with_uri($uri)
77
77
  if $opt['c']
78
- opts = $opt.subhash('n', 't').map { |k, v|
79
- v.full? { "-#{k} #{v.inspect}" }
80
- }.compact
78
+ opts = $opt.subhash('n', 't').each_with_object([]) { |(k, v), a|
79
+ v.full? and a.concat [ "-#{k}", v ]
80
+ }
81
81
  probe_server.enqueue opts + $args
82
82
  exit
83
83
  elsif $opt['C']
@@ -90,7 +90,7 @@ end
90
90
  case
91
91
  when $opt['l']
92
92
  start_server
93
- else
93
+ when $opt['c'], $opt['C']
94
94
  connect_server
95
95
  end
96
96
 
@@ -112,7 +112,13 @@ module Utils
112
112
  end
113
113
 
114
114
  def cmd(job)
115
- [ $0, *job ]
115
+ call = []
116
+ if ENV.key?('BUNDLE_GEMFILE') and bundle = `which bundle`.full?(:chomp)
117
+ call << bundle << 'exec'
118
+ end
119
+ call.push($0, *job)
120
+ output_message "Executing #{call.inspect} now.", :type => :info
121
+ call
116
122
  end
117
123
  end
118
124
  end
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.95'
3
+ VERSION = '0.0.96'
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:
data/utils.gemspec CHANGED
@@ -1,13 +1,13 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: utils 0.0.95 ruby lib
2
+ # stub: utils 0.0.96 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils"
6
- s.version = "0.0.95"
6
+ s.version = "0.0.96"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Florian Frank"]
10
- s.date = "2013-09-30"
10
+ s.date = "2013-10-01"
11
11
  s.description = "This ruby gem provides some useful command line utilities"
12
12
  s.email = "flori@ping.de"
13
13
  s.executables = ["brakeman2err", "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"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.homepage = "http://github.com/flori/utils"
17
17
  s.rdoc_options = ["--title", "Utils - Some useful command line utilities", "--main", "README.rdoc"]
18
18
  s.require_paths = ["lib"]
19
- s.rubygems_version = "2.1.4"
19
+ s.rubygems_version = "2.1.5"
20
20
  s.summary = "Some useful command line utilities"
21
21
 
22
22
  if s.respond_to? :specification_version then
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.95
4
+ version: 0.0.96
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-09-30 00:00:00.000000000 Z
11
+ date: 2013-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  requirements: []
236
236
  rubyforge_project:
237
- rubygems_version: 2.1.4
237
+ rubygems_version: 2.1.5
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: Some useful command line utilities