Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Dec 28, 2012
Commits on Apr 24, 2012
  1. add accessors for Nett Sales Price

Commits on Nov 7, 2011
  1. simplify requires

    * it's best to assume the LOAD_PATH is correct and not build absolute
  2. increase robustness of this proc

    * work with any object that can be converted to an integer
Commits on Apr 14, 2011
  1. update comments and specs for new ONIX::Reader new() arguments

    * passing product class as the second argument is now deprecated
    * the second argument to ONIX::Reader is now an optional options Hash
    * the product class should now be specified using the :product_class option
    * this change was motivated by the need for an :encoding option
  2. remove earlier encoding changes to ONIX::Normaliser

    * much easier to just tell Nokogiri::XML::Reader what encoding
      the source is instead of rewriting the entire file
  3. bump version

  4. ONIX::Normaliser can now rewrite the encoding in the XML declaration

    * lots of input files mess up their encoding declarations by
      * leaving the XML declaration off entirely
      * adding an XML declaration that doesn't specify an encoding
      * adding an XML declaration that spcifies the wrong encoding
    * This gem uses Nokogiri to read XML files. It always transcodes
      input files to UTF-8, but it needs an accurate encoding indicator
      to function correctly. Without the encoding indicator, it assumes
      the file is UTF-8
Commits on Apr 13, 2011
Commits on Apr 8, 2011
  1. bump version

Commits on Nov 10, 2010
  1. prepare for a new release

Commits on Oct 18, 2010
  1. prepare for release

  2. replace manual code lists with generated lists

    * Manually building hashes for code lists was leading to out of data
    * switching to loading all the lists from generated data files
    * Thanks to Vivek for prompting me to get around to this
Commits on Oct 17, 2010
  1. Handle BISAC main subject category (PR.13.1)

    * suggested by tim
  2. Fix reference name of price type qualifier (PR.24.50): 'PriceTypeQual…

    tim authored committed
    …ifier' should be 'PriceQualifier'
Commits on Sep 9, 2010
  1. bump version

Commits on Jul 1, 2010
  1. Fix a race condition in ONIX::Normaliser

    * closes #1
    * reported by pixelvixen
    * to quote the report:
      "You will want to set the unlink_now option to true when you close the
      tempfile. The way it is right now, the file can actually be unlinked
      *after* you copy  the old file to that location."
Commits on May 6, 2010
  1. prepare for release

Commits on Jan 5, 2010
  1. bump version

  2. include the release attribute on ONIX files we generate

    - This library only handles ONIX 2.1 at this stage, so hard code that in
  3. add ONIX::Reader#release

    - returns the release number of the ONIX file being parsed
    - in ONIX 2.1 the release attribute is optional and rarely used, so
      expect it to be nil on those files
    - on ONIX 3.0 files the attribute is mandatory, so it will be filled in
Commits on Dec 22, 2009
  1. simplify (and significantly speed up) ONIX::Normaliser

    - don't bother with encoding stage, Nokogiri will transparently convert
      the source document to utf-8
    - don't bother with entity stage, Nokogiri will transparently translate
      the named entities by first loading the DTD
Commits on Dec 6, 2009
  1. use libxml to parse entities when reading an ONIX file

    - transparently converts entities into appropriate characters
    - loads the DTD into memory from the doctype URL, which requires net
    - downloading the DTD slows things down, but at least we avoid an
    - thanks to Aaron Paterson for showing how to achieve this at
Commits on Nov 4, 2009
  1. @mfvargo

    adding Contributor Role list

    mfvargo authored
Commits on Oct 31, 2009
  1. bump version

Something went wrong with that request. Please try again.