easy_captcha 0.2.3 → 0.2.4
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/VERSION +1 -1
- data/easy_captcha.gemspec +2 -2
- data/lib/easy_captcha/captcha.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.4
|
data/easy_captcha.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{easy_captcha}
|
|
8
|
-
s.version = "0.2.
|
|
8
|
+
s.version = "0.2.4"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Marco Scholl"]
|
|
12
|
-
s.date = %q{2010-12-
|
|
12
|
+
s.date = %q{2010-12-07}
|
|
13
13
|
s.description = %q{Captcha-Plugin for Rails}
|
|
14
14
|
s.email = %q{develop@marco-scholl.de}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/easy_captcha/captcha.rb
CHANGED
|
@@ -18,7 +18,7 @@ module EasyCaptcha
|
|
|
18
18
|
|
|
19
19
|
private
|
|
20
20
|
|
|
21
|
-
def generate_captcha(file) #:nodoc:
|
|
21
|
+
def generate_captcha(file = nil) #:nodoc:
|
|
22
22
|
canvas = Magick::Image.new(EasyCaptcha.image_width, EasyCaptcha.image_height) do |variable|
|
|
23
23
|
self.background_color = EasyCaptcha.image_background_color unless EasyCaptcha.image_background_color.nil?
|
|
24
24
|
end
|
|
@@ -60,4 +60,4 @@ module EasyCaptcha
|
|
|
60
60
|
canvas.destroy!
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
|
-
end
|
|
63
|
+
end
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 2
|
|
8
|
-
-
|
|
9
|
-
version: 0.2.
|
|
8
|
+
- 4
|
|
9
|
+
version: 0.2.4
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Marco Scholl
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-12-
|
|
17
|
+
date: 2010-12-07 00:00:00 +01:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|