[macruby-changes] [MacRuby/MacRuby] 68162b: Hash#{clone, dup} will copy status of untrust.
noreply at github.com
noreply at github.com
Mon Mar 28 02:05:52 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: 68162bf1a467a58c87a47e866cf2d0ca621fd1ba
https://github.com/MacRuby/MacRuby/commit/68162bf1a467a58c87a47e866cf2d0ca621fd1ba
Author: Watson <watson1978 at gmail.com>
Date: 2011-03-24 (Thu, 24 Mar 2011)
Changed paths:
M hash.c
Log Message:
-----------
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
Commit: 2e7102cd3397655a4f1193b5910795e5861f200c
https://github.com/MacRuby/MacRuby/commit/2e7102cd3397655a4f1193b5910795e5861f200c
Author: Laurent Sansonetti <lsansonetti at apple.com>
Date: 2011-03-25 (Fri, 25 Mar 2011)
Changed paths:
M rakelib/packager.rake
Log Message:
-----------
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
Commit: 338c8be5e0d2ca031efbd708a1af2e7a549f8410
https://github.com/MacRuby/MacRuby/commit/338c8be5e0d2ca031efbd708a1af2e7a549f8410
Author: Laurent Sansonetti <lsansonetti at apple.com>
Date: 2011-03-25 (Fri, 25 Mar 2011)
Changed paths:
M rakelib/packager.rake
Log Message:
-----------
better git command
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5308 23306eb0-4c56-4727-a40e-e92c0eb68959
Compare: https://github.com/MacRuby/MacRuby/compare/cf1bc99...338c8be
More information about the macruby-changes
mailing list