frictionlessdata / tableschema-rb

A Ruby library for working with JSON Table Schema.
MIT License
12 stars 10 forks source link

Use hash keys consistently #31

Closed georgiana-b closed 7 years ago

georgiana-b commented 7 years ago

Throughout the gem the descriptor hashes sometimes have string keys sometimes have symbol keys. This is problematic when the values are accessed by key name because hash[:key] yields different from hash['key'].

This PR attempts to avoid such issues by converting all hash keys to symbols, as recommended by the Ruby style guide. I also set up a minimal Rubocop linter just to make sure we avoid such issues in the future.

georgiana-b commented 7 years ago

@roll I removed the request for review because this PR contains mostly boring cosmetic and syntax changes that are not worth your time.