Skip to content

Instantly share code, notes, and snippets.

View donv's full-sized avatar

Uwe Kubosch donv

View GitHub Profile
Gratass:support uwe$ ruby -r bundler-workarounds -S bundle exec bin/rails server
Ignoring nio4r-1.2.1 because its extensions are not built. Try: gem pristine nio4r --version 1.2.1
Ignoring nokogiri-1.7.0.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.7.0.1
Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5
WARNING: kwargs in zsuper not yet implemented at /Users/uwe/.gem/truffleruby/2.4.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/query_cache.rb:89
=> Booting WEBrick
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
Exiting
bundler: failed to load command: bin/rails (bin/rails)
Gratass:support uwe$ ruby -r bundler-workarounds -S bundle update
Ignoring nio4r-1.2.1 because its extensions are not built. Try: gem pristine nio4r --version 1.2.1
Ignoring nokogiri-1.7.0.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.7.0.1
Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5
Fetching gem metadata from http://rubygems.org/.--- ERROR REPORT TEMPLATE -------------------------------------------------------
- What did you do?
I ran the command `/Users/uwe/work/intern/support/bin/bundle update`
- What did you expect to happen?
@donv
donv / ruby -S bundle exec bin slash rails server
Last active January 27, 2017 10:45
TruffleRuby with my Rails 5 app
Ignoring nio4r-1.2.1 because its extensions are not built. Try: gem pristine nio4r --version 1.2.1
Ignoring nokogiri-1.7.0.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.7.0.1
Ignoring websocket-driver-0.6.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.5
bundler: failed to load command: bin/rails (bin/rails)
LoadError: cannot load such file -- openssl.so
/Users/uwe/.rubies/graalvm-0.19-dk/jre/language/ruby/lib/ruby/truffle/openssl/openssl.rb:13:in `require'
/Users/uwe/.rubies/graalvm-0.19-dk/jre/language/ruby/lib/ruby/truffle/openssl/openssl.rb:13:in `<main>'
/Users/uwe/.gem/truffleruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/key_generator.rb:2:in `require'
/Users/uwe/.gem/truffleruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/key_generator.rb:2:in `<main>'
/Users/uwe/.gem/truffleruby/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:4:in `require'
@donv
donv / dom_parser_example.rb
Last active December 1, 2015 12:15
JRuby Xerces example
gem 'nokogiri'
import java.lang.Integer
import java.lang.System
import java.io.IOException
import java.util.ArrayList
import java.util.Iterator
import java.util.List
@donv
donv / gist:1836c1a4707c508038dc
Created May 25, 2015 01:07
Test failure without compiler:
D/org.ruboto.test.InstrumentationTestRunner( 2113): Loading test script: ssl_activity_test.rb
W/System.err( 2113): java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException
I/System.out( 2113): java.lang.reflect.Method.invokeNative(Native Method)
I/System.out( 2113): java.lang.reflect.Method.invoke(Method.java:515)
I/System.out( 2113): org.ruboto.JRubyAdapter.runRubyMethod(JRubyAdapter.java:51)
I/System.out( 2113): org.ruboto.test.InstrumentationTestRunner.loadScript(InstrumentationTestRunner.java:171)
I/System.out( 2113): org.ruboto.test.InstrumentationTestRunner.getAllTests(InstrumentationTestRunner.java:100)
I/System.out( 2113): android.test.InstrumentationTestRunner.getTestSuite(InstrumentationTestRunner.java:580)
I/System.out( 2113): android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:360)
I/System.out( 2113): android.app.ActivityThread.handleBindApplication(ActivityThread.java:4335)
@donv
donv / gist:9896b7c3890d34726efa
Created May 24, 2015 23:40
Ruboto puts failure
I/System.out( 3680): Warning: JRuby home with uri like paths may not have full functionality - use at your own risk
I/RUBOTO ( 3680): Added directory to load path: /storage/sdcard/Android/data/org.ruboto.test_app/files/scripts
D/RUBOTO ( 3680): Setting JRuby current directory to /data/data/org.ruboto.test_app/files
I/System.out( 3680): JRuby version: 9.0.0.0-SNAPSHOT
D/dalvikvm( 3680): GC_CONCURRENT freed 1571K, 11% free 14118K/15740K, paused 10ms+0ms, total 31ms
D/dalvikvm( 3680): WAIT_FOR_CONCURRENT_GC blocked 8ms
W/dalvikvm( 3680): threadid=11: thread exiting with uncaught exception (group=0xa4d28b20)
D/AndroidRuntime( 3670): Shutting down VM
E/AndroidRuntime( 3680): FATAL EXCEPTION: Setup JRuby from instrumentation test runner
E/AndroidRuntime( 3680): Process: org.ruboto.test_app, PID: 3680
@donv
donv / Gemfile
Last active August 29, 2015 14:16
Exception starting Rails with jruby-head
source 'https://rubygems.org'
gem 'rails', '4.1.9'
platform :ruby do
gem 'pg'
gem 'rmagick'
end
@donv
donv / gist:e22365e5a93a1df3379a
Created January 16, 2015 22:33
Load JRuby master on Android
W/dalvikvm( 3569): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lorg/jruby/compiler/JITCompiler;
E/RUBOTO ( 3569): Exception starting JRuby
E/RUBOTO ( 3569): java.lang.reflect.InvocationTargetException
W/System.err( 3569): java.lang.reflect.InvocationTargetException
W/System.err( 3569): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 3569): at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err( 3569): at org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:261)
W/System.err( 3569): at org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:123)
W/System.err( 3569): at org.ruboto.test.InstrumentationTestRunner$1.run(InstrumentationTestRunner.java:49)
W/System.err( 3569): at java.lang.Thread.run(Thread.java:841)
@donv
donv / mvn -Pjruby-jars
Created July 22, 2014 08:19
JRuby 1.7.x branch jruby-jars packaging failure
macbeth:jruby uwe$ date
Tue Jul 22 10:10:27 CEST 2014
macbeth:jruby uwe$ git pull
Already up-to-date.
macbeth:jruby uwe$ git status
On branch jruby-1_7
Your branch is up-to-date with 'origin/jruby-1_7'.
nothing to commit, working directory clean
macbeth:jruby uwe$ git clean -f -d
@donv
donv / ant test-extended
Last active August 29, 2015 14:04
JRuby 1.7.x branch test failure
macbeth:jruby uwe$ date
Tue Jul 22 09:50:14 CEST 2014
macbeth:jruby uwe$ git status
On branch jruby-1_7
Your branch is up-to-date with 'origin/jruby-1_7'.
nothing to commit, working directory clean
macbeth:jruby uwe$ git clean -f -d
macbeth:jruby uwe$ rvm info