git clone git://github.com/ruby/ruby.git
cd ruby
git svn init -s --prefix=origin/ svn+ssh://svn@ci.ruby-lang.org/ruby
git svn fetch
--desable-shared
class Hash | |
def deep_clone | |
Marshal.load(Marshal.dump(self)) | |
end | |
end | |
h = {} #=> {} | |
a = {'a' => 1, 'b' => 2, 'c' => h} #=> {"a"=>1, "b"=>2, "c"=>{}} | |
a1 = a.clone #=> {"a"=>1, "b"=>2, "c"=>{}} | |
a2 = a.deep_clone #=> {"a"=>1, "b"=>2, "c"=>{}} |
#!/usr/bin/env bash | |
git clone git://github.com/komagata/lokka.git | |
cd lokka | |
heroku create | |
git push heroku master | |
heroku addons:add heroku-postgresql:dev | |
heroku pg:info | head -n1 | awk '{print $2}' | xargs heroku pg:promote | |
heroku run rake db:setup |
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems ./spec/mspec/bin/mspec run -B ./spec/default.mspec ./spec/rubyspec/core/kernel/global_variables_spec.rb
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems ./spec/mspec/bin/mspec run -B ./spec/default.mspec
ruby 2.0.0dev (2012-10-14 trunk 37179) [x86_64-darwin12.2.0]
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] | |
6550.rb:5: [BUG] Segmentation fault | |
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] | |
-- Control frame information ----------------------------------------------- | |
c:2434 p:0015 s:8509 b:7295 l:0006a8 d:007294 LAMBDA 6550.rb:5 | |
c:2433 p:---- s:7291 b:7291 l:007290 d:007290 FINISH | |
c:2432 p:0015 s:7289 b:7289 l:0006a8 d:007288 LAMBDA 6550.rb:5 | |
c:2431 p:---- s:7285 b:7285 l:007284 d:007284 FINISH | |
c:2430 p:0015 s:7283 b:7283 l:0006a8 d:007282 LAMBDA 6550.rb:5 |
#!/usr/bin/sh | |
make realclean | |
autoconf | |
./configure --prefix=~/tmp/ruby-trunk \ | |
--with-gcc=gcc-4.2 \ | |
--with-arch=x86_64 \ | |
--with-readline-dir=/usr/local \ |
configure: WARNING: unrecognized options: --with-readline-dir, --with-openssl-dir, --with-gdbm-dir, --with-libyaml-dir | |
checking build system type... x86_64-apple-darwin10.8.0 | |
checking host system type... x86_64-apple-darwin10.8.0 | |
checking target system type... x86_64-apple-darwin10.8.0 | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o |
--- test/psych/test_yamldbm.rb | |
+++ test/psych/test_yamldbm.rb | |
@@ -1,19 +1,28 @@ | |
# -*- coding: UTF-8 -*- | |
require 'test/unit' | |
require 'yaml/dbm' | |
+require 'tmpdir' | |
Psych::DBM = YAML::DBM unless defined?(Psych::DBM) | |
module Psych |