Permalink
Browse files

Bump to version 4.0.2.

Bug fix for Ruby 1.8.7.
  • Loading branch information...
1 parent 2cbaf2f commit 5b46501b12dfeb73eace53c726beb31bfa698201 @rafaelivan rafaelivan committed Sep 26, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/deathbycaptcha/client.rb
  2. +2 −2 lib/deathbycaptcha/version.rb
@@ -185,7 +185,7 @@ def load_file(captcha, is_raw_content=false)
if file.nil?
raise DeathByCaptcha::Errors::CaptchaEmpty
- elsif config.max_captcha_file_size <= file.size
+ elsif config.max_captcha_file_size <= File.size?(file).to_i
raise DeathByCaptcha::Errors::CaptchaOverflow
end
@@ -1,4 +1,4 @@
module DeathByCaptcha
- VERSION = "4.0.1"
- API_VERSION = "DBC/Ruby v4.0.1"
+ VERSION = "4.0.2"
+ API_VERSION = "DBC/Ruby v4.0.2"
end

0 comments on commit 5b46501

Please sign in to comment.