Project

csvundle

0.0
No commit activity in last 3 years
No release in over 3 years
A WIP gem to package csvs for access terminal.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
~> 10.0
>= 0
 Project Readme

CSVundle

Codeship Status for cometaworks/CSVundle

CSVundle is a utility for Access Terminal. It assists in the generation of CSV's for a given set properties.

Installation

Add this line to your application's Gemfile:

gem 'csvundle', git: 'https://github.com/accessterminal/csvundle.git', branch: 'master'

And then execute:

$ bundle

Usage

# It is quite a simple utility, with an exposed but uneeded API. In it's final implementation,
# the functionality needed will simply be:
# csv = CSVundle.csv_for(my_data, :lienalytics)
# However, the internal API has an `AccessCSV` class that can be used like so:
csv = CSVundle::AccessCSV.new
csv.colums << ["batHeads", "TOES", "ViciousFoes", "friends", "number of jerrys"]
csv.rows <<   [1, 6, 1, 99, "3.14159365358979323846264338327950288419"]
csv.rows <<   [2, 4, 14, 3, "3.14159365358979323846264338327950288419"]
csv.rows_for("number of jerrys")
# => { "number of jerrys": ["3.14159365358979323846264338327950288419", "3.14159365358979323846264338327950288419"] }
csv.normalized_columns
# => [:bat_heads, :toes, :vicious_foes, :friends, :"number of jerrys"]
csv.viperize(:BatFarts)
# => :bat_farts

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/csvundle. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.