[Ann] Contribution wanted: test your code with 1.9.2-preview3

e$B1sF#$G$9!#e(B

Yugui e$B$5$s$,e(B [ruby-dev:41487]
e$B$G9pCN$7$?$h$&$K!"e(BRuby-1.9.2-preview3 e$B$,e(B
e$B%j%j!<%9$5$l$^$7$?!#e(B

1.9.2 e$B$Oe(B 7
e$B7n$K%j%j!<%9$5$l$kM=Dj$G$9$,!"$3$N%j%j!<%9$r$h$j$h$$$b$N$Ke(B
e$B$9$k$?$a$K3’$5$s$K$*4j$$$,$"$j$^$9!#3’$5$s$N%3!<%Ie(B ([email protected]=IJ$G$be(B
gem e$B$G$be(B)
e$B$re(B 1.9.2-preview3 e$B$G%F%9%H$7$F$/[email protected]$5$$!#e(B

e$B$b$7F0$+$J$+$C$?$i!“e(BNEWS [1] e$B$r8+$F$/[email protected]$5$$e(B (e$BFC$Ke(B
“Language changes” e$B$He(B
“Compatibility issues” e$B$N%;%/%7%g%se(B)
e$B!#FC$K$”$J$?$N%3!<%IB&[email protected]$,I,MWe(B
e$B$=$&$JJQ99$,8+$D$+$i$J$+$C$?$i!"e(Bredmine e$B$K%A%1%C%H$rEPO?$9$ke(B
[2] e$B$+!"e(B
ruby-dev e$B$K%a!<%k$rAw$C$F$/[email protected]$5$$e(B [3] e$B!#e(B

[1] http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_preview3/NEWS

[2] http://redmine.ruby-lang.org/projects/show/ruby-19 e$B$KEPO?$7$Fe(B
e$B!V?7$7$$%A%1%C%H!W$r:n$C$F$/[email protected]$5$$!#e(B

[3] e$B7oL>[email protected],$Ke(B “[Bug:trunk]” e$B$rIU$1$F$/[email protected]$5$$!#e(B
e$BNce(B: [Bug:trunk] 1.9.2-preview3 e$B$,2P$rJ.$$$?e(B
redmine e$B$K<+F0E*$KEPO?$5$l$k$O$:$G$9!#e(B

e$B$"$i$+$8$a!"$h$/J9$+$l$ke(B 2 [email protected]$r5s$2$F$*$-$^$9!#e(B

  • [email protected],I=8=$Ne(B \d e$B!"e(B\s e$B!“e(B\w e$B$Oe(B ASCII
    e$BJ8;[email protected]$1$K%^%C%A$9$k$h$&$K$J$j$^$7$?!#e(B
    e$B%”%/%;%s%HIU$-J8;z$dF|K\8le(B (1.9.2-preview1
    e$B$G$O%^%C%A$7$F$$$?e(B) e$B$K$Oe(B
    e$B%^%C%A$7$^$;$s!#e(B

    coding: UTF-8

    p(/\w/ =~ "e$B$“e(B”) #=> nil
    p(/\d/ =~ “e$B#1e(B”) #=> nil

    Unicode e$BBP1~$NJ8;z%/%i%9$,M_$7$$>l9g$O!"e(B\d e$B$NBe$o$j$Ke(B
    \p{Digit} e$B!"e(B\s e$B$Ne(B
    e$BBe$o$j$Ke(B \p{Space} e$B!"e(B\w e$B$NBe$o$j$Ke(B \p{Word}
    e$B$^$?$Oe(B [\w\P{ASCII}] e$B$r;H$&e(B
    e$B$3$H$,$G$-$^$9!#e(B

  • $LOAD_PATH e$B$Ke(B “.” e$B$,4^$^$l$J$/$J$j$^$7$?!#e(B
    e$B$D$^$j!"%+%l%s%H%G%#%l%/%H%j$+$i$NAjBP%Q%9$G$Ne(B require
    e$B$O<:GT$9$k$h$&e(B
    e$B$K$J$j$^$7$?!#e(B

    $ cat my_project/foo.rb
    require “my_project/bar”
    class Foo; end

    $ cat my_project/bar.rb
    class Bar; end

    $ ruby-1.9.2-preview3 my_project/foo.rb
    my_project/foo.rb:1:in require': no such file to load -- my_project/bar (LoadError) from my_project/foo.rb:1:in

    e$B2sHr:v$H$7$F$O!"e(BKernel#require_relative e$B$r;H$&$+!"e(B

    require_relative “bar”
    class Foo; end

    e$B$^$?$O%W%m%8%’%/%H$N%[!<%`%Q%9$re(B $LOAD_PATH
    e$B$KDI2C$7$F$/[email protected]$5$$!#e(B

    $LOAD_PATH << File.dirname(File.dirname(FILE))
    require “my_project/bar”
    class Foo; end

e$B$"$i$+$8$aCG$C$F$*$-$^$9$H!“65$($FD:$$$?$+$i$H$$$C$FD>$9$3$H$rLsB+$Oe(B
e$B$G$-$^$;$s!#%j%=!<%9$b;~4V$bB-$j$J$$$N$G!”<B:]$K%P%0$G$"$C$F$b=EBg$Ge(B
[email protected][email protected]$,$"$j$^$9!#e(B
e$BEXNO$O$7$^$9$N$G!"$4M}2r$/[email protected]$5$$!#e(B

e$B$46(NO$r$*4j$$$$$?$7$^$9!#e(B