Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A JRuby/Hibernate integration with Datamapper
Ruby JavaScript Java
Tree: b168d05276

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
demo
lib
spec
.gitignore
.rvmrc
LICENSE.markdown
Mavenfile
README.markdown
Rakefile
dm-hibernate-adapter.gemspec
eventlog.rb

README.markdown

Jibernate/Hibernate module for DataMapper

WARNING Don't use -o if you want to access remote repositories

You have to:

jruby -S gem install ruby-maven

setup the gems and compile the java extension

rmvn clean gem:initialize compile -- -Djruby.version=1.6.4

run the eventlog - list

rmvn gem exec eventlog.rb list -- -o -Djruby.version=1.6.4

run the eventlog - store

rmvn gem exec eventlog.rb store something -- -o -Djruby.version=1.6.4

run the eventlog - store with rollback

rmvn gem exec eventlog.rb store_rollback something -- -o -Djruby.version=1.6.4

Howtos:

how to list rake tasks (please note the jruby.rake.args part(var name))

rmvn rake -T -- -o

how to run specs?

  • AbstractAdapter specs:

    rmvn rake spec:adapter -- -o
    

    or rmvn test -- -Padapter -o

  • dm-core specs:

    rmvn rake spec:dm -- -o
    

    or rmvn test -- -Pdm -o

  • transient specs:

    rmvn rake spec:transient -- -o
    

    or rmvn test -- -Ptransient -o

when using rmvn test there will be a nice html rspec report in target/rspec-report.html. to get debug output use (use '--' only once which denotes the beginning of maven options)

    -- -Djruby.verbose -e

you can switch the jruby version by adding to the above commands

    -- -Djruby.version=1.6.3

if you are getting OutOfMemory errors, you should try to tune jruby-maven-plugin's settings

    https://github.com/mkristian/jruby-maven-plugins

and set them as properties in 'Mavenfile' - see in that file properties['jruby.jvmargs'] = '-Xmx1024m'

if you are getting problems with specs you can skip that phase:

    -- -Dmaven.test.skip=true

Note

the ruby-maven setup will generate a pom.xml which can be used by proper maven3.

Something went wrong with that request. Please try again.