railsglyphs 1.0.2 → 1.0.3

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: 5102d78228b0311dbfbfed1db90d6b9681152ab77725baf325d2ea9276de07d9
4
- data.tar.gz: cda8c50d5c39c80176586aca231e4ca16a17b14efdeb1a426e3f5da4b0eba54c
3
+ metadata.gz: 0c2e2a36ebf8a54be464c451c3b03d23c06e28dbd0aa1541f4cb48a7472408f1
4
+ data.tar.gz: 187280f31c859ae0bf61a5dc9c8fabe264bf56be445a33dfd19cd3faef9bd661
5
5
  SHA512:
6
- metadata.gz: 9946dd4bb870c208f5b0978827db583a84bad01e2d3f033f2d0b41e0bd6a4571dcda3ad293395f58be0bb010c78e32acc124bf23812d02bde22bffb005ad4e5f
7
- data.tar.gz: 35b700448ac778f951c29c29b9eaf2326f2ae25154a6eb79189ad6f10df4687744639f9323fbacf823e35846f8ff155dbf0d8485c285990a8f9ed83f99d4e52b
6
+ metadata.gz: 415a7ba3dbef10220a1cacc842cd7493445ee66627f4cf84c6fe17728c5da9a11bd0362c70c134132cf6ab8ca98661a239ba5c5ac58726810a9ef8d370d16ff8
7
+ data.tar.gz: 797874b7cbe55b243d2aba23a44bb1fd2b6c861ba9a27b4f07d6b0dc58db24d4e29f67ac4495ab139ba3fd34c7b968ade2801585e8ee17466cf1dac2bada9a85
@@ -1 +1,3 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 256 256"><path d="M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160ZM176,24H80A56.06,56.06,0,0,0,24,80v96a56.06,56.06,0,0,0,56,56h96a56.06,56.06,0,0,0,56-56V80A56.06,56.06,0,0,0,176,24Zm40,152a40,40,0,0,1-40,40H80a40,40,0,0,1-40-40V80A40,40,0,0,1,80,40h96a40,40,0,0,1,40,40ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"></path></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160ZM176,24H80A56.06,56.06,0,0,0,24,80v96a56.06,56.06,0,0,0,56,56h96a56.06,56.06,0,0,0,56-56V80A56.06,56.06,0,0,0,176,24Zm40,152a40,40,0,0,1-40,40H80a40,40,0,0,1-40-40V80A40,40,0,0,1,80,40h96a40,40,0,0,1,40,40ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M17.715 15.15A6.5 6.5 0 0 1 9 6.035C6.106 6.922 4 9.645 4 12.867c0 3.94 3.153 7.136 7.042 7.136 3.101 0 5.734-2.032 6.673-4.853Z"/>
3
+ <path stroke-linecap="round" stroke-linejoin="round" d="M17 3a1 1 0 0 1 1 1 2 2 0 0 0 2 2 1 1 0 1 1 0 2 2 2 0 0 0-2 2 1 1 0 1 1-2 0 2 2 0 0 0-2-2 1 1 0 1 1 0-2 2 2 0 0 0 2-2 1 1 0 0 1 1-1Z"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 200 200" aria-hidden="true" data-slot="icon">
2
+ <polygon points="68.8,69.9 68.7,69.8 46.5,92 100.4,145.8 122.6,123.7 154.3,92 132.1,69.8 132.1,69.7 68.7,69.7"/>
3
+ <path fill-rule="evenodd" d="M100.2,10.6l-78.5,45v90l78.5,45l78.5-45v-90L100.2,10.6z M163.7,137l-63.5,36.6L36.7,137V64l63.5-36.6
4
+ L163.7,64V137z"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
2
+ <path fill-rule="evenodd" d="M17.715 15.15A6.5 6.5 0 0 1 9 6.035C6.106 6.922 4 9.645 4 12.867c0 3.94 3.153 7.136 7.042 7.136 3.101 0 5.734-2.032 6.673-4.853Z" clip-rule="evenodd"/>
3
+ <path d="m17.715 15.15.95.316a1 1 0 0 0-1.445-1.185l.495.869ZM9 6.035l.846.534a1 1 0 0 0-1.14-1.49L9 6.035Zm8.221 8.246a5.47 5.47 0 0 1-2.72.718v2a7.47 7.47 0 0 0 3.71-.98l-.99-1.738Zm-2.72.718A5.5 5.5 0 0 1 9 9.5H7a7.5 7.5 0 0 0 7.5 7.5v-2ZM9 9.5c0-1.079.31-2.082.845-2.93L8.153 5.5A7.47 7.47 0 0 0 7 9.5h2Zm-4 3.368C5 10.089 6.815 7.75 9.292 6.99L8.706 5.08C5.397 6.094 3 9.201 3 12.867h2Zm6.042 6.136C7.718 19.003 5 16.268 5 12.867H3c0 4.48 3.588 8.136 8.042 8.136v-2Zm5.725-4.17c-.81 2.433-3.074 4.17-5.725 4.17v2c3.552 0 6.553-2.327 7.622-5.537l-1.897-.632Z" clip-rule="evenodd"/>
4
+ <path fill-rule="evenodd" d="M17 3a1 1 0 0 1 1 1 2 2 0 0 0 2 2 1 1 0 1 1 0 2 2 2 0 0 0-2 2 1 1 0 1 1-2 0 2 2 0 0 0-2-2 1 1 0 1 1 0-2 2 2 0 0 0 2-2 1 1 0 0 1 1-1Z" clip-rule="evenodd"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 200 200" aria-hidden="true" data-slot="icon">
2
+ <polygon points="68.8,69.9 68.7,69.8 46.5,92 100.4,145.8 122.6,123.7 154.3,92 132.1,69.8 132.1,69.7 68.7,69.7"/>
3
+ <path fill-rule="evenodd" d="M100.2,10.6l-78.5,45v90l78.5,45l78.5-45v-90L100.2,10.6z M163.7,137l-63.5,36.6L36.7,137V64l63.5-36.6
4
+ L163.7,64V137z"/>
5
+ </svg>
@@ -28,6 +28,8 @@ module RailsGlyphs
28
28
  width = html_options[:size] || 24
