Skip to content

Instantly share code, notes, and snippets.

View BanzaiMan's full-sized avatar

Hiro Asari BanzaiMan

View GitHub Profile
$ jruby -S gem install -s http://rubygems.org --verbose bundlerGET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
GET http://rubygems.org/quick/Marshal.4.8/bundler-0.9.25.gemspec.rz
302 Found
GET http://production.s3.rubygems.org/quick/Marshal.4.8/bundler-0.9.25.gemspec.rz
200 OK
Installing gem bundler-0.9.25
Downloading gem bundler-0.9.25.gem
[java] MSPEC: {:compile_mode=>"OFF", :spec_config=>"/Users/asari/Development/src/jruby/spec/jruby.1.8.mspec", :jit_threshold=>20, :jit_max=>-1, :objectspace_enabled=>true, :thread_pooling=>false, :reflection=>false, :compat=>"RUBY1_8"}
[java] JAVA options: {:failonerror=>"false", :dir=>"/Users/asari/Development/src/jruby", :resultproperty=>"spec.status.OFF", :fork=>"true", :classname=>"org.jruby.Main", :maxmemory=>"512M"}
[java] jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-05-24 3c271f5) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
[java]
[java]
[java] 1)
[java] Marshal::load loads an array containing objects having marshal_dump method, and with proc FAILED
[java] Expected ["stuff",
[java] #<UserMarshal:0x17d0 @data="stuff">,
[java] "my data",
[system]:jruby[git:master] $ ruby1.9 -v; ruby1.9 -e 'p (3134137183271432143124.21611564636388508).to_s'
ruby 1.9.3dev (2010-05-21 trunk 27938) [x86_64-darwin10.3.0]
"3134137183271432000000.0"
[system]:jruby[git:master] $ ruby -v; ruby -e 'p (3134137183271432143124.21611564636388508).to_s'
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
"3.13413718327143e+21"
[system]:jruby[git:master] $ ruby1.9 -ve 'p 12345678901234567890123456789012.0.to_s'
ruby 1.9.3dev (2010-05-21 trunk 27938) [x86_64-darwin10.3.0]
"12345678901234567000000000000000.0"
[system]:jruby[git:master] $ ruby1.9 -ve 'p 123456789012345678901234567890123.0.to_s'
ruby 1.9.3dev (2010-05-21 trunk 27938) [x86_64-darwin10.3.0]
"1.2345678901234569e+32"
[system]:jruby[git:master] $ ruby -ve 'p 12345678901234567890123456789012.0.to_s'
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
"1.23456789012346e+31"
$ jruby -v -J-Djruby.launch.inproc=false -J-Djruby.debug.launch=true -e 'system("ruby -v")'
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-06-27 7ad2e67) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
ShellLauncher: Launching with shell
ShellLauncher: Trying file /usr/local/sbin/ruby
ShellLauncher: Trying file /usr/local/bin/ruby
ShellLauncher: Trying file /usr/bin/ruby
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ ant spec:ci_interpreted_19
Buildfile: /Users/asari/Development/src/jruby/build.xml
init:
jar:
init:
extract-rdocs:
$ ant spec:ci_interpreted_19
Buildfile: /Users/asari/Development/src/jruby/build.xml
init:
jar:
init:
extract-rdocs:
$ jruby -S irb
irb(main):001:0> require 'java'
=> true
irb(main):002:0> 10.to_java(:long)
=> #<Java::JavaLang::Long:0x3951f910>
$ jruby -J-Djava.library.path=jrwin32ole/lib mspec/bin/mspec -T-Ijrwin32ole/lib rubyspec/library/win32ole/win32ole rubyspec/library/win32ole/win32ole_event/ 2>&1 > results.txt
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-07-09 5cda549) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java]
EEE.FPOINTER: 6107260
.POINTER: 6107260
.EEEEEEE...FEE.FF.F..
1)
WIN32OLE#_getproperty gets name ERROR
NativeException: com.jacob.com.ComFailException: Can't map names to dispid:_getproperty
$ jruby --1.9 -e 'p /(?<tag>\w+)/.match("foo 12345")[:tag]'
"foo"