Ask HN Rubyists: What's one gem that you wish existed, but doesn't? |
Ask HN Rubyists: What's one gem that you wish existed, but doesn't? |
Simple Ruby gem I was surprised didn't exist (that I could find): `validates_twitter_username`
Given user input for username, ensure it is valid. Two levels of verification - one would be probably regex based that the username matches twitter restrictions (valid characters, length less than 15), one that pings twitter to confirm the account is registered. Appropriate ActiveRecord errors etc
Cronjob logging and monitoring seems to be pretty tricky and involves a lot of finicky Unix magic, so a nice wrapper would be appreciated.