Permalink
Browse files

Update README

  • Loading branch information...
1 parent e83e97e commit 967503dc0887e00c1160aec25bc7aa0be048bed3 @mynyml committed Feb 1, 2010
Showing with 33 additions and 26 deletions.
  1. +1 −1 Manifest
  2. +0 −25 README
  3. +32 −0 README.md
View
@@ -1,7 +1,7 @@
.gitignore
LICENSE
Manifest
-README
+README.md
Rakefile
examples.rb
lib/rack/accept_media_types.rb
View
25 README
@@ -1,25 +0,0 @@
-===== Sumarry
-
-Rack convenience middleware for simplified handling of Accept header
-(env['HTTP_ACCEPT']). Allows ordering of its values (accepted media types)
-according to their "quality" (preference level).
-
-This wrapper is typically used to determine the request's prefered media
-type (see example below).
-
-===== Install
-
- gem install rack-accept-media-types --source http://gemcutter.org
-
-===== Examples
-
- env['HTTP_ACCEPT'] #=> 'application/xml;q=0.8,text/html,text/plain;q=0.9'
-
- req = Rack::Request.new(env)
- req.accept_media_types #=> ['text/html', 'text/plain', 'application/xml']
- req.accept_media_types.prefered #=> 'text/html'
-
-===== Links
-
-source:: http://github.com/mynyml/rack-accept-media-types
-rdocs:: http://docs.github.com/mynyml/rack-accept-media-types
View
@@ -0,0 +1,32 @@
+Summary
+-------
+
+Rack convenience middleware to simplify handling of Accept header
+`env['HTTP_ACCEPT']`. Allows ordering of its values (accepted media types)
+according to their "quality" (preference level).
+
+This wrapper is typically used to determine the request's prefered media type.
+
+Install
+-------
+
+ gem install rack-accept-media-types
+
+Example
+-------
+
+ require 'rack/accept_media_types'
+
+ env['HTTP_ACCEPT'] #=> 'application/xml;q=0.8,text/html,text/plain;q=0.9'
+
+ req = Rack::Request.new(env)
+ req.accept_media_types #=> ['text/html', 'text/plain', 'application/xml']
+ req.accept_media_types.prefered #=> 'text/html'
+
+Links
+-----
+
+* code: <http://github.com/mynyml/rack-accept-media-types>
+* docs: <http://docs.github.com/mynyml/rack-accept-media-types>
+* wiki: <http://wiki.github.com/mynyml/rack-accept-media-types>
+* bugs: <http://github.com/mynyml/rack-accept-media-types/issues>

0 comments on commit 967503d

Please sign in to comment.