which 0.0.1 → 0.0.2

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 (2) hide show
  1. data/lib/which.rb +9 -1
  2. metadata +12 -4
@@ -1,4 +1,9 @@
1
- require 'pathname'
1
+ begin
2
+ require 'rubygems'
3
+ rescue LoadError => e
4
+ end
5
+
6
+ require 'pathname2'
2
7
 
3
8
  #
4
9
  # Skeleton module for the 'which' routine.
@@ -49,6 +54,9 @@ module Which
49
54
  # that filename occurs. `filename' is included as a part of the
50
55
  # output.
51
56
  #
57
+ # Note that the filename must both exist in the path _and_ be
58
+ # executable for it to appear in the return value.
59
+ #
52
60
  # Those familiar with the which(1) utility from UNIX will notice the
53
61
  # similarities.
54
62
  #
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: which
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2006-04-09 00:00:00 -07:00
6
+ version: 0.0.2
7
+ date: 2006-04-11 00:00:00 -07:00
8
8
  summary: Module to emulate the 'which' utility from a unix system
9
9
  require_paths:
10
10
  - lib
@@ -42,5 +42,13 @@ extensions: []
42
42
 
43
43
  requirements: []
44
44
 
45
- dependencies: []
46
-
45
+ dependencies:
46
+ - !ruby/object:Gem::Dependency
47
+ name: pathname2
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Version::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 1.4.4
54
+ version: