Merge pull request #10 from n7olkachev/feature-update-kemal-version
Update kemal version
This commit is contained in:
commit
93ab608228
3 changed files with 5 additions and 10 deletions
10
shard.lock
10
shard.lock
|
@ -2,17 +2,13 @@ version: 1.0
|
||||||
shards:
|
shards:
|
||||||
kemal:
|
kemal:
|
||||||
github: sdogruyol/kemal
|
github: sdogruyol/kemal
|
||||||
commit:
|
version: 0.21.0
|
||||||
|
|
||||||
kilt:
|
kilt:
|
||||||
github: jeromegn/kilt
|
github: jeromegn/kilt
|
||||||
version: 0.3.3
|
version: 0.4.0
|
||||||
|
|
||||||
multipart:
|
|
||||||
github: RX14/multipart.cr
|
|
||||||
version: 0.1.1
|
|
||||||
|
|
||||||
radix:
|
radix:
|
||||||
github: luislavena/radix
|
github: luislavena/radix
|
||||||
version: 0.3.5
|
version: 0.3.8
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ version: 0.3.0
|
||||||
development_dependencies:
|
development_dependencies:
|
||||||
kemal:
|
kemal:
|
||||||
github: sdogruyol/kemal
|
github: sdogruyol/kemal
|
||||||
branch: v0.17.3
|
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Sdogruyol <dogruyolserdar@gmail.com>
|
- Sdogruyol <dogruyolserdar@gmail.com>
|
||||||
|
|
|
@ -2,7 +2,7 @@ require "./spec_helper"
|
||||||
|
|
||||||
describe "SpecKemalApp" do
|
describe "SpecKemalApp" do
|
||||||
it "handles get" do
|
it "handles get" do
|
||||||
Kemal::RouteHandler::INSTANCE.add_route "GET", "/" do
|
get "/" do
|
||||||
"Hello world"
|
"Hello world"
|
||||||
end
|
end
|
||||||
get "/"
|
get "/"
|
||||||
|
@ -10,7 +10,7 @@ describe "SpecKemalApp" do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "handles post" do
|
it "handles post" do
|
||||||
Kemal::RouteHandler::INSTANCE.add_route "POST", "/user" do |env|
|
post "/user" do |env|
|
||||||
env.params.json.to_json
|
env.params.json.to_json
|
||||||
end
|
end
|
||||||
json_body = {"name": "Serdar", "age": 27, "skills": ["crystal, kemal"]}
|
json_body = {"name": "Serdar", "age": 27, "skills": ["crystal, kemal"]}
|
||||||
|
|
Loading…
Reference in a new issue