29
29
  html_options.delete(:size)
30
30
 
31
+ text = content_tag(:span, text, class: "icon-text") unless text.blank?
32
+
31
33
  svg_path = File.join(RailsGlyphs::IconHelper.icon_base_path, style.to_s, "#{name}.svg")
32
34
  raise ArgumentError, "Icon '#{name}' with style '#{style}' not found at #{svg_path}." unless File.exist?(svg_path)
33
35
 
@@ -43,7 +45,7 @@ module RailsGlyphs
43
45
  html_options['aria-hidden'] ||= true
44
46
 
45
47
  html = content_tag(:i, svg_content, html_options)
46
- html << ' ' << text.to_s unless text.blank?
48
+ html << ' '.html_safe << text.to_s unless text.blank?
47
49
  html
48
50
  end
49
51
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsGlyphs
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railsglyphs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor S. Keenan
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-05 00:00:00.000000000 Z
10
+ date: 2025-06-11 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -269,6 +269,7 @@ files:
269
269
  - assets/icons/outline/minus-circle.svg
270
270
  - assets/icons/outline/minus-small.svg
271
271
  - assets/icons/outline/minus.svg
272
+ - assets/icons/outline/moon-alt.svg
272
273
  - assets/icons/outline/moon.svg
273
274
  - assets/icons/outline/musical-note.svg
274
275
  - assets/icons/outline/newspaper.svg
@@ -308,6 +309,7 @@ files:
308
309
  - assets/icons/outline/rectangle-stack.svg
309
310
  - assets/icons/outline/rocket-launch.svg
310
311
  - assets/icons/outline/rss.svg
312
+ - assets/icons/outline/rubygems.svg
311
313
  - assets/icons/outline/scale.svg
312
314
  - assets/icons/outline/scissors.svg
313
315
  - assets/icons/outline/server-stack.svg
@@ -601,6 +603,7 @@ files:
601
603
  - assets/icons/solid/minus-circle.svg
602
604
  - assets/icons/solid/minus-small.svg
603
605
  - assets/icons/solid/minus.svg
606
+ - assets/icons/solid/moon-alt.svg
604
607
  - assets/icons/solid/moon.svg
605
608
  - assets/icons/solid/musical-note.svg
606
609
  - assets/icons/solid/newspaper.svg
@@ -640,6 +643,7 @@ files:
640
643
  - assets/icons/solid/rectangle-stack.svg
641
644
  - assets/icons/solid/rocket-launch.svg
642
645
  - assets/icons/solid/rss.svg
646
+ - assets/icons/solid/rubygems.svg
643
647
  - assets/icons/solid/scale.svg
644
648
  - assets/icons/solid/scissors.svg
645
649
  - assets/icons/solid/server-stack.svg