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.
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 becausehash[:key]
yields different fromhash['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.