Skip to content

Commit

Permalink
Use shards to fill the VERSION constant, so I just need to update sha…
Browse files Browse the repository at this point in the history
…rds.yml file.
  • Loading branch information
hugopl committed Feb 24, 2023
1 parent c9e9f1c commit 4f09edc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions spec/fzy_spec.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
require "./spec_helper"

describe Fzy do
it "has a version number" do
Fzy::VERSION.should match /\A\d+\.\d+\.\d+\z/
end

context "match" do
it "works" do
Fzy.search("amor", %w(app/models/order)).first.value.should eq("app/models/order")
Expand Down
2 changes: 1 addition & 1 deletion src/fzy.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require "./fzy/prepared_haystack"
module Fzy
extend self

VERSION = "0.5.4"
VERSION = {{ `shards version #{__DIR__}`.strip.stringify }}

# Search a needle in a haystack and returns an array of matches.
#
Expand Down

0 comments on commit 4f09edc

Please sign in to comment.