README in sinatra-linkeddata-1.0.0 vs README in sinatra-linkeddata-1.1.0

- old
+ new

@@ -1,23 +1,23 @@ -Linked Data Content Negotiation for Sinatra Applications -======================================================== +# Linked Data Content Negotiation for Sinatra Applications This is a [Sinatra][] extension that provides [Linked Data][] content negotiation for Sinatra applications. * <http://github.com/datagraph/sinatra-linkeddata> -Features --------- +[![Gem Version](https://badge.fury.io/rb/sinatra-linkeddata.png)](http://badge.fury.io/rb/sinatra-linkeddata) +[![Build Status](https://travis-ci.org/ruby-rdf/sinatra-linkeddata.png?branch=master)](http://travis-ci.org/ruby-rdf/sinatra-linkeddata) +## Features + * Implements [HTTP content negotiation][conneg] for RDF content types using the [`Rack::LinkedData`][Rack::LinkedData] middleware. * Supports all [RDF.rb][]-compatible serialization formats. * Supports both classic and modular Sinatra applications. -Examples --------- +## Examples ### Adding Linked Data content negotiation to a classic Sinatra application #!/usr/bin/env ruby -rubygems require 'sinatra' @@ -71,19 +71,18 @@ ### Testing Linked Data content negotiation using `rackup` and `curl` $ rackup doc/examples/config.ru - $ curl -iH "Accept: text/plain" http://localhost:9292/hello - $ curl -iH "Accept: text/turtle" http://localhost:9292/hello + $ curl -iH "Accept: application/n-triples" http://localhost:9292/hello + $ curl -iH "Accept: application/turtle" http://localhost:9292/hello $ curl -iH "Accept: application/rdf+xml" http://localhost:9292/hello $ curl -iH "Accept: application/json" http://localhost:9292/hello $ curl -iH "Accept: application/trix" http://localhost:9292/hello $ curl -iH "Accept: */*" http://localhost:9292/hello -Description ------------ +## Description `Sinatra::LinkedData` is a thin Sinatra-specific wrapper around the [`Rack::LinkedData`][Rack::LinkedData] middleware, which implements Linked Data content negotiation for Rack applications. @@ -102,65 +101,92 @@ end See the `Rack::LinkedData` documentation for more information on the operation and details of the content negotiation. -Documentation -------------- +## Documentation -<http://datagraph.rubyforge.org/sinatra-linkeddata/> +<http://rubydoc.info/github/ruby-rdf/sinatra-linkeddata/> * {Sinatra::LinkedData} -Dependencies ------------- +## Dependencies -* [Sinatra](http://rubygems.org/gems/sinatra) (>= 1.0) -* [Rack::LinkedData](http://rubygems.org/gems/rack-linkeddata) (>= 1.0) +* [Sinatra](http://rubygems.org/gems/sinatra) (>= 1.4.4) +* [Rack::LinkedData](http://rubygems.org/gems/rack-linkeddata) (>= 1.1.0) -Installation ------------- +## Installation The recommended installation method is via [RubyGems](http://rubygems.org/). To install the latest official release of the gem, do: % [sudo] gem install sinatra-linkeddata -Download --------- +## Download To get a local working copy of the development repository, do: % git clone git://github.com/ruby-rdf/sinatra-linkeddata.git Alternatively, you can download the latest development version as a tarball as follows: % wget http://github.com/ruby-rdf/sinatra-linkeddata/tarball/master -References ----------- +##Contributing +This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration. +* Do your best to adhere to the existing coding conventions and idioms. +* Don't use hard tabs, and don't leave trailing whitespace on any line. +* Do document every method you add using [YARD][] annotations. Read the + [tutorial][YARD-GS] or just look at the existing code for examples. +* Don't touch the `.gemspec`, `VERSION` or `AUTHORS` files. If you need to + change them, do so on your private branch only. +* Do feel free to add yourself to the `CREDITS` file and the corresponding + list in the the `README`. Alphabetical order applies. +* Do note that in order for us to merge any non-trivial changes (as a rule + of thumb, additions larger than about 15 lines of code), we need an + explicit [public domain dedication][PDD] on record from you. + +## References + * <http://www.w3.org/DesignIssues/LinkedData.html> * <http://linkeddata.org/docs/how-to-publish> * <http://linkeddata.org/conneg-303-redirect-code-samples> * <http://www.w3.org/TR/cooluris/> * <http://www.w3.org/TR/swbp-vocab-pub/> * <http://patterns.dataincubator.org/book/publishing-patterns.html> -Authors -------- +## Authors * [Arto Bendiken](http://github.com/bendiken) - <http://ar.to/> +* [Gregg Kellogg](http://github.com/gkellogg) - <http://greggkellogg.net/> -License -------- +## Contributing +This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration. +* Do your best to adhere to the existing coding conventions and idioms. +* Don't use hard tabs, and don't leave trailing whitespace on any line. +* Do document every method you add using [YARD][] annotations. Read the + [tutorial][YARD-GS] or just look at the existing code for examples. +* Don't touch the `.gemspec`, `VERSION` or `AUTHORS` files. If you need to + change them, do so on your private branch only. +* Do feel free to add yourself to the `CREDITS` file and the corresponding + list in the the `README`. Alphabetical order applies. +* Do note that in order for us to merge any non-trivial changes (as a rule + of thumb, additions larger than about 15 lines of code), we need an + explicit [public domain dedication][PDD] on record from you. + +## License + `Sinatra::LinkedData` is free and unencumbered public domain software. For more information, see <http://unlicense.org/> or the accompanying UNLICENSE file. [Sinatra]: http://www.sinatrarb.com/ [Rack]: http://rack.github.com/ [RDF.rb]: http://ruby-rdf.github.com/rdf/ [Rack::LinkedData]: http://datagraph.rubyforge.org/rack-linkeddata/ [Linked Data]: http://linkeddata.org/ [conneg]: http://en.wikipedia.org/wiki/Content_negotiation +[YARD]: http://yardoc.org/ +[YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md +[PDD]: http://unlicense.org/#unlicensing-contributions