More work on Corundum

September 9th, 2008

So last night I did a little more work on Corundum (still not totally satisfied with the name).  I managed to get most of the pom stuff and JRuby dependency packaged.  Now any project that uses it just needs this simple pom file and this assembly file.  The assembly file is still a thorn in [...]

Read full article | Comments

An experiment with Maven and JRuby

August 30th, 2008

So in following with my last JRuby post, this weekend I came up with the next piece to the puzzle; how to use maven to build a self-contained jar file that runs ruby scripts.  It’s still pretty raw and lacking an interesting name, but I threw my test code up on github for now to [...]

Read full article | Comments

1 file, 1 message, 1 member

July 30th, 2008

PhillyOnRails had a business meeting tonight.  Colin gave a great intro talk on Sinatra and Trotter did the same for Ruby-debug.  Thanks to both you guys for the talks!
Before the meeting we discussed the state of the slightly-buggy mailing list and thought it would be best to move to a google group.  So I set it [...]

Read full article | Comments

BerkelyDB Java Edition in JRuby

July 20th, 2008

At work I’ve recently been tasked with figuring out how to backup and rename databases in the Berkeley DB store that’s in one of our middleware components.  So I thought I’d try it out in JRuby.  Getting the basics was surprisingly easy:
module J
  require 'java'
  require 'je-3.2.44.jar'
  import 'com.sleepycat.je.Environment'
  import 'com.sleepycat.je.EnvironmentConfig'
end

conf = J::EnvironmentConfig.new
env = J::Environment.new(java.io.File.new('/opt/data/bdb'), conf)

if ARGV.length == 2
  env.get_database_names.each [...]

Read full article | Comments