scoobydoo 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scoobydoo.rb +1 -0
  3. metadata +9 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b45934cfc0ce3db94fe7c1bc87aecfa80d22b62d4b52a4ac6e19f79ae5e07a4
4
- data.tar.gz: 65b8508197b6708bef1b7b6b2efee7bc4008b70dd18e0632fa1354a2dbe7d019
3
+ metadata.gz: a7ac9976992063cb50b0e5ce2e3e23013787a612aa09b6ee63c32777d5db4061
4
+ data.tar.gz: 3239a43ab5e5fd5660e9bcdb840dc86cb18fded54586d9ab1eda5c4bacb56d61
5
5
  SHA512:
6
- metadata.gz: eb42812cf40dc16980acd7ab8711bc351b8d64b70650bdfde3a02ae669728600d4ffaa7701cded2c1e8997a7b8a0a1c7c4468037079a640c771b07ba91ca3d84
7
- data.tar.gz: cc185bd01ba332f435e96f5b5dca6fda4a55db9993f76ba1fcb8d8150c6e3218cfb02a50362894e84652c6f070b9266f25ea700983a1bb2d319c07c62f097317
6
+ metadata.gz: c84be19803e82ff6bb7887ec01ee474d86f5c6ccb444f15ca588dadc3827c962f77c70bfee137a66e8f992675f4a830679a107299e94afecadc0734721df2749
7
+ data.tar.gz: fda9423c486adf15ba8d985993a23804e37f4d76c0212f6fe8f37df1009320bb0a442584d510477c90940faca8041a86d95a6aa163ba9befb8f626c47acca0df
data/lib/scoobydoo.rb CHANGED
@@ -4,6 +4,7 @@ class ScoobyDoo
4
4
  @@cache = Hash.new
5
5
 
6
6
  def self.where_are_you(cmd)
7
+ return nil if (cmd.nil? || cmd.empty?)
7
8
  return @@cache[cmd] if (@@cache.has_key?(cmd))
8
9
 
9
10
  if (cmd.include?(File::SEPARATOR))
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoobydoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2019-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '12.3'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: 12.3.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '12.3'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '12.3'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 12.3.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '12.3'
33
33
  description: Cross-platform which for ruby.
34
34
  email: mjwhitta@gmail.com
35
35
  executables: []
@@ -56,8 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
- rubyforge_project:
60
- rubygems_version: 2.7.7
59
+ rubygems_version: 3.0.3
61
60
  signing_key:
62
61
  specification_version: 4
63
62
  summary: Cross-platform which for ruby