1. 25 Dec, 2017 2 commits
  2. 24 Dec, 2017 4 commits
    • Elias Perez's avatar
      Ep/cli better logs (#458) · b92b24e9
      Elias Perez authored
      * [Settings] Adds options to logging property
      
      Allows for logging to be more configurable by replacing the
      colorize_logging property to a logging hash(String, Bool) property.
      
      This change will allow to make logging information more configurable
      when an Amber::Environment::Logger is introduced.
      
      * [Env] Adds logger formatter to environment.cr
      
      Adds the default logging formatting to the environment module.
      
      This module is used for the CLI and Amber to manage the framework
      environment.
      
      - Modifies the Environment::Loader so it loads defaults settings if no
      Environment config file is present.
      
      * [Logger] Pipe Logger
      
      Makes pipe logger more configurable allowing it to accept config
      settings at initialization.
      
      - Allows to pass in a filter, skip and context
      
      * [Logger] Pipe Logger
      
      Makes pipe logger more configurable allowing it to accept config
      settings at initialization.
      
      - Allows to pass in a filter, skip and context
      
      * [CLI] Adds consistent logging to CLI
      b92b24e9
    • Isaac Sloan's avatar
      Bumped to v0.5.0 (#456) · 2bf66bbe
      Isaac Sloan authored
      * Bumped version number to v0.5.0.
      
      * Settings amber lock back to master for master branch
      2bf66bbe
    • Elias Perez's avatar
      [Log] Better logs (#450) · 72f8f22c
      Elias Perez authored
      * [Settings] Adds options to logging property
      
      Allows for logging to be more configurable by replacing the
      colorize_logging property to a logging hash(String, Bool) property.
      
      This change will allow to make logging information more configurable
      when an Amber::Environment::Logger is introduced.
      
      * [Logger] Adds Amber Environment Logger
      
      The logger extends the Crystal Lib logger to allow to standarized the log output. It will also allow to extend the implementation of the logger.
      
      - Adds puts method for regular logging
      - Overwrites severity log methods to Amber style of logging.
      
      * [Env] Adds logger formatter to environment.cr
      
      Adds the default logging formatting to the environment module.
      
      This module is used for the CLI and Amber to manage the framework
      environment.
      
      - Modifies the Environment::Loader so it loads defaults settings if no
      Environment config file is present.
      
      * [Logger] Pipe Logger
      
      Makes pipe logger more configurable allowing it to accept config
      settings at initialization.
      
      - Allows to pass in a filter, skip and context
      72f8f22c
    • Isaac Sloan's avatar
      removed npm from docker (#455) · 44f684f4
      Isaac Sloan authored
      44f684f4
  3. 22 Dec, 2017 1 commit
    • Elias Perez's avatar
      [CLI] Removes Run and Perform Commands (#452) · ca124c4a
      Elias Perez authored
      This removes the Run and Perform command in favor of existing commands
      that perform the same tasks.
      
      - Run is replaced by using `crystal build` or `shards build` these
      commands builds the project and later the project can be ran with
      `./bin/{}project_name}`
      - Perform is replaced in favor of the exec command that can execute
      existing files.
      - Adds header to commands for better help display.
      ca124c4a
  4. 21 Dec, 2017 1 commit
  5. 20 Dec, 2017 6 commits
  6. 19 Dec, 2017 1 commit
  7. 14 Dec, 2017 2 commits
  8. 13 Dec, 2017 2 commits
    • Isaac Sloan's avatar
      Emergency Bug Fix: Fixed order dependent CSRF spec. (#444) · 439175e7
      Isaac Sloan authored
      * fixed order dependent csrf test. Feels good.
      
      * fix other order dep bug
      439175e7
    • Faustino Aguilar's avatar
      Provide attributes for git config (#434) · 9cdc372e
      Faustino Aguilar authored
      * Provide attributes for git config
      
      * Add git config data and development usage
      
      * Fix installation section
      
      * Fix typo
      
      * Remove database condition
      
      * Add author and email to shard.yml
      
      * Fix wrong var name
      
      * Avoid empty `user.name` or `user.email`
      
      * Use system
      
      * Add type
      
      * Mention amber encrypt and add mysql
      
      * Remove variable
      
      * Fix default
      
      * Clarify fetch code
      9cdc372e
  9. 10 Dec, 2017 1 commit
  10. 08 Dec, 2017 2 commits
  11. 04 Dec, 2017 4 commits
  12. 03 Dec, 2017 2 commits
    • Elias Perez's avatar
      [CLI] Add Amber::CLI::Config to cleanup database, language and model (#426) · bfb6766b
      Elias Perez authored
      The code looks into a `./.amber.yml` file to load predefined settings
      for Amber::CLI, there is a lot of duplicate code around loading this
      settings.
      
      This Removes the code duplication by creating a Config module to load
      the cli specific settings.
      
      - Adds Amber::CLI::Config module
      - Removes duplicate code
      bfb6766b
    • Elias Perez's avatar
      [ENV] Creates an Environment Module (#423) · cd0318a4
      Elias Perez authored
      * [ENV] Creates an Environment Module
      
      In order to remove duplication and reuse Amber.settings across CLI
      and Amber this moves the Environment functionality into its own module.
      This change facilitates the reuse of Amber::Settings encapsulating common
      functionality into the environment module.
      
      - Adds environment module
      - Moves Environment, Environment Loader and Settings to the Environment
      module
      - Includes the Environment Module in Amber and Amber::CLI
      - Fixes Specs
      
      After this change the CLI and Amber will be able to share the same
      Amber.settings scope only loading the necessary module.
      
      * fixup! [ENV] Creates an Environment Module
      
      * fixup! [ENV] Creates an Environment Module
      
      * fixup! [ENV] Creates an Environment Module
      
      * fixup! [ENV] Creates an Environment Module
      
      * fixup! [ENV] Creates an Environment Module
      
      * fixup! [ENV] Creates an Environment Module
      cd0318a4
  13. 02 Dec, 2017 2 commits
  14. 01 Dec, 2017 2 commits
    • Nick Franken's avatar
      3ed40425
    • Mark's avatar
      Update auth generator (#407) · dcc245fb
      Mark authored
      * Update auth generator
      
      * Refactor migration helper methods to a module
      Mixin that module with the migration template and auth template
      
      * Remove memoization of @password for generated auth model
      
      * Refactor helpers, fetching database, and fetching template language for CLI
      
      * Refactor auth template
      
      * Refactor slang views for auth for CLI
      
      * Refactor controller for 'amber g auth'
      - Includes moving current_user-like methods into ApplicationController
      
      * Add newline to generate method definition
      
      * CLI - Add root path to allowable paths, move list of paths to constant
      
      * Switch fetch helper methods to be private
      
      * Change implementation of how a path is determined to be public
      dcc245fb
  15. 30 Nov, 2017 3 commits
    • Mark's avatar
      Add error generator to CLI (#415) · 13de6189
      Mark authored
      * Add error generator to CLI
      
      * Add 'generate error' to build tests
      
      * Have 'amber g error' not require a name argument
      The other generate commands still require a name arguement
      
      * Reorganize error generator files, implement generated specs, generate handler for error pipe
      
      * Have 'amber g error' generate views for selected language only
      
      * Uncomment cleanup command for build specs
      
      * Rename templates to allow dynamic name for 'amber g error'
      13de6189
    • Isaac Sloan's avatar
      [CLI] amber db create migrate works with encrypted files as well now. (#417) · c7ffd11d
      Isaac Sloan authored
      * progress
      
      * file encryptor
      
      * progress
      
      * added file encryptor tests
      
      * added requested changes
      c7ffd11d
    • Mark's avatar
      Add 'help' option to CLI commands (#421) · 52adf89f
      Mark authored
      52adf89f
  16. 26 Nov, 2017 1 commit
    • Elias Perez's avatar
      [ENV] Allows for environment settings to be loaded dynamically via a YAML settings file (#412) · f8be9e15
      Elias Perez authored
      * [ENV] Add Update YAML Files For Testing
      
      Adds and update the yaml files to be used for testing switching
      environments.
      
      - Adds Development YAML
      - Adds Encrypted YAML
      - Adds Fake Environment Yaml
      - Updates Test yaml
      
      Some spec will fail and this is expected so we can work thru the
      failing test
      
      * [ENV] Remove Environment Loader Scripts
      
      Removes the Environment loader script files since we will attempt to
      load environment dynamically from an Environment Loader Class
      
      * [ENV] Introduces Env Loader
      
      Adds environment loader class and uses this class to load the
      environments
      
      - Removes all settings related method from Configuration and only keeps
      server related methods
      - Adds Environment Loader Spec
      - Adds Environment Loader class
      
      * [SESSION] Fixes Session Specs
      
      Fixes session specs and adds Sever.settings scopes
      
      * [Settings] Rename color to colorize_logging
      
      Currently the Settings.color is not very descriptive. After looking at the way Rails does this decided to change the name colorize_logging which it makes more sense
      
      * [Config] Adds inline documentation to application.cr
      
      Adds definitions to each and one of the settings found in the config/application.cr to dictate and clarify to the user the purpose of the setting and how it should be used.
      
      * [CLI] Use application.cr in Exec command
      
      Application.cr is Amber app main entry point and should be use when wanting to load the Amber Environment.
      
      These changes moves towards the goal of using `require “config/application.cr”` as the main entry point for amber app. Increases consistency and cohesion.
      
      * [Server] Removes Configuration File and Cleanups Server
      
      The configuration file was just storing server class methods. The changes found in this PR moves those methods into the `amber/server/server.cr` file and deletes the `amber/server/configuration.cr`
      
      - Moves `amber` module related methods into `amber.cr`
      - Creates `amber/server/server.cr` file
      
      * Parrallelize travis
      
      * [Crystal Format] Applies crystal tool format
      
      * fixup! [Config] Adds inline documentation to application.cr
      
      * [Amber] Cleanup settings and logger
      
      * [CLI] Remvoes curly braces from yamls
      
      * [SPECS] Move Build Spec to Root for Fater Specs
      f8be9e15
  17. 24 Nov, 2017 1 commit
    • Elias Perez's avatar
      [CLI] Removes amber migrate command in favor of amber db migrate (#413) · bc6a6753
      Elias Perez authored
      Removing in favor of `amber db migrate`. Having the `amber migrate` is
      redundant and over complicated the list of commands to learn.
      
      - Deletes migrate command file
      - Updates readme
      - Updates deploy command
      
      With the removal of the `amber migrate` command we have simplify the
      number of commands available and writing redundant documentation for a
      command that already exists under the `amber db`
      bc6a6753
  18. 23 Nov, 2017 3 commits
    • Dru Jensen's avatar
      merging changes between branches (#406) · 89534091
      Dru Jensen authored
      * [CLI] Moves DB settings to config/environments
      
      Currently database settings reside in the config/database.yml this is
      redundant since Amber has settings per environment.
      
      This PR removes the `config/database.yml` and uses the environment yamls
      files to load the database settings.
      
      There is a couple of benefits for doing this:
      1. Database settings are loaded per environment.
      2. It is more intuitive to know where to put DB settings.
      
      [ENV LOADER] Add database settings to environment_loader
      
      - Adds database property to Amber::Settings
      - Adds database property to spec test.yml
      - Load database settings from environment yml
      - Updates settings specs to check for database settings
      - Updates environment loader specs to check for database settings
      
      [CLI] Updates init spec file
      
      - Updates amber spec file to check for database key
      - Tidy init_spec connection string validation
      - Add `expected_db_url(db_key, env)` method to cleanup specs
      
      * merging changes between branches
      
      * fix to db seeds
      
      * [CLI] Moves DB settings to config/environments
      
      Currently database settings reside in the config/database.yml this is
      redundant since Amber has settings per environment.
      
      This PR removes the `config/database.yml` and uses the environment yamls
      files to load the database settings.
      
      There is a couple of benefits for doing this:
      1. Database settings are loaded per environment.
      2. It is more intuitive to know where to put DB settings.
      
      [ENV LOADER] Add database settings to environment_loader
      
      - Adds database property to Amber::Settings
      - Adds database property to spec test.yml
      - Load database settings from environment yml
      - Updates settings specs to check for database settings
      - Updates environment loader specs to check for database settings
      
      [CLI] Updates init spec file
      
      - Updates amber spec file to check for database key
      - Tidy init_spec connection string validation
      - Add `expected_db_url(db_key, env)` method to cleanup specs
      
      * merging changes between branches
      
      * fix to db seeds
      
      * fix docs.  also fix docker-compose for sqlite regarding missing volume
      89534091
    • Elias Perez's avatar
      [Static Handler] Adds support for root path (#408) · 9958839a
      Elias Perez authored
      When the path ends with `/` it checks if the public directory has an
      index.html to be rendered.
      9958839a
    • Elias Perez's avatar
      [CLI] Updates Router Template (#410) · 7f384950
      Elias Perez authored
      Updates config/router.cr to use Amber::Pipe:Static instead of Crystals
      Static handler. Users are receiving the incorrect content type for
      static files served.
      7f384950