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

    Watson1978 committed Mar 29, 2011
    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
    }}}
  2. Object#instance_eval will raise a TypeError when defining/alias metho…

    Watson1978 committed Mar 29, 2011
    …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
    }}}
  3. Object#instance_exec will raise a TypeError when defining/alias metho…

    Watson1978 committed Mar 29, 2011
    …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
    }}}
  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…

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

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

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

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

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

    Watson1978 committed Mar 25, 2011
    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
Commits on Mar 24, 2011
  1. fix a bug in the build system when some header files would not be loc…

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

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

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

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

    Watson1978 committed Mar 23, 2011
    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
  5. convert_type() should be passed value of boolean with 4th argument be…

    Watson1978 committed Mar 23, 2011
    …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
  6. slight cleanup of the Core Data template

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

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

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

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

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

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

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

    lrz committed Mar 23, 2011
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5286 23306eb0-4c56-4727-a40e-e92c0eb68959
  14. retrieve the app bundle path from the xcode environment because xcode…

    lrz committed Mar 23, 2011
    …4 is too buggy to actually pass it properly
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5285 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 21, 2011
  1. removed rb_nibtool.old

    mattetti committed Mar 21, 2011
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5282 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 20, 2011
  1. changed the Xcode4 templates to not use a dynamic app delegate class …

    mattetti committed Mar 20, 2011
    …and therefore avoid issues when the project isn't named according to expectations.
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5280 23306eb0-4c56-4727-a40e-e92c0eb68959
  2. add Xcode4 templates (contributed by Thibault)

    lrz committed Mar 20, 2011
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5279 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 15, 2011
  1. fix a bug where converting a NULL pointer as an opaque type value to …

    lrz committed Mar 15, 2011
    …Ruby would not give nil (as in RubyCocoa)
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5278 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 14, 2011