michenriksen / birdwatcher

Data analysis and OSINT framework for Twitter
https://michenriksen.com/blog/birdwatcher-twitter-osint-framework/
MIT License
410 stars 65 forks source link

Module options treated as String instead of Fixnum #7

Open michael-myers opened 7 years ago

michael-myers commented 7 years ago

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.

michenriksen commented 7 years ago

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