diff --git a/shard.yml b/shard.yml index 0e4ea9f..b530050 100644 --- a/shard.yml +++ b/shard.yml @@ -10,7 +10,7 @@ authors: dependencies: priority-queue: github: spider-gazelle/priority-queue - branch: master + version: ">= 1.1.0" development_dependencies: ameba: diff --git a/src/ext/priority-queue.cr b/src/ext/priority-queue.cr deleted file mode 100644 index 712d435..0000000 --- a/src/ext/priority-queue.cr +++ /dev/null @@ -1,16 +0,0 @@ -require "priority-queue" - -module Priority - class Item(V) - def initialize(@priority : Float64, @value : V, name = nil) - @name = name.to_s if name - end - end - - class Queue(V) - def push(priority : Float64, value : V, name = nil) - item = Item(V).new(priority, value, name) - push(item) - end - end -end diff --git a/src/kd_tree.cr b/src/kd_tree.cr index 47814e3..3e47316 100644 --- a/src/kd_tree.cr +++ b/src/kd_tree.cr @@ -1,4 +1,4 @@ -require "./ext/priority-queue" +require "priority-queue" require "./kd_tree/*" module Kd