relevance / diametric

Diametric is a library for building schemas, queries, and transactions for Datomic from Ruby objects.
MIT License
169 stars 28 forks source link

Configurable datomic version #51

Closed wantmys2000 closed 10 years ago

wantmys2000 commented 10 years ago

Is there a way to configure what version of datomic is installed with diametric?

The current repository is configured to a version of datomic that is a few revisions old and we currently need to fork the repository to change it.

yokolet commented 10 years ago

Allowing user to specify any datomic version is one of wishlist of Diametric. I'll have a look at lock_jar gem and see how we can do this.

Currently, you need to go diametric directory you installed, and edit datomic_version.yml.

yokolet commented 10 years ago

I added a simple trick. As in the "Datomic Version" section of README.md, if the datomic version file is specified by ENV["DATOMIC_VERSION_PATH"], before requiring diametric, user specified version will be used.

There might be more elegant solution, but better than nothing.

For reference, upcoming version will support Datomic 0.9.4532.