Skip to content

Commit 166706c

Browse files
authored
Update CI to include 3.4 (#41)
1 parent ef25b2d commit 166706c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ on:
1010
- main
1111

1212
env:
13-
ruby_version: 3.3
13+
ruby_version: 3.4
1414

1515
jobs:
1616
test:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
ruby: [2.7, '3.0', 3.1, 3.2, 3.3, jruby-9.4]
21+
ruby: [2.7, '3.0', 3.1, 3.2, 3.3, 3.4, jruby-9.4, jruby-10.0]
2222
services:
2323
dynamodb:
2424
image: amazon/dynamodb-local:latest

lib/aws/session_store/dynamo_db/locking/pessimistic.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_lock_time_opts(sid)
5959
# @return [Time] Time stamp for which the session was locked.
6060
def lock_time(sid)
6161
result = @config.dynamo_db_client.get_item(get_lock_time_opts(sid))
62-
(result[:item]['locked_at']).to_f if result[:item]['locked_at']
62+
result[:item]['locked_at']&.to_f
6363
end
6464

6565
# @return [String] Session data.
@@ -138,7 +138,7 @@ def expect_lock_time(env)
138138
{
139139
expected: {
140140
'locked_at' => {
141-
value: (env['locked_at']).to_s,
141+
value: env['locked_at'].to_s,
142142
exists: true
143143
}
144144
}

spec/aws/session_store/dynamo_db/rack_middleware_integration_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def attr_opts
2424

2525
def extract_time(sid)
2626
options = table_opts(sid).merge(attr_opts)
27-
Time.at((config.dynamo_db_client.get_item(options)[:item]['created_at']).to_f)
27+
Time.at(config.dynamo_db_client.get_item(options)[:item]['created_at'].to_f)
2828
end
2929

3030
let(:options) do

0 commit comments

Comments
 (0)