bootstrap-icons-helper 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 39539d50d7ccb6e99ac20005fb792058770166e51e627db12ca025577757dbc0
4
+ data.tar.gz: 8922adee2dafc242867f1df711af2a6767e00d0c955026f2d4d2d6e3823f2ba5
5
+ SHA512:
6
+ metadata.gz: 9eb05cfa4bef2c02849057579439a3d2f17d84aaaf052210d46b1f726f6c885297813182fffb529967aae88d27ef4c083839805282fe668a9f8e82c9fd805e9f
7
+ data.tar.gz: b1223fa94ef409e357d7a188280ed232333e6ba74f7170e7375e15752b1b6189715bceafac40a3e222ac59bdf9aa54f30b8309a4828620baf9034147536dcfe5
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Marcelo Lauxen.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # bootstrap-icons-helper
2
+
3
+ - Work in progress
@@ -0,0 +1,13 @@
1
+ require "bootstrap_icons"
2
+ require "action_view"
3
+
4
+ module BootstrapIconsHelper
5
+ include ActionView::Helpers::TagHelper
6
+
7
+ def bootstrap_icon(symbol, options = {})
8
+ return "" if symbol.nil?
9
+
10
+ icon = BootstrapIcons::BootstrapIcon.new(symbol, options)
11
+ content_tag(:svg, icon.path.html_safe, icon.options) # rubocop:disable Rails/OutputSafety
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ require "rails"
2
+
3
+ module BootstrapIconsHelper
4
+ class Railtie < Rails::Railtie
5
+ initializer "bootstrap-icons-helper.helper" do
6
+ ActionView::Base.send :include, BootstrapIconsHelper
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module BootstrapIconsHelper
2
+ VERSION = "0.0.1".freeze
3
+ end
@@ -0,0 +1,3 @@
1
+ require "bootstrap-icons-helper/version"
2
+ require "bootstrap-icons-helper/helper"
3
+ require "bootstrap-icons-helper/railtie" if defined?(Rails)
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bootstrap-icons-helper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Marcelo Lauxen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bootstrap_icons
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '6.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '6.0'
41
+ description: A rails helper that makes including svg Bootstrap Icons simple.
42
+ email:
43
+ - marcelolauxen16@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - LICENSE
49
+ - README.md
50
+ - lib/bootstrap-icons-helper.rb
51
+ - lib/bootstrap-icons-helper/helper.rb
52
+ - lib/bootstrap-icons-helper/railtie.rb
53
+ - lib/bootstrap-icons-helper/version.rb
54
+ homepage: https://github.com/marcelolx/icons
55
+ licenses:
56
+ - MIT
57
+ metadata: {}
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: '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.3
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: Bootstrap I rails helper
77
+ test_files: []