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.
Files changed (3) hide show
  1. data/lib/twitter/base.rb +2 -0
  2. data/twitter.gemspec +1 -1
  3. 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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{twitter}
3
- s.version = "0.3.7.1"
3
+ s.version = "0.3.7.2"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["John Nunemaker"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dschn-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7.1
4
+ version: 0.3.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker