aritcaptcha 1.17.0 → 1.18.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 CHANGED
@@ -1 +1 @@
1
- 1.17.0
1
+ 1.18.0
data/aritcaptcha.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{aritcaptcha}
8
- s.version = "1.17.0"
8
+ s.version = "1.18.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Guilherme Nascimento"]
@@ -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: 83
4
+ hash: 95
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 17
8
+ - 18
9
9
  - 0
10
- version: 1.17.0
10
+ version: 1.18.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guilherme Nascimento