Permalink
Commits on Mar 31, 2011
  1. Rescue any type of exception when trying to complete code. [Closes #1…

    …033]
    
    You'll see the exception if the `-d' option is given.
    alloy committed Mar 31, 2011
Commits on Mar 30, 2011
  1. rewrite 351ebd7 and 954a8c7 because they cause crash when refer to cl…

    …ass variable within instance_{eval, exec}'s block.
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    @@a = 4
    assert_equal(4, 1.instance_eval { @@a } )
    assert_equal(4, 1.instance_exec { @@a } )
    
    assert_raise(TypeError){ 1.instance_eval { def foo; end } }
    assert_raise(TypeError){ 1.instance_eval { alias :foo :to_s} }
    
    assert_raise(TypeError){ 1.instance_exec { def foo; end } }
    assert_raise(TypeError){ 1.instance_exec { alias :foo :to_s} }
    
    puts :ok
    }}}
    Watson1978 committed Mar 30, 2011
  2. On MacRuby, complete methods starting with `init' after `klass.alloc.…

    …'. [Closes #1210]
    
    Update DietRB to 46850c375604c25d8c40110986ff2418baf65f6c.
    alloy committed Mar 30, 2011
  3. fix a bug when we would allow the creation of Pointers with an empty …

    …(invalid) type
    Laurent Sansonetti committed Mar 30, 2011
  4. revert apparent debug code that was committed by mistake in 31aca7b

    Laurent Sansonetti committed Mar 30, 2011
  5. move the IRB irb code to lib/rdoc.

    takaokouji committed with Laurent Sansonetti Mar 30, 2011
  6. import RDoc 3.5.3 and fix it for MacRuby.

    takaokouji committed with Laurent Sansonetti Mar 29, 2011
  7. pre-register new threads to the core earlier, to avoid race condition…

    …s when performing methods poking at the thread list right after Thread.new
    Laurent Sansonetti committed Mar 30, 2011
  8. Merge branch 'master' of github.com:MacRuby/MacRuby

    Laurent Sansonetti committed Mar 30, 2011
Commits on Mar 29, 2011
  1. IO#reopen will accept an object that has a #to_path method.

    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    FILE1 = "tmp.xxxxxx"
    FILE2 = "tmp.reopen.xxxxx"
    
    io = File.open(FILE1, "w")
    
    obj = Object.new
    def obj.to_path
      FILE2
    end
    
    io.reopen(obj, "w")
    io.puts "hello world"
    io.close
    
    File.open(FILE2, "r") { |f|
      assert_equal("hello world\n", f.gets)
    }
    
    File.unlink(FILE1)
    File.unlink(FILE2)
    
    puts :ok
    }}}
    Watson1978 committed Mar 29, 2011
  2. Object#instance_eval will raise a TypeError when defining/alias metho…

    …ds on numerics.
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    assert_raise(TypeError){ 1.instance_eval { def foo; end } }
    assert_raise(TypeError){ 1.instance_eval { alias :foo :to_s} }
    
    puts :ok
    }}}
    Watson1978 committed Mar 29, 2011
  3. Object#instance_exec will raise a TypeError when defining/alias metho…

    …ds on numerics.
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    assert_raise(TypeError){ 1.instance_exec { def foo; end } }
    assert_raise(TypeError){ 1.instance_exec { alias :foo :to_s} }
    
    puts :ok
    }}}
    Watson1978 committed Mar 29, 2011
  4. fix truncation issues when dealing with unsigned long long types

    Laurent Sansonetti committed Mar 29, 2011
  5. Merge branch 'master' of github.com:MacRuby/MacRuby

    Laurent Sansonetti committed Mar 29, 2011
  6. properly return the broken value from yielding iterators

    Laurent Sansonetti committed Mar 29, 2011
  7. enumerator_allocate() needs sel argument because "alloc" method is de…

    …fined with rb_objc_define_method().
    Watson1978 committed Mar 29, 2011
Commits on Mar 28, 2011
  1. Use rsync instead of cp for embedding MacRuby in ruby_deploy

    This allows the use of path exclusion instead of copying
    everything and then removing what is not needed.
    ferrous26 committed with Laurent Sansonetti Mar 26, 2011
  2. Add contribute section to README.

    alloy committed with Laurent Sansonetti Mar 28, 2011
Commits on Mar 25, 2011
  1. better git command

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5308 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 25, 2011
  2. auto-detect if we run from a git repository

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5307 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 25, 2011
  3. Hash#{clone, dup} will copy status of untrust.

    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    a = { 1 => 'one', 2 => 'two', 3 => 'three' }
    a.untrust
    a.taint
    a.freeze
    
    b = a.clone
    assert_equal(a.untrusted?, b.untrusted?)
    assert_equal(a.tainted?, b.tainted?)
    assert_equal(a.frozen?, b.frozen?)
    
    c = a.dup
    assert_equal(a.untrusted?, c.untrusted?)
    assert_equal(a.tainted?, c.tainted?)
    assert_equal(false, c.frozen?)
    
    puts :ok
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5306 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Mar 25, 2011
Commits on Mar 24, 2011
  1. fix a bug in the build system when some header files would not be loc…

    …ated (patch by kouji at takao7.net)
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5305 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 24, 2011
Commits on Mar 23, 2011
  1. update installer with better warning message

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5299 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 23, 2011
  2. trunk is now 0.11

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5298 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 23, 2011
  3. the framewokr

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5296 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 23, 2011
  4. Hash#[]= will not duplicate already frozen string key.

    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    key = "foo".freeze
    h = {}
    h[key] = 42
    
    assert_equal( h.keys[0].object_id, key.object_id )
    
    puts :ok
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5295 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Mar 23, 2011
  5. convert_type() should be passed value of boolean with 4th argument be…

    …cause its value is checked with "if (raise) " in convert_type().
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5294 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Mar 23, 2011
  6. slight cleanup of the Core Data template

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5293 23306eb0-4c56-4727-a40e-e92c0eb68959
    mattetti committed Mar 23, 2011
  7. install the xcode4 templates one directory above the tree

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5292 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 23, 2011
  8. add basic Ruby file template

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5291 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 23, 2011
  9. oops

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5290 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Mar 23, 2011