rack-recaptcha 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -25,7 +25,7 @@ You have to require 'rack-recaptcha' in your gemfile.
25
25
  Now configure your app to use the middleware. This might be different across each web framework.
26
26
 
27
27
  #### Sinatra
28
- ## app.rb
28
+ ## app.rb
29
29
  use Rack::Recaptcha, :public_key => 'KEY', :private_key => 'SECRET', :paths => 'PATH'
30
30
  helpers Rack::Recaptcha::Helpers
31
31
 
@@ -21,6 +21,10 @@ module Rack
21
21
  end
22
22
 
23
23
  def call(env)
24
+ dup._call(env)
25
+ end
26
+
27
+ def _call(env)
24
28
  request = Request.new(env)
25
29
  if request.params[CHALLENGE_FIELD] and
26
30
  request.params[RESPONSE_FIELD] and (not @paths or @paths.include?(request.path))
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{rack-recaptcha}
3
- s.version = "0.2.1"
3
+ s.version = "0.2.2"
4
4
  s.required_rubygems_version = ">=1.3.6"
5
5
  s.authors = ["Arthur Chiu"]
6
6
  s.date = %q{2010-07-18}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-recaptcha
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arthur Chiu