rbbt-util 5.17.88 → 5.17.89

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: 86b82101fc67bc2487900d9724f87edcd80eb993
4
- data.tar.gz: aae5819b0436ad15b426eb55ecb51ddffb24ce87
3
+ metadata.gz: 56653aeb0297a9c75d251c516332e80d4c8dab3d
4
+ data.tar.gz: c15ac190a4700594eee5d50e72ee0a28446f339a
5
5
  SHA512:
6
- metadata.gz: cdc2c960706e1d1c48b4145d7f693faa3a8da4c86584a38814bab2fef13b179d10f9654ccbcc6bb7b77bab04b015840114b9727ff1da7c8333ea236db34e91e4
7
- data.tar.gz: e4afc4ba6bee4284eda09da1bd1f4523fdb40402e02cc867d8dd6b6f9d9798c667180f9e13ce2ec7fa895ef5ee6c82e5cd98164d37f37f92f6625055e4b03737
6
+ metadata.gz: 2e8f2f8eae1892499a33dba6d43c28cfa65065e6df074a3728e937bae108ba6e1929a12545022f02708a62b25bc6abd0f9fa576dd6cc8ad76770115a60e4ac4e
7
+ data.tar.gz: 3727fb8076c8e6ac692d947d19abae675198c2795d508c652fcd7a34c1febe96a624c5b6697ba1b3eedaeefec119c17371c907cc79b6b4f1df5436e7abd6f067
@@ -94,7 +94,8 @@ module Path
94
94
  def find(where = nil, caller_lib = nil, paths = nil)
95
95
  @path ||= {}
96
96
  rsearch_paths = (resource and resource.respond_to?(:search_paths)) ? resource.search_paths : nil
97
- key = Misc.digest([where, caller_lib, rsearch_paths, paths].inspect)
97
+ key_elems = [where, caller_lib, rsearch_paths, paths]
98
+ key = Misc.digest(key_elems.inspect)
98
99
  @path[key] ||= begin
99
100
  paths = [paths, rsearch_paths, self.search_paths, SEARCH_PATHS].reverse.compact.inject({}){|acc,h| acc.merge! h; acc }
100
101
  where = paths[:default] if where == :default
@@ -8,6 +8,7 @@ module Path
8
8
  l =~ /progress-monitor\.rb/
9
9
  }.first.sub(/\.rb[^\w].*/,'.rb') if file.nil?
10
10
 
11
+ file = File.expand_path(file)
11
12
  return Path.setup(file) if File.exists? File.join(file, relative_to)
12
13
 
13
14
  while file != '/'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.88
4
+ version: 5.17.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake