fastcaptcha 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/fastcaptcha.rb +1 -1
  3. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -36,7 +36,7 @@ class FastCaptcha
36
36
  end
37
37
 
38
38
  def validate key, response
39
- rv = cache[key] == response.upcase.strip
39
+ rv = response && (cache[key] == response.upcase.strip)
40
40
  rv && cache.delete(key)
41
41
  end
42
42
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bharanee Rathna
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-05-09 00:00:00 +10:00
17
+ date: 2011-09-21 00:00:00 +05:30
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -86,8 +86,8 @@ homepage: http://github.com/deepfryed/fastcaptcha
86
86
  licenses: []
87
87
 
88
88
  post_install_message:
89
- rdoc_options:
90
- - --charset=UTF-8
89
+ rdoc_options: []
90
+
91
91
  require_paths:
92
92
  - lib
93
93
  required_ruby_version: !ruby/object:Gem::Requirement