Project

compressor

0.0
No commit activity in last 3 years
No release in over 3 years
Concatenates your RubyMotion files so they build much faster than they normally would.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

Compressor

Compressor is a RubyMotion gem that speeds up your RubyMotion compile times by concatenating your source files. It typically speeds up your fresh builds by 70-95%.*

* Not anymore! RubyMotion 3.12 has vastly improved compile times (spurred partly because of my original article?) and Compressor actually slows down your compiles. So, I would not recommend using it anymore.

Installation

gem "compressor"

Usage

In your Rakefile, add the following to the bottom of your setup block:

# ...

Motion::Project::App.setup do |app|
  # ...

  app.concat_files
end

Options

Exclude files by passing in regex or strings:

app.concat_files exclude: [ /app/, "/app/" ]

Choose the number of files to break into, for parallel builds (default is 4):

app.concat_files parallel: 3

A typical setup is:

app.development do
  app.concat_files exclude: [ "/app/" ], parallel: 3
end

app.release do
  app.concat_files
end

Contributing

  1. Fork it
  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 new Pull Request