diff --git a/shard.lock b/shard.lock index c8d7778..ae05c7f 100644 --- a/shard.lock +++ b/shard.lock @@ -2,17 +2,13 @@ version: 1.0 shards: kemal: github: sdogruyol/kemal - commit: + version: 0.21.0 kilt: github: jeromegn/kilt - version: 0.3.3 - - multipart: - github: RX14/multipart.cr - version: 0.1.1 + version: 0.4.0 radix: github: luislavena/radix - version: 0.3.5 + version: 0.3.8 diff --git a/shard.yml b/shard.yml index 6edf55f..f105fa5 100644 --- a/shard.yml +++ b/shard.yml @@ -4,7 +4,6 @@ version: 0.3.0 development_dependencies: kemal: github: sdogruyol/kemal - branch: v0.17.3 authors: - Sdogruyol diff --git a/spec/spec-kemal_spec.cr b/spec/spec-kemal_spec.cr index b40964c..01fd05e 100644 --- a/spec/spec-kemal_spec.cr +++ b/spec/spec-kemal_spec.cr @@ -2,7 +2,7 @@ require "./spec_helper" describe "SpecKemalApp" do it "handles get" do - Kemal::RouteHandler::INSTANCE.add_route "GET", "/" do + get "/" do "Hello world" end get "/" @@ -10,7 +10,7 @@ describe "SpecKemalApp" do end it "handles post" do - Kemal::RouteHandler::INSTANCE.add_route "POST", "/user" do |env| + post "/user" do |env| env.params.json.to_json end json_body = {"name": "Serdar", "age": 27, "skills": ["crystal, kemal"]}