From b25d4ea7e237e4491a50e6ac2b1439d37b426d5e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 19:38:14 +0000 Subject: [PATCH 1/2] Bump invisible_captcha from 2.1.0 to 2.3.0 Bumps [invisible_captcha](https://github.com/markets/invisible_captcha) from 2.1.0 to 2.3.0. - [Changelog](https://github.com/markets/invisible_captcha/blob/master/CHANGELOG.md) - [Commits](https://github.com/markets/invisible_captcha/compare/v2.1.0...v2.3.0) --- updated-dependencies: - dependency-name: invisible_captcha dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- Gemfile.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 404390a16..6eb764ae2 100644 --- a/Gemfile +++ b/Gemfile @@ -32,7 +32,7 @@ gem "graphql", "~> 1.13.22" gem "groupdate", "~> 6.4.0" gem "image_processing", "~> 1.12.2" gem "initialjs-rails", "~> 0.2.0.9" -gem "invisible_captcha", "~> 2.1.0" +gem "invisible_captcha", "~> 2.3.0" gem "jquery-fileupload-rails" gem "kaminari", "~> 1.2.2" gem "mini_magick", "~> 4.12.0" diff --git a/Gemfile.lock b/Gemfile.lock index d12c70027..85e2bcdcd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -289,7 +289,7 @@ GEM ruby-vips (>= 2.0.17, < 3) initialjs-rails (0.2.0.9) railties (>= 3.1, < 7.0) - invisible_captcha (2.1.0) + invisible_captcha (2.3.0) rails (>= 5.2) jquery-fileupload-rails (1.0.0) actionpack (>= 3.1) @@ -333,7 +333,7 @@ GEM net-imap net-pop net-smtp - marcel (1.0.2) + marcel (1.0.4) matrix (0.4.2) mdl (0.13.0) kramdown (~> 2.3) @@ -741,7 +741,7 @@ DEPENDENCIES i18n-tasks (~> 0.9.37) image_processing (~> 1.12.2) initialjs-rails (~> 0.2.0.9) - invisible_captcha (~> 2.1.0) + invisible_captcha (~> 2.3.0) jquery-fileupload-rails kaminari (~> 1.2.2) knapsack_pro (~> 7.0.1) From d0f6e4396fc6c762f5edd8e3fad89a6994f6b9ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 19 Mar 2024 21:37:22 +0100 Subject: [PATCH 2/2] Add missing options to invisible captcha initializer These options had been added in the gem's initializer by version 2.0, but we forgot to add them to our initializer file. So we're doing it now. --- config/initializers/invisible_captcha.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/initializers/invisible_captcha.rb b/config/initializers/invisible_captcha.rb index b2c2ed9b5..a0eb77260 100644 --- a/config/initializers/invisible_captcha.rb +++ b/config/initializers/invisible_captcha.rb @@ -2,6 +2,10 @@ InvisibleCaptcha.setup do |config| config.visual_honeypots = false config.spinner_enabled = false config.timestamp_threshold = 4.seconds + # config.honeypots << ['more', 'fake', 'attribute', 'names'] + # config.timestamp_enabled = true + # config.injectable_styles = false + # Leave these unset if you want to use I18n (see below) # config.error_message = 'You are a robot!' # config.sentence_for_humans = 'If you are a human, ignore this field'