From e58c051632b7e4f64da60cfbcfd5b066739d5f0d Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 9 Nov 2016 15:30:23 +0800 Subject: [PATCH] Use puts instead of Rails.logger.warn to output warning --- CHANGELOG.md | 2 +- Gemfile.lock | 2 +- lib/rucaptcha/engine.rb | 2 +- lib/rucaptcha/version.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d874043..86e195a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -1.1.3 +1.1.4 ----- - Fix #35 just give a warning message if not setup a right cache_store, only raise on :null_store. diff --git a/Gemfile.lock b/Gemfile.lock index aa3e937..60c3c44 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - rucaptcha (1.1.3) + rucaptcha (1.1.4) railties (>= 3.2) GEM diff --git a/lib/rucaptcha/engine.rb b/lib/rucaptcha/engine.rb index 61b62f2..e76a1e6 100644 --- a/lib/rucaptcha/engine.rb +++ b/lib/rucaptcha/engine.rb @@ -24,7 +24,7 @@ module RuCaptcha if store_name == :null_store raise msg else - Rails.logger.warn msg + puts msg end end end diff --git a/lib/rucaptcha/version.rb b/lib/rucaptcha/version.rb index 1e4de56..2f270d2 100644 --- a/lib/rucaptcha/version.rb +++ b/lib/rucaptcha/version.rb @@ -1,3 +1,3 @@ module RuCaptcha - VERSION = '1.1.3' + VERSION = '1.1.4' end