add version constant

This commit is contained in:
lebogan 2018-07-15 15:22:50 -07:00
parent b8ec6ee328
commit d0f46ec8d9
2 changed files with 11 additions and 1 deletions

View file

@ -25,7 +25,7 @@ describe "Config" do
config.host_binding.should eq "127.0.0.1"
end
it "adds a custom handler" do
pending "adds a custom handler" do
config = Kemal.config
config.add_handler CustomTestHandler.new
Kemal.config.setup
@ -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.
#