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 +4 -4
- data/.DS_Store +0 -0
- data/README.md +14 -4
- data/app/helpers/icalicons/icon_helper.rb +19 -0
- data/lib/icalicons/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 061b49ef43c93a9e17b8e37e4c67e3a38486a684
|
|
4
|
+
data.tar.gz: c37510b87d94e2231fb12efc459ba261e26404b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
data/lib/icalicons/version.rb
CHANGED
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.
|
|
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-
|
|
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
|