Permalink
Commits on Aug 7, 2011
  1. Merge pull request #39 from jhemmelg/master

    This should close out issue #542, attempt to unlock mutex which is not locked.
    Watson1978 committed Aug 7, 2011
  2. Issue #542: Attempt to unlock a mutex which is not locked (ThreadError)

    Re-lock the mutex at the end of mutex_sleep in thread.c.
    jhemmelg committed Aug 7, 2011
Commits on Aug 2, 2011
  1. Merge pull request #38 from martinh/fix_CFBundleExecutable

    Make CFBundleExecutable in Info.plist match the actual bundle executable.
    Watson1978 committed Aug 2, 2011
  2. Make CFBundleExecutable in Info.plist match the actual bundle executa…

    …ble.
    
    Without this fix, trying to dynamically load MacRuby.framework using
    NSBundle results in the following error:
    The bundle “Ruby” couldn’t be loaded because its executable couldn’t be located.
    martinh committed Aug 2, 2011
Commits on Jul 31, 2011
  1. Benchmark#bmbm use ensure clause instead of Object#tap to restore STD…

    …OUT.sync. (merged from CRuby 1.9.2)
    
    ruby/ruby@8c7f9f5
    Watson1978 committed Jul 30, 2011
  2. Merge pull request #37 from jhemmelg/master

    Fix for mutex race condition
    Watson1978 committed Jul 31, 2011
  3. Partial fix for ticket #542 - Attempt to unlock a mutex which is not …

    …locked (ThreadError)
    
    Fix for mutex race condition.  This does not fix the overall problem
    using Monitor class.
    jhemmelg committed Jul 31, 2011
Commits on Jul 30, 2011
Commits on Jul 29, 2011
  1. fix the typo in bigdecimal.

    Watson1978 committed Jul 29, 2011
  2. fix the indent in bigdecimal.

    Watson1978 committed Jul 29, 2011
Commits on Jul 28, 2011
  1. fix a race condition bug when generating ruby->objc convertors (can o…

    …ccur when using Pointer.new(type) concurrently)
    Laurent Sansonetti committed Jul 28, 2011
  2. Clear a couple of ruby_deploy_spec TODO items

    In the first case, we can use almost any arbitrary string for a bad arch. In the
    second case we now use a fixture that shows up as a PPC binary, so it is safe to
    make the check.
    ferrous26 committed Jul 28, 2011
Commits on Jul 26, 2011
  1. String#split(nil, limit) should strip the space even if space is cont…

    …inuous
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    str = "  a   b    c "
    assert_equal(["a", "b", "c "], str.split(nil, 3))
    assert_equal(["a", "b", "c"],  str.split(nil, 0))
    
    puts :ok
    }}}
    Watson1978 committed Jul 26, 2011
  2. String#split(nil, limit) will split into a number specified by the li…

    …mit.
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    str = " a b c "
    assert_equal(["a","b", "c"],   str.split(nil, 0))
    assert_equal([" a b c "],      str.split(nil, 1))
    assert_equal(["a", "b c "],    str.split(nil, 2))
    assert_equal(["a", "b", "c "], str.split(nil, 3))
    puts :ok
    }}}
    Watson1978 committed Jul 26, 2011
Commits on Jul 24, 2011
  1. use the same compiler for ext libraries (used to compile the MacRuby …

    …core). "/usr/bin/gcc" is an alias of llvm-gcc on Lion.
    Watson1978 committed Jul 24, 2011
Commits on Jul 23, 2011
  1. fix the build error on Lion

    Watson1978 committed Jul 23, 2011
Commits on Jul 21, 2011
Commits on Jul 20, 2011
  1. add a skip in UnitTest.

    Watson1978 committed Jul 20, 2011
Commits on Jul 19, 2011
  1. Module#define_method will accept an UnboundMethod's object into 2nd a…

    …rgument.
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    # should accept an UnboundMethod's object
    class Bar
      def foo
        "foo"
      end
    
      define_method(:foo, instance_method(:foo))
    end
    assert_equal("foo", Bar.new.foo)
    
    # should not accept an other object's singleton method
    foo = Module.new
    class << foo
      def singleton_method
        :single
      end
    end
    um = foo.method(:singleton_method).unbind
    
    other = Module.new
    assert_raise(TypeError) {
      other.send :define_method, :other_singleton_method, um
    }
    
    puts :ok
    }}}
    Watson1978 committed Jul 19, 2011