#347 (ok 2.11) YAML Data Export

Work_in_progress
closed-accepted
1
2007-08-21
2007-02-12
No

I've put together a quick export file that allows for exporting to the YAML format. This a commonly used format in the Ruby on Rails community.

Here's the spec: http://yaml.org/spec/current.html

This file would go into the libraries/export directory.

Thanks!

Discussion

  • Bryce Thornton

    Bryce Thornton - 2007-02-12
     
  • Bryce Thornton

    Bryce Thornton - 2007-02-12

    Logged In: YES
    user_id=1716849
    Originator: YES

    I've also added the basic strings to the lang files. I ran the add_message.sh script and it seemed to rearrange a few files to make them alphabetical. I assume this is desired.

    File Added: pma_yaml.diff

     
  • Bryce Thornton

    Bryce Thornton - 2007-02-12

    Lang File Diffs

     
  • Marc Delisle

    Marc Delisle - 2007-02-18
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2007-02-18

    Logged In: YES
    user_id=210714
    Originator: NO

    Merged for 2.11, thanks. I added a generic $strOptions and did not use strYAML but just YAML, it works and does not have to be translated.

     
  • Marc Delisle

    Marc Delisle - 2007-02-18
    • priority: 5 --> 1
    • summary: YAML Data Export --> (ok 2.11) YAML Data Export
    • status: open --> open-accepted
     
  • Alexey Zakhlestin

    Logged In: YES
    user_id=171151
    Originator: NO

    Syck library's php-binding has yaml-export support now. it can be detected and used, if present, to produce guaranteed-valid yaml.
    This library will be released using pecl in the near future
    http://blog.milkfarmsoft.com/?p=57

    something like this:
    <?php
    if (extension_loaded('syck') and version_compare(phpversion('syck'), '0.3', '>=')) {
    $res = syck_dump($array_to_dump);
    } else {
    // use home-made function
    }

     
  • Marc Delisle

    Marc Delisle - 2007-08-21
    • status: open-accepted --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks