aritcaptcha 1.17.0 → 1.18.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 -8
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.18.0
|
data/aritcaptcha.gemspec
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
module Aritcaptcha
|
2
2
|
|
3
3
|
module AritcaptchaHelper
|
4
|
-
ADD = '+'
|
5
|
-
SUB = '-'
|
6
|
-
DIV = '/'
|
7
|
-
MUL = '*'
|
8
|
-
|
9
|
-
OPERATIONS = [ADD, SUB, DIV, MUL]
|
10
4
|
|
11
5
|
def aritcaptcha_tag(options={})
|
12
6
|
equation_key = Time.now.to_i
|
@@ -24,13 +18,13 @@ module Aritcaptcha
|
|
24
18
|
end
|
25
19
|
|
26
20
|
equation, result = Aritcaptcha::Calculation.generate_calculation options, 50, 50
|
27
|
-
session[:equation] = [equation_key, eval(equation)]
|
21
|
+
#session[:equation] = [equation_key, eval(equation)]
|
28
22
|
puts "=========================================================="
|
29
23
|
puts equation
|
30
24
|
puts result
|
31
25
|
puts "=========================================================="
|
32
26
|
|
33
|
-
options[:op] = operator
|
27
|
+
#options[:op] = operator
|
34
28
|
|
35
29
|
if options[:html]
|
36
30
|
options = options[:html].inject([]){|dump, pair| dump << "#{pair[0]}=\"#{pair[1]}\""}
|
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: 95
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 18
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.18.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Guilherme Nascimento
|