Skip to content

Commit

Permalink
Test against Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 25, 2021
1 parent 6d78459 commit 5a44761
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu, macos, windows]
ruby: [2.5]
ruby: ['2.5']
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
os: [ubuntu]
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 'ruby-head']
ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', 'ruby-head']
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def binary(str)
str.force_encoding(Encoding::BINARY)
end

def cache_path(dir, file, args = nil)
def cache_path(dir, file, args_key = nil)
hash = fnv1a_64(file)
unless args.nil?
hash ^= fnv1a_64(Marshal.dump(args))
unless args_key .nil?
hash ^= fnv1a_64(args_key)
end

hex = hash.to_s(16)
Expand Down

0 comments on commit 5a44761

Please sign in to comment.