Allows virtual model to import data properly from 'other' questions with interpolation.
Fixes issues interpreting \xC2\xA0
by replacing it with a standard space (alternate representation of \u00a0
initially removed in 0.1.2).
Fixes NoMethodError: undefined method `[]' for nil:NilClass error when normalizing optional date fields that are left blank (which translates to nil in Typeform Data).
Update Arendelle.
Arendelle 0.1.1 introduced a change in their naming of instance variables in order to support ivars that start with numbers. This updates the ivar behavior (which relies on a private implementation detail to handle Typeform's bizarre multiple choice question format).
Strips additional whitespace and isolates whitespace stripping behavior to a Util class, to allow for easier test coverage. Adds raw_json accessors to models where we normalize JSON input to allow for end-users to determine whether they want clean/normalized JSON or the original results from Typeform. This prevents mismatches in the regular expression => attribute matching in VirtualModel, which were running into issues when " " != " "
, preventing the regular expressions from matching.
Adds support for typecasting Yes/No and Terms of Service fields in TypedForm::VirtualModel. Adds "original_answer" field to Questions to preserve original values, either for debugging purposes or for situations where typecasting is not desirable.
Strips non-breaking whitespace ("\u00a0") character from typeform data to normalize question/answer searching. Adds support for typecasting date, datetime, and integer objects from Typeform Responses & metadata.
Adds support for TypedForm::VirtualModel. Adds a decorator-like model which allows user-defined VirtualModels which respond with Typeform Data values.
Adds logic for extracting data needed for Data API from incoming Webhooks.
Adds YARD documentation to gem.
Separates API/Client, Data-API Form Data, and Form/Webhook responsibilities into isolated namespaces. Stabilizes Gem API around accessing form data via API and loading from existing JSON data sources.
Defaults to freezing Questions after initialization, to prevent concerns with mutating data inadvertently when working with questions as value objects.
Bugfixes for Question#type. Adds minimal error propagation in event Typeform's data is unreliable around question type inference in the future.
Added support for interpolated questions (what Typeform refers to as "piping") and for string conversion of multiple choice answers to a single CSV format.
Initial version released. Added initial support for retrieving results from Typeform Data API.