Sha256: 68d4c1d9bbec35fcd2a074f0c623e25a7d9a988f3e3348c6641b109592fe773c

Contents?: true

Size: 565 Bytes

Versions: 4

Compression:

Stored size: 565 Bytes

Contents

# puts "executing nokogiri_select.ctl"

source :in, {
  :file => 'data/nokogiri.xml',
  :parser => :nokogiri_xml
}, 
{
  :collection => 'people/person[@type="client"]',
  :fields => [
    :first_name,
    :last_name,
    {
      :name => :ssn,
      :xpath => '@ssn'
    },
    {
      :name => :age,
      :type => :integer
    },
    {
      :name => :hair_colour,
      :xpath => 'colours/hair'
    }
  ]
}

destination :out, {
  :file => 'output/xml.txt'
}, 
{
  :order => [:first_name, :last_name, :ssn]
}

transform :ssn, :sha1
transform(:ssn){ |v| v[0,24] }

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
activewarehouse-etl-1.0.0 test/nokogiri_select.ctl
activewarehouse-etl-1.0.0.rc1 test/nokogiri_select.ctl
etl-0.9.5.rc1 spec/fixtures/nokogiri_select.ctl
activewarehouse-etl-sgonyea-0.9.6 test/nokogiri_select.ctl