From 5f89dfd13deddda680923ddd6f9b909d6b948701 Mon Sep 17 00:00:00 2001 From: kopylovvlad Date: Tue, 24 Apr 2018 09:36:50 +0300 Subject: [PATCH 1/3] update to rails 5 --- lib/easy_captcha/captcha_controller.rb | 2 +- lib/easy_captcha/routes.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/easy_captcha/captcha_controller.rb b/lib/easy_captcha/captcha_controller.rb index fe42daa..008be64 100644 --- a/lib/easy_captcha/captcha_controller.rb +++ b/lib/easy_captcha/captcha_controller.rb @@ -1,7 +1,7 @@ module EasyCaptcha # captcha controller class CaptchaController < ActionController::Base - before_filter :overwrite_cache_control + before_action :overwrite_cache_control # captcha action send the generated image to browser def captcha if params[:format] == "wav" and EasyCaptcha.espeak? diff --git a/lib/easy_captcha/routes.rb b/lib/easy_captcha/routes.rb index 46933d0..5ea31d8 100644 --- a/lib/easy_captcha/routes.rb +++ b/lib/easy_captcha/routes.rb @@ -3,8 +3,8 @@ module Routing #:nodoc: class Mapper #:nodoc: # call to add default captcha root def captcha_route - match 'captcha' => 'easy_captcha/captcha#captcha', :via => :get + get '/captcha' => 'easy_captcha/captcha#captcha' end end end -end \ No newline at end of file +end From 5cb206f5b8ee9e36cc3f74cc491d0b47e0905a6c Mon Sep 17 00:00:00 2001 From: Kopylov Vladislav Date: Fri, 9 Nov 2018 21:11:59 +0300 Subject: [PATCH 2/3] Update README.rdoc --- README.rdoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.rdoc b/README.rdoc index 292aa8c..308c3fc 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,7 +1,6 @@ = EasyCaptcha -A simple captcha implementation for rails 3 based on rmagick - -Tested with Rails 3.2.8 +A simple captcha implementation for rails based on rmagick. +It is a fork with rails 5 support. https://travis-ci.org/phatworx/easy_captcha.png From da01572bf6c8beaeb9c53831b71bf926fb7dc9a4 Mon Sep 17 00:00:00 2001 From: Kopylov Vladislav Date: Sun, 2 Dec 2018 11:29:52 +0300 Subject: [PATCH 3/3] Update README.rdoc --- README.rdoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 308c3fc..b25024b 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,12 +1,13 @@ = EasyCaptcha A simple captcha implementation for rails based on rmagick. + It is a fork with rails 5 support. https://travis-ci.org/phatworx/easy_captcha.png == Installation add to Gemfile - gem 'easy_captcha' + gem 'easy_captcha', github: 'kopylovvlad/easy_captcha' gem 'rmagick' for java you can use