captcha 1.2.1 → 1.2.2
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/README.markdown +5 -0
- data/Rakefile +0 -1
- data/gemspec.rb +1 -1
- data/lib/captcha/cipher.rb +6 -2
- metadata +2 -2
data/README.markdown
CHANGED
data/Rakefile
CHANGED
data/gemspec.rb
CHANGED
data/lib/captcha/cipher.rb
CHANGED
@@ -16,8 +16,12 @@ module Captcha
|
|
16
16
|
encrypted << cipher.final
|
17
17
|
# Turn into chr codes separated by underscores
|
18
18
|
# 135_14_163_53_43_135_172_31_1_23_169_81_49_110_49_230
|
19
|
-
|
20
|
-
encrypted
|
19
|
+
if encrypted.respond_to?(:codepoints)
|
20
|
+
encrypted = encrypted.codepoints.to_a
|
21
|
+
else
|
22
|
+
encrypted = (0..encrypted.length-1).collect do |x|
|
23
|
+
encrypted[x]
|
24
|
+
end
|
21
25
|
end
|
22
26
|
encrypted.join('_')
|
23
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Winton Welsh
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-28 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|