Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into merge-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasHFS committed Jan 10, 2025
2 parents c703b66 + 6e289d9 commit a9bf578
Show file tree
Hide file tree
Showing 27 changed files with 1,242 additions and 202 deletions.
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Why and what is being done.

## Pre-Merge Checklist
- [ ] CHANGELOG.md updated with short summary for user facing changes
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
test:
name: Test ruby version matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['3.0', '3.1', '3.2', '3.3', 'head', 'truffleruby-head'] # keep in sync with gemspec
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: bundle exec rake test

rubocop:
name: Run rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # lowest supported version, keep in sync with .rubocop.yml
bundler-cache: true
- run: bundle exec rake rubocop
20 changes: 11 additions & 9 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
AllCops:
TargetRubyVersion: 2.3
TargetRubyVersion: 3.0 # lowest supported version, see .github/workflows/ci.yml
Include:
- 'lib/**/*'
- 'Rakefile'
- 'Gemfile'
Exclude:
- 'vendor/**/*'
- 'demo/**/*'
SuggestExtensions: false
NewCops: enable

LineLength:
Layout/LineLength:
Max: 120

ClassLength:
Metrics/ClassLength:
Enabled: false

Style/StringLiterals:
Style/FetchEnvVar:
Enabled: false

HashSyntax:
EnforcedStyle: ruby19
Style/StringLiterals:
Enabled: false

Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Expand Down Expand Up @@ -50,13 +52,13 @@ Style/StringLiteralsInInterpolation:
Style/NumericLiterals:
Enabled: false

Layout/IndentFirstArgument:
Layout/FirstArgumentIndentation:
Enabled: false

Layout/IndentFirstHashElement:
Layout/FirstHashElementIndentation:
Enabled: false

Layout/AlignParameters:
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation

Layout/MultilineOperationIndentation:
Expand Down
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

70 changes: 70 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,74 @@
## Next
* Add key setup to v3 example in README
* Remove unnecessary id from textarea - This was unused and may cause accessability concerns if there is more than one recaptcha on the page due to multiple elements with the same id
* Update to latest version of rubocop
* Drop support for Ruby 2.7; add Ruby 3.3
* Add i18n: de, es, it, pt, pt-BR
* Added recaptcha_failure_reason

## 5.16.0
* Allow usage of `options[:turbo]` as well as `options[:turbolinks]` for `recaptcha_v3`

## 5.15.0
* Add 3.2 to the list of Ruby CI versions
* Add ability to submit verify_recaptcha via POST with JSON Body with `options[:json] = true`

## 5.14.0
* drop json dependency

## 5.13.1
* Permit actions as symbol

## 5.13.0
* Added option to ignore_no_element.

## 5.12.3
* Remove score fallback for enterprise
* Update enterprise tests to v1 assessment schema

## 5.12.2
* Fix minimum score for enterprise

## 5.12.1
* Fix Japanese locale

## 5.12.0
* Added Japanese locale

## 5.11.0
* Added Dutch locale

## 5.10.1
* Fix enterprise_verify_url #415

## 5.10.0
* Drop ruby 2.4 2.5 2.6
* Add maxiumm score support for hcaptcha

## 5.9.0
* Gracefully handle invalid params

## 5.8.1
* Allow configuring response limit

## 5.8.0
* Add support for the enterprise API

## 5.7.0
* french locale
* drop ruby 2.3

## 5.6.0
* Allow multiple invisible recaptchas on a single page by setting custom selector

## 5.5.0
* add `recaptcha_reply` controller method for better debugging/inspection

## 5.4.1
* fix v2 vs 'data' postfix

## 5.4.0
* added 'data' postfix to g-recaptcha-response attribute name to avoid collisions

## 5.3.0
* turbolinks support
Expand Down
99 changes: 55 additions & 44 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,59 +1,70 @@
PATH
remote: .
specs:
recaptcha (5.3.0)
json
recaptcha (5.18.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
ast (2.4.0)
bump (0.8.0)
byebug (11.0.1)
coderay (1.1.2)
concurrent-ruby (1.1.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
hashdiff (0.3.9)
i18n (1.6.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
bigdecimal (3.1.8)
bump (0.10.0)
byebug (11.1.3)
coderay (1.1.3)
concurrent-ruby (1.3.4)
crack (1.0.0)
bigdecimal
rexml
hashdiff (1.1.2)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.2)
json (2.3.0)
maxitest (3.1.0)
minitest (>= 5.0.0, < 5.12.0)
metaclass (0.0.4)
method_source (0.9.2)
minitest (5.11.3)
mocha (1.8.0)
metaclass (~> 0.0.1)
parallel (1.17.0)
parser (2.6.3.0)
ast (~> 2.4.0)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-byebug (3.7.0)
json (2.9.0)
language_server-protocol (3.17.0.3)
maxitest (5.8.0)
minitest (>= 5.14.0, < 5.26.0)
method_source (1.1.0)
minitest (5.25.4)
mocha (2.7.0)
ruby2_keywords (>= 0.0.5)
parallel (1.26.3)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (~> 0.10)
public_suffix (3.0.3)
rainbow (3.0.0)
rake (12.3.2)
rubocop (0.68.1)
jaro_winkler (~> 1.5.1)
pry (>= 0.13, < 0.15)
public_suffix (6.0.1)
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.3)
rexml (3.3.9)
rubocop (1.69.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.36.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.6)
ruby-progressbar (1.10.0)
safe_yaml (1.0.5)
unicode-display_width (1.5.0)
webmock (3.5.1)
addressable (>= 2.3.6)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.36.2)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
unicode-display_width (3.1.2)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
webmock (3.24.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
ruby
Expand All @@ -70,4 +81,4 @@ DEPENDENCIES
webmock

BUNDLED WITH
2.1.4
2.5.5
Loading

0 comments on commit a9bf578

Please sign in to comment.