1. 02 Feb, 2018 4 commits
  2. 01 Feb, 2018 5 commits
  3. 31 Jan, 2018 1 commit
    • Grigoriy's avatar
      Add handler of */* requested response (#586) · 8bbf612d
      Grigoriy authored
      * Add handler of */* requested response
      
      * Change behaviour of responders
      
      * Add some responders tests and change behaviour of type selector
      
      * Add responder invalid extension test with */*
      8bbf612d
  4. 30 Jan, 2018 4 commits
    • Davor Ocelic's avatar
      a0e2caa9
    • Davor Ocelic's avatar
      854946c5
    • Davor Ocelic's avatar
      Make valid? return false on missing field (#593) · 9c6cdb5a
      Davor Ocelic authored
      * Make valid? return false on missing field
      
      Calling params.valid? now returns false regardless whether the cause for
      failed validation is a field missing or field's value not passing
      validation.
      
      Previously, only field's value not passing validation was returning
      false, while a missing value was (incorrectly) raising an exception.
      
      Tests are also fixed to behave as it was intended.
      
      * Avoid raise_on_error as suggested by @eliasjpr
      9c6cdb5a
    • Davor Ocelic's avatar
      Rename extensions (#578) · ec6e2b7a
      Davor Ocelic authored
      * Rename extensions
      
      - Rename Amber::Extensions::<Type>Extension into Amber::Extensions::Type
        (This makes it uniform with other things in Amber, e.g. pipes are named
         Amber::Pipe::<Name>, not Amber::Pipe::<Name>Pipe.)
      - Rename files accordingly as well
      - Add test for HTTP extensions
      
      * Change test name
      ec6e2b7a
  5. 28 Jan, 2018 1 commit
    • Gabriel Engel's avatar
      Unique user creation (#579) · 96324827
      Gabriel Engel authored
      * Fix conflicting colored_server_name on deploys and avoids underscore usage on hostnames (#546)
      
      Transform anything that's not digit or letter into dash
      
      * User model generator validates uniqueness of email
      96324827
  6. 24 Jan, 2018 5 commits
    • Gabriel Engel's avatar
      README Contributing: write and run specs (#577) · 6720458e
      Gabriel Engel authored
      * Fix conflicting colored_server_name on deploys and avoids underscore usage on hostnames (#546)
      
      Transform anything that's not digit or letter into dash
      
      * README on Contribuiting: write and run tests
      6720458e
    • Gabriel Engel's avatar
      Digital ocean deploy on 1gb VM (#571) · 26e94e4e
      Gabriel Engel authored
      * Fix conflicting colored_server_name on deploys and avoids underscore usage on hostnames (#546)
      
      Transform anything that's not digit or letter into dash
      
      * Use Digital Ocean's 1gb machine. 512mb is obsolete.
      26e94e4e
    • Davor Ocelic's avatar
      Add client IP pipe (#564) · 82eecb23
      Davor Ocelic authored
      * Remove unconditional search for real client IP (#534)
      
      * Pipe::ClientIp - saves client IP to Amber context
      
      - Add Amber::Pipe::ClientIp
      - It looks into configured header names (default: "X-Forwarded-For"),
        finds the first header that exists, and takes its last value
      - Saves the value into context.client_ip as Socket::IPAddress(addr, 0)
      
      - Covered by specs
      
      - Along the way, sort in alphabetic order methods on the controller
        that are delegated to context for easier lookup and modification
      
      * Add ClientIp pipe template to config/routes.cr
      
      - Add Amber::Pipe::ClientIp to template config/routes.cr
      - By default, add it in disabled state
      - Even though ClientIp has default header ("X-Forward-For"), do mention
        name explicitly in the template, and also show an array to be as
        easy and intuitive as possible for users to understand what the header
        name is and that multiple headers are accepted
      
      * Use first instead of last IP address (#564)
      
      * Make non-matched header name more obvious (#564)
      
      * Improvements as per discussion #564
      
      - Fix/improve examples
      - Extract HTTP::Server::Context extensions to extensions/http_extensions.cr
      82eecb23
    • Faustino Aguilar's avatar
      Add author (#576) · beb17db6
      Faustino Aguilar authored
      beb17db6
    • Kevin Sjöberg's avatar
      Migration improvements (#554) (#568) · 7c8126ba
      Kevin Sjöberg authored
      * Add db/migrations to app template
      
      * Handle missing migrations gracefully
      
      * Capitalize message
      
      - Add migration directory to IndexError
      7c8126ba
  7. 23 Jan, 2018 2 commits
  8. 22 Jan, 2018 3 commits
  9. 21 Jan, 2018 6 commits
  10. 20 Jan, 2018 2 commits
  11. 19 Jan, 2018 6 commits
  12. 16 Jan, 2018 1 commit