Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Merge pull request #1446 from lutgendorff/patch-57

lost-stolen passport: amended child callout
latest commit cc00253e49
Jack Scotti jackscotti authored
Failed to load latest commit information.
app Merge pull request #1404 from alphagov/layouts
bin Smartdown in smart answers application
config Add a healthcheck endpoint
db Initial blank rails app.
doc Initial blank rails app.
lib lost-stolen passport: amended child callout
log Initial blank rails app.
public Remove dangling symlinks
script Initial blank rails app.
test Ignore the extra day for leap years when displaying state_pension_age
vendor Fix js errors in chrome 35
.disabled-rubocop.yml Whitespace
.gitignore Don't track coverage directory
.rubocop.yml remove comment spacing
.ruby-version Bump ruby patch version for security fixes
CONTRIBUTING.md Define contributing guide
Gemfile Merge pull request #1404 from alphagov/layouts
Gemfile.lock Merge pull request #1404 from alphagov/layouts
LICENSE.md Add an MIT license file
README.md Adds installer script and subsequent readme changes
Rakefile Disable logging in test
config.ru Initial blank rails app.
install.sh Make install.sh executable
jenkins.sh bind rake test and rake (no args) to run rake test:all
jenkins_branches.sh Add jenkins_branches.sh
startup.sh Add a handy script to start up the app in development.

README.md

Smart Answers

Toolkit for building smart answers. Have a look at test/unit/flow_test.rb for example usage.

This application supports two styles of writing and executing smart answers:

Ruby and YAML-based smart answer flows

For more information, please go to the Ruby/YAML SmartAnswer README

Smartdown-based smart answer flows

For more information, please go to the Smartdown SmartAnswer README

Switching from one style to another

Smart answers are by default expected to be in Ruby/YAML style. To transition a smart answer from Ruby/YML to Smartdown style, register it in the smartdown registry (lib/smartdown/registry.rb).

Installing

NB: this assumes you are running on the GOV.UK virtual machine, not your host.

  ./install # git fetch from each dependency dir and bundle install

Testing

Run unit tests by executing the following:

bundle exec rake

Issues/todos

Please see the github issues page.

Something went wrong with that request. Please try again.