captchah 1.0.6 → 1.0.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.
- checksums.yaml +4 -4
- data/lib/captchah/generators/puzzle.rb +4 -4
- data/lib/captchah/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e775b87f4757d28eff558e815818b5cd8cc30ace5458d1a25c553b61dc21935b
|
4
|
+
data.tar.gz: 17e46b9c548f94fd425b4f611921b62c9c17f121fc40e479b2e6b6142d801a00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e2927ce592dd1fb980ba6b2b76545d649d17730fce060d0e2c80072b1f3fb248f978d5561cf73ea9975883fdb894359f5734f7fe37b30cebdc3503fe6d1f96b
|
7
|
+
data.tar.gz: c06dba16b6c01da85c4b7df6e693d3f6f0a20a308c167319f3b795356124635ea53aac54fe3328d31a9a8657f8a0d651f56e1f8904bc9d29135a1b649ada1c77
|
@@ -47,17 +47,17 @@ module Captchah
|
|
47
47
|
c.draw("line 0,#{rand(10..20)} 400,20") if difficulty > 1
|
48
48
|
|
49
49
|
if difficulty < 3
|
50
|
-
c.fill(rgba(color2,
|
50
|
+
c.fill(rgba(color2, 0.1))
|
51
51
|
c.draw('circle 0,0 300,0')
|
52
52
|
end
|
53
53
|
|
54
54
|
if difficulty > 3
|
55
55
|
c.pointsize(20)
|
56
|
-
c.fill(rgba(
|
56
|
+
c.fill(rgba(color2, 0.6))
|
57
57
|
(difficulty == 5 ? 2 : 1).times do
|
58
58
|
c.draw("text #{rand(43..55)},#{rand(18..48)} ',./ -,_'")
|
59
59
|
end
|
60
|
-
c.fill(rgba(
|
60
|
+
c.fill(rgba(color2, 0.3))
|
61
61
|
c.draw("text #{rand(68..75)},#{rand(10..28)} '/,\ ^._ -'")
|
62
62
|
end
|
63
63
|
|
@@ -94,7 +94,7 @@ module Captchah
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def opacity
|
97
|
-
@opacity ||= difficulty > 2 ?
|
97
|
+
@opacity ||= difficulty > 2 ? 0.9 : 1.2
|
98
98
|
end
|
99
99
|
|
100
100
|
def rgba(rgb, alpha)
|
data/lib/captchah/version.rb
CHANGED