sqlite3-ffi 0.1.2 → 0.1.3

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: 2ae96e16626c5d549bf53b0c973c79aa41f62e33a9a1c707555d6c623d5a1af9
4
- data.tar.gz: e3eded8d5d2dcec88043ea0ef153c9f70dfd0752e2072462e4766bf4d7a1b4fb
3
+ metadata.gz: c829fe23eea2a7239e16ef5ceca82d90b911402f7f887eed32b61ecd3703b48d
4
+ data.tar.gz: f698015784c3dd82de0202b793c1ad9f19d0e8056d40614b05825704c2973b0f
5
5
  SHA512:
6
- metadata.gz: e729d03db7dbf940791852c4c213bb2c20f41485c67333213d478a690700a8897eaa3b83d9f220b70056a0dc1fe85a750a6bc2ac91062d2d35e102116c9a2df7
7
- data.tar.gz: e98bcefe911cd6f9a2f4fb96cf506c0bf40ba83af8a7425e938a181df0f696b75b14c290d1d5480c97aa2c1e99c8445625a8b800fac96be79fd180e785caeff3
6
+ metadata.gz: 39ba82fe3ca0ef1544a3e01c20bb07ba5d95191f7c64113af5e5e7b5feffa162bba0532bceadd6856e39e5caf884dd5fcafe61a53187c7986e1a02c22e821dad
7
+ data.tar.gz: 81a428f53c798cd099943568a1e8e43bd8f0322a713e46a1b390ace952e416d5cd2c3fb1985c1ffea24d27b86fceefa0281031698812e50972fcf5d4eb683878
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.3 (2025-06-07)
2
+
3
+ - Prefer SQLite from Homebrew on Mac
4
+
1
5
  ## 0.1.2 (2025-04-27)
2
6
 
3
7
  - Improved compatibility
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  :tada: A drop-in replacement for the [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) gem for JRuby
4
4
 
5
- - Passes > 99% of the sqlite3 test suite
5
+ - Passes the full sqlite3 test suite
6
6
  - Works with Active Record without a custom adapter
7
7
 
8
8
  [![Build Status](https://github.com/ankane/sqlite3-ruby-ffi/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/sqlite3-ruby-ffi/actions)
@@ -4,7 +4,15 @@ module SQLite3
4
4
  extend ::FFI::Library
5
5
 
6
6
  # TODO vendor sqlite3
7
- ffi_lib "sqlite3"
7
+ libs = ["sqlite3"]
8
+ if RbConfig::CONFIG["host_os"] =~ /darwin/i
9
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
10
+ libs.unshift("/opt/homebrew/opt/sqlite3/lib/libsqlite3.dylib")
11
+ else
12
+ libs.unshift("/usr/local/opt/sqlite3/lib/libsqlite3.dylib")
13
+ end
14
+ end
15
+ ffi_lib libs
8
16
 
9
17
  SQLITE_OK = 0
10
18
  SQLITE_ERROR = 1
@@ -1,5 +1,5 @@
1
1
  module SQLite3
2
2
  module FFI
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck