avo 3.14.4 → 3.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/helpers/avo/application_helper.rb +1 -1
- data/lib/avo/svg_finder.rb +7 -5
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a541816face384dc71f08d1061032b186f5f9b339444ff51d9d497d1214c5034
|
4
|
+
data.tar.gz: d249fb10d6e269949c764650f6dfe7ba7e6dd1403edb14b9121281069edf545a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c481717a93f777a1405d0629e52d21b72666bd637eaf9f195fb27dcd08eebe11c17fc048d52994f217d7bd6d590a4e03e62343c935725296367656e108fec4b5
|
7
|
+
data.tar.gz: a03b292b6f48c2b1d2ab22c96145020c95f31ddf6c4d0237332ca91e18d935fb7b2b72f93f2fbd4d05a7d5eb3296964d3ef5f0aadf9095139eefdad0539e89e2
|
data/Gemfile.lock
CHANGED
data/lib/avo/svg_finder.rb
CHANGED
@@ -9,13 +9,15 @@ class Avo::SvgFinder
|
|
9
9
|
|
10
10
|
# Use the default static finder logic. If that doesn't find anything, search according to our pattern:
|
11
11
|
def pathname
|
12
|
-
|
12
|
+
Avo::CACHED_SVGS[@filename] ||= begin
|
13
|
+
found_asset = default_strategy
|
13
14
|
|
14
|
-
|
15
|
-
|
15
|
+
# Use the found asset
|
16
|
+
return found_asset if found_asset.present?
|
16
17
|
|
17
|
-
|
18
|
-
|
18
|
+
paths.find do |path|
|
19
|
+
File.exist? path
|
20
|
+
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
data/lib/avo/version.rb
CHANGED