Exodus
Exodus copied to clipboard
JRuby support
I've been looking into providing JRuby support to this gem.
There are a couple of hurdles:
- Dependency upon
bson_ext
, which uses C extensions- This could be solved quite easily by adding an
unless RUBY_PLATFORM ~= /java/
in the gemspec, so thatbson_ext
isn't used on JRuby
- This could be solved quite easily by adding an
- Time precision is more coarse in JRuby
- This messes up the
completed?
method inlib/exodus/migrations/migration.rb
-
time_it
will very often return0.0
, especially if thedown
action is empty - Since
execution_time == 0
is used to check whether execution has happened, we get errors.
- This messes up the
I'd happily provide a PR, but I need help figuring out a better implementation for completed?
- one that doesn't rely on the precision of Time.now
.