Skip to content
Commits on Jun 18, 2010
  1. Ignoring all gem files.

    committed Jun 18, 2010
  2. Release 0.3.1.

    committed Jun 18, 2010
  3. Removing rubygems.

    committed Jun 18, 2010
  4. Some doc updates and such.

    committed Jun 18, 2010
  5. Switched to manual gemspec.

    committed Jun 18, 2010
Commits on Oct 5, 2009
  1. Prepped for 0.3 release.

    committed Oct 4, 2009
Commits on Oct 2, 2009
  1. @bkeepers

    Fix for an element without a namespace nested inside of one with a na…

    …mespace
    
    Set the namespace to false for elements that do not share the same namespace as the class:
    
      class Alert
        include HappyMapper
        namespace 'http://example.com/ns/alert'
    
        element :severity, String, :namespace => false
      end
    bkeepers committed Oct 2, 2009
Commits on Jul 16, 2009
  1. @bkeepers
  2. @bkeepers

    Merge branch 'namespaces'

    bkeepers committed Jul 16, 2009
Commits on Jul 15, 2009
  1. @bkeepers

    Merge branch 'master' of git@github.com:brandon/happymapper

    Conflicts:
    	lib/happymapper.rb
    	spec/happymapper_spec.rb
    bkeepers committed Jul 15, 2009
  2. @bkeepers
  3. @bkeepers

    Rework namespaces to work for namespaces declared inline.

    This changes how namespaces are declared from previous versions. Instead of declaring the namespace prefix in the mapping, you must declare the namespace URL.
    
      class Foo
        include HappyMapper
        namespace http://example.com/v2
      end
    bkeepers committed Jul 15, 2009
  4. @bkeepers
Commits on May 28, 2009
  1. Prepped for 0.2.5 release.

    committed May 27, 2009
  2. Classes can now be strings instead of constants so you don't have to …

    …worry about class definition order (this was all for technicalpickles, enjoy!)
    committed May 27, 2009
Commits on May 18, 2009
  1. Prepped for 0.2.4 release.

    committed May 17, 2009
Commits on Apr 30, 2009
Commits on Apr 16, 2009
  1. Updated issues links

    committed Apr 16, 2009
Commits on Jan 30, 2009
  1. Removed no longer needed libxml helpers.

    Prepped for 0.2.2 release.
    committed Jan 29, 2009
  2. updated history

    committed Jan 29, 2009
  3. @bkeepers

    Removed GC.start from .parse as it was causing significant performanc…

    …e issues.
    
    Setting the node to nil should be sufficient to mark it for garbage collection, which will run before the ruby program terminates.
    
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
    bkeepers committed with Jan 30, 2009
  4. @bkeepers

    Removed get_ prefix, it reminds me too much of Java

    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
    bkeepers committed with Jan 30, 2009
  5. @bkeepers

    Removed GC.start from .parse as it was causing significant performanc…

    …e issues.
    
    Setting the node to nil should be sufficient to mark it for garbage collection, which will run before the ruby program terminates.
    bkeepers committed Jan 29, 2009
  6. @bkeepers
  7. @mojodna

    Type coercion

    When the :parser option is provided for an element mapping along
    with a non-primitive type, HappyMapper will attempt to coerce the
    value of the mapped node into the specified type by using the class
    method specified by :parser.
    
    If coercion requires access to the full node (including tags), use
    :raw => true to parse the full node instead of just the value.
    
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
    mojodna committed with Jan 30, 2009
  8. @mojodna

    auto-detect root nodes

    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
    mojodna committed with Jan 30, 2009
  9. @mojodna

    Pass namespaces around to avoid storing state

    Attaching a namespace to an instance of an object causes it to be
    stateful, resulting in non-deterministic behavior when run against
    different documents in varying orders.
    
    When choosing a namespace to use, the order is:
    1 - via namespace in class defn
    2 - via :namespace in element defn
    
    This patch also removes some unnecessary initialization.
    
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
    mojodna committed with Jan 30, 2009
  10. @mojodna

    Improved namespace support

    The previous namespace support did not handle documents containing multiply
    namespaced nodes.  It also made assumptions about the 'default' namespace
    when multiple prefixed namespaces were provided (with no implicit default).
    
    This patch allows namespaces to be set item-wide (via 'namespace <ns>' in
    the class) or on a per-element basis (via :namespace => <ns> on the
    element mapping).
    
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
    mojodna committed with Jan 30, 2009
Something went wrong with that request. Please try again.