1. 10 Nov, 2017 2 commits
  2. 14 Oct, 2017 1 commit
  3. 13 Oct, 2017 3 commits
    • Isaac Sloan's avatar
      Lock shard.yml Amber version to version of cli that generated it. (#304) · bcea5463
      Isaac Sloan authored
      * defaults amber version to the same version as the cli
      
      * changed spec to test this scenario
      bcea5463
    • Isaac Sloan's avatar
      moved environment_loader to scripts · 302fa291
      Isaac Sloan authored
      302fa291
    • Elias Perez's avatar
      Adds environment boolean checks (#302) · 2ace4dda
      Elias Perez authored
      Amber currently ships with 3 different environments: development, test
      and production.
      
      As a developer I would like to sometimes run code conditionally
      depending on the environment that the application is.
      
      ```crystal
      if Amber.env.development?
        # ... code here ...
      end
      
      ```
      
      This PR addresses the issue by creating a Amber::Env module that
      contains 3 module methods:
      
      ```crystal
      Amber.env.development?
      Amber.env.test?
      Amber.env.production?
      Amber.env.integration?
      Amber.env.staging?
      Amber.env.sandbox?
      
      Amber.env.in? %w(development test)
      Amber.env.in? %i(development test)
      
      Amber.env.is? "test"
      Amber.env.is? :test
      ```
      
      With the changes in this PR a developer should be able to call the
      appropriate method to check for the desired environment.
      
      Adds Additional Module methods
      
      `in?` and `is?` methods to check for inclusion of the environments
      
      Uses rails style for Amber environment checks
      2ace4dda
  4. 12 Oct, 2017 2 commits
    • Faustino Aguilar's avatar
      Extract CSS from JS bundle (#301) · 7ce0d08f
      Faustino Aguilar authored
      * Extract CSS from JS bundle
      
      It moves all the required *.css modules in entry chunks into a separate CSS file.
      
      - Faster runtime (less code and DOM operations)
      - Styles are no longer inlined into the JS bundle.
      -  If your total stylesheet volume is big, it will be faster because the CSS bundle is loaded in parallel to the JS bundle.
      
      * Update generated bundles
      
      * Update generated bundle
      
      * Remove webpack plugin to minify css
      7ce0d08f
    • Faustino Aguilar's avatar
      Use quartz_mailer (#300) · 4592f897
      Faustino Aguilar authored
      * Use quartz_mailer
      
      * Update quartz mailer name
      4592f897
  5. 11 Oct, 2017 2 commits
  6. 08 Oct, 2017 1 commit
  7. 07 Oct, 2017 3 commits
  8. 04 Oct, 2017 1 commit
  9. 02 Oct, 2017 1 commit
  10. 30 Sep, 2017 1 commit
  11. 29 Sep, 2017 3 commits
  12. 28 Sep, 2017 2 commits
  13. 27 Sep, 2017 1 commit
  14. 26 Sep, 2017 2 commits
  15. 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
  16. 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
  17. 18 Sep, 2017 1 commit
  18. 17 Sep, 2017 1 commit
  19. 15 Sep, 2017 2 commits
  20. 13 Sep, 2017 3 commits
  21. 12 Sep, 2017 2 commits
  22. 11 Sep, 2017 2 commits
  23. 10 Sep, 2017 1 commit
    • 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