It's been a while and the code has been gone for a while so there's no way to diagnose it now. My guess is to do with reddit's pretty loose implementation of the OAuth2 framework.
Nevertheless, if you're using Ruby and want to connect to reddit via OAuth2, maybe you might prefer taking a look at redd.