viafintech / gcra-ruby

Generic cell rate algorithm (leaky bucket) implementation for rate limiting
MIT License
51 stars 10 forks source link

Ensure the key argument is a String #2

Closed forsbergplustwo closed 6 years ago

forsbergplustwo commented 6 years ago

Small change that ensures the key argument is a String. Otherwise we get a "no implicit conversion of Integer into String" error when passing Integers, for example user.id

tobischo commented 6 years ago

Thanks for the change! Merged and released as v1.0.3 https://rubygems.org/gems/gcra/versions/1.0.3

forsbergplustwo commented 6 years ago

Fantastic, thanks for the quick merge.. as well as the handy gem 👍