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