Skip to content

Commit

Permalink
ci: add ruby 3 to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytonyjan committed May 12, 2023
1 parent 5701ef7 commit 886be74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- macos-13
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- head
include:
- fallible: false
Expand Down
2 changes: 1 addition & 1 deletion jaro_winkler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
'source_code_uri' => "https://github.com/tonytonyjan/jaro_winkler/tree/v#{spec.version}",
}
spec.files = Dir['lib/**/*.rb', 'ext/**/*.{h,c}', 'LICENSE.txt']
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rake-compiler'
spec.add_development_dependency 'minitest'
end
10 changes: 5 additions & 5 deletions test/tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ def test_raises_type_error

private

def assert_distance score, str1, str2, options={}
assert_in_delta score, JaroWinkler.distance(str1, str2, options)
def assert_distance score, str1, str2, **options
assert_in_delta score, JaroWinkler.distance(str1, str2, **options)
end

def assert_encoding str1, str2, encoding, options={}
def assert_encoding str1, str2, encoding, **options
assert_distance JaroWinkler.distance(str1, str2), str1.encode(encoding), str2.encode(encoding)
end

def assert_jaro_distance score, str1, str2, options={}
assert_in_delta score, JaroWinkler.jaro_distance(str1, str2, options)
def assert_jaro_distance score, str1, str2, **options
assert_in_delta score, JaroWinkler.jaro_distance(str1, str2, **options)
end
end

0 comments on commit 886be74

Please sign in to comment.