traptcha 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/traptcha/version.rb +1 -1
- data/lib/traptcha.rb +8 -1
- metadata +3 -3
data/lib/traptcha/version.rb
CHANGED
data/lib/traptcha.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
require 'rmagick'
|
2
1
|
require 'traptcha/engine'
|
3
2
|
|
3
|
+
unless defined? Magick
|
4
|
+
begin
|
5
|
+
require 'rmagick'
|
6
|
+
rescue LoadError
|
7
|
+
require 'RMagick'
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
4
11
|
module Traptcha
|
5
12
|
autoload :Image, 'traptcha/image'
|
6
13
|
autoload :WaveImage, 'traptcha/wave_image'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traptcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rodrigo Navarro
|