esvg 2.9.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/esvg.rb +5 -1
- data/lib/esvg/helpers.rb +10 -4
- data/lib/esvg/svg.rb +2 -0
- data/lib/esvg/version.rb +1 -1
- 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: 8043d7996452e9835cccff0963b343c979b3ba38
|
4
|
+
data.tar.gz: 74c546775101bf3c91769f5f32a9d33b089803c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ceefb55b295f44f8e884896a3b1930e9ef3db4b346c32deffceb8106ed77c45a9b2bffe0b9996b2d5fecdedd20e0a6df8751d31edd4359b433275a5fa9b6942
|
7
|
+
data.tar.gz: 98d15fa8f95672e5b0e4db06a869418b8bdc8c77f35d47b8118464ae863cec3908653251708779f912ec58fa27fc7c0c2ac6e3a68b70e5d70a749a2e07100e70
|
data/CHANGELOG.md
CHANGED
data/lib/esvg.rb
CHANGED
data/lib/esvg/helpers.rb
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
module Esvg::Helpers
|
2
2
|
def svg_icons(options={})
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
svgs = Esvg.svgs
|
4
|
+
|
5
|
+
if svgs.nil? || !options.empty?
|
6
|
+
svgs = Esvg.new(options)
|
7
|
+
end
|
8
|
+
|
9
|
+
svgs.read_files if Rails.env.development?
|
10
|
+
|
11
|
+
svgs
|
6
12
|
end
|
7
13
|
|
8
14
|
def svg_icon(name, options={})
|
9
|
-
svg_icons.
|
15
|
+
svg_icons.use(name, options).html_safe
|
10
16
|
end
|
11
17
|
end
|
data/lib/esvg/svg.rb
CHANGED
data/lib/esvg/version.rb
CHANGED