All notable changes to sinatra-browse will be documented in this file. This project adheres to Semantic Versioning.
-
Added
Support for Ruby 2.2.2. That means the unit tests are now run on that version. It was probably working already anyway. -
Changed
Adapted the changelog format to follow the same style as our other projects. -
Fixed
A bug where parameters that were not required and had no default value would be set to nil if they were missing from a request. -
Removed
Support for Ruby 1.9.3 as Ruby officialy dropped support for it in February this year. It might still work but Sinatra-browse will no longer be unit tested against it.
-
Added
New parameter type:DateTime
. -
Added
New validatorsmin
andmax
to all numeric parameters. (Float, Integer and DateTime) -
Added
Optional syntaxparameter
that has the exact same use asparam
. -
Added
New keyworddescription
ordesc
that allows you to fill in a human readable description of each parameter. -
Fixed
A bug where files some times got required in the wrong order. -
Fixed
A bug where all parameter validators where accessible from every parameter type. -
Refactored
Internal parameter type declaration is now more simple ruby code. (No DSL)
-
Changed
Cleaned up the browsable API part.- html is now defined in an erb template and used a proper doctype, etc.
- Changed the look of the html template a bit even though it's still not using stylesheets.
- Cleaned up the yaml and json generation.
- Allow yaml to be generated using both 'yml' and 'yaml' as the format parameter.
-
Refactored
A lot of internal code cleanup.
Added
Implemented two new String validations.- min_length
- max_length
-
Added
The possibility to override default error behaviour. -
Changed
Improved the error hash to contain more information about the error that occurred. -
Changed
Renamedsystem_parameters
option toallowed_undefined_parameters
. -
Changed
Don't show HEAD routes in the browsable API by default.
First usable version.