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/RubyThread.java b/src/org/jruby/RubyThread.java | |
index f1f85b2..c45afe2 100644 | |
--- a/src/org/jruby/RubyThread.java | |
+++ b/src/org/jruby/RubyThread.java | |
@@ -172,7 +172,11 @@ public class RubyThread extends RubyObject implements ExecutionContext { | |
public ThreadContext getContext() { | |
return contextRef.get(); | |
} | |
- | |
+ |
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
** Invoke c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/activemodel-3.0.3/lib/active | |
_model/validations/with.rb (first_time, not_needed) | |
rake aborted! | |
Don't know how to build task 'c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/activere | |
cord-jdbc-adapter-1.1.1/README.rdoc' | |
c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]' | |
c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:605:in `invoke_ | |
prerequisites' | |
org/jruby/RubyArray.java:1671:in `each' | |
c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_ |
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
C:\opt\lab\traveljournal>rails db | |
c:/jruby-1.6.0.RC1/lib/ruby/site_ruby/shared/ffi/library.rb:28:in `ffi_lib': Cou | |
ld not open library 'c:\jruby-1.6.0.RC1\lib\ruby\gems\1.8\gems\nokogiri-1.4.4.2- | |
(LoadError)ogiri\libxml2.dll' : The operation completed successfully. | |
from org/jruby/RubyArray.java:2460:in `collect' | |
from c:/jruby-1.6.0.RC1/lib/ruby/site_ruby/shared/ffi/library.rb:10:in ` | |
ffi_lib' | |
from c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/nokogiri-1.4.4.2-java/lib |
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 test_fact.rb | |
> rails runner test_fact.rb #from a fresh rails app | |
> rails runner test_fact.rb #from a mature rails app | |
here are the respective results: | |
user system total real # ruby | |
recursive: 8.660000 0.040000 8.700000 ( 8.888191) | |
iterative: 6.770000 0.030000 6.800000 ( 6.892491) |
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
Before: | |
13:53:18 /c/opt/jruby.cygwin $ ./bin/jruby.bash -v --server -J-Djruby.jit.logging=true -J-Djruby.compile.mode=OFF bench/bench_fib_recursive.rb 10 35 | |
./bin/jruby.bash -v --server -J-Djruby.jit.logging=true -J-Djruby.compile.mode=OFF bench/bench_fib_recursive.rb 10 35 | |
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-28 5573d70) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_23) [Windows 7-amd64-java] | |
9227465 | |
3.348000 0.000000 3.348000 ( 3.311000) | |
9227465 | |
3.865000 0.000000 3.865000 ( 3.865000) | |
9227465 |
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
require 'abbrev' | |
result = Abbrev.abbrev(%w{あした あなた}) | |
puts result.count.inspect |
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
match = /./s.match("\303\251".force_encoding(Encoding::Windows_31J)) | |
a = match.to_a, | |
b = ["\303".force_encoding(Encoding::Windows_31J)] | |
p a[0][0].encoding, b[0].encoding | |
p a == b | |
p a.inspect | |
p a[0][0] == b[0] |
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
--- | |
layout: post | |
title: JRuby 1.6.0.RC2 Released | |
--- | |
The JRuby community is pleased to announce the release of JRuby 1.6.0.RC2. | |
- Homepage: [http://www.jruby.org/](http://www.jruby.org/) | |
- Download: [http://www.jruby.org/download](http://www.jruby.org/download) | |
JRuby 1.6.0.RC2 is the second release candidate of JRuby 1.6.0. |
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
JRuby 1.6.0.RC2 has been <released>. Here are the more notable things fixed since RC1: | |
- Large number of 1.9 compatibility issues addressed | |
- Encoding issues (especially involving Regexp) | |
- Fiddle implementation | |
- non-ASCII identifiers | |
- irb (1.8.7, 1.9.2) and command prompt added to Windows installer | |
- Compiler handles all 1.9 syntax now | |
- Fixes for new backtrace accuracy, reliability | |
- Removed all GPL or LGPL-only dependencies |
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
<target name="test" depends="build" description="Runs tests for all modules in the suite."> | |
<sortsuitemodules unsortedmodules="${modules}" sortedmodulesproperty="modules.test.sorted" sorttests="true"/> | |
<property name="continue.after.failing.tests" value="true"/> <!-- fallback --> | |
<subant target="test" buildpath="${modules.test.sorted}" inheritrefs="false" inheritall="false"> | |
<property name="cluster.path.evaluated" value="${cluster.path.evaluated}"/> <!-- Just for speed of pre-7.0 projects --> | |
<property name="continue.after.failing.tests" value="${continue.after.failing.tests}"/> | |
</subant> | |
</target> |