aritcaptcha 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/aritcaptcha.gemspec +1 -1
- data/lib/aritcaptcha/aritcaptcha_helper.rb +2 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.13.0
|
data/aritcaptcha.gemspec
CHANGED
@@ -14,11 +14,9 @@ module Aritcaptcha
|
|
14
14
|
number2 = options[:two] || 50
|
15
15
|
operation = options[:op] || OPERATIONS[rand(OPERATIONS.size)]
|
16
16
|
|
17
|
-
result = nil
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
end
|
18
|
+
equation, result = Aritcaptcha::Calculation.generate_calculation number1, number2, operation
|
19
|
+
|
22
20
|
|
23
21
|
session[:equation] = [equation_key, eval(equation)]
|
24
22
|
|
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: 35
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 13
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.13.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Guilherme Nascimento
|