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 -S mspec ci core/io/ | |
| jruby 1.5.0dev (ruby 1.8.7 patchlevel 174) (2009-10-17 a92f183) (Java HotSpot(TM) Client VM 1.6.0_03) [i386-java] | |
| ...............FF.....F...........F.....F............................. | |
| 1) | |
| IO#each_line yields each line to the passed block FAILED | |
| Expected ["Voici la ligne une.\n", | |
| "Here is line six.\n ci", | |
| "H", |
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
| public class FileTime extends Struct { | |
| public final Unsigned32 dwLowDateTime = new Unsigned32(); | |
| public final Unsigned32 dwHighDateTime = new Unsigned32(); | |
| public long get() { | |
| return (dwHighDateTime.get() << 32) | dwLowDateTime.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
| @jruby.exe -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,address=3232,suspend=y %* |
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/lib/nokogiri/ffi/libxml.rb b/lib/nokogiri/ffi/libxml.rb | |
| index b08d39b..204dcb9 100644 | |
| --- a/lib/nokogiri/ffi/libxml.rb | |
| +++ b/lib/nokogiri/ffi/libxml.rb | |
| @@ -4,7 +4,15 @@ module Nokogiri | |
| extend FFI::Library | |
| if RUBY_PLATFORM =~ /java/ && java.lang.System.getProperty('os.name') =~ /windows/i | |
| raise(RuntimeError, "Nokogiri requires JRuby 1.4.0 or later on Windows") if JRUBY_VERSION < "1.4.0" | |
| - ffi_lib 'libxml2', 'libxslt', 'libexslt', 'msvcrt' | |
| + |
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 -b -e "require 'rubygems'" | |
| -> builtin/core_ext/symbol | |
| <- builtin/core_ext/symbol - 30ms | |
| -> enumerator | |
| <- enumerator - 4ms | |
| -> rubygems | |
| -> rubygems/defaults | |
| <- rubygems/defaults - 3ms | |
| -> thread | |
| <- thread - 7ms |
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 -b -e "require 'rubygems'" | |
| -> builtin/core_ext/symbol | |
| <- builtin/core_ext/symbol - 42ms | |
| -> enumerator | |
| <- enumerator - 5ms | |
| -> rubygems | |
| -> rubygems/defaults | |
| <- rubygems/defaults - 4ms | |
| -> thread | |
| <- thread - 6ms |
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 -b -J-Djruby.debug.loadService.timing=true script\server | |
| -> builtin/core_ext/symbol | |
| <- builtin/core_ext/symbol - 35ms | |
| -> enumerator | |
| <- enumerator - 6ms | |
| -> D:/work/jruby-dev/rails/xxx/config/boot | |
| -> rubygems | |
| -> rubygems/defaults | |
| <- rubygems/defaults - 5ms | |
| -> thread |
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
| if RUBY_PLATFORM == 'java' | |
| require 'jruby' | |
| JRuby.runtime.instance_config.run_ruby_in_process = false | |
| end | |
| 0.upto(4) do |n| | |
| IO.popen("ruby -e 'exit(#{n})'") do |ioh| | |
| ioh.each { |line| print line } | |
| 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
| require 'ffi' | |
| module MyFFI | |
| FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000 | |
| extend FFI::Library | |
| ffi_lib 'kernel32' | |
| ffi_convention :stdcall | |
| attach_function :FormatMessageA, [:int, :pointer, :int, :int, :string, :int, :pointer], :int | |
| 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
| # | |
| # A fatal error has been detected by the Java Runtime Environment: | |
| # | |
| # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77227021, pid=6536, tid=3932 | |
| # | |
| # JRE version: 6.0_17-b04 | |
| # Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode, sharing windows-x86 ) | |
| # Problematic frame: | |
| # C [ntdll.dll+0x67021] | |
| # |
OlderNewer