aritcaptcha 1.16.0 → 1.17.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.16.0
1
+ 1.17.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.16.0"
8
+ s.version = "1.17.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"]
@@ -23,12 +23,7 @@ module Aritcaptcha
23
23
  operator = non_default_operations.to_a[rand(non_default_operations.size)][1]
24
24
  end
25
25
 
26
- options = {
27
- :one => 50,
28
- :two => 50
29
- }.merge options
30
-
31
- equation, result = Aritcaptcha::Calculation.generate_calculation options, options[:one].to_i, options[:two].to_i
26
+ equation, result = Aritcaptcha::Calculation.generate_calculation options, 50, 50
32
27
  session[:equation] = [equation_key, eval(equation)]
33
28
  puts "=========================================================="
34
29
  puts equation
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: 87
4
+ hash: 83
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 16
8
+ - 17
9
9
  - 0
10
- version: 1.16.0
10
+ version: 1.17.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guilherme Nascimento