[zeromq-dev] CZTop, a new CZMQ binding for Ruby
paddor
paddor at gmail.com
Thu Jan 21 10:31:00 CET 2016
On 21 Jan 2016, at 10:00, Pieter Hintjens <ph at imatix.com> wrote:
> Patrik, it might be worth adding the gem packaging to zproject. We do
> this already for the Java/JNI binding, for instance, to produce
> Android packages automatically.
Good point. I'll think about it. But right now it doesn't seem that straight forward to me. When exactly does it generate new Android packages?
It's basically just the Rakefile and the <project-name>.gemspec file. Those can be generated by `bundle gem <name>` when starting a new gem. And releasing a gem (tagging and uploading to rubygems.org) is `rake release`.
Not sure how exactly you want to integrate these into zproject.
czmq-ffi-gen also has a few manually written files, like the one that require()s the generated files along with a manually written file that contains the gem version. And of course, the rudimentary test suite is also written manually. At least the test examples for creating instances of zclasses could be generated, though. And the README.
The czmq-ffi-gen repo just uses CZMQ's repo as a submodule under vendor/czmq. Then there's a symlink lib/czmq-ffi-gen/czmq -> vendor/czmq. The fileglobs in the czmq-ffi-gen.gemspec file will cause all files in lib/ to be packed into the .gem file.
One would have to have the ability to mix generated and manually written files in the bindings/ruby/ directory.
Or maybe there needs to be an even lower low-level gem which contains only generated files, even the README. And automatic version bumping. Maybe synchronize the version with CZMQ, plus another digit for the build.
Just brainstorming here.
More information about the zeromq-dev
mailing list