font_awesome_tag_helper 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +3 -40
- data/lib/font_awesome_tag_helper/version.rb +2 -16
- data/test/dummy/{app/mailers/.gitkeep → db/test.sqlite3} +0 -0
- data/test/dummy/log/test.log +1629 -0
- data/test/test_helper.rb +0 -2
- metadata +32 -51
- data/.gitignore +0 -9
- data/Gemfile +0 -7
- data/font_awesome_tag_helper.gemspec +0 -32
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 48d163e41de0c4fdf69ec6096648e3b8f53c10f0
|
4
|
+
data.tar.gz: 99bfe6ff1d0f90ce4de54a0f75d1b962a6e15de1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b5e3d7a1017be6f43eba31438a9586acb88de371ec265cb4721a5e792a46366c67ae65ff0be53372fc2966faa1d5e8360373d3ae5ef50a9d9cc2ad57a87c7b43
|
7
|
+
data.tar.gz: 8ef2240c6f93e0e8c2e93bf1ee40fdc3d1f376a3f0edbcb2265f193d45905d51ac3fff7deb0371c023c609c81274beebd5b3ae55426d9fc1774566c5961d9ece
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -2,44 +2,7 @@
|
|
2
2
|
|
3
3
|
tag helper methods for Font Awesome icons
|
4
4
|
|
5
|
-
|
5
|
+
Usage:
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
== Examples
|
10
|
-
|
11
|
-
icon_tag :search
|
12
|
-
|
13
|
-
produces:
|
14
|
-
|
15
|
-
<i class"icon-search"></i>
|
16
|
-
|
17
|
-
--
|
18
|
-
|
19
|
-
icon_tag :search, { id: "search", name: "search_icon" }
|
20
|
-
|
21
|
-
produces:
|
22
|
-
|
23
|
-
<i id="search" name="search_icon" class="icon-search"></i>
|
24
|
-
|
25
|
-
--
|
26
|
-
|
27
|
-
icon_tag :search, { id: "search", name: "search_icon", large: true, pull: "right" }
|
28
|
-
|
29
|
-
produces:
|
30
|
-
|
31
|
-
<i id="search" name="search_icon" class"icon-search icon-large pull-right"></i>
|
32
|
-
|
33
|
-
== Available Options
|
34
|
-
|
35
|
-
- +id+ the value of the id attribute. Accepts a string.
|
36
|
-
- +name+ the value of the name attribute. Accepts a string.
|
37
|
-
- +size+ increases the size of the icon. Adds +icon-2x+, +icon-3x+ or +icon-4x+ to the class when the value is set to a valid multiplayer +2+, +3+ or +4+. Accepts an integer.
|
38
|
-
- +large+ increases the size of the icon. Adds +icon-large+ to the class when the value is set to +true+. Accepts a boolean.
|
39
|
-
- +border+ includes a border around the icon. Adds +icon-border+ to the class when the value is set to +true+. Accepts a boolean.
|
40
|
-
- +pull+ orientates the icon to the left or right. Adds +pull-left+ or +pull-right+ to the class when the value is set to +left+ or +right+. Accepts a string.
|
41
|
-
- +spin+ animates the icon. Adds +icon-spin+ to the class when the value is set to +true+. Accepts a boolean.
|
42
|
-
- +li+ or +list+ formats the icon for a list. Adds +icon-li+ to the class when the value is set to +true+. Accepts a boolean.
|
43
|
-
- +width+ increases the width to the width of the parent element. Adds +icon-fixed-width+ to the class when the value is set to +fixed+. Accepts a string.
|
44
|
-
- +rotate+ turns the icon the specified number of degrees. Adds +icon-rotate-90+, +icon-rotate-180+ or +icon-rotate-270+ to the class when the value is set to +90+, +180+ or +270+. Accepts an integer.
|
45
|
-
- +width+ flips the icon. Adds +icon-flip-horizontal+ or +icon-flip-vertical+ to the class when the value is set to +horizontal+ or +vertical+. Accepts a string.
|
7
|
+
<%= icon_tag :search %>
|
8
|
+
#=> <i class"icon-search"></i>
|
@@ -1,17 +1,3 @@
|
|
1
|
-
module
|
2
|
-
|
3
|
-
module Version
|
4
|
-
MAJOR = 0
|
5
|
-
MINOR = 1
|
6
|
-
PATCH = 2
|
7
|
-
|
8
|
-
# Returns a version string by joining <tt>MAJOR</tt>, <tt>MINOR</tt>, and <tt>PATCH</tt> with <tt>'.'</tt>
|
9
|
-
#
|
10
|
-
# Example
|
11
|
-
#
|
12
|
-
# Version.string # '1.0.2'
|
13
|
-
def self.string
|
14
|
-
[MAJOR, MINOR, PATCH].join('.')
|
15
|
-
end
|
16
|
-
end
|
1
|
+
module FontAwesomeTagHelper
|
2
|
+
VERSION = "0.2.0"
|
17
3
|
end
|
File without changes
|