Ruby n00b here... wouldn't it be possible to query/install/load gems dynamically? Say for example we configure the gradle plugin in such a way a developer that would like to use additional backends and/or asciidoctor version just has to specify the following
asciidoctor {
asciidoctorVersion = '0.2.0'
backend = 'angularjs'
}
With these instructions the plugin will check if asciidoctor-0.2.0 gem is installed, if not, then will fetch and install required files. Next it will check for the angularjs backend, if not available then fetch & install. Finally loads asciidoctor, configures the chosen backend and goes to town with asciidoc sources.
I'd suspect gems can be queried/fetched/installed using a standard Ruby API, can't they?
http://discuss.asciidoctor.org/Asciidoctor-backends-tp16p30.htmlIf you reply to this email, your message will be added to the discussion below:To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
Free forum by Nabble | Edit this page |