This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| surfboard:jruby[git:personal]$ jruby spec/mspec/bin/mspec -T--1.9 spec/ruby/core/string/ | |
| jruby 1.5.0.dev (ruby 1.9.2dev trunk 24787) (2009-11-22 a0b5d4e) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_15) [x86_64-java] | |
| .org.jcodings.exception.EncodingException: invalid code point value | |
| at org.jcodings.specific.BaseUTF8Encoding.codeToMbcLength(BaseUTF8Encoding.java:80) | |
| at org.jcodings.specific.UTF8Encoding.codeToMbcLength(UTF8Encoding.java:24) | |
| at org.jruby.util.StringSupport.codeLength(StringSupport.java:300) | |
| at org.jruby.RubyString.concat19(RubyString.java:2284) | |
| at org.jruby.RubyString$i_method_1_0$RUBYINVOKER$concat19.call(org/jruby/RubyString$i_method_1_0$RUBYINVOKER$concat19.gen) | |
| at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrN.call(JavaMethod.java:729) | |
| at org.jruby.RubyClass.finvoke(RubyClass.java:468) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/org/jruby/RubyInstanceConfig.java b/src/org/jruby/RubyInstanceConfig.java | |
| index 2451a3b..a02a4e6 100644 | |
| --- a/src/org/jruby/RubyInstanceConfig.java | |
| +++ b/src/org/jruby/RubyInstanceConfig.java | |
| @@ -230,6 +230,9 @@ public class RubyInstanceConfig { | |
| public static final boolean DEBUG_LOAD_SERVICE | |
| = SafePropertyAccessor.getBoolean("jruby.debug.loadService", false); | |
| + public static final boolean DEBUG_LOAD_TIMINGS | |
| + = SafePropertyAccessor.getBoolean("jruby.debug.loadService.timing", false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Termtter::Client | |
| begin | |
| require 'g' | |
| register_command( | |
| :name => :g, | |
| :exec_proc => lambda {|arg| | |
| g arg, | |
| :help => ['g obj', "Do you know 'g'? It's like 'p'."] | |
| } | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| surfboard:~$ time jruby --ng -b -e "p 0" | |
| 0 | |
| Runtime: 4 ms | |
| real 0m0.095s | |
| user 0m0.007s | |
| sys 0m0.016s | |
| surfboard:~$ time jruby -b -e "p 0" | |
| 0 | |
| Runtime: 20 ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby_bug "redmine #595", "1.9" do | |
| it "executes the ensure clause" do | |
| fib = Fiber.new{ | |
| begin | |
| exit 0 | |
| rescue SystemExit | |
| ensure | |
| :ensure | |
| end | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://d.hatena.ne.jp/ku-ma-me/20091224/p1 | |
| open("/dev/dsp","wb"){|h|s=%q{d=["-KQW[UZbgu*HNT+]TNOOOTZ+cZTUUUUUZbagmssUZbagm | |
| ss+wmpgja+KQW[dfnu","-KEKOINV[W*HBH+QHBCCCHN+WNHIIIIINVU[aUUINVU[aUU+YOR[^I+KEK | |
| OXZbW","-W[acg vsc*TZ`+eaaaaa--vucavuca+eadsvs+W[dgvrtc","-K991LIL77777dIIIII-- | |
| LKKILKKI+Mad[ ^U+K991LHJK"].map{|l|l.unpack("C*").map{|c|[(c/6-4)*12/7-8,"012 | |
| 35b"[c%6,1]. hex]}*4};y=32.chr;l="@"+[(m="Jnx4sn3sgd1")+"vnqkc!6sgd2Lnqc4gz | |
| r4bnld;6/Ld s2dzqsg6qd2@bdhud6gdq2Khmf;77/Lds2du4@dqx4gdzqs6oqd2@ozqd4ghl | |
| 4qnnl,+Amc 2gdz++2 @udm 4z mc 2gdz 4@+u dm 2zm | |
| c2mz+@stqd+r hmf",m+"E zq sg !6sgd2Sz u4@h nt q4qd hfm r; 6/Ld |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| surfboard:~$ ruby1.9 -ve 'a=5.0; a.taint; p d=Marshal.dump(a);p Marshal.load(d).tainted?' | |
| ruby 1.9.2dev (2009-12-25 trunk 26179) [x86_64-darwin10.2.0] | |
| "\x04\bf\x065" | |
| true | |
| surfboard:~$ ruby1.9 -ve 'a=5.0; p d=Marshal.dump(a);p Marshal.load(d).tainted?' | |
| ruby 1.9.2dev (2009-12-25 trunk 26179) [x86_64-darwin10.2.0] | |
| "\x04\bf\x065" | |
| false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: tool/install-sh | |
| =================================================================== | |
| --- tool/install-sh (revision 26186) | |
| +++ tool/install-sh (working copy) | |
| @@ -4,12 +4,12 @@ | |
| # See autoconf.info for more detail. | |
| cat <<EOF >&2 | |
| -Ruby tries to use a BSD-compatible install(1) if possible. However Ruby | |
| -has its own install(1) alternative. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| surfboard:~$ ruby1.9 -v -rdebug -rubygems -e 0 | |
| ruby 1.9.2dev (2009-12-30 trunk 26179) [x86_64-darwin10.2.0] | |
| Debug.rb | |
| Emacs support available. | |
| /usr/local/ruby19/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.5/lib/ubygems.rb:10:require 'rubygems' | |
| (rdb:1) exit | |
| <internal:prelude>:6:in `lock': deadlock; recursive locking (ThreadError) | |
| from <internal:prelude>:6:in `synchronize' | |
| from /usr/local/ruby19/lib/ruby/1.9.1/debug.rb:84:in `check_suspend' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| surfboard:jruby[git:master]$ jruby spec/mspec/bin/mspec -f s -g fails -g critical -g windows --dry-run -T--1.8 -B spec/jruby.1.8.mspec spec/ | |
| jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-03 c6090f1) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java] | |
| (ERROR - 1) | |
| - (ERROR - 2) | |
| - (ERROR - 3) | |
| - (ERROR - 4) | |
| - (ERROR - 5) | |
| - (ERROR - 6) | |
| - (ERROR - 7) | |
| - (ERROR - 8) |