0.0
No commit activity in last 3 years
No release in over 3 years
A quick and dirty wrapper around the http://csvlint.io webservice
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
~> 10.0
>= 0

Runtime

 Project Readme

Build Status Dependency Status Coverage Status Code Climate Gem Version License Badges

DirtyHarry

I know what you’re thinking: 'Did he fire six shots or only five?' Well, to tell you the truth, in all this excitement, I’ve kinda lost track myself. But being this is a .44 Magnum, the most powerful handgun in the world, and would blow your head clean off, you’ve got to ask yourself one question: 'Do I feel lucky?' Well, do ya, punk?

A quick and dirty wrapper around the http://csvlint.io Webservice.

So called because CSVlint -> Clint -> Clint Eastwood -> Dirty Harry. Also, it's quick and dirty. And also NAMING THINGS IS HARD OK?

Installation

Add this line to your application's Gemfile:

gem 'dirty_harry'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dirty_harry

Usage

validation = DirtyHarry::Validation.new(URL_TO_YOUR_CSV)
validation.url #=> http://csvlint.io/validations/53566ef96373767abf010000
validation.source #=> URL_TO_YOUR_CSV
validation.state #=> One of 'valid', 'invalid' or 'warnings'
validation.badge #=> http://csvlint.io/validations/53566ef96373767abf010000.svg

Contributing

  1. Fork it ( https://github.com/[my-github-username]/dirty_harry/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request