rbbt-util 5.20.25 → 5.20.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/resource.rb +2 -0
- data/lib/rbbt/resource/path.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8c6536f28d6d8ac9e66e806944eb1b4295c7e6
|
4
|
+
data.tar.gz: 49c9c947c59b325e67d4b3f807606abb89852d2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0314ac49f73cc937c7732f5022fe5d6854bfdaf69ebd6e7d56ac858f0e56026a1e71806881ffc92e03076241295c6507d47b47e5108716dadff71a34e3f7bed
|
7
|
+
data.tar.gz: b8057ee7804c0dae6f86636ca53cdeabff58e20193108b1b96c6571710c50d3f7ec95dc07b27f0308be2e44556efe4689e37b64ac1086879a16b46b4821090a7
|
data/lib/rbbt/resource.rb
CHANGED
@@ -119,6 +119,8 @@ module Resource
|
|
119
119
|
case
|
120
120
|
when @resources.include?(path)
|
121
121
|
type, content = @resources[path]
|
122
|
+
when @resources.include?(path.original)
|
123
|
+
type, content = @resources[path.original]
|
122
124
|
when has_rake(path)
|
123
125
|
type = :rake
|
124
126
|
rake_dir, content = rake_for(path)
|
data/lib/rbbt/resource/path.rb
CHANGED
@@ -2,7 +2,7 @@ require 'rbbt/resource/util'
|
|
2
2
|
require 'yaml'
|
3
3
|
|
4
4
|
module Path
|
5
|
-
attr_accessor :resource, :pkgdir, :search_paths
|
5
|
+
attr_accessor :resource, :pkgdir, :search_paths, :original
|
6
6
|
|
7
7
|
def self.setup(string, pkgdir = nil, resource = nil, search_paths = nil)
|
8
8
|
return string if string.nil?
|
@@ -107,7 +107,7 @@ module Path
|
|
107
107
|
end
|
108
108
|
|
109
109
|
path = nil
|
110
|
-
if where.nil?
|
110
|
+
res = if where.nil?
|
111
111
|
STANDARD_SEARCH.each do |w|
|
112
112
|
w = w.to_sym
|
113
113
|
next unless paths.include? w
|
@@ -152,6 +152,10 @@ module Path
|
|
152
152
|
|
153
153
|
self.annotate path
|
154
154
|
end
|
155
|
+
|
156
|
+
res.original = self
|
157
|
+
|
158
|
+
res
|
155
159
|
end
|
156
160
|
end
|
157
161
|
|