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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 766c8728e87db3008595dbae530b7774cfb4c31d
4
- data.tar.gz: 403d9eceb6e0b4b858a21a1e7be1191f54a66b01
3
+ metadata.gz: 71584e6ca9a7eb11928889a8d9602bfd90f708d2
4
+ data.tar.gz: 242cee98e5ab2ada63c72ed10371c9e363dc47e3
5
5
  SHA512:
6
- metadata.gz: a4ac7fa3d31cad32e091f70f32b4e7bf1ad9ca4887013aba809acbcd5d1cb1e1d0d8f085831b65a907ef2fa51e1b834b7a6a9ac718e784f0610fe915041bca20
7
- data.tar.gz: 6a767f6575043251f26700a221bfcea788b75f52683385fda358749fda853ca8a71a926ea56f98456a44254d3d5fb8cf7da863b30d339f56c2c705d4c811d7ba
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.exists? filename
6
+ if File.file?(filename)
7
7
  filename
8
- elsif root = paths.find{|path| File.exists?(File.join(path, filename))}
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
@@ -1,3 +1,3 @@
1
1
  module Trusty
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler