trusty 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trusty/utilities/path_finder.rb +2 -2
- data/lib/trusty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71584e6ca9a7eb11928889a8d9602bfd90f708d2
|
4
|
+
data.tar.gz: 242cee98e5ab2ada63c72ed10371c9e363dc47e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f5f25ff3503cda08da2beb3f7e3b2a8d662b18d4f6e269c2474e84437088147a7decf9814910fd5a39b0941733d8c995677508882ac36b9d82dae6d39f72aa5
|
7
|
+
data.tar.gz: a0f3ef3a5ad8bc885c260d6f4f706c3a70f0c587ad95ca778b1ebb6b1e59ff69ac25437e57a3c49b068a7e58dd288b45d271588dde41ad017abede1e8d69e16b
|
@@ -3,9 +3,9 @@ module Trusty
|
|
3
3
|
module PathFinder
|
4
4
|
module ClassMethods
|
5
5
|
def find(filename, paths = [])
|
6
|
-
if File.
|
6
|
+
if File.file?(filename)
|
7
7
|
filename
|
8
|
-
elsif root = paths.find{|path| File.
|
8
|
+
elsif root = Array(paths).find{|path| File.file?(File.join(path, filename))}
|
9
9
|
File.join(root, filename)
|
10
10
|
end
|
11
11
|
end
|
data/lib/trusty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Van Horn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|