Commit ea5b88d
committed
Alias ruby gem loadable_path to to_path
The sqlite3-ruby recently published an improvement to make it easier and
more flexible to load extensions:
sparklemotion/sqlite3-ruby#586
Ruby modules for SQLite extensions should implement the interface:
interface _ExtensionSpecifier
def to_path: () → String
end
A complementary change in Rails takes advantage of this interface to
integrate the primary configuration file with the new sqlite3-ruby
interface for extension loading:
rails/rails#53827
The gem template provided here already has a similar method:
def loadable_path
The change proposed here is to modify the gem template to provide an
alias to loadable_path as to_path.o
# example
SqliteVec.to_path # => returns same result as loadable_path
As a result of this change, Ruby gems published with this tool will
conform to the new interface supported in sqlite3-ruby and Rails.1 parent 6ea6486 commit ea5b88d
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
0 commit comments