From d50d305e996d3e654baea167b6c7295a91d7c5ed Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Sat, 19 Dec 2015 10:05:28 +0200 Subject: [PATCH] v0.4.0 - Built-in super simple & fast WebSocket support - Remove experimental fork mode - Improve view macros (Thanks @f) --- README.md | 11 +++++++++-- shard.yml | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5552ce5..1dbf561 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,25 @@ [![Join the chat at https://gitter.im/sdogruyol/kemal](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sdogruyol/kemal?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Lightning Fast, Super Simple web framework for [Crystal](http://www.crystal-lang.org). -Inspired by [Sinatra](http://www.sinatrarb.com/) +Inspired by [Sinatra](http://www.sinatrarb.com/) but with superior performance and built-in WebSocket support. -Kemal is under heavy development and currently supports Crystal 0.9.0. +Kemal is under heavy development and currently supports Crystal 0.9.1. # Super Simple <3 ```ruby require "kemal" +# Matches GET "http://host:port/" get "/" do "Hello World!" end + +# Creates a WebSocket handler. +# Matches "ws://host:port/socket" +ws "/socket" do |socket| + socket.send "Hello from Kemal!" +end ``` Build and run! diff --git a/shard.yml b/shard.yml index 408834e..5433606 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: kemal -version: 0.3.0 +version: 0.4.0 author: - Serdar Dogruyol