faw_icon 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/faw_icon/helper.rb +10 -0
- data/lib/faw_icon/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7189106f2aa311399924cabc6ea478078dff205971f60ec3d8146673076ef985
|
4
|
+
data.tar.gz: '09821b560c5c90eae015410b4244dc32b0a850d34f02bb4d0c40d48c7acf0c59'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae7e75dbccd1b4d7bafb73fb6123ee91c9149247c854deac44d26b80c3c48fa485ad3f3cce3ea8a420675b66f1753d8a19b4c3134b4427145b8c739d3e8b752e
|
7
|
+
data.tar.gz: 394e6b9687f475e593e7e7142fc7726bb5f25af39145170d49a4c40086e86c578d8e265be25ae313069038160af6a45ab36e9c130ab0a476550e515cf748f519
|
data/lib/faw_icon/helper.rb
CHANGED
@@ -42,6 +42,16 @@ module FawIcon
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def by_raw(style, name, html_props)
|
45
|
+
if (faw_spec = Gem.loaded_specs['faw_files'])
|
46
|
+
gem_folder = faw_spec.full_gem_path, 'vendor', 'assets', 'images', 'fa', 'raw-svg'
|
47
|
+
if File.exist? Rails.root.join(gem_folder.join("/"), style, "#{name}.svg")
|
48
|
+
doc = File.open(Rails.root.join(gem_folder.join("/"), style, "#{name}.svg")) { |f| REXML::Document.new(f) }
|
49
|
+
svg = doc.root
|
50
|
+
end
|
51
|
+
|
52
|
+
return fa_tag(svg, html_props)
|
53
|
+
end
|
54
|
+
|
45
55
|
if File.exist? Rails.root.join(FawIcon.configuration.raw_svg_path, style, "#{name}.svg")
|
46
56
|
doc = File.open(Rails.root.join(FawIcon.configuration.raw_svg_path, style, "#{name}.svg")) { |f| REXML::Document.new(f) }
|
47
57
|
svg = doc.root
|
data/lib/faw_icon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faw_icon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexwebgr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
81
|
+
rubygems_version: 3.3.7
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: A simple helper for Font-Awesome 5 using raw SVG and SVG-with-JS
|