On 15 Mar 2013, at 19:13, François Perrad <francois.per...@gadz.org> wrote:
> 2013/3/6 Gary V. Vaughan <g...@vaughan.pe>:
>> Rockspec for specl version 2 attached.
> 
> Hi Gary,

Salut François,

> It is a great idea to use YAML instead of plain Lua (like RSpec uses
> plain Ruby).

Thanks for your interest :)

> According http://yaml.org/, there are 2 C libraries :
> - Syck (only YAML 1.0)
> - LibYAML
> 
> And on the Lua side :
> - luaYAML is a binding of Syck, with a rockspec
> - yaml (yaml.luaforge.net) is a binding of LibYAML, without rockspec,
> and hasn't an external dependency of LibYAML but a out dated copy of sources
> - specl has a copy of lyaml.c (the only useful file of yaml) and an
> external dependency for LibYAML
> 
> Could you put the YAML part of Specl in an isolated project (with its
> own rockspec) ?

Do you mean split out the lyaml library into a separate rock?  That seems
like a good idea, especially as I plan to write a yaml+lua based make/rake
tool at some point.

> Another side, the Specl test suite works fine with luaYAML.
> Just replace :
>        local yaml = require 'lyaml'
> by :
>        require 'yaml' -- returns an useless 'true', and polulates 2
> globals : yaml & syck
>        local yaml = yaml

Interesting.

Although, I had to build Specl before I could use it to write tests for itself,
so the testsuite has very poor coverage at the moment.

It would be really cool if Luarocks had some facility for virtual dependencies,
so that, for example, both lyaml and luaYAML could satisfy a yaml dependency,
and then Specl could depend upon yaml, which would in turn be satisfied if
either of lyaml or luaYAML were installed...

Cheers,
-- 
Gary V. Vaughan (gary AT vaughan DOT pe)
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to