Skip to content

Commit 7b8ad4f

Browse files
authored
Adds Ruby 3.2 to the CI matrix (#504)
## All PRs: * [X] Has tests * [X] Documentation updated Also updated the checkout action version. To get the tests to pass, I needed to address a couple of minor lints.
2 parents 51b9845 + 55799c2 commit 7b8ad4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
ruby: [ '2.6', '2.7', '3.0', '3.1' ]
10+
ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2' ]
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
- name: Set up Ruby ${{ matrix.ruby }}
1515
uses: ruby/setup-ruby@v1
1616
with:

lib/secure_headers/headers/cookie.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def flag_cookie?(attribute)
8080
end
8181

8282
def conditionally_flag?(configuration)
83-
if(Array(configuration[:only]).any? && (Array(configuration[:only]) & parsed_cookie.keys).any?)
83+
if (Array(configuration[:only]).any? && (Array(configuration[:only]) & parsed_cookie.keys).any?)
8484
true
85-
elsif(Array(configuration[:except]).any? && (Array(configuration[:except]) & parsed_cookie.keys).none?)
85+
elsif (Array(configuration[:except]).any? && (Array(configuration[:except]) & parsed_cookie.keys).none?)
8686
true
8787
else
8888
false

0 commit comments

Comments
 (0)