birdwatcher icon indicating copy to clipboard operation
birdwatcher copied to clipboard

Module options treated as String instead of Fixnum

Open michael-myers opened this issue 8 years ago • 1 comments

For certain modules, like urs/most_shared, the user can set one of the module options, and it should be treated as an integer.

For example, I think I am supposed to set it as such:

set MIN_SHARE_COUNT 3

It always seems to be treated as a string? When I run the module:

ArgumentError: comparison of Fixnum with String failed

Any time the option is a date/time, it seems to work fine. It's only when options are intended to be integers.

michael-myers avatar Jan 27 '17 04:01 michael-myers

Thanks for reporting! This sounds like a pretty easy fix.

michenriksen avatar Jan 27 '17 08:01 michenriksen