updated the gemspec to be able to use it with jruby 1.7.2
gemspec supports jruby
Does using RUBY_PLATFORM check produce the correct result if you build the gem and then install from the .gem file? Or is it dependent on the build platform matching the install platform?
yes. on linux running with jruby from rvm it compiled and installed and i was able to run it, but i didn't run the specs.
I'm working on getting a version of the gem we can release to rubygems as we're doing with the MRI version now. It should be possible from looking at how the bson gem releases a RUBY platform gem and a JAVA platform gem as can be seen from the version list here: http://rubygems.org/gems/bson.
0.7.0 has been pushed to rubygems with both a ruby and java (https://rubygems.org/gems/metasploit_data_models/versions/0.7.0)(https://rubygems.org/gems/metasploit_data_models/versions/0.7.0-java) version
@vpereira do you want/need jruby support for metasploit-framework or do you just need metasploit_data_models in JRuby to pull out data that metasploit-framework has put into the database? If you want JRuby support for metasploit-framework, I've started a branch on my fork. Unfortunately, it has a lot of errors in the specs. If you want more metasploit-framework developers @rapid7 to look at making JRuby work for metasploit-framework you may want to reopen the old feature request on Redmine
I was actually trying to run metasploit-framework over jruby. I wanted to test an IPS signature database and I developed a tool to do it https://github.com/vpereira/meta-x-ids that was just dying on MRI.. over JVM with real threads it worked, but I didn't test extensively the framework on jruby.