sprout-apparat

Created: 2012-03-25 21:15
Updated: 2013-10-10 19:09

README.md

The Apparat Sprout Gem

Build Status

This RubyGem contains rake tasks to add support for Apparat to Project Sprouts.

As I only need this to work on my dev machine there's a good chance you're going to have to do some extra work to get it running.

Install

gem install apparat

Or

git clone [this repo]
cd sprout-apparat
bundle install
gem build apparat.gemspec
gem install apparat

You need Scala

Until it's bundled with the gem you need to install scala 2.8.2. I had scala 2.9.1 installed via homebrew but it turned out to be incompatible with apparat. So I dropped 2.8.2 into /usr/local/Cellar/scala and switched to it with brew switch scala 2.8.2, bingo!

Usage

Add this to your gem file

gem 'apparat'

Then the following to your rake file

dump :dump do |t|
	t.input = 'input.swf'
	t.output = 'report/'
	t.swf = true
	t.uml = true
	t.abc = true
	t.bc = [default|raw|cfg]
end

reducer :reduce do |t|
	t.input = 'input.swf'
	t.output = 'output.swf'
	t.quality = '0.96'
end

stripper :strip do |t|
	t.input = 'input.swf'
	t.output = 'output.swf'
end

tdsi :tdsi do |t|
	t.input = 'input.swf'
	t.output = 'output.swf'
	t.fix = false
	t.alchemy = true
	t.inlined = true
	t.macro = true
end

Then run with

rake reduce

Released under the MIT License

Copyright 2012 Simon Gregory

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more