simple-icons-rails 0.1.25
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 +7 -0
- data/lib/simple-icons-rails/version.rb +5 -0
- data/lib/simple-icons-rails.rb +11 -0
- metadata +77 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 637d57d786f75337a8a3278ce3494713b7b5644d15c9288c18d2f96faa33901a
|
4
|
+
data.tar.gz: c72a2a9b6bbe9045d96b345dc43d95a1094872f7cf9cd827aa3587760337a573
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3e9d2835096c3739a579b0cd5d8f726a3793c23ce6a4f77094f924f5acfce0f016496b4fbadd11658cbda04f5a16422812d631bac9d6e26db8a69ce32445eeab
|
7
|
+
data.tar.gz: 50ed2644c2f34d46bb4239d1eb49724b5a004660e111dee3df3daa987d9cbdbdd42c1039073eaeac2a2fca701da4f6989835a6a33778171a09a0b2ddeb3851f0
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module SimpleIconsRails
|
2
|
+
def simple_icon(icon_slug, color = nil, html_options = {})
|
3
|
+
svg_url = "https://cdn.simpleicons.org/#{icon_slug}/#{color}"
|
4
|
+
html_options[:src] = svg_url
|
5
|
+
html_options[:alt] ||= icon_slug # Optional: Set a default alt text if not provided
|
6
|
+
|
7
|
+
tag(:img, html_options)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
ActionView::Base.include SimpleIconsRails
|
metadata
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple-icons-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.25
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- spaquet
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
description: A gem that allows you to quickly import Simple Icons into your Rails
|
42
|
+
project.
|
43
|
+
email:
|
44
|
+
- 176050+spaquet@users.noreply.github.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/simple-icons-rails.rb
|
50
|
+
- lib/simple-icons-rails/version.rb
|
51
|
+
homepage: https://github.com/the-pew-inc/simple-icons-rails
|
52
|
+
licenses:
|
53
|
+
- MIT
|
54
|
+
metadata:
|
55
|
+
homepage_uri: https://github.com/the-pew-inc/simple-icons-rails
|
56
|
+
source_code_uri: https://github.com/the-pew-inc/simple-icons-rails
|
57
|
+
changelog_uri: https://github.com/the-pew-inc/simple-icons-rails/blob/main/CHANGELOG.md
|
58
|
+
post_install_message:
|
59
|
+
rdoc_options: []
|
60
|
+
require_paths:
|
61
|
+
- lib
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.6.0
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
requirements: []
|
73
|
+
rubygems_version: 3.1.6
|
74
|
+
signing_key:
|
75
|
+
specification_version: 4
|
76
|
+
summary: A Rails gem for importing Simple Icons
|
77
|
+
test_files: []
|