Commit graph

703 commits

Author SHA1 Message Date
sdogruyol
2ee9433bd9 Fix cli 2018-12-19 22:54:07 +03:00
sdogruyol
678adaa375 Rebased to master and update to Crystal 0.27.0 2018-12-17 22:20:21 +03:00
sdogruyol
4fefd9cb5c WIP 2018-12-17 20:07:46 +03:00
Johannes Müller
5f1ce1e0fc Move signal trapping to Kemal::Application 2018-12-17 20:07:00 +03:00
Johannes Müller
e6dc494f7e crystal tool format 2018-12-17 20:07:00 +03:00
Johannes Müller
6d12d111f4 refactor Request#param_parser 2018-12-17 20:06:32 +03:00
Johannes Müller
5917af3f14 Remove Context#app to reduce GC load (experimental) 2018-12-17 20:05:59 +03:00
Johannes Müller
72bcac6dd5 Add app reference to the handlers which are bound to the app 2018-12-17 20:04:35 +03:00
Johannes Müller
dc93bb2235 Refactor Kemal main includes:
* `require "kemal"` loads `kemal/base` and `kemal/dsl`
* `require "kemal/base` loads only `kemal/base`
2018-12-17 19:52:25 +03:00
Johannes Müller
34022273b2 Refactor dsl_helper_spec 2018-12-17 19:52:25 +03:00
Johannes Müller
5d65bcb3b9 Refactor spec helper classes locations and visibility 2018-12-17 19:52:25 +03:00
Johannes Müller
ad91a22789 Refactor class level DSL with macros to convert blocks to instance-scoped methods 2018-12-17 19:52:25 +03:00
Johannes Müller
53fa65f964 Add class method API to Kemal::Base 2018-12-17 19:51:35 +03:00
Johannes Müller
2e42b3f48c Decouple specs from global state to isolated tests 2018-12-17 19:51:35 +03:00
Johannes Müller
29b18c927c Extract Base::Builder and Base::DSL from Kemal::Base 2018-12-17 19:47:42 +03:00
Johannes Müller
f5c80c7b67 Extract default app behavior from Kemal::Base to Kemal::Application 2018-12-17 19:47:42 +03:00
Johannes Müller
1cd329b92f Refactor helpers into module namespaces 2018-12-17 19:47:27 +03:00
Johannes Müller
aaa2109837 Refactor global namespace DSL into OOP Kemal::Base 2018-12-17 19:46:29 +03:00
Diego Guraieb
a5d8df7382 Add support for parsing command line parameters from other sources than ARGV (#483) 2018-11-30 19:16:08 +03:00
Sijawusz Pur Rahnama
50f48509fd Use compile-time StringLiteral#downcase instead of runtime String#downcase (#508) 2018-11-14 13:47:46 +03:00
ikarigeorge
482b4a6e7d Fixing exclude method in Handler (#507) 2018-11-11 00:58:41 +03:00
Anton Maminov
4ccea8d6a1 fix upload file example in changelog (#504) 2018-11-05 23:55:20 +03:00
Serdar Dogruyol
22a2a69d65 0.25.1 2018-11-05 22:59:34 +03:00
Anton Maminov
6de5e7b929 Fix ParamParser files memoization (#503) 2018-11-05 22:51:22 +03:00
Serdar Dogruyol
8bfc3313e9 0.25.0 2018-11-05 02:27:44 +03:00
Serdar Dogruyol
7358994e91
Fix multipart upload and back params.files (#499) 2018-11-05 02:20:21 +03:00
Serdar Dogruyol
207f38251a Remove Kemal::OverrideMethodHandler 2018-11-05 02:18:52 +03:00
Julien Reichardt
21ab64511a Add allocation optimizations (#487) 2018-11-01 14:29:05 +03:00
Serdar Dogruyol
afd17fc774
Merge pull request #500 from kemalcr/override-method-handler
Add Kemal::OverrideMethodHandler to support _method magic param
2018-10-27 20:50:12 +03:00
Serdar Dogruyol
a60168d039 Add docs to Kemal::OverrideMethodHandler 2018-10-26 18:45:04 +03:00
Serdar Dogruyol
3f7c8b4577 Add Kemal::OverrideMethodHandler 2018-10-26 15:00:24 +03:00
Brian Douglas Smith
b389022b35 Remove deprecated alias HTTP::Server#bind_ssl (#495) 2018-09-20 11:15:05 +03:00
Serdar Dogruyol
cd5f83f013
Merge pull request #493 from kemalcr/cache-routes
Cache HTTP routes
2018-09-17 19:05:20 +03:00
Serdar Dogruyol
4bb56d2376 Only clear cached_routes if there's a route 2018-09-17 09:51:56 +03:00
Serdar Dogruyol
1a8a3c5b1d Add cache size limit check to caching routes 2018-09-16 15:43:53 +03:00
Serdar Dogruyol
8fb028149b Cache http routes 2018-09-16 13:22:45 +03:00
Serdar Dogruyol
e59cd646cd
Merge pull request #490 from straight-shoota/jm/fix/tempfile
Remove unused require "tempfile"
2018-09-12 14:38:06 +03:00
Johannes Müller
1e894a39bc
Remove unused require "tempfile" 2018-09-06 11:17:30 +02:00
Serdar Dogruyol
9448360eac 0.24.0 2018-08-14 14:17:26 +03:00
Serdar Dogruyol
e468e2e340 route_defined? -> route_found? 2018-08-13 19:21:18 +03:00
Serdar Dogruyol
2b3ae85c34 Move response under ext 2018-08-13 16:29:32 +03:00
Serdar Dogruyol
423998e287
Modification of #471 (#476) 2018-08-13 15:47:20 +03:00
Johannes Müller
b39c974a90 Update to use HTTP::Server#bind_ssl (#477) 2018-08-09 00:13:45 +03:00
Lewis E. Bogan
7684aeaf33
Merge branch 'master' into master 2018-08-06 11:34:55 -07:00
Serdar Dogruyol
64fbe406d5
Merge pull request #465 from kemalcr/rework-param-parser
Rework param parser
2018-08-06 20:03:12 +03:00
lebogan
320660aad4 remove tests with embedded version literal 2018-07-24 09:55:59 -07:00
Lewis E. Bogan
09bb1fcd40 add a VERSION constant (#471) 2018-07-16 05:55:53 +03:00
Rafał Wojsznis
1e18389f5f Remove etag logic as it's not implemented in Crystal 0.25.1 (#470) 2018-07-16 05:54:36 +03:00
lebogan
047cff93d3 remove pending from config_spec 2018-07-15 15:36:06 -07:00
lebogan
d0f46ec8d9 add version constant 2018-07-15 15:22:50 -07:00