Hanami v0.8.0 Release Notes
Release Date: 2016-07-22 // almost 8 years ago-
โ Added
- ๐ [Luca Guidi] Generate new projects with Subresurce Integrity enabled in production (security).
- ๐ [Luca Guidi] Include
X-XSS-Protection: 1; mode=block
in default response headers (security). - ๐ [Luca Guidi] Include
X-Content-Type-Options: nosniff
in default response headers (security). - ๐ [Trung Lรช & Neil Matatall] Added support for Content Security Policy 1.1 and 2.0
- [Andrey Deryabin] Experimental code reloading with
entr(1)
- ๐ฒ [Anton Davydov] Introduced JSON logging formatter for production environment
- ๐ฒ [Anton Davydov] Allow to set logging formatters per app and per environment
- ๐ฒ [Anton Davydov] Allow to set logging levels per app and per environment
- ๐ฒ [Anton Davydov] Application logging now can log to any stream: standard out, file,
IO
andStringIO
objects. - [Andrey Deryabin] Allow new projects to be generated with
--template
CLI argument (eg.hanami new bookshelf --template=haml
) - [Sean Collins] Add
--version
and-v
forhanami version
CLI
๐ Fixed
- [Josh Bodah] Ensure consistent CLI messages
- [Andrey Morskov] Ensure consistent user experience and messages for generators
- ๐ [Luca Guidi] Fixed generators for camel case project names
- ๐ [Anton Davydov] Fixed model generator for camel case project names
- [Leonardo Saraiva] Fix
Rakefile
generation to safely ignore missing RSpec in production - [Sean Collins] When generate an action, append routes to route file (instead of prepend)
- ๐ [Sean Collins] When an action is destroyed via CLI, ensure to remove the corresponding route
- โ
[Bernardo Farah] Fix
require_relative
paths for nested generated actions and views unit tests - ๐ฑ [Anton Davydov] If database and assets Rake tasks fails, ensure to exit the process with a non-successful code
- ๐ฑ [Luca Guidi] remove
Shotgun::Static
in favor ofHanami::Assets::Static
for development/test andHanami::Static
for production - [Alexandr Subbotin] Load initializers in alphabetical order
- [Matt McFarland] Fix server side error when CSRF token is not sent
- [Erol Fornoles] Fix route generations for mounted apps
- [Mahesh] Fix destroy action for application architecture
- ๐ป [Karim Tarek & akhramov] Reference rendering errors in Rack env's
rack.exception
variable. This enables compatibility with exception reporting SaaS. - ๐ฑ [Luca Guidi] Detect assets dependencies changes in development (Sass/SCSS)
- [Luca Guidi & Lucas Amorim] Make model generator not dependendent on the current directory name, but to the project name stored in
.hanamirc
๐ Changed
๐ โ [Luca Guidi] Drop support for Ruby 2.0 and 2.1
- [Trung Lรช] Database env var is now
DATABASE_URL
(without the project name prefix likeBOOKSHELF_DATABASE_URL
- [Trung Lรช]
lib/config/mapping.rb
is no longer generated for new projects and no longer loaded. - [Anton Davydov] New generated projects will depend (in their
Gemfile
) onhanami
tiny version (~> 0.8'
) instead of patch version (0.8.0
) - โ
[Andrey Deryabin]
dotenv
is now a soft dependency that will be added to theGemfile
:development
and:test
groups for new generated projects. - [Andrey Deryabin]
shotgun
is now a soft dependency that will be added to theGemfile
:development
group for new generated projects. - [Anton Davydov] New logo in welcome page
- ๐ [Ozawa Sakuro] Remove
require 'rubygems'
from generated code (projects, apps, routes, etc..) - โ
[Eric Freese] Disable Ruby warnings in generated
Rakefile
for Minitest/RSpec tasks - 0๏ธโฃ [Luca Guidi] Allow views to render any HTTP status code. In actions use
halt(422)
for default status page orself.status = 422
for view rendering.