1.4.0 March 20, 2015
- Added RackMapped adapter which allows Webmachine apps to be mounted at a non-root path using Rack::Map. Thanks to Julian Doherty for writing this.
1.3.1 January 15, 2015
- Fixed URI construction, including handling IPv6 addresses, when the adapter did not supply a complete hostname.
- Removed dependency of Rack Adapter on REQUEST_INFO rack environment variable which was not always present.
- Use IPAddr instead of Addrinfo as rbx does not support Addrinfo.
1.3.0 January 3, 2015
1.3.0 is a feature and bugfix release that removes two adapters, reduces memory usage, fixes bugs, and includes a bunch of new documentation. Thank you to our new contributor @rpag!
- Greatly reduced per-request garbage by freezing commonly used Strings and Regexps into constants.
- Tutorial/example documentation was extracted from the README and
extended in the
- HTTPkit adapter was added.
- Hatetepe and Mongrel adapters were removed and adapters no longer install interrupt handlers.
- The "splat" matcher in path specifications is now a Symbol
:*rather than a String
"*". Using the String version will result in a deprecation warning.
- Requests with If-None-Match where the resource does not supply an ETag will no longer respond with 412 or 500, but follow the success path.
- Path fragments are now decoded.
- Simplified the interaction between the decision FSM and tracing.
- Updated specs to use RSpec 3.
- Improved handling of IO.copy_stream on Rack servers.
- Updated the Reel adapter.
- Exposed Application instance to the Adapter.
- Decode the value of the header 'Content-MD5' as base64-encoded string.
1.2.2 January 8, 2014
1.2.2 is a bugfix/patch release that expands functionality with some edge cases, and fixes a couple of bugs. Thank you to the new contributors: Judson Lester, John Bachir, and @bethesque!
- Added Date header to responses, it's mandatory.
- Updated RSpec options to never load DRb, since it breaks the test suite.
- Updated FSM to respond with 404 if no route matches.
- Added support for key-only extensions in content negotiation.
- Improved the README file.
- Fixed insignificance of
handle_exceptioncallback's return value.
- Fixed CI setup with regards to Rubinius and JRuby.
- Several smaller code cleanups.
1.2.1 September 28, 2013
1.2.1 is a bugfix/patch release but does introduce potentially breaking changes in the Reel adapter. With this release, Webmachine no longer explicitly supports Ruby 1.8.
- Updated Reel compatibility to 0.4.
- Updated Hatetepe compatibility to 0.5.2.
- Cleaned up the gemspec so bundler scripts are not included.
- Added license information to the gemspec.
- Added a link to jruby-http-kit in the README.
- Moved adapter_lint to lib/webmachine/spec so other libraries can test adapters that are not in the Webmachine gem.
1.2.0 September 7, 2013
1.2.0 is a major feature release that adds the Events instrumentation framework, support for Websockets in Reel adapter and a bunch of bugfixes. Added Justin McPherson and Hendrik Beskow as contributors. Thank you for your contributions!
- Websockets support in Reel adapter.
Eventsframework implementing ActiveSupport::Notifications instrumentation API.
- Linked mailing list and related library in README.
- Fixed operator precedence in
- Fixed typo in Max-Age cookie attribute.
- Allowed attributes to be set in a
- Fixed streaming in Rack adapter from Fiber that is expected to block
- Added a more comprehensive adapter test suite and fixed various bugs in the existing adapters.
- Webmachine::LazyRequestBody no longer double-buffers the request body and cannot be rewound.
1.1.0 January 12, 2013
1.1.0 is a major feature release that adds the Reel and Hatetepe adapters, support for "weak" entity tags, streaming IO response bodies, better error handling, a shortcut for spinning up specific resources, and a bunch of bugfixes. Added Tony Arcieri, Sebastian Edwards, Russell Garner, Justin McPherson, Paweł Pacana, and Nicholas Young as contributors. Thank you for your contributions!
- Added Reel adapter.
- The trace resource now opens static files in binary mode to ensure compatibility on Windows.
- The trace resource uses absolute URIs for its traces.
- Added Hatetepe adapter.
- Added direct weak entity tag support.
- Related libraries are linked from the README.
- Removed some circular requires.
- Fixed documentation for the
Headersinitialization by downcasing incoming header names.
- Added a
- Conventionally "truthy" and "falsey" values (non-nil, non-false) can now be returned from callbacks that expect a boolean return value.
- Updated to the latest RSpec.
- Added support for IO response bodies (minimal).
- Moved streaming encoders to their own module for clarity.
Resource#runthat starts up a web server with default configuration options and the catch-all route to the resource.
- The exception handling flow was improved, clarifying the
- Fix incompatibilities with Rack.
- The request URI will not be initialized with parts that are not present in the HTTP request.
- The tracing will now commit to storage after the response has been traced.
1.0.0 July 7, 2012
1.0.0 is a major feature release that finally includes the visual debugger, some nice cookie support, and some new extension points. Added Peter Johanson and Armin Joellenbeck as contributors. Thank you for your contributions!
- A cookie parsing and manipulation API was added.
- Conneg headers now accept any amount of whitespace around commas, including none.
Callbacks#handle_exceptionwas added so that resources can handle exceptions that they generate and produce more friendly responses.
- Chunked and non-chunked response bodies in the Rack adapter were fixed.
- The WEBrick example was updated to use the new API.
Dispatcherwas refactored so that you can modify how resources are initialized before dispatching occurs.
Routenow includes the
Translationmodule so that exception messages are properly rendered.
- The visual debugger was added (more details in the README).
Content-Lengthheader will always be set inside Webmachine and is no longer reliant on the adapter to set it.
0.4.2 March 22, 2012
0.4.2 is a bugfix release that corrects a few minor issues. Added Lars Gierth and Rob Gleeson as contributors. Thank you for your contributions!
- I always intended for Webmachine-Ruby to be Apache licensed, but now that is explicit.
- When the
#process_postcallback returns an invalid value, that will now be
inspected in the raised exception's message.
- Route bindings are now applied to the
Requestobject before the
Resourceclass is instantiated. This means you can inspect them inside the
#initializemethod of your resource.
NameErrorexceptions and scope problems in the Mongrel adapter were resolved.
=characters in the query string decoded in the proper order.
0.4.1 February 8, 2012
0.4.1 is a bugfix release that corrects a few minor issues. Added Sam Goldman as a contributor. Thank you for your contributions!
- Updated README with
- The CGI env vars
CONTENT_TYPEare now being correctly converted into their Webmachine equivalents.
- The request body given via the Rack and Mongrel adapters now
#eachso it can be treated like a
Enumerablethat yields chunks.
0.4.0 February 5, 2012
0.4.0 includes some important refactorings, isolating the idea of global state into an Application object with its own Dispatcher and configuration, and making Adapters into real classes with a consistent interface. It also adds some query methods on the Request object for the HTTP method and scheme and Route guards (matching predicates). Added Michael Maltese, Emmanuel Gomez, and Bernerd Schaefer as committers. Thank you for your contributions!
Request#queryto handle nil values for the URI query accessor.
Webmachine::Dispatcheris a real class rather than a module with state.
Webmachine::Applicationis a class that includes its own dispatcher and configuration. The default instance is accessible via
Webmachine::Adapteris now the superclass of all implemented adapters so that they have a uniform interface.
- The Mongrel spec is skipped on JRuby since version 1.2 (pre-release) doesn't work. Direct Mongrel support may be removed in a later release.
Webmachine::Dispatcher::Routenow accepts guards, which may be expressed as lambdas/procs or any object responding to
Resourceclass in the route definition, or as a trailing block. All guards will be passed the
Requestobject when matching the route and should return a truthy or falsey value (without side-effects).
0.3.0 November 9, 2011
0.3.0 introduces some new features, refactorings, and now has 100% documentation coverage! Among the new features are minimal Rack compatibility, streaming responses via Fibers and a friendlier route definition syntax. Added Jamis Buck as a committer. Thank you for your contributions!
- Chunked bodies are now wrapped in a way that works on webservers that don't automatically produce them.
- HTTP Basic Authentication is easy to add to resources, just include
- Routes are a little less painful to add, you can now specify them
Webmachine.routeswhich will be evaled into the
- The new default port is 8080.
- Rack is minimally supported as a host server. Don't put middleware above Webmachine!
- Fibers can be used as streamed response bodies.
Dispatcher#add_routewill now return the added
- The header-conversion code for CGI-style servers has been extracted
Route#path_specis now public so that applications can inspect existing routes, perhaps for URL generation.
CGI.unescapeso '+' characters are correctly parsed.
- YARD documentation has 100% coverage.
0.2.0 September 11, 2011
0.2.0 includes an adapter for Mongrel and a central place for configuration as well as numerous bugfixes. Added Ian Plosker and Bernd Ahlers as committers. Thank you for your contributions!
- Acceptable media types are matched less strictly, which has implications on both responses and PUT requests. See the discussion on the commit.
- Resources now receive a callback after the language has been negotiated, so they can decide what to do with it.
Webmachine::Configurationso we can more easily support more than one host server/adapter.
- Added Mongrel adapter, supporting 1.2pre+.
- Media type headers are more lax about whitespace following semicolons.
- Fix some problems with callable response bodies.
- Make sure String response bodies get a Content-Length header added and streaming responses get chunked encoding.
- Numerous refactorings, including extracting
MediaTypeinto its own top-level class.
0.1.0 August 25, 2011
This is the initial release. Most things work, but only WEBrick is supported.