svg_icon 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: 4185faf227aad881e6b83305ef0372b382aeb96ef0cc0e0efcac50e736359778
4
+ data.tar.gz: 33b27b1d742bb04ae07669c8680c645f50dced16c77ce282cf1b97055368fb12
5
+ SHA512:
6
+ metadata.gz: 7f1077c7a6e751c9690366378e6c3bc27aa73dadfa5c45773eed4aec3b2e1ae679d2a725a3d6ee708646dfc9cbad76f85729b100459d99afe968f6abc58834aa
7
+ data.tar.gz: 05adf28fa83b7c0643c1dc0d52fb558821a94fda46141ea9c70a8b1583d94264357b1a9aa3a5eb2780052bb93d4abae60e709b4edacf71ce0f7eeb211662caa4
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in svg_icon.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,21 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ svg_icon (0.1.0)
5
+ multi_json
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ multi_json (1.15.0)
11
+ rake (13.0.6)
12
+
13
+ PLATFORMS
14
+ x86_64-darwin-18
15
+
16
+ DEPENDENCIES
17
+ rake (~> 13.0)
18
+ svg_icon!
19
+
20
+ BUNDLED WITH
21
+ 2.2.3
data/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # SvgIcon
2
+
3
+ Svg icon render helper for rails
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'svg_icon'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install svg_icon
20
+
21
+ ## Usage
22
+
23
+ Add `svg_icon.rb` in initializers folder
24
+
25
+ ```
26
+ # frozen_string_literal: true
27
+
28
+ SvgIcon.configure do |config|
29
+ # config.icon = "bi" # Options are "bi" and "bx"
30
+
31
+ ##
32
+ # You can set a default class for icon
33
+ config.default_class = ""
34
+ end
35
+ ```
36
+
37
+ add ` include SvgIcon::Helper` to `ApplicationHelper`
38
+
39
+ ```erb
40
+ <%= svg_icon("search") %>
41
+ ```
42
+
43
+ ## Development
44
+
45
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
46
+
47
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/svg_icon.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "svg_icon"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here