diff --git a/shard.yml b/shard.yml index ec671f1..35f2ad7 100644 --- a/shard.yml +++ b/shard.yml @@ -4,12 +4,12 @@ version: 0.16.0 dependencies: db: github: crystal-lang/crystal-db - version: ~> 0.9.0 + version: ~> 0.10.0 authors: - Ary Borenszweig - Brian J. Cardiff -crystal: 0.28.0 +crystal: 0.35.0 license: MIT diff --git a/src/sqlite3/connection.cr b/src/sqlite3/connection.cr index 5079c3c..54d1d96 100644 --- a/src/sqlite3/connection.cr +++ b/src/sqlite3/connection.cr @@ -9,11 +9,7 @@ class SQLite3::Connection < DB::Connection end def self.filename(uri : URI) - {% if compare_versions(Crystal::VERSION, "0.30.0-0") >= 0 %} - URI.decode_www_form((uri.host || "") + uri.path) - {% else %} - URI.unescape((uri.host || "") + uri.path) - {% end %} + URI.decode_www_form((uri.host || "") + uri.path) end def build_prepared_statement(query) : Statement