aritcaptcha 1.10.0 → 1.11.0
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.
- data/VERSION +1 -1
- data/aritcaptcha.gemspec +1 -1
- data/lib/aritcaptcha/aritcaptcha_verify.rb +2 -4
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.11.0
|
data/aritcaptcha.gemspec
CHANGED
|
@@ -5,10 +5,8 @@ module Aritcaptcha
|
|
|
5
5
|
SOLV = 1
|
|
6
6
|
|
|
7
7
|
def verify_aritcaptcha(params)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (solv_key = params[:equation_key]) and (solv = params[:equation])
|
|
11
|
-
return (session[:equation] and session[:equation][SOLV_KEY] == solv_key.to_i and session[:equation][SOLV] == solv.to_i)
|
|
8
|
+
if (equation_key = params[:equation_key]) and (equation = params[:equation])
|
|
9
|
+
return (session[:equation] and session[:equation][SOLV_KEY] == equation_key.to_i and session[:equation][SOLV] == equation.to_i)
|
|
12
10
|
end
|
|
13
11
|
end
|
|
14
12
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aritcaptcha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 59
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
8
|
+
- 11
|
|
9
9
|
- 0
|
|
10
|
-
version: 1.
|
|
10
|
+
version: 1.11.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Guilherme Nascimento
|