Skip to content

Commit

Permalink
Version bump to 0.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Sep 11, 2011
1 parent 3686d0d commit c51e43c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
35 changes: 31 additions & 4 deletions README.md
Expand Up @@ -75,16 +75,43 @@ callbacks. Give them a try!
* Most callbacks can interrupt the decision flow by returning an
integer response code. You generally only want to do this when new
information comes to light, requiring a modification of the response.
* Currently supports WEBrick. Other host servers are planned.
* Supports WEBrick and Mongrel (1.2pre+). Other host servers are being
investigated.
* Streaming/chunked response bodies are permitted as Enumerables or Procs.
* Unlike the Erlang original, it does real Language negotiation.

## Problems/TODOs

* Support streamed responses as Fibers.
* Configuration, command-line tools, and general polish.
* An effort has been made to make the code feel as Ruby-ish as
possible, but there is still work to do.
* Command-line tools, and general polish.
* Tracing is exposed as an Array of decisions visited on the response
object. You should be able to turn this off and on, and visualize
the decisions on the sequence diagram.

## Changelog

### 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](https://github.com/seancribbs/webmachine-ruby/commit/3686d0d9ff77fc98aff59f89478e9c6c18844ca1).
* Resources now receive a callback after the language has been
negotiated, so they can decide what to do with it.
* Added `Webmachine::Configuration` so 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 `MediaType` into its own
top-level class.

### 0.1.0 August 25, 2011

This is the initial release. Most things work, but only WEBrick is supported.
2 changes: 1 addition & 1 deletion lib/webmachine/version.rb
@@ -1,4 +1,4 @@
module Webmachine
VERSION = "0.1.0"
VERSION = "0.2.0"
SERVER_STRING = "Webmachine-Ruby/#{VERSION}"
end
2 changes: 2 additions & 0 deletions webmachine.gemspec
Expand Up @@ -29,12 +29,14 @@ Gem::Specification.new do |gem|
gem.add_dependency(%q<rspec>, ["~> 2.6.0"])
gem.add_dependency(%q<yard>, ["~> 0.6.7"])
gem.add_dependency(%q<rake>)
gem.add_dependency(%q<mongrel>, ['~>1.2.beta'])
end
else
gem.add_dependency(%q<i18n>, [">= 0.4.0"])
gem.add_dependency(%q<rspec>, ["~> 2.6.0"])
gem.add_dependency(%q<yard>, ["~> 0.6.7"])
gem.add_dependency(%q<rake>)
gem.add_dependency(%q<mongrel>, ['~>1.2.beta'])
end

ignores = File.read(".gitignore").split(/\r?\n/).reject{ |f| f =~ /^(#.+|\s*)$/ }.map {|f| Dir[f] }.flatten
Expand Down

0 comments on commit c51e43c

Please sign in to comment.