rack-recaptcha 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/recaptcha/helpers.rb +2 -1
- data/rack-recaptcha.gemspec +1 -1
- metadata +53 -58
@@ -67,7 +67,8 @@ module Rack
|
|
67
67
|
# Helper to return whether the recaptcha was accepted.
|
68
68
|
def recaptcha_valid?
|
69
69
|
test = Rack::Recaptcha.test_mode
|
70
|
-
test.nil?
|
70
|
+
return test unless test.nil?
|
71
|
+
defined?(request) ? request.env['recaptcha.valid'] : env['recaptcha.valid']
|
71
72
|
end
|
72
73
|
|
73
74
|
end
|
data/rack-recaptcha.gemspec
CHANGED
metadata
CHANGED
@@ -1,82 +1,79 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-recaptcha
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.6.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Arthur Chiu
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2010-07-18 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: json
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2153769860 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: riot
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: *2153769860
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: riot
|
27
|
+
requirement: &2153769400 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
29
|
+
requirements:
|
32
30
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
31
|
+
- !ruby/object:Gem::Version
|
34
32
|
version: 0.12.3
|
35
33
|
type: :development
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rack-test
|
39
34
|
prerelease: false
|
40
|
-
|
35
|
+
version_requirements: *2153769400
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rack-test
|
38
|
+
requirement: &2153768940 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
40
|
+
requirements:
|
43
41
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
42
|
+
- !ruby/object:Gem::Version
|
45
43
|
version: 0.5.7
|
46
44
|
type: :development
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: fakeweb
|
50
45
|
prerelease: false
|
51
|
-
|
46
|
+
version_requirements: *2153768940
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: fakeweb
|
49
|
+
requirement: &2153768480 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
|
-
requirements:
|
51
|
+
requirements:
|
54
52
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
53
|
+
- !ruby/object:Gem::Version
|
56
54
|
version: 1.3.0
|
57
55
|
type: :development
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: rr
|
61
56
|
prerelease: false
|
62
|
-
|
57
|
+
version_requirements: *2153768480
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rr
|
60
|
+
requirement: &2153768020 !ruby/object:Gem::Requirement
|
63
61
|
none: false
|
64
|
-
requirements:
|
62
|
+
requirements:
|
65
63
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
64
|
+
- !ruby/object:Gem::Version
|
67
65
|
version: 1.0.2
|
68
66
|
type: :development
|
69
|
-
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2153768020
|
70
69
|
description: Rack middleware Captcha verification using Recaptcha API.
|
71
70
|
email: mr.arthur.chiu@gmail.com
|
72
71
|
executables: []
|
73
|
-
|
74
72
|
extensions: []
|
75
|
-
|
76
|
-
extra_rdoc_files:
|
73
|
+
extra_rdoc_files:
|
77
74
|
- LICENSE
|
78
75
|
- README.md
|
79
|
-
files:
|
76
|
+
files:
|
80
77
|
- .document
|
81
78
|
- .gitignore
|
82
79
|
- LICENSE
|
@@ -90,32 +87,30 @@ files:
|
|
90
87
|
- test/teststrap.rb
|
91
88
|
homepage: http://github.com/achiu/rack-recaptcha
|
92
89
|
licenses: []
|
93
|
-
|
94
90
|
post_install_message:
|
95
|
-
rdoc_options:
|
91
|
+
rdoc_options:
|
96
92
|
- --charset=UTF-8
|
97
|
-
require_paths:
|
93
|
+
require_paths:
|
98
94
|
- lib
|
99
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
96
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version:
|
105
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
102
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
110
106
|
version: 1.3.6
|
111
107
|
requirements: []
|
112
|
-
|
113
108
|
rubyforge_project:
|
114
|
-
rubygems_version: 1.8.
|
109
|
+
rubygems_version: 1.8.6
|
115
110
|
signing_key:
|
116
111
|
specification_version: 3
|
117
112
|
summary: Rack middleware for Recaptcha
|
118
|
-
test_files:
|
113
|
+
test_files:
|
119
114
|
- test/helpers_test.rb
|
120
115
|
- test/recaptcha_test.rb
|
121
116
|
- test/teststrap.rb
|