Compare commits

..

No commits in common. "master" and "v0.1.0" have entirely different histories.

3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
require 'rmagick'
require 'RMagick'
require 'base64'
module ReallySimpleCaptcha::Captcha
@ -44,7 +44,7 @@ module ReallySimpleCaptcha::Captcha
content_tag :div, class: 'plain_captcha' do
html = image_tag "data:image/gif;base64,#{image}", alt: "Captcha"
html.concat text_field_tag PlainCaptcha.field_name, nil, id: "reverse_captcha_#{Time.now.nsec}", required: 'required', autocomplete: 'off'
html.concat text_field_tag PlainCaptcha.field_name, nil, required: 'required', autocomplete: 'off'
html
end

View File

@ -11,7 +11,7 @@ module ReallySimpleCaptcha::Captcha
module ViewHelpers
def reverse_captcha_tag
content_tag :div, text_field_tag(ReverseCaptcha.field_name, nil, id: "reverse_captcha_#{Time.now.nsec}"), class: 'reverse_captcha', style: 'display: none'
content_tag :div, text_field_tag(ReverseCaptcha.field_name), class: 'reverse_captcha', style: 'display: none'
end
end

View File

@ -1,3 +1,3 @@
module ReallySimpleCaptcha
VERSION = "0.1.2"
VERSION = "0.1.0"
end