kaptcha 0.0.3.6 → 0.0.3.7
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/lib/core/kaptcha.rb +3 -3
- metadata +18 -39
data/lib/core/kaptcha.rb
CHANGED
@@ -32,7 +32,7 @@ module Captcha
|
|
32
32
|
OPERATIONS = ['+', '-', '*']
|
33
33
|
|
34
34
|
def captcha_code
|
35
|
-
@@captcha_code.to_s ||= raise '
|
35
|
+
@@captcha_code.to_s ||= raise 'Undefined error.'
|
36
36
|
end
|
37
37
|
|
38
38
|
def initialize(params={}, &block)
|
@@ -49,11 +49,11 @@ module Captcha
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def captcha_desc
|
52
|
-
@@captcha_desc
|
52
|
+
@@captcha_desc rescue nil
|
53
53
|
end
|
54
54
|
|
55
55
|
def human_captcha_desc
|
56
|
-
@@human_captcha_desc
|
56
|
+
@@human_captcha_desc rescue nil
|
57
57
|
end
|
58
58
|
|
59
59
|
private
|
metadata
CHANGED
@@ -1,33 +1,22 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaptcha
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3.7
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
- 6
|
11
|
-
version: 0.0.3.6
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Bogdan Kulbida
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2012-01-09 00:00:00 Z
|
12
|
+
date: 2012-01-14 00:00:00.000000000 Z
|
20
13
|
dependencies: []
|
21
|
-
|
22
14
|
description: Form protection with simple captcha calculations.
|
23
15
|
email:
|
24
16
|
executables: []
|
25
|
-
|
26
17
|
extensions: []
|
27
|
-
|
28
18
|
extra_rdoc_files: []
|
29
|
-
|
30
|
-
files:
|
19
|
+
files:
|
31
20
|
- lib/core/kaptcha.rb
|
32
21
|
- lib/kaptcha.rb
|
33
22
|
- Rakefile
|
@@ -35,36 +24,26 @@ files:
|
|
35
24
|
- README.rdoc
|
36
25
|
homepage:
|
37
26
|
licenses: []
|
38
|
-
|
39
27
|
post_install_message:
|
40
28
|
rdoc_options: []
|
41
|
-
|
42
|
-
require_paths:
|
29
|
+
require_paths:
|
43
30
|
- lib
|
44
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
32
|
none: false
|
46
|
-
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
|
50
|
-
|
51
|
-
- 0
|
52
|
-
version: "0"
|
53
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ! '>='
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
38
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
segments:
|
60
|
-
- 0
|
61
|
-
version: "0"
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
62
43
|
requirements: []
|
63
|
-
|
64
44
|
rubyforge_project:
|
65
|
-
rubygems_version: 1.8.
|
45
|
+
rubygems_version: 1.8.6
|
66
46
|
signing_key:
|
67
47
|
specification_version: 3
|
68
48
|
summary: Simple form protection.
|
69
49
|
test_files: []
|
70
|
-
|