Skip to content

Commit

Permalink
Added all versions up to Ruby 3.4 to the CI matrix. (#17)
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 authored Jan 30, 2025
1 parent 9954e96 commit 45a1a6c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0']
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
rails: ['6.1', '7.1']
env:
BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### next

* TODO: Replace this bullet point with an actual description of a change.
* Added all versions up to Ruby 3.4 to the CI matrix (#17)

### 1.8.1 (17 January 2025)

Expand Down
15 changes: 10 additions & 5 deletions spec/support/vcr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@
end

config.around_http_request do |request|
headers =
if request.body.include?('RubyMultipartPost')
request.headers.except('Content-Type', *ignore_req_headers)
else
request.headers.except(*ignore_req_headers)
end
headers = headers.map { |key, val| %("#{key}"=>#{val}) }.join(', ')
headers = "{#{headers}}"

tape_sha = Digest::SHA1.hexdigest [
request.method,
request.uri,
if request.body.include?('RubyMultipartPost')
request.headers.except('Content-Type', *ignore_req_headers).to_s
else
request.headers.except(*ignore_req_headers).to_s
end,
headers,
request.body.to_s.gsub(
/RubyMultipartPost-\w{32}/,
"RubyMultipartPost-#{'1' * 32}"
Expand Down

0 comments on commit 45a1a6c

Please sign in to comment.