Sha256: 168889916a2751bfd5a0595e05f159aa39fbff55c94ba3d5137680a2d92d6e75

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# tin_opener
[![Build Status](https://travis-ci.org/dgilperez/tin_opener.svg?branch=master)](https://travis-ci.org/dgilperez/tin_opener)
[![Code Climate](https://codeclimate.com/github/dgilperez/tin_opener/badges/gpa.svg)](https://codeclimate.com/github/dgilperez/tin_opener)
[![Gem Version](https://badge.fury.io/rb/tin_opener.svg)](https://badge.fury.io/rb/tin_opener)

Opening Data, one Tin at a time.

Rails Engine developed in the context of the Ayuntamiento de Madrid's Open Data project [https://twitter.com/hashtag/openmad](#OpenMad).

## Usage

Add gem to `Gemfile`:

    gem 'tin_opener', github: 'dgilperez/tin_opener'

Add a mounting point to your `routes.rb`

    mount TinOpener::Engine => "/tin_opener"

Run migrations:

    rake tin_opener:install:migrations
    rake db:migrate

This gem provides the following models:

* `TinOpener::DataSet` is any type of data structure you declare in your data domain. It's defined by it's name and headers, which in turn is a hash of key name and data type pairs.
* `TinOpener::Record` is a instance of data belonging to a DataSet format, extracted from any CSV form.

Data input format support:

* CSV
* XLS (basic)

## TODO

Support for more data formats:

* XLST
* XLS (test different scenarios)
* XML
* Custom Data Sources

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tin_opener-0.0.2 README.md