Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Dec 01, 2011

  1. Watson

    change thread's status during blocking with select. fix #1425

    Watson1978 authored

Nov 30, 2011

  1. Watson

    ext/socket: fix #1424. try to open file when can't convert to IO's ob…

    …ject.
    Watson1978 authored
  2. Watson

    ext/socket: check whether file was closed at BasicSocket#sendfile

    Watson1978 authored
  3. Watson

    ext/socket: invoke NUM2OFFT before opening file because it will raise…

    … an exception when passed invalid value.
    Watson1978 authored
  4. Watson

    ext/socket: check whether socket was closed at BasicSocket#sendfile

    Watson1978 authored

Nov 29, 2011

  1. Watson

    ext/socket: add SEL argument into method which has arity 0.

    Watson1978 authored
  2. Watson

    ext/socket: add to care EINTR. (merged from CRuby)

    Watson1978 authored

Nov 28, 2011

  1. Watson

    ext/socket: use the structure of sockaddr_storage.

    Watson1978 authored
  2. Watson

    ext/socket: delete trailing whitespaces

    Watson1978 authored

Nov 26, 2011

  1. Watson

    add SSLContext#ssl_timeout=, which allows net/https to specify timeou…

    …t. (merged from CRuby)
    
    ruby/ruby@ce2b574
    Watson1978 authored
  2. Watson

    initialize @hostname of SSLSocket to avoid warning at SSLSocket#conne…

    …ct. (merged from CRuby)
    
    ruby/ruby@46e0869
    Watson1978 authored

Nov 19, 2011

  1. Watson

    add a workaround for #1411.

    Watson1978 authored

Nov 17, 2011

  1. Watson

    add a rb_str_freeze() as CRuby API. fix #1419

    Watson1978 authored

Nov 05, 2011

  1. Mark Rada

    The range spec is correct but fails, so disable it for now

    ferrous26 authored

Nov 03, 2011

  1. Watson

    modify the spec which related to Range.

    Watson1978 authored

Nov 02, 2011

  1. Mark Rada

    Fix Range to NSRange transaltions

    Fence post error!
    ferrous26 authored
  2. Mark Rada

    Add some specs related to Range -> NSRange transformations

    ferrous26 authored

Oct 26, 2011

  1. Laurent Sansonetti

    Merge pull request #47 from mkempe/rake_options

    Fixed rake error message.
    lrz authored

Oct 25, 2011

  1. Watson

    Revert "Performance improvement in String#split(sep, limit). reserved…

    … an array size which is result when passed a limit."
    
    This reverts commit 6caf474.
    Watson1978 authored

Oct 24, 2011

  1. Watson

    Performance improvement in String#split(sep, limit). reserved an arra…

    …y size which is result when passed a limit.
    
    * before
          user     system      total        real
      1.710000   0.040000   1.750000 (  1.477479)
    
    * after
          user     system      total        real
      1.270000   0.050000   1.320000 (  1.076221)
    
    ----
    require 'benchmark'
    
    Benchmark.bm do |x|
      str = "abcdefg0123456789\n" * 2000
      x.report do
        1000.times do
          str.split("\n", 1000)
        end
      end
    end
    Watson1978 authored

Oct 21, 2011

  1. [✔] Fixed rake error message.

    Maik Kempe authored

Oct 19, 2011

  1. Watson

    use a "/usr/bin/gcc" If cannot find the same compiler when built the …

    …MacRuby.
    Watson1978 authored

Oct 17, 2011

  1. Laurent Sansonetti

    new license stuff

    lrz authored
  2. Laurent Sansonetti

    master is now 0.12

    lrz authored
  3. Laurent Sansonetti

    add BSDL file

    lrz authored
  4. Laurent Sansonetti

    update to new ruby license

    lrz authored

Oct 16, 2011

  1. Watson

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

    …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
    Watson1978 authored
  2. Watson

    Performance improvement in StringScanner#scan

    * 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
    Watson1978 authored
  3. Watson

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

    …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
    Watson1978 authored
  4. Watson

    Performance improvement in StringScanner#rest_size

    * 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
    Watson1978 authored

Oct 15, 2011

  1. Watson

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

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

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

    …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("") }
    Watson1978 authored
  3. Watson

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

    …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) }
    Watson1978 authored
  4. Watson

    implement the StringIO#ungetbyte method.

    Watson1978 authored

Oct 14, 2011

  1. Watson

    Performance improvement in str_resize_bytes. because reallocation of …

    …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
    Watson1978 authored
Something went wrong with that request. Please try again.