iconoclast 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.
- data/README.rdoc +33 -19
- data/VERSION +1 -1
- data/features/version.feature +1 -1
- data/iconoclast.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
= iconoclast
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
The Iconoclast gem provides an easy way to install iconsets (currently the Famfamfam 'silk' and 'flags' iconsets are included).
|
|
4
|
+
|
|
5
|
+
= Installation
|
|
6
|
+
|
|
7
|
+
The iconoclast gem is hosted on gemcutter.org, so you will first need to configure your gem system to pull from gemcutter:
|
|
8
|
+
$ gem install gemcutter
|
|
9
|
+
$ gem tumble
|
|
10
|
+
|
|
11
|
+
Once you have configured gemcutter:
|
|
12
|
+
$ gem install iconoclast
|
|
13
|
+
|
|
14
|
+
= Usage
|
|
15
|
+
|
|
16
|
+
Install iconsets into your rails app's public directory:
|
|
17
|
+
|
|
18
|
+
$ cd /path/to/railsapp
|
|
19
|
+
$ iconify
|
|
20
|
+
|
|
21
|
+
Running iconify without any arguments installs the famfamfam silk iconset by default. You can specify additional iconsets as well:
|
|
22
|
+
$ iconify --set=flags
|
|
23
|
+
|
|
24
|
+
Once your icons are installed, activate the helper methods by adding the following line to your application_controller.rb:
|
|
25
|
+
helper Iconoclast::IconHelper
|
|
26
|
+
|
|
27
|
+
Then use the icons in your views:
|
|
28
|
+
<%= icon 'name' %>
|
|
29
|
+
<%= icon 'name', 'alt text' %>
|
|
30
|
+
<%= icon 'name', 'alt text', { :border => 1 } %>
|
|
22
31
|
|
|
23
32
|
== Copyright
|
|
24
33
|
|
|
25
34
|
Copyright (c) 2009 Eric Dennis. See LICENSE for details.
|
|
35
|
+
|
|
36
|
+
This package also contains iconsets from Famfamfam:
|
|
37
|
+
http://www.famfamfam.com/lab/icons/
|
|
38
|
+
|
|
39
|
+
The Famfamfam iconsets are provided under the Creative Commons Attribution 2.5 License (http://creativecommons.org/licenses/by/2.5/).
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/features/version.feature
CHANGED
data/iconoclast.gemspec
CHANGED