breeze_icons_rails 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7ad4d66ae6725acdfff52883f98ce22ed06f1d35d636c5631725e019f3ffe8c4
4
+ data.tar.gz: 7969029b17262fa5c5f7c6d44547004228bf9a743a8d124bdf671a76cd52d29d
5
+ SHA512:
6
+ metadata.gz: d4f2928c40547068986189fc4d29c5364f11da4bbe78105a65b29ba6006f3594ac7ed286b111a618ed3639b662f5a466ce881ad7536a97a91c69aa6bb51f9ebe
7
+ data.tar.gz: fec8127200809d8ba99f43fcf2e3a39967d404153250a854636b8e0c41d31fe777ccdf19750de1470389ef2f5fcdad0287805fe914934e7a9c1efaeae15e435f
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ ![feathericon](https://raw.githubusercontent.com/Wilfison/breeze_icons_rails/master/docs/breeze-icons.png "feathericon")
2
+
3
+ <h1 align="center">Breeze Icons Rails</h1>
4
+ <p align="center">Breeze Icons for Rails Projects</p>
5
+ <!-- <div align="center">
6
+ <a href="https://rubygems.org/gems/breeze_icons_rails">
7
+ <img src="http://img.shields.io/gem/v/breeze_icons_rails.svg" alt="Gem Version">
8
+ </a>
9
+ <a href="https://rubygems.org/gems/breeze_icons_rails">
10
+ <img src="https://img.shields.io/gem/dt/breeze_icons_rails.svg" alt="Gem Downloads">
11
+ </a>
12
+ </div> -->
13
+
14
+ <p align="center">Icons: <a href="https://wilfison.github.io/breeze_icons_rails/">wilfison.github.io/breeze_icons_rails</a></p>
15
+
16
+ ## Usage
17
+
18
+ Place Breeze Icons with `<i>` tag in your html like this. `bi` class is required to use our icons correctly. Check out [icons page](https://wilfison.github.io/breeze_icons_rails/) to start using icons!
19
+
20
+ *HTML*
21
+ ```html
22
+ <i class="bi bi-list-add"></i>
23
+ ```
24
+
25
+ *ERB*
26
+ ```erb
27
+ <%= bi_icon 'list-add' %>
28
+ ```
29
+
30
+ *HAML*
31
+ ```haml
32
+ = bi_icon 'list-add'
33
+ ```
34
+
35
+ ## Installation
36
+ Add this line to your application's Gemfile:
37
+
38
+ ```ruby
39
+ gem 'breeze_icons_rails'
40
+ ```
41
+
42
+ And then execute:
43
+ ```bash
44
+ $ bundle
45
+ ```
46
+
47
+ Or install it yourself as:
48
+ ```bash
49
+ $ gem install breeze_icons_rails
50
+ ```
51
+
52
+ ## Require
53
+
54
+ Add this line to your `app/assets/stylesheets/application.scss`:
55
+ ```scss
56
+ @import 'breeze-icons';
57
+ ```
58
+
59
+ ## License
60
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rubocop/rake_task"
5
+
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: :rubocop
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BreezeIconsRails
4
+ module Rails
5
+ # add assets to rails pipeline
6
+ class Engine < ::Rails::Engine
7
+ initializer "breeze_icons_rails.assets" do |app|
8
+ %w[stylesheets fonts].each do |sub|
9
+ app.config.assets.paths << root.join("assets", sub).to_s
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BreezeIconsRails
4
+ module Rails
5
+ # add bi_icon helper
6
+ module ViewHelpers
7
+ def bi_icon(name, html_options = {})
8
+ content_class = "bi bi-#{name}"
9
+ content_class << " #{html_options[:class]}" if html_options.key?(:class)
10
+ html_options[:class] = content_class
11
+ html_options["aria-hidden"] ||= true
12
+
13
+ content_tag(:i, nil, html_options)
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "breeze_icons_rails/rails/helpers"
4
+
5
+ module BreezeIconsRails
6
+ module Rails
7
+ class Railtie < ::Rails::Railtie
8
+ initializer "breeze_icons_rails.view_helpers" do
9
+ ActiveSupport.on_load(:action_view) do
10
+ include BreezeIconsRails::Rails::ViewHelpers
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BreezeIconsRails
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "breeze_icons_rails/version"
4
+ require_relative "breeze_icons_rails/rails/engine"
5
+ require_relative "breeze_icons_rails/rails/railtie"
6
+
7
+ module BreezeIconsRails
8
+ class Error < StandardError; end
9
+ # Your code goes here...
10
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: breeze_icons_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - wilfison
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-05-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Simple, scalable vector icon font for websites, apps.
14
+ email:
15
+ - wilfisonbatista@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - README.md
21
+ - Rakefile
22
+ - lib/breeze_icons_rails.rb
23
+ - lib/breeze_icons_rails/rails/engine.rb
24
+ - lib/breeze_icons_rails/rails/helpers.rb
25
+ - lib/breeze_icons_rails/rails/railtie.rb
26
+ - lib/breeze_icons_rails/version.rb
27
+ homepage: https://github.com/Wilfison/breeze_icons_rails
28
+ licenses:
29
+ - MIT
30
+ metadata:
31
+ homepage_uri: https://github.com/Wilfison/breeze_icons_rails
32
+ source_code_uri: https://github.com/Wilfison/breeze_icons_rails
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 2.3.0
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 3.2.3
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: Breeze Icons for Ruby on Rails
52
+ test_files: []