icalicons 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e642d2424732a12513c49f9b9523822fb1ce7d59
4
- data.tar.gz: 4184900eda3802b39cdf0a1319aef3bc234c8800
3
+ metadata.gz: 061b49ef43c93a9e17b8e37e4c67e3a38486a684
4
+ data.tar.gz: c37510b87d94e2231fb12efc459ba261e26404b0
5
5
  SHA512:
6
- metadata.gz: d0bce7f0211dcd4db8709827693c91a2adbdda7212e20e88a6d798577ad475b6e556de7a7898668c8ee76f191258fbd0f4b6a84c1e0243f5974845dcf6452e93
7
- data.tar.gz: bdba6a7651281244d9cbfaa686efe09110fe3b3a8f3b235e2bde408f7e22abbc6c2d988672dd500cad4b0ebfa15a6093c1f1d4e5127e5d7b4d17a3cc0549f6ae
6
+ metadata.gz: 17609962567d628f663dbe1e9e9c702bcd630f9c70a5b1d34bd51274d8286e965d5aee2d69ecc29e286115f89346764d207115d034442f9b4a4f87c1f1fdd9f3
7
+ data.tar.gz: 7390ad93a151c2001b85fd5ebb1d2762db14f9706198da8b164487a47cd49ca7b9d223f798e909788da8d163d26a248072e4eb97fc784263a60b892d0c80b1c8
data/.DS_Store ADDED
Binary file
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Icalicons
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/icalicons`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Icalicons are a set of beautiful icons built by @noearaujo, in order to make our life easier. This gem packages Icalicons for a quick and easy implementation into any Ruby on Rails project.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,19 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ In your application.css, include the css file:
24
+
25
+ ```css
26
+ /*
27
+ *= require icalicons
28
+ */
29
+ ```
30
+
31
+ Or if you're using SASS, go to application.css.scss and add:
32
+
33
+ ```scss
34
+ @import "icalicons"
35
+ ```
26
36
 
27
37
  ## Development
28
38
 
@@ -0,0 +1,19 @@
1
+ module Icalicons
2
+ module IconHelper
3
+ def il_icon(names)
4
+ classes = ["il"]
5
+ classes.concat Private.icon_names(names)
6
+ icon = content_tag(:i, nil, :class => classes)
7
+ end
8
+ end
9
+
10
+ module Private
11
+ def self.icon_names(names)
12
+ names_to_array(names).map {|n| "il-#{n}"}
13
+ end
14
+
15
+ def self.names_to_array(names)
16
+ names.to_s.split(/\s+/)
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module Icalicons
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icalicons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hector Mg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-13 00:00:00.000000000 Z
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".DS_Store"
62
63
  - ".gitignore"
63
64
  - ".rspec"
64
65
  - ".travis.yml"
@@ -67,6 +68,7 @@ files:
67
68
  - LICENSE.txt
68
69
  - README.md
69
70
  - Rakefile
71
+ - app/helpers/icalicons/icon_helper.rb
70
72
  - bin/console
71
73
  - bin/setup
72
74
  - icalicons.gemspec