a domain-specific language for describing surveys
Nebby is a domain-specific language for describing surveys.
Nebby provides a quick, Ruby-throated way to construct a survey and present the results in an easy-to-understand and easy-to-share way.
by Colin Dean http://cad.cx
Help fund development:
See example.rb.
N.b. that I have yet to actually write any code for processing this example.
The primary goal is to get this working as a standalone web site. The workflow would be something like this:
gem install bundler
duhgem install nebby
duhnebby init my_survey
creates a nebby installation in directory my_surveyEventually, nebby should be useable as a gem with a sinatra or rails application. sinatra integration is foremost, as standalone nebby will use sinatra. rails is secondary because it will need to meet the robust needs of rails clientele.
Surveyor is an existing gem and has a similar DSL. However, its syntax is more procedural whereas nebby's is more block-oriented in the style of many testing frameworks.
However, it's likely that nebby will draw some semblance of influence from Surveyor. Also, I've never used Surveyor.