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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de5480bbb14198a0b481e2ae8096b42825adcda417b12ab7903078bf179d7755
4
- data.tar.gz: 5b962f280976cf45fa5b957787a8af52cf2c3460e606c62a1ed654a2e13800fd
3
+ metadata.gz: 7189106f2aa311399924cabc6ea478078dff205971f60ec3d8146673076ef985
4
+ data.tar.gz: '09821b560c5c90eae015410b4244dc32b0a850d34f02bb4d0c40d48c7acf0c59'
5
5
  SHA512:
6
- metadata.gz: 03b1b0464f81aeab522848538dd9bd11d633b34826d7f3b86d2bd19bada259d6e65aea6958f7cbc3d1e200da5381f6f59817180297ac226c3c470e0e07a1cdfe
7
- data.tar.gz: 4bc8ce452b76ddee9999007093cbd01be9e3bc695542eebc90f1a23b98f6e08cbbfd3d9d97b42cf60abb8416f8728410ae28e8ff03d1da03e07550cb1fc269b3
6
+ metadata.gz: ae7e75dbccd1b4d7bafb73fb6123ee91c9149247c854deac44d26b80c3c48fa485ad3f3cce3ea8a420675b66f1753d8a19b4c3134b4427145b8c739d3e8b752e
7
+ data.tar.gz: 394e6b9687f475e593e7e7142fc7726bb5f25af39145170d49a4c40086e86c578d8e265be25ae313069038160af6a45ab36e9c130ab0a476550e515cf748f519
@@ -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
@@ -1,3 +1,3 @@
1
1
  module FawIcon
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
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.2.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: 2023-01-20 00:00:00.000000000 Z
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.2.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