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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5318e781f618163cd278467536e3ac030a709c57b9bea67149a7ab160abd407b
4
- data.tar.gz: 839baa9394b0b654109404d40414bde575ff6af8197f523ced8aebe1a15e7bf2
3
+ metadata.gz: a541816face384dc71f08d1061032b186f5f9b339444ff51d9d497d1214c5034
4
+ data.tar.gz: d249fb10d6e269949c764650f6dfe7ba7e6dd1403edb14b9121281069edf545a
5
5
  SHA512:
6
- metadata.gz: d33a01c794e15c86c3d4f6dd64ea484d501530be062aec7ca84b71c5d8fecf82489c516ba07cce6569ec59a657802ffe37d434bd76996626e26457fe33a7195f
7
- data.tar.gz: 8a0cabcc2e8c715e1e2f0eeda76a83fcb1de0a8cbc212a7fee2fe6d3feda75cd5d805f1bc14c3453f3f7de8c2bbc98a4433dbedf74660f01483b682d5fa19380
6
+ metadata.gz: c481717a93f777a1405d0629e52d21b72666bd637eaf9f195fb27dcd08eebe11c17fc048d52994f217d7bd6d590a4e03e62343c935725296367656e108fec4b5
7
+ data.tar.gz: a03b292b6f48c2b1d2ab22c96145020c95f31ddf6c4d0237332ca91e18d935fb7b2b72f93f2fbd4d05a7d5eb3296964d3ef5f0aadf9095139eefdad0539e89e2
data/Gemfile.lock CHANGED
@@ -107,7 +107,7 @@ GIT
107
107
  PATH
108
108
  remote: .
109
109
  specs:
110
- avo (3.14.4)
110
+ avo (3.14.5)
111
111
  actionview (>= 6.1)
112
112
  active_link_to
113
113
  activerecord (>= 6.1)
@@ -65,7 +65,7 @@ module Avo
65
65
 
66
66
  file_name = "#{file_name}.svg" unless file_name.end_with? ".svg"
67
67
 
68
- Avo::CACHED_SVGS[file_name] ||= with_asset_finder(::Avo::SvgFinder) do
68
+ with_asset_finder(::Avo::SvgFinder) do
69
69
  inline_svg file_name, **args
70
70
  end
71
71
  end
@@ -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
- found_asset = default_strategy
12
+ Avo::CACHED_SVGS[@filename] ||= begin
13
+ found_asset = default_strategy
13
14
 
14
- # Use the found asset
15
- return found_asset if found_asset.present?
15
+ # Use the found asset
16
+ return found_asset if found_asset.present?
16
17
 
17
- paths.find do |path|
18
- File.exist? path
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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.14.4" unless const_defined?(:VERSION)
2
+ VERSION = "3.14.5" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.4
4
+ version: 3.14.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin