- Switch generated Sinatra app from classic to modular style.
- Set content_type depending on service.formats and http accept header.
- Drop support for ruby
1.8.7
.
- Replace custom BodyParser with
rack-parser
middleware. - Use
rerun
gem for auto code reloading in development/test. - Wrap doc generation from WeaselDiesel::CLI. Documentation is generated via thor now, instead of rake.
- Update doc generation to support optional namespaces.
- Simpler, more compact documentation template.
Removes
WD::Response::Element#to_html
and Bootstrap dependencies. - Remove activesupport as a dependency, use inflecto for inflection support.
- Fix conflict with current Sinatra's
template
. - Fix ul tag not rendering in doc generator.
- Updated various dependencies to get the latest versions of WD, Rack, Sinatra to get the bug & security fixes.
- Minor update to the
WeaselDiesel
class and the newrelic instrumentation to be compatible with the latest version and to fix a bug which prevented some tracing.
- Minor change to the Rakefile to support the new
wd_sinatra_active_record
gem. - Calling
WDSinatra::AppLoader.set_loadpath
now requires a root path (used to be optional) and sets the app's root path if not set already.
- Bug release due to a problem with requiring the new
WSList extension
.
- Fixed a bug with the way sinatra routes are loaded. Because the routes can contain a globing param, the loading had to be changed to be smarter to globbing routes are loaded last.
- Added dependency on
WeaselDiesel
1.2.0
or greater since the API slightly changed.
- It's time for WD to graduate, it's been behaving well in production for a while and no major problems were reported. A new rake task was added in the default Rakefile to print the routes. But besides that, this version didn't add anything major to 0.3.2
- Removed
post_dispatch_hook
since it doesn't work well withhalt
and file responses. Use Sinatra'safter
filter instead. - Fixed a bug with
params_postprocessor_hook
. - Added a 'wd.service' entry to
env
that points to the dispatched service.
- Added
post_dispatch_hook
. - Fixed a few default settings.
- Added a service generator using thor.
$ thor :service get /foo/bar foo_bar.rb
(Thanks DrNic)
- Added a few basic disabled settings for newrelic and airbrake.
- added support for
ENV['DONT_LOAD_MODELS']
to avoid loading models.
- Fixed the documentation template to support namespaced input params.
- Fixed the example of the
params_exception_handler
hook added in the generatedhooks.rb
file.
- Added a
params_exception_handler
hook to customize the rescue of an exception being raised in the params processing phase.
- fixed the content type on the param verification error message
-
moved
hooks.rb
andapp.rb
to/lib
-
Automatically load the hooks in the loader if available
-
Updated
sinatra_config.rb
to automatically store exceptions inrack.exception
so rack middleware like airbrake can properly make use of the exceptions without exposing any details to the end users. -
Added support for documenting the service params as they are defined. (thanks rwfowler)
service.params do |p|
p.string :email, :doc => "Email address of the recipient."
end
-
Started porting test helpers to facilitate API testing.
-
Updated the guard files. (thanks drnic)