This gem is intended to compress data by the Huffman's algorithm. It works only with imitation binary streams that are made of '1' or '0' characters.
Add this line to your application's Gemfile:
gem 'sm_archivator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sm_archivator
to compress:
SmArchivator::compress('A message consists of charactres.') -> '1010101...'
to expand:
SmArchivator::expand('A Dummy binary stream 1010010101') -> String
- Fork it ( https://github.com/[my-github-username]/sm_archivator/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