Permalink
Commits on Dec 9, 2010
  1. build/link ICU statically (doesn't work yet, alas...) - make sure you…

    … download icu4c-4_4_2-src.tgz into the main directory
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu-embedded@5001 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 9, 2010
  2. create branch for ICU embedded work

    lrz committed Dec 9, 2010
  3. Fixing a bug that prevented CSV from parsing all multi-line fields co…

    …rrectly. Merged from CRuby 1.9 r28431.
    
    see ruby/ruby@effa0c7
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4999 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Dec 9, 2010
  4. Array#uniq will not remove the element of Array when object type is d…

    …ifferent.
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    a1 = [ 1, 1.0, "1.0", 2, 1.0, 1]
    a2 = a1.dup
    assert_equal([1, 1.0, "1.0", 2], a1.uniq)
    assert_equal([1, 1.0, "1.0", 2], a2.uniq!)
    
    puts :ok
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4998 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Dec 9, 2010
Commits on Dec 8, 2010
  1. Array#pack will return a untrusted string when the format is untrusted

    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    ary = ["abcd", 0x20]
    fmt = "A3C"
    fmt.untrust
    fmt.taint
    
    ret = ary.pack(fmt)
    assert_equal("abc ", ret)
    assert_equal(true,   ret.tainted?)
    assert_equal(true,   ret.untrusted?)
    
    puts :ok
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4996 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Dec 8, 2010
  2. remove lib/dispatch layer

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4994 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 8, 2010
  3. move to llvm 2.8

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4993 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 8, 2010
Commits on Dec 7, 2010
  1. Dir.glob: convert paths to unicode normalization form C

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4991 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 7, 2010
  2. updates the spec's tags.

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4989 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Dec 7, 2010
  3. move internal stuff from the public headers

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4988 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 7, 2010
Commits on Dec 6, 2010
  1. implement last_line $_ VM variable (patch by Ben Mitchell <warpflyght…

    … at telltales.net>)
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4986 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 6, 2010
  2. Tag failing specs.

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4985 23306eb0-4c56-4727-a40e-e92c0eb68959
    alloy committed Dec 6, 2010
  3. fixed a bug in his morning's commit that was making ['a'.encode('UTF-…

    …16LE')].join.valid_encoding? crash
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4983 23306eb0-4c56-4727-a40e-e92c0eb68959
    vincentisambart committed Dec 6, 2010
  4. ascii-only strings are now compatible with any other string (patch by…

    … Vincent Isambart)
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4982 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 6, 2010
Commits on Dec 4, 2010
  1. fix install permissions for Info.plist and InfoPlist.strings (patch b…

    …y dj2 at everburning.com)
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4979 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 4, 2010
  2. Make MRI 1.9 be able to build MacRuby by explicitely specifying the e…

    …xternal encoding for IO reads.
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4976 23306eb0-4c56-4727-a40e-e92c0eb68959
    alloy committed Dec 4, 2010
  3. String#chop and String#reverse should now work properly with non-BMP …

    …characters
    
    (bug #772)
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4975 23306eb0-4c56-4727-a40e-e92c0eb68959
    vincentisambart committed Dec 4, 2010
Commits on Dec 3, 2010
  1. fix spelling mistake

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4974 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 3, 2010
  2. fix JIT compilation on earlier LLVMs

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4973 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 3, 2010
  3. add new specs regarding C-level blocks

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4972 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 3, 2010
  4. compile C-level blocks in the autozone heap and emit a write barrier …

    …to the original ruby Proc object, to avoid premature garbage collection of the Proc when calling the C-level block
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4971 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 3, 2010
Commits on Dec 2, 2010
  1. only one freeze

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4970 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 2, 2010
  2. better Dir.tmpdir support

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4969 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 2, 2010
  3. mark Foundation as multithreaded

    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4968 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 2, 2010
  4. Array#join will return a string when Array include the object which h…

    …as the to_ary/to_str/to_s.
    
    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    class Join
      def initialize(*arg)
        @arg = arg
      end
    end
    
    class Ary1 < Join
      def to_ary
        @arg.to_a
      end
    end
    
    class Ary2 < Join
      def to_a
        @arg.to_a
      end
    end
    
    class Str1 < Join
      def to_str
        @arg.to_s
      end
    end
    
    class Str2 < Join
      def to_s
        @arg.to_s
      end
    end
    
    class AryStr < Join
      def to_s
        @arg.to_s
      end
      def to_ary
        @arg.to_a
      end
    end
    
    a1 = Ary1.new(1, 2, 3, 'test')
    ary = ['#', a1]
    assert_equal("#123test", ary.join)
    
    a2 = Ary2.new(1, 2, 3, 'test')
    ary = ['#', a2]
    assert_match(/##<Ary2:0x[a-f\d]+>/, ary.join) # not string
    
    s1 = Str1.new(123)
    ary = ['#', s1]
    assert_equal("#[123]", ary.join)
    
    s2 = Str2.new(456)
    ary = ['#', s2]
    assert_equal("#[456]", ary.join)
    
    t = AryStr.new(789)
    ary = ['#', t]
    assert_equal("#789", ary.join)
    
    puts :ok
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4966 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Dec 2, 2010
  5. will not have the Symbol#to_str.

    Test Script:
    {{{
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    assert_equal("ok", :ok.to_s)
    assert_raise(NoMethodError) { :ok.to_str }
    
    puts :ok
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4965 23306eb0-4c56-4727-a40e-e92c0eb68959
    Watson1978 committed Dec 2, 2010
Commits on Dec 1, 2010
  1. make sure Match objects created from the same string keep a reference…

    … to a unique string object
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4964 23306eb0-4c56-4727-a40e-e92c0eb68959
    lrz committed Dec 1, 2010