whiches 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmRjMDJlMTNhMTBjYzVjZDUwOWY4YjM3Zjg3MTlhMWFlMTJlYTUzNA==
4
+ YWUyNmEyOThlMjVjYWVjNzFjMjZkYWQ3YjdmOTc1NjU0M2M5ZjFhYQ==
5
5
  data.tar.gz: !binary |-
6
- MzE5ZDE3ZDkzNzAwZWM3OGZlYTAyMDk2NjEyNTM0N2RiYzUzNDk1NA==
6
+ ZTVlZTk2OTdmYTljZjI3ZTA5NjMzMDM1NDBkMDE3NjJjZDcyZDU5Ng==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDRkZTU0NjJmYmQ3MjQxMzEzMDlhYTY2ZWE2NzIyY2U4MGE4YTNjNTQ5Yzhk
10
- ZTIyMWE4ZGVkNjIxYjdiMmVjMzUxMWMxNzcwMTBiMzBkOGIwYTkzMzI5OTQ5
11
- YmNiMzg5NDFjOTI5ODQ3NWU3ZjlhMzgxNjI1ZWEzNjU0NTRlNTM=
9
+ NWRhMTdhZWMyMDJjYThmZGE2ZWU2NmJiOTRkZDc4ZWM0ODAzZGE5YTM1Nzc0
10
+ ZTAwNDgyZDM5MTIyZjUxNzg1NTBhMWZkMTVmNGQwOTRkYTFmNTJmMjUwYTdi
11
+ YTA1MjA2OGI2MDZmM2Y5OTliMGJhYTQyZTlhZTI2ZjZjMjBkZTM=
12
12
  data.tar.gz: !binary |-
13
- OGFkODg1OGVjNTIyZTA2ZDU1MWIyNDgwMzU3ZjBjNDhiODNkMzRkMDhlNmZi
14
- YzZkOGM4NmMyNWE1MDY2MWJlMWU5MTQyMzEwMThmYmFhZDFjNTYwNDdhYmJm
15
- NWY0NWIzOGZjMDhlYThhZTJjN2Q0ODhkYjExM2IyZDMzNzljMDA=
13
+ YTQ1YTg5NTE1OTRmZmMxYjNlMTVmYzQ3ZGU4ODc5MTNiZGQxY2ZjNWEwMDBl
14
+ Mzg2NGNiYmE2MWY4NmNhZmNkZTQxYmRkODY1ZmNhNGExZjM4Y2IxMmI1Y2Nl
15
+ NzNhNDJmNTdkYjBhODY3ZGQzNGY3YTk3MmYyM2EwYjhkYzZmZGU=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Whiches
2
2
 
3
- Find executables in all the paths in $PATH.
3
+ **Ruby gem to find executables in all the paths in $PATH.**
4
4
 
5
5
  Cross-platform way of finding executables in all the paths in $PATH.
6
6
 
@@ -30,9 +30,11 @@ Find executables in all the paths in $PATH.
30
30
 
31
31
  This will show you that the first one that is found in the PATH is the one from Postgres, so if you want to get back your original one, you have to modify your PATH accordingly.
32
32
 
33
- ## URL
33
+ ## URLs
34
34
  <https://github.com/simplytech/whiches>
35
35
 
36
+ <https://rubygems.org/gems/whiches>
37
+
36
38
  ## Installation
37
39
 
38
40
  Add this line to your application's Gemfile:
@@ -49,8 +51,16 @@ Or install it yourself as:
49
51
 
50
52
  ## Usage
51
53
 
52
- whiches [executables]
54
+ ### Command-line
55
+
56
+ whiches [executables]
57
+
58
+ ### Ruby method
53
59
 
60
+ paths = Whiches.whiches('ruby')
61
+
62
+ Returns an array of paths if found, otherwise returns nil.
63
+
54
64
  ## License
55
65
 
56
66
  Copyright (c) 2013 Alain Achkar
@@ -1,3 +1,3 @@
1
1
  module Whiches
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -38,4 +38,5 @@ Gem::Specification.new do |gem|
38
38
  gem.name = "whiches"
39
39
  gem.require_paths = ["lib"]
40
40
  gem.version = Whiches::VERSION
41
+ gem.add_runtime_dependency 'awesome_print' # Only needed for the 'whiches' binary because I like my output to look awesome. Not needed for Whiches#whiches.
41
42
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiches
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain Achkar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-10 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2013-07-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: awesome_print
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: ! " Cross-platform way of finding executables in all the paths in
14
28
  $PATH.\n \n This is similar to the Unix 'which' command, however, instead
15
29
  of finding the first\n occurence of the executable in $PATH, it finds all occurences