Released on 2015-03-31.
Finally… no more Netty snapshot dependencies. Netty 4.1b4 final was released during this cycle so there is no longer any need to add snapshot repositories to your build or any such nastiness. We apologise again for the inconvenience this caused.
Beyond this glorious news, there's some cool stuff in this release.
Promise type has been simplified. What was previously 3 different types has been collapsed to just
Promise. This generally makes the API simpler to understand and easier to use as a return value in your API. New operations have also been added such as
mapError(). The implementation of promises underwent some optimization and now creates fewer interim objects.
It's now possible to get hold of a global execution control that binds to the current execution on demand. This makes it potentially more convenient to perform async ops outside of the handler layer by removing the need to inject or pass in an exec control. We all know that global statics are problematic in many cases, a prominent one being testing. Ratpack's
ExecControl is not something you are going to mock or double at test time. Instead, you can use the
ExecHarness to unit test async code. The global execution control will work just fine with an exec harness.
The methods of the RxJava and Reactive Streams types are now installed as Groovy extension methods. This makes working with RxJava and Reactive Streams more convenient when using Groovy.
The methods of the RxJava integration has been revamped and simplified in this release.
Ratpack now compresses responses by default if the client requested compression. To suppress compression, you can call the
response.noCompress() before sending the response.
Along with steady general improvements to the docs, significant progress has been made on the documentation for the
ratpack-config module introduced some releases back.
The launching API has been greatly simplified in this release to use fewer types and generally be more friendly.
Glen Schrader contributed improvements to the Coda Hale Metrics integration.
Robert Zakrzewski contributed support for asynchronous health checks in core.
Jason Winnebeck contributed some documentation for Ratpack's WebSocket support.
We hope you enjoy this Ratpack release.
-- Team Ratpack
Pull Requests (5)
-  - FileSystemChecksumServices API extension (zedar)
-  - metrics regex reporter filter (gschrader)
-  - Some documentation for WebSockets class (gillius)
-  - Add support for nonblocking health checks (zedar)
-  - Put encoder before aggregator in NettyRatpackServer pipeline. (vqvu)
Resolved Issues (13)
-  - Run health checks on a non request thread
-  - Upgrade to Netty 4.1.0-beta4
-  - Manual Docs; build.gradle file cite should have netty-handler:4.1.0.Beta4-SNAPSHOT repository.
-  - Add support for Slfj MDC support
-  - More ratpack-config documentation
-  - Add API for custom promise operations that chain
-  - Add API for converting promises to other types (e.g. Observable) in a fluent way
-  - Groovy Extensions for RxJava and Reactive Streams
-  - Gradle plugin portal not updated
-  - Collapse SuccessPromise, Promise, PromiseOperations into just Promise
-  - Filtering metrics
-  - Dependency on SNAPSHOT versions of io.netty stuff fails
-  - Exception when loading from FileSystemBinding with non-writeable containing directory