railsglyphs 1.0.2 → 1.0.4
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/assets/icons/outline/instagram.svg +3 -1
- data/assets/icons/outline/moon-alt.svg +4 -0
- data/assets/icons/outline/rubygems.svg +5 -0
- data/assets/icons/solid/moon-alt.svg +5 -0
- data/assets/icons/solid/rubygems.svg +5 -0
- data/lib/railsglyphs/icon_helper.rb +4 -2
- data/lib/railsglyphs/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bb99be82d4343ff81334cf1b7fbc28e37ea3e90ea2e9da2e5eedca98154dd20
|
4
|
+
data.tar.gz: 0ff59d58dcce3068cc41af4a524c3f26f6ace3aad8ef8551f80a771e78f23cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cacf9ad784dbf9485fefc8caa1448686571b460983dbf4f1022de3030d8a53bee902cf858fe605ebc1329e907c78383ba7f01c4c97b655064e4340aa282ecac
|
7
|
+
data.tar.gz: adcd92be20c16bcb7c76fd0aa2f9600db12ed57a7d4c20bab2a6cc8d72ecf800913d89231b27bf20c71f777893a69830558ca5ce0974925e85e868be3e6d92ad
|
@@ -1 +1,3 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/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
|
|
@@ -40,10 +42,10 @@ module RailsGlyphs
|
|
40
42
|
end
|
41
43
|
|
42
44
|
html_options[:class] = html_options[:class].strip if html_options[:class]
|
43
|
-
html_options['aria-hidden']
|
45
|
+
html_options['aria-hidden'] = true unless html_options.key?('aria-hidden')
|
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
|
data/lib/railsglyphs/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor S. Keenan
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-12 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
|
@@ -706,6 +710,8 @@ metadata:
|
|
706
710
|
homepage_uri: https://www.victorkeenan.com/projects/railsglyphs/
|
707
711
|
source_code_uri: https://github.com/VictorSK/railsglyphs/
|
708
712
|
changelog_uri: https://github.com/VictorSK/railsglyphs/blob/main/CHANGELOG.md
|
713
|
+
bug_tracker_uri: https://github.com/VictorSK/railsglyphs/issues/
|
714
|
+
documentation_uri: https://github.com/VictorSK/railsglyphs/blob/main/README.md
|
709
715
|
rubygems_mfa_required: 'true'
|
710
716
|
rdoc_options: []
|
711
717
|
require_paths:
|