From e7cc8091fb8b3766c65d128db7961c41ee84590e Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 26 Oct 2015 20:53:30 +0800 Subject: [PATCH] Use xxx_url to fix bad captcha URL for enabled case. --- CHANGELOG.md | 1 + README.md | 4 ++++ lib/rucaptcha/version.rb | 3 +-- lib/rucaptcha/view_helpers.rb | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6bfc5f..0bcd7da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ----- - `zh-TW` translate file fixed. +- Use xxx_url to fix bad captcha URL for `config.action_controller.asset_host` enabled case. 0.1.2 ----- diff --git a/README.md b/README.md index 4d27482..6dc7014 100644 --- a/README.md +++ b/README.md @@ -78,3 +78,7 @@ describe 'sign up and login', type: :feature do end ``` +## TODO + +- Use [rtesseract](https://github.com/dannnylo/rtesseract) to test OCR. + diff --git a/lib/rucaptcha/version.rb b/lib/rucaptcha/version.rb index 6826f02..a1bf176 100644 --- a/lib/rucaptcha/version.rb +++ b/lib/rucaptcha/version.rb @@ -1,4 +1,3 @@ module RuCaptcha - VERSION = '0.1.2' + VERSION = '0.1.3' end - diff --git a/lib/rucaptcha/view_helpers.rb b/lib/rucaptcha/view_helpers.rb index dae0627..0844a8a 100644 --- a/lib/rucaptcha/view_helpers.rb +++ b/lib/rucaptcha/view_helpers.rb @@ -7,7 +7,7 @@ module RuCaptcha def rucaptcha_image_tag(opts = {}) opts[:class] = opts[:class] || 'rucaptcha-image' - image_tag(ru_captcha.root_path, opts) + image_tag(ru_captcha.root_url, opts) end end end