1. 29 Sep, 2017 2 commits
  2. 28 Sep, 2017 2 commits
  3. 27 Sep, 2017 1 commit
  4. 26 Sep, 2017 2 commits
  5. 21 Sep, 2017 2 commits
    • Faustino Aguilar's avatar
      Refactoring error pipe (#274) · ee34d699
      Faustino Aguilar authored
      * Refactoring error pipe
      
      Error pipe was refactored and added inside
      router.cr and is part of web and static
      pipelines, allowing to add customized error
      pages more easily.
      
      - Add Amber::Controller::Error
      - Add Amber::Pipe::Error.new to configured pipelines
      - Add error_controller.cr
      - Format files
      - Raise RouteNotFound on StaticController
      - Simplify Amber::Pipe::Error
      - Call Pipe::Error on Exceptions::Base inside Pipe::Pipeline
      - Fix error spec
      - Update docker image
      
      * Small refactoring in error controller
      
      Change message_based_on_content_type to response_format and simplify error controller.
      
      - Avoid duplicated code
      - Ensure content_type is assigned
      ee34d699
    • Faustino Aguilar's avatar
      Refactoring colorized output. (#272) · 5b5864d5
      Faustino Aguilar authored
      * Refactoring colorized output.
      
      * Add --no-color flag.
      * Add color to enviroment settings.
      
      * Fix description
      5b5864d5
  6. 20 Sep, 2017 1 commit
    • Dru Jensen's avatar
      Add reference field type to scaffolding (#268) · 416b6db5
      Dru Jensen authored
      * support reference type in generator
      
      This will provide the ability to define a relationship using `ref` or
      `reference` as the type when generating a model or scaffold.
      
      * fix indent
      
      * support reference type
      
      * default to localhost
      
      * add select_field for references
      
      * select instead of reject
      
      * fix indent
      
      * add selected to options
      
      * add index for foreign key
      
      * add index to model generator
      
      * change ref to reference
      
      * add belongs_to as an option
      
      * add references for rails devs
      416b6db5
  7. 18 Sep, 2017 1 commit
  8. 17 Sep, 2017 1 commit
  9. 15 Sep, 2017 2 commits
  10. 13 Sep, 2017 3 commits
  11. 12 Sep, 2017 2 commits
  12. 11 Sep, 2017 2 commits
  13. 10 Sep, 2017 4 commits
    • Dru Jensen's avatar
      Dj/fix session secret (#246) · e2e3798e
      Dru Jensen authored
      * change type of session
      
      I did this to support Symbol, String or Int32 for session settings.
      This allows you to use `store: :signed_key` and `expires: 0` in the
      environment.yml file.
      
      * use secret_key_base instead of generating a key on restart
      
      * modify tests to match
      
      * fix template for session store
      
      * PR feedback
      
      * remnant of thought
      
      * more cleanup
      e2e3798e
    • Dru Jensen's avatar
      rewrite flash (#247) · 5bb5fb74
      Dru Jensen authored
      * rewrite flash
      
      * keep should overwrite the now
      5bb5fb74
    • Faustino Aguilar's avatar
      Fix #245 (#249) · 1e99d8f0
      Faustino Aguilar authored
      * Fix #245
      
      * Add sudo
      1e99d8f0
    • Elias Perez's avatar
      Updates docs url (#250) · bbc20e69
      Elias Perez authored
      bbc20e69
  14. 09 Sep, 2017 2 commits
  15. 08 Sep, 2017 2 commits
  16. 07 Sep, 2017 3 commits
  17. 05 Sep, 2017 4 commits
    • Elias Perez's avatar
      Bug Fix: CLI console command (#232) · e4afe070
      Elias Perez authored
      Application controller was not being loaded in the correct order when using
      `require "./src/controller/*"`.
      
      To correct the error loaded application_controller first. Also did a little formatting for 
      readability
      e4afe070
    • Elias Perez's avatar
      Fixes parsing JSON from request body (#231) · 936eac6f
      Elias Perez authored
      The MIME media type for JSON text is application/json. The default encoding is UTF-8. (Source: RFC 4627).
      
      Currently checking content_type with == will not match content type formats for `application/json;charset=UTF-8`
      
      With this change the check for content type application/json should be correct.
      936eac6f
    • Elias Perez's avatar
      Update docs url (#230) · 475a7f36
      Elias Perez authored
      475a7f36
    • Dru Jensen's avatar
      fix method signature to match Channel (#228) · ce50b934
      Dru Jensen authored
      * fix method signature to match Channel
      
      * fix others as well
      ce50b934
  18. 04 Sep, 2017 4 commits
    • Isaac Sloan's avatar
      1870fe21
    • Elias Perez's avatar
      Bug Fixe: Socket endpoint is not defined method error (#227) · 720b91e5
      Elias Perez authored
      When defining a socket endpoint it withing route it currently
      throws an error socket_endpoint method is not defined. This is due to
      the fact that the socket_endpoint is not accessible through the routes
      
      In order to correct the bug a websocket method was defined in place of
      socket_endpoint in DSL::Router
      
      Changes:
      
      - Adds websocket as a  method instead of macro to Router DSL (See #224)
      - Adds specs to ensure socket endpoint are defined
      - Removes socker_endpoint from Amber::Server
      - Makes socket_routes public
      
      This changes the current API from socket_endpoint to websocket since
      this naming was to honor proposed changes in
      https://github.com/amber-crystal/amber/pull/224
      720b91e5
    • Isaac Sloan's avatar
      Environments with encryption for version production secrets. (#216) · 6e64a77a
      Isaac Sloan authored
      * working
      
      * added the right things to gitignore
      
      * magic and trained dragons
      
      * cleaned up specs
      
      * ensure deletion of test files
      
      * moved files to tmp
      
      * test directory in tmp. also added to .gitignore
      
      * tests encryption
      
      * progress
      
      * so much work
      
      * left key_generator temporarily
      
      * tests pass and settings load
      
      * added ENV redis_url back
      
      * loading settings from config file
      
      * specs that test the environment loader
      
      * tested how settings can be overridden.
      
      * new commands encrypts production.yml by default
      
      * fixed tests for encrypting by default
      
      * encrypts only production on new and then tests if test can be encrypted
      
      * debugging travis
      
      * set env to test
      
      * removed debugging code
      
      * travis will probably pass at least
      
      * travis will work now
      
      * i hate order dependent tests
      6e64a77a
    • Dru Jensen's avatar
      Dj/websocket route fix (#224) · 37480695
      Dru Jensen authored
      * add websocket macro
      
      * specify module
      37480695