Skip to content

Commit

Permalink
Test and set Ruby v2.5 as minimum. (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 4, 2025
1 parent b2ee1bd commit 0476a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- "3.4"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
Expand Down
2 changes: 1 addition & 1 deletion test/spec_session_encryptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def encryptor_class

# slice 1 byte for version, 32 bytes for cipher_secret, 12 bytes for IV,
# 16 bytes for the auth tag from the start of the string
encrypted_payload = decoded_message[(1 + 32 + 12 + 16)..]
encrypted_payload = decoded_message[(1 + 32 + 12 + 16)..decoded_message.size]

(encrypted_payload.bytesize % 24).must_equal 0
end
Expand Down

0 comments on commit 0476a10

Please sign in to comment.