Permalink
Commits on Dec 20, 2010
  1. Lining things up

    committed Dec 20, 2010
  2. One last warning!

    Again, it looked like a cast was the best thing to do in this situation...
    committed Dec 20, 2010
  3. Quiet warnings about shortening ints in reader.c

    I tried where I could to not use casts, but it seemed like a cast was the proper thing to do in most cases.
    committed Dec 20, 2010
  4. Quiet warnings about shortening ints from 64 bits to 32 bits in writer.c

    The cast is done because bz_stream's data is always an unsigned int, so conforming otherwise to a 64 bit number isn't possible
    committed Dec 20, 2010
  5. Moving a lot of things around.

    This splits up the 1800 line bzip2.c file into the separate 'reader.c' and 'writer.c' files. This should make it a bit easier to read because 1800 lines isn't very easy on the eyes...
    committed Dec 20, 2010
  6. Same as last commit, let ruby figure out whether we've been passed th…

    …e right number of arguments or not
    committed Dec 19, 2010
  7. Adding a rake task for RSpec

    Can be executed via `rake spec`
    committed Dec 19, 2010
  8. Add a task to the Rakefile for compiling the C extension

    Can be executed via `rake build_extensions`
    committed Dec 19, 2010
  9. rearrange variable declarations to satisfy ISO C90

    This is simply a syntax change.
    
    Caveats: I couldn't get the test harness to run. My test case then
    was watching it fail to build, making the change, and watching a
    successful build and installation.
    
    Closes #6.
    Obsoletes #7.
    colindean committed Dec 20, 2010
Commits on Nov 16, 2010
Commits on Oct 12, 2010
  1. Improve the reader_spec.rb by making it more resilient in lots of pla…

    …ces and a bit more descriptive/terse in others
    committed Oct 12, 2010
  2. Make the Writer specs more descriptive by giving them some doc strings.

    Also reverse the order on the expectations to make a bit more sense
    committed Oct 12, 2010
  3. Wrap up documentation of the Bzip2::Writer class.

    Could probably use a much more descriptive overview description
    committed Oct 12, 2010
  4. Add lib/bzip2-ruby.rb so it's not always necessary to specify to requ…

    …ire 'bzip2' in Gemfiles and such
    committed Oct 12, 2010
  5. Fix a few compiler warnings

    committed Oct 12, 2010
  6. Remove dead code

    committed Oct 12, 2010
  7. Get that spec to pass on ruby 1.9

    In 1.9, ?A == 'A', not 65.
    committed Oct 12, 2010
  8. Fix for ruby 1.9 compatibility.

    It appears that in ruby 1.9 those fields aren't FILE objects, but are rather just integer file descriptors. Calling 'fclose' will cause a segfault, so call 'close' instead
    committed Oct 12, 2010