We encountered an issue where the Twitter.com web interface is reporting a different length than the Ruby gem when a "\r\n" line break is used. eg:
Web interface (3 characters):

Ruby (4 characters):
> Twitter::Validation.tweet_length "a\r\nb"
=> 4
As a work around, we are going to use a string replace before validating to change "\r\n" to "\n".
Not sure if this should be considered a bug in this gem or a string encoding issue (problem was found on Mac OS 10.10), but wanted to report in case it is a bug. Any thoughts?
We encountered an issue where the Twitter.com web interface is reporting a different length than the Ruby gem when a
"\r\n"line break is used. eg:Web interface (3 characters):

Ruby (4 characters):
As a work around, we are going to use a string replace before validating to change
"\r\n"to"\n".Not sure if this should be considered a bug in this gem or a string encoding issue (problem was found on Mac OS 10.10), but wanted to report in case it is a bug. Any thoughts?