1. 17 Nov, 2017 6 commits
    • Isaac Sloan's avatar
      Removed ICR dependancy. (#398) · 2beb9614
      Isaac Sloan authored
      * removed icr
      * formatted
    • Isaac Sloan's avatar
      logo linked to site-assets/images/amber.png · dd437d3c
      Isaac Sloan authored
    • Isaac Sloan's avatar
      updated link to amber logo. · 562fe9e3
      Isaac Sloan authored
    • Isaac Sloan's avatar
      Bumped version number to v0.3.6. · 31be2a5b
      Isaac Sloan authored
      Former-commit-id: f660a32ca5ed372dc1ea8e39d3611a0ca4536caf
    • Paweł Świątkowski's avatar
      Add app binary to generated .gitignore file (#394) · d66a7e94
      Paweł Świątkowski authored
      * Add app binary to generated .gitignore file
      * Add "app" binary to gitignore
      * Put binaries in bin directory
      * Make sure bin directory exists before running build
      Former-commit-id: 22c0b2d82e28413dfedc32ee8d324bd6567bae66
    • Elias Perez's avatar
      [CLI] Removes Amber Console (#397) · 8490f990
      Elias Perez authored
      Currently the `amber console` command does not behave as people would
      expect. One of the main issues with `amber console` is that already
      executed code gets re-executed again and again when a new command is
      - This change is necessary to avoid ambiguity and confusion of the
      existence of the two commands `amber console` and `amber exec`
      - With the existence of `amber exec` it replaces `amber console` with
      better user experience.
      - Removes `amber console` in favor of `amber exec`
      * This is the most important question to answer, as it can point out problems
      where you are making too many changes in one commit or branch. One or two bullet
      points for related changes may be okay, but five or six are likely indicators of
      a commit that is doing too many things.
      Former-commit-id: b97ab41bc31a989d54a9cde67e72cf8be1e95cb0
  2. 16 Nov, 2017 1 commit
  3. 15 Nov, 2017 1 commit
  4. 14 Nov, 2017 4 commits
    • Mark's avatar
      Add ms to auth generated migration timestamped file name (#390) · 62370c4e
      Mark authored
      Former-commit-id: 2a14521fdf9c0951cc105383c3cf8c230494dfcf
    • Elias Perez's avatar
      Updates the Amber Gitter channel URL · f66a0c2c
      Elias Perez authored
      Currently the Amber Channel URL has the wrong domain extension
      this correct the URL with the correct domain extension
      Former-commit-id: 7933082149c34d125aae959d3bafa806f64ae732
    • Elias Perez's avatar
      Ep/move properties to server (#386) · 5d09a1ce
      Elias Perez authored
      * [Server] Moves Router and Handler out off Settings
      - Moves the Pipeline instance from Amber::Settings into the Server instance
      - Moves the Router instance from Amber::Settings into the Server instance
      Signed-off-by: default avatarElias Perez <eliasjpr@gmail.com>
      * [Server] Moves WebSocketAdapter and Removes Settings class method
      Signed-off-by: default avatarElias Perez <eliasjpr@gmail.com>
      * [Server] Move websockets from Configuration to Server
      - Replace settings.handler with just handler
      Former-commit-id: 604d6329de20f694a4e4296a499fc0d7c3ac2d81
    • Elias Perez's avatar
      Ep/master build (#381) · 4127dcde
      Elias Perez authored
      * Move build test to its own file and test more aspects of build
      * Move build test to its own file and test more aspects of build
      * Update Dockerfile to run build tests
      * Modify integration tests
      * Modify integration tests
      * [Master Build] Fix Master Build Spec
      * [Master Build] Run Shard Update and Crystal Spec
      * [Rename Method] Renames create_method to create_{model_name}
      * [Cleanup] Cleans up method names in generators
      * [Master Build] Ensure cleanup of test app
      * [Garnet Spec] Renames Amber Spec to Garnet Spec
      * [Scaffold] Renames Spec:: to GarnetSpec::
      * Update based on code review
      Former-commit-id: 1883e4fc26095b251d88f903466d6183274aeb24
  5. 12 Nov, 2017 2 commits
    • Faustino Aguilar's avatar
      Fixes front-end dependencies for Amber Framework (#372) · 3325dfa4
      Faustino Aguilar authored
      * Fixes front-end dependencies for Amber Framework
      - Add node_modules and package.lock to .gitignore
      - Add let keyword on amber.js applying #361
      - Generate amber.min.js
      - Add babel-loader and env preset to webpack config
      * Change description
      * Add instructions to buid amber.min.js
      Former-commit-id: 88327c684ecb10655f160afeef2c68dd8590fdc7
    • Isaac Sloan's avatar
      Set ENV["PORT"] to be used by default if defined. (#377) · 09405e33
      Isaac Sloan authored
      * added envport by default
      * allowed ENV["PORT"] to be used by default if defined.
      * added env override to settings files.
      Former-commit-id: ea8021abb7ea4f3286b39db30ac20a62a8412ac6
  6. 11 Nov, 2017 5 commits
    • Isaac Sloan's avatar
      Trying again to get the tests to pass predictably on linux. (#383) · 1a649965
      Isaac Sloan authored
      * Got travis tests to pass every time. Ended up being an issue of timestamp resolution on files for linux.
      * trying again 😢
      * Update environment_loader.cr
      * changed timestamp to milliseconds
      * one last push to make sure travis still passes 4 times in a row
      Former-commit-id: b80812775cb295457d6050e345b118549fb2dd3f
    • Isaac Sloan's avatar
      Revert "cli: add "amber exec" command for executing one-liners (#352) (#371)" (#382) · a730d150
      Isaac Sloan authored
      This reverts commit 137c95ba8b2bedd1c934599627c7e9ce5373b1bd [formerly 8dce363d6cb8eb0d18e6f17e78df1e9c2faef9cd].
      Former-commit-id: af11eeb7e4a19d86ea4bc02c374a0202de1849ad
    • Sam Johnson's avatar
      cli: add "amber exec" command for executing one-liners (#352) (#371) · c2250f90
      Sam Johnson authored
      * cli: add "amber exec" command for executing one-liners (#352)
      * this now behaves as close to a console as we can make it
      * finishing touches for amber exec
      * do not run editor unless in editor mode
      * always return a result
      * minor wording change in error message
      * amber exec specs
      * cleaned up code a bit and copied existing file to new temp file for edits
      * specs pass yay. MainCommand.run always returns nil which makes testing hard
      * new push to see if travis passes. Pass locally so I'm confused.
      * debugging to figure out why travis doesn't pass
      * added sleeps to see if that works
      * one last thing
      * what the what?
      * i hope this will clear it up
      * weird hack that i think fixes specs on linux
      * commented weird hack
      * native ls had better work
      * formatted and fixed tests probably
      * removed some vestigual code.
      * removed macro flag for now
      * test47 of travis
      * namespaces specs
      * sorted ls results
      Former-commit-id: 3a55d2a2872d55a91ad1130f10efd11ba5b5c979
    • Isaac Sloan's avatar
      emergency fix · 6f18bd42
      Isaac Sloan authored
      Former-commit-id: bb5612ec0df9461850421c1f276dd7853e79071f
    • Isaac Sloan's avatar
      fixed bug where body was getting parsed when it didn't exist. · 56ca09bb
      Isaac Sloan authored
      Former-commit-id: 3dda27bbec1801512bd53090279e7fd8aa076233
  7. 10 Nov, 2017 1 commit
  8. 09 Nov, 2017 5 commits
    • Mark's avatar
      Allow multiple pipelines to be added with one block (#359) · 9189dead
      Mark authored
      * Allow multiple pipelines to be added with one block
      * Add tests to DSL::Server pipeline
      * Fix bug where `key?` was return `nil` - creating a false negative
      * Refactor some Amber::DSL::Server tests
      * Switch server_spec to use `instance` and `settings`
      - Using Amber::Server.new was breaking and Amber::Server.configure will be deprecated in favor of settings
      - Also added some nil checks to get failures in test suite instead of errors
      Former-commit-id: aeef4994c509852f881f50d197e62a1e60fad7bc
    • Dru Jensen's avatar
      Add missing let on amber.js (#361) · 957e8b4d
      Dru Jensen authored
      Former-commit-id: 765f8fca5ec99ccd9ef9ef917786a413422b8ddc
    • Faustino Aguilar's avatar
      Fix and update dependencies (#370) · d232198e
      Faustino Aguilar authored
      * Fixes #333 
      * Update crystal databases libraries.
      * Update Kilt dependency
      * Update Cli dependency
      Former-commit-id: f20150769b9915283bc98e621f5c18cd9794e3d7
    • Faustino Aguilar's avatar
      Fix dependencies for amber projects using default app template (#373) · a95a155d
      Faustino Aguilar authored
      Fix dependencies for amber projects using default app template
      Former-commit-id: 1e96ab791182d43dc47a2bc936950787b8f62f09
    • Isaac Sloan's avatar
      Created params object that can parse json when asked too. (#369) · 89db9e96
      Isaac Sloan authored
      * params work fine but validations seem messed up. I played with them a bit but not much progress
      * Makes params validation to use the new Amber::Router::Params
      - Removes previous implementation and uses the implementation.
      - Updates specs
      Signed-off-by: default avatarElias J. Perez <elias.perez@harrys.com>
      * do tests still pass here?
      Former-commit-id: a3cd3d893ca6be4c19c4c9a7e5c754e0f1ce591f
  9. 08 Nov, 2017 5 commits
    • Elias Perez's avatar
      [Redirect] Allows for Class and Symbol Controller name (#363) · 3d4d52ca
      Elias Perez authored
      * [REDIRECT] Allows for Class and Symbol Full Controller name
      Issue: https://github.com/amberframework/amber/issues/353
      > As a developer I would like to pass and full controller name to a
      redirect as a class or symbol and allow for the redirection to happen
      `redirect_to controller: :HomeController, action: :index`
      - Would be nice to accept HelloController::Index or
      * fixup! [REDIRECT] Allows for Class and Symbol Full Controller name
      * Adds Hash Table Lookup for Routes
      Looking up routes base on controller and action in a radix tree causes On2
      many cases because of the radix tree.
      To avoid that pain this adds hash table to perform lookups by conntroller
      name and action while this might consume more memory it performs better and
      makes the code cleaner and lookups based on controller#action are now more reliable
      Signed-off-by: default avatarElias Perez <eliasjpr@gmail.com>
      * Removes Redirect Exception
      Since it is now using hash table lookup for redirects there is no need for
      raising errors, if the controller action combination does not exists it throws
      KeyError exception.
      Signed-off-by: default avatarElias Perez <eliasjpr@gmail.com>
      * Cleanup and fixes specs
      Signed-off-by: default avatarElias Perez <eliasjpr@gmail.com>
      * Cleanup
      Former-commit-id: 656c3f6013da546db1711c23d975503bac9c8e2a
    • Nathan Jones's avatar
      cli: implement `db create/drop` for sqlite3 (#351) · fa7a1cc6
      Nathan Jones authored
      When running `amber db create` for an sqlite3 database, amber displays
      the error:
        could not determine database name
      This can be confusing to the user who doesn't know that `amber db
      create` does not need to be run for sqlite3 databases. Display a
      friendlier message.
      Also implement `amber db drop` to delete the database.
      Former-commit-id: 3253ec9582e5f83111b04867bd455083baebd817
    • Elias Perez's avatar
      [Controller] Adds Route Helper Methods to Controller (#362) · 48ca462c
      Elias Perez authored
      * Adds Route Helper Methods to Controller
      > As a developer I want to have access to the current matched
      route information such as the Action, Controller, Resource
      and Scope accessed.
      This adds a Route helper file
      - Includes the following methods route_action, route_controller,
      route_resource, route_scope in the controller
      ### Alternate Design
      I thought of using a different name such as action_name, controller_name
      but it seemed more explicit to have `route_` prefix to hint the user where is
      this information is coming from.
      * fixup! Adds Route Helper Methods to Controller
      Former-commit-id: 3df8c1e66acf82c2ff4484675ca402d38b86767b
    • Faustino Aguilar's avatar
      Update font-end dependencies on app template (#366) · 76420ea0
      Faustino Aguilar authored
      * Update font-end dependencies
      * Update babel presets
      Former-commit-id: fc697f7bbfdfb1350749dc9288d76e84f1ef7f49
    • Isaac Sloan's avatar
      Respond_with uri extensions path.[json|xml|text|txt|html] (#367) · 8bf9b838
      Isaac Sloan authored
      * works but reveals another issue with params... :{
      * handled extensions for respond_with
      * added tests and made video demo
      * changed from response back to content
      * modified some code as requested
      * accidentally undid something before my last commit
      * fixed requested changes
      * changed unacceptable response
      * refactored a bit more
      * done
      * added content-type and status_code to tests
      Former-commit-id: 8362a6266ee0c1b88b1591892e7d2856b788d1a1
  10. 07 Nov, 2017 2 commits
    • Isaac Sloan's avatar
      Improved settings and fixed tests (#364) · b8cd34fb
      Isaac Sloan authored
      * Fixed session so that it could be tested without previous tests
      effecting it's state randomly. Also conforms to best practices.
      * resolved logging level settings with instance variables
      * added settings to configure with block since it's probably clear than configure.
      * added requested test change
      Former-commit-id: 232ab29db5d1936b35455bf80d357acd559ab948
    • Faustino Aguilar's avatar
      Add community section (#368) · e8bca650
      Faustino Aguilar authored
      Former-commit-id: 39a36d01328351d012bdd82d22846bf5f513b238
  11. 05 Nov, 2017 1 commit
    • Mark's avatar
      Update tagline (#360) · 6384a970
      Mark authored
      Former-commit-id: 421845219207b7bd8eb5a45bc561da94df357218
  12. 04 Nov, 2017 5 commits
    • Elias Perez's avatar
      Organizes Controllers Helper Methods (#357) · b1226eeb
      Elias Perez authored
      * Organizes Controllers Helper Methods
      - Moves redirect into the Helpers subdirectory in controller
      - Updates require path
      - Renames Helper::Tags to Helpers::CSRF
      * Rename tags.cr to csrf.cr
      * Remove  include RedirectMethods
      Former-commit-id: d5f143d234d695c16290e0372309886afd6be328
    • Faustino Aguilar's avatar
      Centered logo README (#355) · 07718026
      Faustino Aguilar authored
      * Update design of README heading
      * Remove old links
      * Update slogan and paragraph
      * Update slogan
      Former-commit-id: aea08f5dc75695018f8ee14cb1101ccda265183c
    • Dru Jensen's avatar
      merge docker files (#350) · cba13088
      Dru Jensen authored
      Former-commit-id: 83ea7e3ba8c2e39ee96b58e1e12fe85c62b9a9a3
    • Faustino Aguilar's avatar
      Update dependencies (#349) · fbbae072
      Faustino Aguilar authored
      * Update dependencies
      * Remove branch comment
      * Fix shard build
      * Use test app name instead of path
      * More explicit build command to see failures
      * Downgrade mosop/cli
      * Try previous version of kilt
      Former-commit-id: edb4bb119e079559abf1d2cf0d312b7d09c6a001
    • Isaac Sloan's avatar
      Methods to set content type and content (#313) · e25ea0a3
      Isaac Sloan authored
      * methods to set content type and content
      * respond_with
      * respond with works
      * organized methods better
      * allow hash or json for json response
      * formatting
      * small changes
      * moved content_types out to constant
      * tested IRL
      * refactored file structure
      * works after many hours
      * good for now, got it working as good as it used to.
      * added tests
      * tests work and fixes empty headers'
      * removed vestigul code
      Former-commit-id: 6d2d14d5babcbe787326a360ddb607589c055766
  13. 02 Nov, 2017 1 commit
  14. 01 Nov, 2017 1 commit
    • Elias Perez's avatar
      Clean Up and Dry Tests (#344) · 7e87df94
      Elias Perez authored
      * Organize Factories into Fixtures
      * Organizes Helpers into submodules
      * Cleans up the CLI Commands Specs
      This organizes and cleans up and DRY the CLI specs making it more
      readable and cohesive.
      * Updates
      * fixup! Organize Factories into Fixtures
      * fixup! Organize Factories into Fixtures
      * fixup! Organize Factories into Fixtures
      Former-commit-id: b6f0459a162c67c0738aa7f145f0cb143dc69e94