unix_utils 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.0.13 / 2012-05-16
2
+
3
+ * Bug fixes
4
+
5
+ * `which -s` didn't work on all platforms
6
+
1
7
  0.0.12 / 2012-05-09
2
8
 
3
9
  * Bug fixes
@@ -240,7 +240,8 @@ module UnixUtils
240
240
  bin = bin.to_s
241
241
  return @@available_query[bin] if defined?(@@available_query) and @@available_query.is_a?(::Hash) and @@available_query.has_key?(bin)
242
242
  @@available_query ||= {}
243
- @@available_query[bin] = ::Kernel.system 'which', '-s', bin
243
+ `which #{bin}`
244
+ @@available_query[bin] = $?.success?
244
245
  end
245
246
 
246
247
  def self.tmp_path(ancestor, extname = nil) # :nodoc:
@@ -1,3 +1,3 @@
1
1
  module UnixUtils
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unix_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
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-05-10 00:00:00.000000000 Z
12
+ date: 2012-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: posix-spawn