add a VERSION constant (#471)

This commit is contained in:
Lewis E. Bogan 2018-07-15 19:55:53 -07:00 committed by Serdar Dogruyol
parent 1e18389f5f
commit 09bb1fcd40
2 changed files with 10 additions and 0 deletions

View File

@ -54,4 +54,12 @@ describe "Config" do
Kemal::CLI.new
test_option.should eq("FOOBAR")
end
it "returns a string" do
Kemal::VERSION.should be_a(String)
end
it "gets the version from shards.yml" do
Kemal::VERSION.should eq("0.23.0")
end
end

View File

@ -1,4 +1,6 @@
module Kemal
VERSION = {{ `shards version #{__DIR__}`.chomp.stringify }}
# Stores all the configuration options for a Kemal application.
# It's a singleton and you can access it like.
#