1. 30 Mar, 2018 5 commits
  2. 28 Mar, 2018 1 commit
    • Isaac Sloan's avatar
      released 0.7.0 (#714) · c9c859c0
      Isaac Sloan authored
      * Bumped version number to v0.7.0.
      
      * Setting amber version lock back to master after release of v0.7.0
      c9c859c0
  3. 21 Mar, 2018 1 commit
    • Jack's avatar
      [CLI] Add a command to open db connection. (#689) · 19794995
      Jack authored
      * Add a CLI option `amber db` to open connection to database
      
      This is an easy way to open a connection to your database.
      This is modeled off the Rails CLI.
      
      * Duplicate database connection command to `amber bd connect`
      19794995
  4. 20 Mar, 2018 1 commit
  5. 19 Mar, 2018 1 commit
  6. 18 Mar, 2018 3 commits
  7. 15 Mar, 2018 1 commit
  8. 14 Mar, 2018 1 commit
  9. 11 Mar, 2018 1 commit
  10. 09 Mar, 2018 1 commit
    • Elias Perez's avatar
      [CORS] Adds W3C Cors Specification Support (#665) · a8cda7a8
      Elias Perez authored
      * [CORS] Adds W3C Cors Specification Support
      
      Provides facilities for dealing with CORS requests and responses
      
      - A Plug (Handler) that handles CORS request and responses.
      
      \## How It Works
      
      This handler is compliant with the W3C CORS specification. As per
      this specification, It doesn’t put any CORS response headers
      in a connection that holds an invalid CORS request. To know what
      “invalid” CORS request means, have a look at the
      “Validity of CORS requests” section below.
      
      When some options that are not mandatory and have no default value
      (such :max_age) at intialization, the relative header will often not be
      sent at all. This is compliant with the specification and at the
      same time it reduces the size of the response, even if just by a handful
      of bytes.
      
      The following is a list of all the CORS response headers supported by
      the handler:
      
      - Access-Control-Allow-Origin
      - Access-Control-Allow-Methods
      - Access-Control-Allow-Headers
      - Access-Control-Allow-Credentials
      - Access-Control-Expose-Headers
      - Access-Control-Max-Age
      
      \## Validity of CORS requests
      
      “Invalid CORS request” can mean that a request doesn’t have an Origin
      header (so it’s not a CORS request at all) or that it’s a CORS request but:
      
        - The Origin request header doesn’t match any of the allowed origins
        - The request is a preflight request but it requests to use a method
          or some headers that are not allowed (via the Access-Control-Request-Method
          and Access-Control-Request-Headers headers)
      
      \## Responding to preflight requests
      
      When the request is a preflight request and is a valid one (valid origin, valid
      request method, and valid request headers), The CORS handler directly sends a
      response to that request instead of just adding headers to the connection.
      To do this, the handler halts the connection and sends a response.
      
      * fixup! [CORS] Adds W3C Cors Specification Support
      
      * fixup! [CORS] Adds W3C Cors Specification Support
      a8cda7a8
  11. 08 Mar, 2018 8 commits
    • Elias Perez's avatar
      Fix error generator (#685) · 65d040f8
      Elias Perez authored
      * Update src/handlers/error.cr.ecr and src/amber/pipes/error.cr
      
      The files /src/amber/cli/templates/error/src/handlers/error.cr.ecr
      and src/amber/pipes/error.cr are pretty similar but have desynced
      a little bit.
      
      This commit fixes the textual descriptions and adds a missing
      begin to make the files as similar as possible.
      
      The next step will be to change location from /handlers/ in the
      user application to /pipes/.
      
      * Update src/handlers/error.cr.ecr and src/amber/pipes/error.cr
      
      The files /src/amber/cli/templates/error/src/handlers/error.cr.ecr
      and src/amber/pipes/error.cr are pretty similar but have desynced
      a little bit.
      
      This commit fixes the textual descriptions and adds a missing
      begin to make the files as similar as possible.
      
      The next step will be to change location from /handlers/ in the
      user application to /pipes/.
      65d040f8
    • Elias Perez's avatar
      Revert "[CLI] Adds support for generating pages" (#687) · c7558cd5
      Elias Perez authored
      * Revert "[Generator] Remove raise from Template (#686)"
      
      This reverts commit a87e5853.
      
      * Revert "Use Inflector to pluralize model names (#673)"
      
      This reverts commit 10aa1658.
      
      * Revert "[Settings] Logger Builder (#684)"
      
      This reverts commit e216eb83.
      
      * Revert "[CLI] Adds support for generating pages (#674)"
      
      This reverts commit a9449dee.
      c7558cd5
    • Elias Perez's avatar
      [Generator] Remove raise from Template (#686) · a87e5853
      Elias Perez authored
      We do not raise errors in the CLI, instead we log a message to the
      console.
      a87e5853
    • jasonl99's avatar
      Use Inflector to pluralize model names (#673) · 10aa1658
      jasonl99 authored
      * Use Inflector library for pluralization of models
      
      * removed core_ext
      10aa1658
    • Elias Perez's avatar
      [Settings] Logger Builder (#684) · e216eb83
      Elias Perez authored
      Use logger builder logger method.
      e216eb83
    • David Patterson's avatar
      [CLI] Adds support for generating pages (#674) · a9449dee
      David Patterson authored
      Addresses #671
      a9449dee
    • Eloy Pérez's avatar
      Extract Logging and LoggingBuilder from Settings.cr file (#683) · 03ebb122
      Eloy Pérez authored
      * Style - Require crystal deps first
      
      * Move Logging into its own file
      
      * Move LoggerBuilder into its own file
      
      * Move LoggingType to Logging class under name OptionsType
      
      * Create Logging::DEFAULTS and reference it in Settings
      
      * Group logging methods && properties in Settings
      
      * Call property macro only one time
      
      * Use getter macro to generate logger method
      
      * Specify return type of severity method
      
      * Remove logger getter method not needed
      03ebb122
    • Faustino Aguilar's avatar
      Add missing make (#680) · 66d0b3fc
      Faustino Aguilar authored
      66d0b3fc
  12. 07 Mar, 2018 9 commits
  13. 05 Mar, 2018 1 commit
  14. 04 Mar, 2018 1 commit
  15. 02 Mar, 2018 5 commits