Toys for extracting IcoMoon archives.
Add this line to your application's Gemfile:
gem 'icomoon_toys'
And then execute:
bundle install
Or install it yourself as:
gem install icomoon_toys
require 'icomoon_toys'
expand IcoMoonToys::Template,
extract_map: {
'selection.json' => 'assets/icomoon/selection.json',
'svgxuse.min.js' => 'assets/scripts/lib/svgxuse.min.js',
'style.css' => 'assets/styles/lib/icomoon.css',
'symbol-defs.svg' => 'assets/images/icons/symbol-defs.svg'
}
Use nil
value to exclude file from extraction.
After checking out the repo, run bundle install
to install dependencies.
Then, run toys rspec
to run the tests.
To install this gem onto your local machine, run toys gem install
.
To release a new version, run toys gem release %version%
.
See how it works here.
Bug reports and pull requests are welcome on GitHub.
The gem is available as open source under the terms of the MIT License.