0.0
No release in over 3 years
Low commit activity in last 3 years
Give me a banana, I'll give you a monkey.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 10.0

Runtime

~> 3.4
 Project Readme

FruitWarehouse

This idea is from FontAwesome!

Fruit Warehouse is a set of fruit icons. This gem support Ruby projects and Ruby on Rails projects with Compass, Sprocket, etc.

Installation

Please see the appropriate guide for your environment of choice:

  • Ruby on Rails.
  • Compass not on Rails.

a. Ruby on Rails

In your Gemfile include:

gem 'fruit_warehouse'

And then execute:

bundle install

Import the FruitWarehouse styles in your app/assets/stylesheets/application.css.scss. The fruit_warehouse-sprockets file includes the sprockets assets helper Sass functions used for finding the proper path to the font file.

@import "fruit_warehouse-sprockets";
@import "fruit_warehouse";

Rails Helper usage

In your view:

fruit('flag')
# => <i class="fa fa-flag"></i>
fruit('flag', '', class: 'strong')
# => <i class="fa fa-flag strong"></i>
fruit('flag', 'Font Awesome', id: 'my-icon', class: 'strong')
# => <i id="my-icon" class="fa fa-flag strong"></i> Font Awesome

Note: the icon helper can take a hash of options that will be passed to the content_tag helper

b. Compass without Rails

Install the gem

gem install fruit_warehouse

If you have an existing Compass project:

# config.rb:
require 'fruit_warehouse'

Import the FruitWarehouse styles

@import "fruit_warehouse-compass";
@import "fruit_warehouse";

Contributing

  1. Fork it ( https://github.com/jungllle/fruit_warehouse/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request