Counts bits on a given file. Not optimized for speed or anything.
Only tested on ruby-2.1.2 and Linux box.
-
Install necessary gems
bundle install
-
Run tests
bundle exec rake spec
-
Count bits on file
bundle exec ruby bit_counter.rb /path/to/file.jpg