[zeromq-dev] CZTop, a new CZMQ binding for Ruby
Pieter Hintjens
ph at imatix.com
Thu Jan 21 11:09:08 CET 2016
The zproject_java.gsl script creates a bindings/jni/android/build.sh
and makefiles. These pull in various pieces to do the work.
I'm not sure about hand-written tests, for a binding. It should IMO be
sufficient to call the C test method for each class. One can always
write test tools separately (and I think this is the way to go).
On Thu, Jan 21, 2016 at 10:31 AM, paddor <paddor at gmail.com> wrote:
> 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.
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list