Permalink
Browse files

Remove explicit dependencies on Addressable.

  • Loading branch information...
1 parent d1254f5 commit 532010e7467780332cd07a1f5efd64cb95a13398 @gkellogg gkellogg committed Apr 19, 2013
Showing with 5 additions and 5 deletions.
  1. +2 −2 README.md
  2. +2 −2 lib/rdf/rdfa/reader.rb
  3. +1 −1 lib/rdf/rdfa/writer.rb
View
@@ -389,9 +389,9 @@ The template hash defines four Haml templates:
## Dependencies
* [Ruby](http://ruby-lang.org/) (>= 1.9) or (>= 1.8.7 with [Backports][])
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.0)
-* [Haml](https://rubygems.org/gems/haml) (>= 3.1.7)
+* [Haml](https://rubygems.org/gems/haml) (>= 4.0)
* [HTMLEntities](https://rubygems.org/gems/htmlentities) ('>= 4.3.1')
-* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.5.0)
+* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.5.9)
## Documentation
Full documentation available on [Rubydoc.info][RDFa doc]
@@ -1365,9 +1365,9 @@ def process_uri(element, value, evaluation_context, base, options = {})
add_warning(element, "Malformed IRI #{uri.inspect}")
end
else
- uri = uri(base, Addressable::URI.parse(value))
+ uri = uri(base, value)
end
- rescue Addressable::URI::InvalidURIError => e
+ rescue ArgumentError => e
add_warning(element, "Malformed IRI #{value}")
rescue RDF::ReaderError => e
add_debug(element, e.message)
@@ -658,7 +658,7 @@ def get_curie(resource)
#add_debug {"get_curie(#{resource}) => #{curie}"}
@uri_to_term_or_curie[uri] = curie
- rescue Addressable::URI::InvalidURIError => e
+ rescue Argument => e
raise RDF::WriterError, "Invalid URI #{uri.inspect}: #{e.message}"
end
private

0 comments on commit 532010e

Please sign in to comment.