Skip to content

Commit

Permalink
Support Ruby 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim committed Aug 4, 2023
1 parent a67bbb5 commit 6b2f458
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby: [ '2.5', '2.6', '2.7' ]

name: Ruby ${{ matrix.ruby }}
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', '3.2' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: gem install bundler
- run: bundle install
- run: bundle exec rake
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec
2 changes: 1 addition & 1 deletion lib/wordmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Wordmap

class << self
def create(path, hash, index_names = [])
raise ArgumentError, "Path already exists: #{path}" if Dir.exists?(path)
raise ArgumentError, "Path already exists: #{path}" if Dir.exist?(path)

index_data = index_names.map { |name| [name, {}] }.to_h
vecs = Builder.build_vectors(hash)
Expand Down

0 comments on commit 6b2f458

Please sign in to comment.