From 12dcc905a98647a1eb843b20eed3566aa26a6b79 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Wed, 30 Sep 2020 11:30:38 -0300 Subject: [PATCH] Update to crystal-db ~> 0.10.0 --- shard.yml | 4 ++-- src/sqlite3/connection.cr | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) 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