README in rack-linkeddata-0.1.2 vs README in rack-linkeddata-0.2.0

- old
+ new

@@ -19,10 +19,12 @@ -------- ### Adding Linked Data content negotiation to a Rails 3.x application # config/application.rb + require 'rack/linkeddata' + class Application < Rails::Application config.middleware.use Rack::LinkedData::ContentNegotiation end ### Adding Linked Data content negotiation to a Sinatra application @@ -32,22 +34,22 @@ require 'rack/linkeddata' use Rack::LinkedData::ContentNegotiation get '/hello' do - RDF::Graph.new do - self << [RDF::Node.new, RDF::DC.title, "Hello, world!"] + RDF::Graph.new do |graph| + graph << [RDF::Node.new, RDF::DC.title, "Hello, world!"] end end ### Adding Linked Data content negotiation to a Rackup application #!/usr/bin/env rackup require 'rack/linkeddata' - rdf = RDF::Graph.new do - self << [RDF::Node.new, RDF::DC.title, "Hello, world!"] + rdf = RDF::Graph.new do |graph| + graph << [RDF::Node.new, RDF::DC.title, "Hello, world!"] end use Rack::LinkedData::ContentNegotiation run lambda { |env| [200, {}, rdf] } @@ -91,10 +93,10 @@ Dependencies ------------ * [Rack](http://rubygems.org/gems/rack) (>= 1.0.0) -* [Linked Data](http://rubygems.org/gems/linkeddata) (>= 0.1.10) +* [Linked Data](http://rubygems.org/gems/linkeddata) (>= 0.2.0) Installation ------------ The recommended installation method is via [RubyGems](http://rubygems.org/).