@@ -50,12 +50,12 @@ module SQLite3
5050 # db.enable_load_extension(true)
5151 # db.load_extension("/path/to/extension")
5252 #
53- # As of v2.4.0, it's also possible to pass an object that responds to
54- # +#sqlite_extension_path+. This documentation will refer to the supported interface as
55- # +_ExtensionSpecifier+, which can be expressed in RBS syntax as:
53+ # As of v2.4.0, it's also possible to pass an object that responds to +#to_path+. This
54+ # documentation will refer to the supported interface as +_ExtensionSpecifier+, which can be
55+ # expressed in RBS syntax as:
5656 #
5757 # interface _ExtensionSpecifier
58- # def sqlite_extension_path : () → String
58+ # def to_path : () → String
5959 # end
6060 #
6161 # So, for example, if you are using the {sqlean gem}[https://github.com/flavorjones/sqlean-ruby]
@@ -718,7 +718,7 @@ def busy_handler_timeout=(milliseconds)
718718 #
719719 # [Parameters]
720720 # - +extension_specifier+: (String | +_ExtensionSpecifier+) If a String, it is the filesystem path
721- # to the sqlite extension file. If an object that responds to #sqlite_extension_path , the
721+ # to the sqlite extension file. If an object that responds to #to_path , the
722722 # return value of that method is used as the filesystem path to the sqlite extension file.
723723 #
724724 # [Example] Using a filesystem path:
@@ -730,8 +730,8 @@ def busy_handler_timeout=(milliseconds)
730730 # db.load_extension(SQLean::VSV)
731731 #
732732 def load_extension ( extension_specifier )
733- if extension_specifier . respond_to? ( :sqlite_extension_path )
734- extension_specifier = extension_specifier . sqlite_extension_path
733+ if extension_specifier . respond_to? ( :to_path )
734+ extension_specifier = extension_specifier . to_path
735735 elsif !extension_specifier . is_a? ( String )
736736 raise TypeError , "extension_specifier #{ extension_specifier . inspect } is not a String or a valid extension specifier object"
737737 end
@@ -747,11 +747,11 @@ def marshal_extensions(extensions) # :nodoc:
747747
748748 extensions . each do |extension |
749749 # marshall the extension into an object if it's the name of a constant that responds to
750- # `#sqlite_extension_path `
750+ # `#to_path `
751751 if extension . is_a? ( String )
752752 begin
753753 extension_spec = Object . const_get ( extension )
754- if extension_spec . respond_to? ( :sqlite_extension_path )
754+ if extension_spec . respond_to? ( :to_path )
755755 extension = extension_spec
756756 end
757757 rescue NameError
0 commit comments