turso 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84d6e0b4a1a771d9076be22e4376a5ee2b411df4c38f4a8e648e36f0ea842a18
4
- data.tar.gz: 5d23d15b3f15f21341a84aaa023b273c0241da38e10edf736a675a73a5878328
3
+ metadata.gz: 319eebc9d9093f9f85366b52ee9a8f1ee25817c16e1fb5121ed95c845b6ae294
4
+ data.tar.gz: b058647ef9194528aa68f6016567019671bbb7b6a292f63837471894e2e5f2d6
5
5
  SHA512:
6
- metadata.gz: 0ee347f73af6248f112c8cafe24bfce4741931a26138bcd17dea95ffc8488c1eb5116fedcf467ecd67e11f39244dafe767e741f231a98fc1fb09ff3516415d21
7
- data.tar.gz: fbd0036b2131b80c98352acd288673c617289048c01f0c58f7c67c78638ee72cd00ef17e500b19424fb65256ee874d966d9f1005bdd081801a5e57315ae3e01a
6
+ metadata.gz: 225e00b561caa5727da68ff162d24ed1d6689491a6754072264d53d6ffe3b6a74a5920a4d155f4de85551abd24bb5cae2130af5fa0bc6a70b2beb06c43b94164
7
+ data.tar.gz: 8b7d799da2e205aac23aaba01c342ad8ae8496ddb7484755be2f23d6fbcc12fab22cb20c64087f8c5583af7495c50504ba0741c636bc667f7a2c8266a63893f9
@@ -13,7 +13,8 @@ module Turso
13
13
 
14
14
  def initialize(path = ":memory:", **options)
15
15
  options[:experimental_features] = normalize_experimental_features(options[:experimental_features])
16
- @native = NativeDatabase.new(path, options)
16
+ native_opts = options.each_with_object({}) { |(k, v), h| h[k.to_s] = v }
17
+ @native = NativeDatabase.new(path, native_opts)
17
18
  @closed = false
18
19
  end
19
20
 
@@ -108,7 +108,7 @@ module Turso
108
108
  @native.bind_double(position, value)
109
109
  when String
110
110
  if value.encoding == Encoding::ASCII_8BIT
111
- @native.bind_blob(position, value.b)
111
+ @native.bind_blob(position, value.bytes)
112
112
  else
113
113
  @native.bind_text(position, value)
114
114
  end
Binary file
data/lib/turso/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Turso
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Turso Team