21 Mar, 2013

1 commit

  • <var> tags with blank values were ending up completely wrong in the
    resulting hash.
    
    This: (a user with a blank name)
        <var key="user">
           <var key="id">123</var>
           <var key="name"/>
        </var>
    
    Gets parsed by hoptoad_notifier into this:
        {
           'key' => 'user',
           'var' => [{
                 'key' => 'id',
                 '__content__' => '123'
              },{
                 'key' => 'name'
              }]
        }
    
    Which when passed through the "rekey" method, ended up like this:
        {
           'user' => {
              'id' => '123',
              'key' => 'name' # bad and wrong
           }
        }
    
    Now, after these changes, it correctly comes through as:
        {
           'user' => {
              'id' => '123',
              'name' => nil # much better!
           }
        }
    Daniel Beardsley
     

10 Mar, 2013

6 commits


08 Mar, 2013

8 commits


07 Mar, 2013

3 commits


06 Mar, 2013

9 commits


05 Mar, 2013

12 commits


04 Mar, 2013

1 commit