Data-Liberation-Front / csvlint.rb

The gem behind http://csvlint.io
MIT License
287 stars 87 forks source link

Dialect hash. Support key symbol. #168

Open kwent opened 8 years ago

kwent commented 8 years ago

Hi,

Dialect hash should support ruby key symbol.

dialect = {
    header: true,
    delimiter:  ","
}
validator = Csvlint::Validator.new( "http://example.org/data.csv", dialect )

Right now if we are doing that it's all ignored and it's confusing (yes i did the mistake to put key symbol instead key string).

Regards