HeHStudy/surveyor — pull request #6 by Gusaar (2014-03-21 00:14:44+00:00)
Title: Problem with parser when dependency condition on a text field

When you build redcap_siblings.csv, unparse it to a DSL, then build from DSL, this build fails. This appears to be the inverse of the problem solved by #3. I think the regular parser needs to be updated like the redcap parser was in #3.
```
To build from csv:
$ bundle exec rake surveyor:redcap FILE=surveys/redcap-siblings.csv

To unparse into a DSL document (choose survey id at prompt):
$bundle exec rake surveyor:unparse

To build survey from DSL file
$ bundle exec rake surveyor FILE=surveys/redcap-siblings_2014-03-12.rb
--- Parsing /Users/toddparsnick/Repos/HeHStudy/HeH/surveys/redcap-siblings_2014-03-12.rb ---
rake aborted!
can't convert String into Hash
/Users/toddparsnick/.rvm/gems/ruby-1.9.3-p327@HeH/bundler/gems/surveyor-2b988ebdf7e6/lib/surveyor/parser.rb:65:in `instance_eval'
/Users/toddparsnick/.rvm/gems/ruby-1.9.3-p327@HeH/bundler/gems/surveyor-2b988ebdf7e6/lib/surveyor/parser.rb:425:in `parse_and_build'
/Users/toddparsnick/.rvm/gems/ruby-1.9.3-p327@HeH/bundler/gems/surveyor-2b988ebdf7e6/lib/surveyor/parser.rb:82:in `method_missing'
(eval):18:in `block (2 levels) in parse'
```

appears to be issue with the following line from DSL. q_sibs is a text field.

```
condition_A :q_sibs, ">", {:integer_value=>0, :answer_reference=>""}
```