Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 31, 2012
  1. @ferrous26
  2. @ferrous26

    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. @danielwestendorf @ferrous26

    Added support for file names that have spaces

    danielwestendorf authored ferrous26 committed
  2. @danielwestendorf @ferrous26
  3. @danielwestendorf @ferrous26

    Added dylib files

    danielwestendorf authored ferrous26 committed
  4. @danielwestendorf @ferrous26

    Preliminary codesigning switch added

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

    add a workaround for #1411.

    Watson1978 authored
Commits on Nov 17, 2011
  1. @Watson1978
Commits on Nov 5, 2011
  1. @ferrous26
  2. @Watson1978 @ferrous26

    modify the spec which related to Range.

    Watson1978 authored ferrous26 committed
  3. @ferrous26

    Fix Range to NSRange transaltions

    ferrous26 authored
    Fence post error!
  4. @ferrous26
Commits on Oct 19, 2011
  1. @Watson1978
Commits on Oct 17, 2011
  1. new license stuff

    Laurent Sansonetti authored
  2. add BSDL file

    Laurent Sansonetti authored
  3. update to new ruby license

    Laurent Sansonetti authored
Commits on Oct 16, 2011
  1. @Watson1978

    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. @Watson1978

    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. @Watson1978

    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. @Watson1978

    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. @Watson1978

    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. @Watson1978

    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. @Watson1978

    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. @Watson1978
Commits on Oct 14, 2011
  1. @Watson1978

    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. @Watson1978
Commits on Oct 13, 2011
  1. @Watson1978
  2. @Watson1978
Commits on Oct 12, 2011
  1. @Watson1978
  2. @Watson1978
  3. @Watson1978
Commits on Oct 10, 2011
  1. @Watson1978

    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. @Watson1978

    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. @Watson1978

    Merge pull request #45 from ferrous26/46f7fd6f

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