MasterSplitter
A simple file splitter and joiner.
Installation
Add this line to your application's Gemfile:
gem 'master_splitter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install master_splitter
Usage
You can use executables 'master_join' and 'master_split'. For more imformation just use them with a -h flag. You can also include it as a library and use it's methods directly, like this:
include MasterSplitter
standard_split("path/to/file.pdf", 5)
# splits the file to 5 slices.
standard_join("path/to/slice.pdf.001")
Contributing
The best way you can contribute now is to teach me a way to write specs for file interactions. Or you can help as the following:
- Fork it ( https://github.com/psparabara/master_splitter/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request