dschn-twitter 0.3.7.1 → 0.3.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/twitter/base.rb +2 -0
- data/twitter.gemspec +1 -1
- metadata +1 -1
data/lib/twitter/base.rb
CHANGED
@@ -231,6 +231,8 @@ module Twitter
|
|
231
231
|
response = parse(response.body)
|
232
232
|
raise RateExceeded if (response/:hash/:error).text =~ /Rate limit exceeded/
|
233
233
|
response
|
234
|
+
elsif response.code == '400'
|
235
|
+
raise RateExceeded
|
234
236
|
elsif response.code == '503'
|
235
237
|
raise Unavailable, response.message
|
236
238
|
elsif response.code == '401'
|
data/twitter.gemspec
CHANGED