Permalink
Commits on Aug 24, 2011
  1. TestCase should not be nested.

    Move 3 testcases to outer scope. No test changes.
    nahi committed Aug 24, 2011
  2. Refactoring: create org.jruby.ext.zlib package

    Move constant definitions and common logics to the new package.
    nahi committed Aug 24, 2011
  3. 3 bugfixes for Inflate/Deflate gzip handling

     * crc32 is unsigned int, so we need to use long for internalAdler()
     * Inflate#<<(nil) should just change state, without reading trailer.
     * Inflater#reset was incomplete.
    
    Test passes.
    
    % jruby test/test_zlib.rb
    Loaded suite test/test_zlib
    Started
    ......................................................
    Finished in 1.463 seconds.
    
    54 tests, 131 assertions, 0 failures, 0 errors
    nahi committed Aug 24, 2011
  4. Add comprehensive tests for windowBits+16 and windowsBit+32 parameter

    2F1E with current implementation. Not bad, eh?
    
    % jruby test/test_zlib.rb
    Loaded suite test/test_zlib
    Started
    ...........................F...............E.........F
    Finished in 1.598 seconds.
    
      1) Failure:
    test_adler(TestZlib::TestZlibDeflateGzip)
        [test/test_zlib.rb:428:in `test_adler'
         org/jruby/RubyKernel.java:2008:in `send'
         org/jruby/RubyArray.java:1603:in `each'
         org/jruby/RubyArray.java:1603:in `each']:
    <2356372769> expected but was
    <1>.
    
      2) Error:
    test_reset(TestZlib::TestZlibDeflateGzip):
    Zlib::DataError: data error: incorrect header check
        test/test_zlib.rb:490:in `test_reset'
        org/jruby/RubyKernel.java:2008:in `send'
        org/jruby/RubyArray.java:1603:in `each'
        org/jruby/RubyArray.java:1603:in `each'
    
      3) Failure:
    test_initialize(TestZlib::TestZlibInflateGzip)
        [test/test_zlib.rb:567:in `test_initialize'
         org/jruby/RubyKernel.java:2008:in `send'
         org/jruby/RubyArray.java:1603:in `each'
         org/jruby/RubyArray.java:1603:in `each']:
    <"foo"> expected but was
    <"foo!es\214\003\000\000\000">.
    
    54 tests, 130 assertions, 2 failures, 1 errors
    nahi committed Aug 24, 2011
  5. Delete debugging code

    nahi committed Aug 24, 2011
Commits on Aug 23, 2011
  1. Add automatic header detection support to Zlib::Inflate

    As the third step, this commit adds gzip/zip automatic header detection
    support to Zlib::Inflate. The Inflater tries to detect gzip header when
    you pass MAX_WBITS + 32 to Inflate.new, and does fallback to zip
    inflation.
    nahi committed Aug 23, 2011
  2. Add gzip support for Zlib::Inflate

    As the second step, this commit adds gzip support to Zlib::Inflate. The
    Inflater tries to parse gzip header when you pass MAX_WBITS + 16 to
    Inflate.new.
    
    RubyGzipReader should use this customized inflater instead of
    HeaderReadableGZIPInputStream in the future.
    nahi committed Aug 23, 2011
Commits on Aug 22, 2011
  1. Eclipse warnings cleanup.

    nahi committed Aug 22, 2011
  2. Add gzip support for Zlib::Deflater

    In this branch, I'll try to make zip/gzip common inflater/deflater. As
    the first step, this commit adds gzip support to Zlib::Deflater. The
    Deflater generates gzip header when you pass MAX_WBITS + 16 to
    Deflater.new.
    
    RubyGzipWriter should use this customized deflater instead of
    HeaderModifyableGZIPOutputStream in the future.
    nahi committed Aug 22, 2011
  3. Do proper check and warn for Zlib windowBits

     We only do windowBits=15(32K buffer, LZ77 algorithm) since
    java.util.zip only allows it.
    
    NOTE: deflateInit2 of zlib.c also accepts MAX_WBITS + 16(gzip
    compression). inflateInit2 also accepts MAX_WBITS + 16(gzip
    decompression) and MAX_WBITS + 32(automatic detection of gzip and
    LZ77).
    nahi committed Aug 22, 2011
Commits on Aug 20, 2011
  1. Changes to support using StaticScope directly for constant lookup.

    * Return index from cacheStaticScope for future use.
    * Add loadScope that uses that index.
    * Modify invokedynamic-based caching to use AbstractScript/RuntimeCache too.
    headius committed Aug 20, 2011
  2. Modify method definition to cache static scope, in prep for cheaper c…

    …onstant-using methods.
    headius committed Aug 20, 2011
  3. Fix JRUBY-5973: "Failure to connect to Nailgun server produces confus…

    …ing error" for shell script
    BanzaiMan committed Aug 20, 2011
  4. Test for JRUBY-5922

    BanzaiMan committed Aug 20, 2011
Commits on Aug 19, 2011
  1. First pass at wiring up FFI invocations via NativeCall

    Wayne Meissner committed Aug 19, 2011
  2. Add support for turning off errno saving by using the option :save_er…

    …rno => false
    Wayne Meissner committed Aug 19, 2011
  3. Remove unused fast-int result/parameter converters

    Wayne Meissner committed Aug 18, 2011
  4. Remove unused fast-long result/parameter converters

    Wayne Meissner committed Aug 18, 2011
  5. [IR] Minor coding style fixes

    subbuss committed Aug 19, 2011
  6. [IR] Fixed bug interpreting ReceiveClosureArgInstr when it wants more…

    … args than are available
    subbuss committed Aug 18, 2011
Commits on Aug 17, 2011
  1. Remove newlines from javadoc 'bottom' tag

    Works around https://issues.apache.org/bugzilla/show_bug.cgi?id=43342
    for versions of Ant < 1.8.0.
    nicksieger committed Aug 17, 2011
  2. [IR] blocks passed to yield & calls are always NORMAL blocks no matte…

    …r where they are created
    subbuss committed Aug 17, 2011
  3. Fix JRUBY-5932: IPSocket.peeraddr should take an argument to note do …

    …a lookup
    
    (cherry picked from commit 67288b4)
    headius committed Aug 17, 2011
  4. Address JRUBY-5593: stat.st_gid unsupported on this platform (NotImpl…

    …ementedError)
    
    * Better message for "unsupported" native functions indicating that native support may have failed to load.
    headius committed Aug 17, 2011
  5. Fix JRUBY-5940: StringIO#set_encoding is not implemented

    (cherry picked from commit 089616f)
    headius committed Aug 17, 2011