Permalink
Commits on Jun 28, 2010
  1. Bumped the version to 0.2.1.

    bendiken committed Jun 28, 2010
  2. Implemented an RDF::Value#to_ntriples method contingent on the RDF::N…

    …Triples serializer.
    
    This method is only available when the 'rdf/ntriples' library has been explicitly required.
    bendiken committed Jun 28, 2010
  3. Ensured that RDF::Literal#canonicalize transforms the language tag in…

    …to lowercase (fixes #29).
    bendiken committed Jun 28, 2010
  4. Reverted changes to RDF::Literal::{Decimal,Double}#to_s.

    The RDF::Literal#to_s method does not need to (and in general perhaps should not) perform canonicalization. According to the principle of least surprise, we don't want e.g. RDF::Literal.new(0.0).to_s to return "0.0E0", we want it to return "0.0". We should also ensure that #to_s remains a relatively cheap operation.
    bendiken committed Jun 28, 2010
  5. Fixed the duck-typing logic in RDF::Literal subclass constructors; al…

    …so added some more code comments and unified the coding conventions.
    bendiken committed Jun 28, 2010
Commits on Jun 27, 2010
Commits on Jun 25, 2010
  1. Extended the RDF::Literal constructor to perform type dispatch on the…

    … given :datatype option as well.
    bendiken committed Jun 25, 2010
  2. Changed all references to Object#object_id to prefer using Object#__i…

    …d__ instead (less chance of it being undefined or redefined).
    bendiken committed Jun 25, 2010
  3. Implemented an RDF::Literal#validate method and an RDF::Literal.new(*…

    …args, :validate => true) constructor option.
    bendiken committed Jun 25, 2010
  4. Implemented the RDF::Literal.new(*args, :canonicalize => true) constr…

    …uctor option (kudos to Gregg Kellogg for the suggestion).
    bendiken committed Jun 25, 2010
  5. Ensured that RDF::Literal::Boolean won't raise errors when constructed.

    Rather, users should rely on the :validate => true constructor option, or the #valid? and #invalid? methods, to perform validation.
    bendiken committed Jun 25, 2010
  6. Ensured that specific RDF::Literal subclasses can be directly constru…

    …cted without type dispatch.
    bendiken committed Jun 25, 2010
Commits on Jun 24, 2010
  1. Factored out the datatype-specific functionality of RDF::Literal into…

    … a number of distinct subclasses (closes #17).
    
    Also added a new RDF::Literal#canonicalize method for XSD literal canonicalization purposes (see #25 and #26).
    bendiken committed Jun 24, 2010
  2. Ensured that the BigDecimal, Date and DateTime classes from Ruby's st…

    …andard library are always available.
    bendiken committed Jun 24, 2010
Commits on Jun 23, 2010
Commits on Jun 21, 2010
  1. Enhanced the error message given when RDF::Reader#read_triple remains…

    … unimplemented in a subclass.
    bendiken committed Jun 21, 2010
  2. Ensured that RDF::Node.new does not autogenerate invalid (with refere…

    …nce to the N-Triples grammar) blank node identifiers (fixes #28).
    bendiken committed Jun 21, 2010
Commits on Jun 19, 2010
  1. Bumped the version to 0.2.0.1.

    bendiken committed Jun 19, 2010
Commits on Jun 18, 2010
  1. Fixed a "parenthesize argument(s) for future version" warning on Ruby…

    … 1.8.6 and earlier versions.
    bendiken committed Jun 18, 2010
  2. Fixed a syntax error in RDF::Util::Aliasing::LateBound#alias_method o…

    …n Ruby 1.8.6 and earlier versions.
    bendiken committed Jun 18, 2010