Skip to content
Commits on May 20, 2013
  1. Remove obsoleted lib/objc_ext extensions

    There are no project using these extensions on
    Github (at the time of this commit), so it is a
    safe gamble that nobody will miss them.
    
    Half of the functionality given here is already
    provided by BridgeSupport and the other half is
    trivial for a user to add themselves if they
    really want it.
    committed May 20, 2013
  2. Merge remote-tracking branch 'timfall/patch-1'

    * timfall/patch-1:
      Create uninstall.sh
    
    This addresses GH-190
    committed May 9, 2013
  3. Update RubyGems to v1.8.25

    committed Jan 28, 2013
Commits on May 19, 2013
  1. @Watson1978

    update spec's tag

    Watson1978 committed May 20, 2013
  2. @Watson1978

    fix a bug in Module#remove_method which it could call undefined metho…

    …d if call it once
    
    Test Code:
    ----
    class Foo
      def meth
      end
    end
    
    obj = Foo.new
    obj.meth
    
    class Foo
      remove_method :meth
    end
    p obj.meth
    
    Result:
    ----
    $ macruby test_remove.rb
    nil
    
    Expected:
    ----
    $ ruby test_remove.rb
    test_remove.rb:12:in `<main>': undefined method `meth' for #<Foo:0x007fad558b9cc8> (NoMethodError)
    Watson1978 committed May 20, 2013
  3. @Watson1978

    fix a bug in `undef' which it could call undefined method if call it …

    …once
    
    Test Code:
    ----
    class Foo
      def meth
      end
    end
    
    obj = Foo.new
    obj.meth
    
    class Foo
      undef meth
    end
    p obj.meth
    
    Result:
    ----
    $ macruby test_undef.rb
    nil
    
    Expected:
    ----
    ruby test_undef.rb
    test_undef.rb:12:in `<main>': undefined method `meth' for #<Foo:0x007f8231935d18> (NoMethodError)
    Watson1978 committed May 20, 2013
  4. @Watson1978
  5. @Watson1978

    update spec's tag

    Watson1978 committed May 19, 2013
  6. @Watson1978

    fix a bug in {Proc, Symbol}#allocate where it would be triggered the …

    …crash
    
    Result:
    $ macirb
    irb(main):001:0> Proc.allocate
    zsh: segmentation fault  macirb
    
    Expected:
    $ irb
    irb(main):001:0> Proc.allocate
    TypeError: allocator undefined for ProcExpected:
    Watson1978 committed May 19, 2013
Commits on Apr 25, 2013
  1. @Watson1978
Commits on Apr 24, 2013
  1. @Watson1978

    enable IO specs

    Watson1978 committed Apr 24, 2013
  2. @Watson1978

    update rubyspec's tags

    Watson1978 committed Apr 23, 2013
Commits on Apr 23, 2013
  1. @Watson1978

    add BasicObject#__id__

    Watson1978 committed Apr 23, 2013
Commits on Apr 21, 2013
  1. @Watson1978
Commits on Apr 17, 2013
  1. @Watson1978
  2. @Watson1978
Commits on Apr 13, 2013
  1. @Watson1978

    [fix #208] fix a bug where set a constant which it will not raise an …

    …exception if it contains Fixnum in namaspec
    
    Result:
    $  macruby -e 'p 7::C = 42'
    42
    $ macruby -e 'A = 7; p A::C = 42'
    42
    
    Expect:
    $ ruby -e 'p 7::C = 42'
    -e:1:in `<main>': 7 is not a class/module (TypeError)
    $ ruby -e 'A = 7; p A::C = 42'
    -e:1:in `<main>': 7 is not a class/module (TypeError)
    Watson1978 committed Apr 13, 2013
Commits on Apr 6, 2013
  1. @Watson1978

    add rubyspec's tags

    Watson1978 committed Apr 6, 2013
  2. @Watson1978
  3. @Watson1978
  4. @Watson1978

    update rubyspec's tags

    Watson1978 committed Apr 6, 2013
Commits on Apr 4, 2013
  1. @Watson1978

    [fix #203] fix a bug in super which fails to look up method in method…

    … which called by super
    
    The 'super' saves the calling status (caller class, selector, etc).
    At twice 'super' calling, look up wrong class.
    
    The following sequence had executed.
    
    - Base (Super class)
    - Foo (Inherited Base)
    
    1. Foo#bar -- super --> look up super class of Foo (Base)
    2. Foo#bar -- super --> look up super class of Base
    
    ----
    
    class Base
      def bar(args)
        $result << args.first
        if args = args[1..-1]
          obj = Foo.new
          obj.bar(args)
        end
      end
    end
    
    class Foo < Base
      def bar(args)
        $result << "a"
        super
      end
    end
    
    $result = []
    obj = Foo.new
    obj.bar(%w{1 2 3})
    p $result
    Watson1978 committed Apr 4, 2013
Commits on Mar 10, 2013
  1. @Watson1978

    fix a bug in respond_to_key which cannot generate a unique key for di…

    …fferent klass and sel
    
    The same key is generated in the following two cases.
    
    1. klass = 0xfd085b0
        sel = 0xfd3cf90
        (0xfd085b0 + 0xfd3cf90  -> 0x1FA45540)
    
    2. klass = 0xfd085d0
        sel = 0xfd3cf70
        (0xfd085d0 + 0xfd3cf70 -> 0x1FA45540)
    
      => generated key = 1068693925
    
    Object#respond_to? is not working as expected, because the keys that are not unique.
    Watson1978 committed Mar 11, 2013
Commits on Feb 22, 2013
  1. @Watson1978

    Merge pull request #189 from eitoball/encode_to_binary_before_writing…

    …_with_ssl_socket
    
    Encode to binary before writing with OpenSSL::SSL::SSLSocket
    Watson1978 committed Feb 22, 2013
  2. @eitoball
Commits on Feb 21, 2013
  1. @eitoball
Commits on Feb 20, 2013
  1. @Watson1978

    add NSData#to_s

    Watson1978 committed Feb 20, 2013
Commits on Feb 17, 2013
  1. @Watson1978

    use __clang__ instead of __GNUC__

    because clang has __GNUC__ macro
    Watson1978 committed Feb 17, 2013
Commits on Feb 15, 2013
  1. @Watson1978

    Merge pull request #187 from eitoball/change_openssl_hmac_digest_enco…

    …ding_to_binary
    
    Change encoding of OpenSSL::HMAC.digest result to binary
    Watson1978 committed Feb 15, 2013
Commits on Feb 12, 2013
  1. @eitoball
Commits on Feb 8, 2013
  1. @Watson1978
Commits on Jan 26, 2013
  1. @Watson1978

    improve a performance in Array#hash

    * before
          user     system      total        real
      1.350000   0.010000   1.360000 (  1.356039)
    
    * after
          user     system      total        real
      0.800000   0.000000   0.800000 (  0.806837)
    
    Test Code
    ----
    Benchmark.bm do |x|
      ary = ["a", "b", "c"] * 10000
    
      x.report do
        1000.times do
          ary.hash
        end
      end
    end
    Watson1978 committed Jan 26, 2013
Commits on Jan 17, 2013
  1. @Watson1978
Commits on Jan 9, 2013
  1. @Watson1978
Something went wrong with that request. Please try again.