Git Product home page Git Product logo

odca-ruby's Introduction

Build Status

ODCA ruby tooling

to parse pre-prepared csv file just trigger it with:

ruby parser.rb <FILENAME>

It will create output directory within which you will find sorted per schema base generated overlays.

For information about the format of the csv take a look into examples

How to build input for parser

Parser is using csv files as an input. To make sure that the parser will be able to deal with the files you need to keep proper structure within those files. Parser use ';' as a column separator.

The flow of the parser is pretty simple:

  1. scan third row and look for overlays. The name of the overlay needs to match with the class e.g "LabelOverlay"
  2. scan each row and create schema base and specify overlays for each object. Rows should be in order sorted by schema base name. As soon as the schema base name change it is saved to the disk with all overlays and new object is created. It continues that process until eaching end of file.

All files are stored within output directory. Each time parser will override all files (in most of the case it will just create new one as the name iclude hash link)

For more details take a look on the examples or template in 'template/example.csv'

Development

Run test

rake spec

odca-ruby's People

Contributors

mitfik avatar olichwiruk avatar blelump avatar

Forkers

olichwiruk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.