Closed tit closed 3 years ago
I'm getting this error too when trying to run the CLI tool.
I think present?
is not a core Ruby method, but comes from Rails (ActiveSupport) – could this be a Rails dependency that's not been declared, but hasn't caused problems elsewhere because the main use case for this gem is within a Rails app (csvlint.io) where the method would be available?
Update: This error occurs when using Ruby 2.6, but not when using Ruby 2.4. The simplest fix for a user is to switch to Ruby 2.4 or 2.5 when using this gem. For anyone who just needs a CLI tool to validate a CSV with a table schema (which is what I needed) and isn't specifically tied to Ruby, there's also goodtables.
It seems that this gem doesn't support Ruby 2.6, and this is now reflected in the gemspec, but the latest release available from Rubygems (0.4.0) doesn't explicitly have this requirement, so there's nothing stopping a user running 2.6 from installing it.
It might be helpful to release a new version, or at least mention in the README which Ruby versions are supported?
Good spot, thanks. We do need to get a new version released now that we're trying to get it back into a maintained state. I'll see if we can do that soon.
Hi, I try test csvlint from CLI. But csvlint return error:
undefined method
present?' for nil:NilClass (NoMethodError)`. Why?↓