RubyGems to All JVM Languages
summary
Claim: JRuby exposes RubyGems to any JVM language by using the RedBridge embedding API to start a JRuby runtime, install or point at gems, and invoke Ruby code. Demonstrations show Clojure loading DataMapper, Jython driving Cucumber, and a Rack Rails app invoked from Java by instantiating a scripting container and evaluating code. Practical notes: pass objects via shared variables, convert strings carefully, capture stderr with a writer, set gem paths or use packaging, and use setArgumentValue to pass lists and options. Performance is workable but slightly slower than native JRuby.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 2:27JVM languages and Ruby
- 5:07RedBridge API overview
- 9:15RedBridge embedding API
- 12:35RedBridge in Java
- 14:29RedBridge with Closure & Scala
- 18:03Cucumber tests from Java
- 24:09Rails with RedBridge
- 30:59Q&A: RedBridge variables
- 33:30Q&A: Ruby strings & Java
- 34:57Q&A: Data sharing
- 36:44Q&A: Packaging gems
- 38:20Q&A: Ruby 1.9 & JRuby
- 39:54Q&A: Method eval & performance








