Skip to content
Permalink
Browse files

feat: split HTTP and REST components

From now on, this shard depends on @onyxframework/http.

Also added Aleksandr Maslov as a rare tier supporter and changed license back to MIT
  • Loading branch information...
vladfaust committed Jan 31, 2019
1 parent 3f99aa9 commit a07e25cfb7cf8e259e6e8c80c5c2a0e1d5f2dbb0
Showing with 1,692 additions and 1,181 deletions.
  1. +1 βˆ’0 .gitignore
  2. +2 βˆ’0 .travis.yml
  3. +17 βˆ’25 LICENSE
  4. +168 βˆ’135 README.md
  5. +9 βˆ’11 shard.yml
  6. +0 βˆ’13 spec/common.cr
  7. +0 βˆ’38 spec/json_server.cr
  8. +119 βˆ’0 spec/onyx-rest/action_spec.cr
  9. +77 βˆ’0 spec/onyx-rest/renderers/json_spec.cr
  10. +77 βˆ’0 spec/onyx-rest/renderers/text_spec.cr
  11. +48 βˆ’0 spec/onyx-rest/view_spec.cr
  12. +0 βˆ’143 spec/onyx-rest_spec.cr
  13. +0 βˆ’37 spec/plain_text_server.cr
  14. +3 βˆ’3 src/onyx-rest.cr
  15. +126 βˆ’0 src/onyx-rest/action.cr
  16. +232 βˆ’0 src/onyx-rest/action/errors.cr
  17. +40 βˆ’0 src/onyx-rest/action/params.cr
  18. +120 βˆ’0 src/onyx-rest/action/params/form.cr
  19. +114 βˆ’0 src/onyx-rest/action/params/json.cr
  20. +82 βˆ’0 src/onyx-rest/action/params/path.cr
  21. +108 βˆ’0 src/onyx-rest/action/params/query.cr
  22. +36 βˆ’0 src/onyx-rest/action/router_extension.cr
  23. +0 βˆ’65 src/onyx-rest/cors.cr
  24. +1 βˆ’1 src/onyx-rest/error.cr
  25. +0 βˆ’26 src/onyx-rest/errors/not_found.cr
  26. +0 βˆ’1 src/onyx-rest/ext/http-params-serializable.cr
  27. +0 βˆ’15 src/onyx-rest/ext/http-params-serializable/onyx/rest/errors/params_error.cr
  28. +0 βˆ’27 src/onyx-rest/ext/http-params-serializable/rescuer.cr
  29. +0 βˆ’5 src/onyx-rest/ext/http.cr
  30. +0 βˆ’7 src/onyx-rest/ext/http/request.cr
  31. +0 βˆ’6 src/onyx-rest/ext/http/request/id.cr
  32. +0 βˆ’17 src/onyx-rest/ext/http/request/path_params.cr
  33. +0 βˆ’7 src/onyx-rest/ext/http/server.cr
  34. +0 βˆ’9 src/onyx-rest/ext/http/server/response.cr
  35. +0 βˆ’8 src/onyx-rest/ext/http/server/response/error.cr
  36. +0 βˆ’9 src/onyx-rest/ext/http/server/response/text.cr
  37. +14 βˆ’0 src/onyx-rest/ext/http/server/response/view.cr
  38. +0 βˆ’1 src/onyx-rest/loggers.cr
  39. +0 βˆ’96 src/onyx-rest/loggers/standard.cr
  40. +0 βˆ’1 src/onyx-rest/renderers.cr
  41. +56 βˆ’42 src/onyx-rest/renderers/json.cr
  42. +50 βˆ’0 src/onyx-rest/renderers/text.cr
  43. +0 βˆ’17 src/onyx-rest/request_id.cr
  44. +15 βˆ’44 src/onyx-rest/rescuer.cr
  45. +0 βˆ’1 src/onyx-rest/rescuers.cr
  46. +0 βˆ’79 src/onyx-rest/rescuers/standard.cr
  47. +0 βˆ’227 src/onyx-rest/router.cr
  48. +0 βˆ’65 src/onyx-rest/server.cr
  49. +177 βˆ’0 src/onyx-rest/view.cr
@@ -2,6 +2,7 @@
/lib/
/bin/
/.shards/
*.dwarf

# Libraries don't need dependency lock
# Dependencies will be locked in application that uses them
@@ -1,4 +1,6 @@
language: crystal
before_script:
- shards install
script:
- crystal spec
after_success:
42 LICENSE
@@ -1,29 +1,21 @@
BSD 3-Clause License
The MIT License (MIT)

Copyright (c) 2018, Fancy Software LLC
All rights reserved.
Copyright (c) 2017 Vlad Faust

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Oops, something went wrong.

0 comments on commit a07e25c

Please sign in to comment.
You can’t perform that action at this time.