Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 31, 2012
  1. Mark Rada
  2. Mark Rada

    Workaround for Range#relative_to

    ferrous26 authored
    This is a workaround until https://bugs.ruby-lang.org/issues/6203
    is addressed and we can apply the fix from there. Or this will be
    a permanent work around in the unlikely case that the change is
    rejected.
Commits on Mar 16, 2012
  1. Daniel Westendorf Mark Rada

    Added support for file names that have spaces

    danielwestendorf authored ferrous26 committed
  2. Daniel Westendorf Mark Rada
  3. Daniel Westendorf Mark Rada

    Added dylib files

    danielwestendorf authored ferrous26 committed
  4. Daniel Westendorf Mark Rada

    Preliminary codesigning switch added

    danielwestendorf authored ferrous26 committed
Commits on Nov 19, 2011
  1. Watson

    add a workaround for #1411.

    Watson1978 authored
Commits on Nov 17, 2011
  1. Watson
Commits on Nov 5, 2011
  1. Mark Rada
  2. Watson Mark Rada

    modify the spec which related to Range.

    Watson1978 authored ferrous26 committed
  3. Mark Rada

    Fix Range to NSRange transaltions

    ferrous26 authored
    Fence post error!
  4. Mark Rada
Commits on Oct 19, 2011
  1. Watson
Commits on Oct 17, 2011
  1. Laurent Sansonetti

    new license stuff

    lrz authored
  2. Laurent Sansonetti

    add BSDL file

    lrz authored
  3. Laurent Sansonetti

    update to new ruby license

    lrz authored
Commits on Oct 16, 2011
  1. Watson

    Performance improvement in StringIO. do not use the values via access…

    Watson1978 authored
    …or method.
    
    * before
          user     system      total        real
      0.180000   0.000000   0.180000 (  0.155949)
    
    * after
          user     system      total        real
      0.150000   0.000000   0.150000 (  0.131242)
    
    ----
    require 'benchmark'
    require 'stringio'
    
    Benchmark.bm do |x|
      str = "x" * 100000
      io = StringIO.new(str)
    
      x.report do
        100000.times do
          io.getc
        end
      end
    end
  2. Watson

    Performance improvement in StringScanner#scan

    Watson1978 authored
    * before
          user     system      total        real
      0.030000   0.000000   0.030000 (  0.018517)
    * after
          user     system      total        real
      0.020000   0.000000   0.020000 (  0.015783)
    ----
    require 'benchmark'
    require 'strscan'
    Benchmark.bm do |x|
      str = "x" * 500000
      s = StringScanner.new(str)
      x.report do
        s.scan(/./)
      end
    end
  3. Watson

    Performance improvement in StringScanner. do not use the values via a…

    Watson1978 authored
    …ccessor method.
    
    * before
          user     system      total        real
      0.000000   0.000000   0.000000 (  0.003927)
    
    * after
          user     system      total        real
      0.000000   0.000000   0.000000 (  0.002341)
    
    ----
    require 'benchmark'
    require 'strscan'
    
    Benchmark.bm do |x|
      str = "x" * 500000
      s = StringScanner.new(str)
      x.report do
        1000.times do
          s.concat "a"
        end
      end
    end
  4. Watson

    Performance improvement in StringScanner#rest_size

    Watson1978 authored
    * before
          user     system      total        real
      0.200000   0.010000   0.210000 (  0.211851)
    
    * after
          user     system      total        real
      0.010000   0.000000   0.010000 (  0.004731)
    
    ----
    require 'benchmark'
    require 'strscan'
    
    Benchmark.bm do |x|
      str = "x" * 50000
      s = StringScanner.new(str)
      x.report do
        10000.times do
          s.rest_size
        end
      end
    
    end
Commits on Oct 15, 2011
  1. Watson

    StringIO#getc will raise an exception when closed a reading stream.

    Watson1978 authored
    ----
    require 'stringio'
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    io = StringIO.new("hello")
    io.close_read
    assert_raise(IOError) { io.getc }
  2. Watson

    StringIO#write will raise an exception when closed a writing stream a…

    Watson1978 authored
    …nd passed a n empty string.
    
    ----
    require 'stringio'
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    io = StringIO.new("hello")
    io.close_write
    assert_raise(IOError) { io.write("") }
    
    io = StringIO.new("hello".freeze)
    assert_raise(IOError) { io.write("") }
  3. Watson

    StringIO#ungetc will raise an exception when closed a reading stream …

    Watson1978 authored
    …and passed a nil.
    
    ----
    require 'stringio'
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    io = StringIO.new("A")
    io.close_read
    assert_raise(IOError) { io.ungetc(nil) }
  4. Watson
Commits on Oct 14, 2011
  1. Watson

    Performance improvement in str_resize_bytes. because reallocation of …

    Watson1978 authored
    …the long string is slow, memory allocate more size than the specified size.
    
    * before
          user     system      total        real
      3.870000   2.790000   6.660000 (  5.048851)
    
    * after
          user     system      total        real
      0.030000   0.010000   0.040000 (  0.037597)
    
    ----
    require 'benchmark'
    
    Benchmark.bm do |x|
      str = "aaa"
      x.report do
        5000.times do
          str << "x" * rand(1000)
        end
      end
    
    end
  2. Watson
Commits on Oct 13, 2011
  1. Watson
  2. Watson
Commits on Oct 12, 2011
  1. Watson
  2. Watson
  3. Watson
Commits on Oct 10, 2011
  1. Watson

    Performance improvement, when invoke the String#<<.

    Watson1978 authored
    * before
          user     system      total        real
      0.960000   0.050000   1.010000 (  0.996849)
    * after
          user     system      total        real
      0.060000   0.030000   0.090000 (  0.095387)
    ----
    require 'benchmark'
    Benchmark.bm do |x|
      str = "abc" * 1000
      add = "foo" * 10
      x.report do
        5000.times do
          str = str << add
          str[0..10]
        end
      end
    end
  2. Watson

    ext/socket: fix a buffer size in gethostname because terminate NULL b…

    Watson1978 authored
    …yte does not included in HOST_NAME_MAX when Host name length is HOST_NAME_MAX.
Commits on Oct 8, 2011
  1. Watson

    Merge pull request #45 from ferrous26/46f7fd6f

    Watson1978 authored
    Make rexml use the compiled files
  2. Mark Rada
Something went wrong with that request. Please try again.