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 CHANGED
@@ -1 +1 @@
1
- 1.12.0
1
+ 1.13.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.12.0"
8
+ s.version = "1.13.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"]
@@ -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
- while result.nil? or !result.is_a?(Integer) or result < 0
20
- equation, result = Aritcaptcha::Calculation.generate_calculation number1, number2, operation
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: 39
4
+ hash: 35
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 12
8
+ - 13
9
9
  - 0
10
- version: 1.12.0
10
+ version: 1.13.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guilherme Nascimento