README.md in gutenberg_rdf-0.0.2 vs README.md in gutenberg_rdf-0.1.0
- old
+ new
@@ -4,11 +4,10 @@
providing a nice API to all the metadata contained within.
## Requirements
* Ruby 2.0 - this is so we get UTF-8 by default
-* Nokogiri - for parsing the RDF
## Installation
Add this line to your application's Gemfile:
@@ -25,11 +24,10 @@
## Usage
require 'gutenberg_rdf'
- xml = Nokogiri::XML(File.new('/path/to/pg2746.rdf'))
- book = GutenbergRdf::Rdf.new(xml)
+ book = GutenbergRdf.parse('/path/to/pg2746.rdf')
puts book.id
#=> "2746"
puts book.type