Hi Patrick,
No, to be honest I haven't - probably because I wasn't aware
of it. I don't
think it's very practical though as the Perforce API is C++
based, and DL
really only looks any good for C. I need some C++ space in
order to call the
methods to convert StrDict objects into Ruby hashes (for
example).
One alternative I've considered (and I haven't entirely
given up on it yet),
is writing P4Ruby as a wrapper around 'p4 -R'. i.e. Use 'p4'
to interact with
Perforce, and parse its output. It'll be slower,
significantly so I suspect,
but portable.
For now, as much as it is a little unwieldy, building
against the API is the
best approach.
Tony
On Wednesday 22 August 2007 20:57, Bennett, Patrick wrote:
> If you did, you'd be able to just use pure Ruby and we
wouldn't have to
> compile different versions of P4Ruby every time a new
Ruby or P4API version
> came out. Right now, I have to compile it for two
platforms (Windows and
> Linux) for us to use, and it's always been, to be
honest, a bit of a PITA.
>
> Thanks...
> Patrick BennettPatrick Bennett
> phone & fax +1.317.715.8302 | patrick.bennett inin.com
>
> Interactive Intelligence Inc.
> Deliberately Innovative
> www.inin.com
>
>
> _______________________________________________
> p4ruby mailing list
> p4ruby perforce.com
>
http://maillist.perforce.com/mailman/listinfo/p4ruby
>
> !DSPAM:46ccb81e61571865617605!
_______________________________________________
p4ruby mailing list
p4ruby perforce.com
http://maillist.perforce.com/mailman/listinfo/p4ruby
|