[ANN] yip v0.8

Discussion in 'Ruby' started by bruce@codedbliss.com, Oct 25, 2003.

  1. Guest

    --J/dobhs11T7y2rNN
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: inline
    Content-Transfer-Encoding: quoted-printable

    All,

    I'm announcing the initial release (0.8) of yip, a library which adds
    YPATH-based interpolation to whytheluckystiff's YAML implementation,
    Syck (which is included with Ruby 1.8).

    This library is designed primarily for use in configuration
    files, but may be useful elsewhere.

    You can find it at the RAA: http://raa.ruby-lang.org/list.rhtml?name=3Dyip
    or download it directly at http://codedbliss.com/releases/yip-0.8.tar.gz

    =46rom the README:

    yip uses YPATHs to find nodes referenced for interpolation. See
    http://yaml.freepan.org/index.cgi?YpathBrainstorm for more
    information on YPATH.

    Here's a small example:

    ---
    author: Bruce Williams
    message: %author% wrote this.

    =3D> { 'author' =3D> 'Bruce Williams', 'message' =3D> 'Bruce Williams
    wrote this.' }

    Simple interpolation is done using %YPATH% notation, as is done
    above. You can also use a sprintf variant:

    ---
    author: Bruce Williams
    version: 0.8
    message: >
    %author% says, "Here's
    the version with two
    extra zeros %(version)1.3f"

    The sprintf notation is the standard notation %1.3f, but
    the YPATH is included in parenthesis after the '%'. This may
    look eerily familiar to people with Python experience.

    Note: In the event a YPATH resolves to a complex datatype,
    the data is interpolated as YAML (without the document=20
    separator).

    --=20
    Bruce Williams - bruce at codedbliss.com

    --J/dobhs11T7y2rNN
    Content-Type: application/pgp-signature
    Content-Disposition: inline

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/misU+9TEBqLWMJERAhluAJ9tfrunDyqEcXSNQLPckWLzRNk0fQCeOBvZ
    1cTGLzz/ugDrB62mYXfM+Uk=
    =w5Pt
    -----END PGP SIGNATURE-----

    --J/dobhs11T7y2rNN--
     
    , Oct 25, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Sampson [MSFT]

    [ANN]: NNTP Server slow downs.

    Mike Sampson [MSFT], Oct 7, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    428
    Mike Sampson [MSFT]
    Oct 7, 2003
  2. Mike Sampson [MSFT]

    [ANN]: NNTP Server slow downs.

    Mike Sampson [MSFT], Dec 6, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    520
    Mike Sampson [MSFT]
    Dec 6, 2003
  3. Richard Grimes [MVP]

    ANN: Free .NET Workshops

    Richard Grimes [MVP], Jul 4, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    518
    Richard Grimes [MVP]
    Jul 4, 2005
  4. Tom Hawkins

    [ANN] Confluence 0.7.1 Released

    Tom Hawkins, Oct 23, 2003, in forum: VHDL
    Replies:
    0
    Views:
    509
    Tom Hawkins
    Oct 23, 2003
  5. Michael Livsey
    Replies:
    3
    Views:
    452
    Michael Livsey
    May 27, 2004
Loading...

Share This Page