Skip to content

Commit a18f8fc

Browse files
committed
Test with Ruby 3.4 on CI
1 parent c1a83d9 commit a18f8fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v4
88
- uses: ruby/setup-ruby@v1
99
with:
10-
ruby-version: 3.3
10+
ruby-version: 3.4
1111
bundler-cache: true
1212
- uses: ankane/setup-postgres@v1
1313
with:

lib/pgvector/vector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def to_a
3030

3131
def to_binary
3232
if numo?(@data)
33-
[@data.shape[0], 0].pack("s>s>") + @data.to_network.to_binary
33+
[@data.shape[0], 0].pack("s>s>") + @data.to_network.to_binary.force_encoding(Encoding::BINARY)
3434
else
3535
buffer = [@data.size, 0].pack("s>s>")
3636
@data.pack("g*", buffer: buffer)

0 commit comments

Comments
 (0)