Parliament.uk-routes
Parliament.uk-routes is an engine created by the Parliamentary Digital Service that holds all of the routes for the UK parliament prototype website, which can then be called upon by any applications that include this gem.
NOTE: This gem is in active development and is likely to change at short notice. It is not recommended that you use this in any production environment.
Contents
Requirements
Parliament.uk-routes requires the following:
Installation
Add this line to your application's Gemfile:
gem 'parliament-routes'
And then execute:
$ bundle
Or install it yourself as:
$ gem install parliament-routes
Usage
The engine works in the background adding routes to the application that uses it.
Getting Started with Development
To clone the repository and set up the dependencies, run the following:
git clone https://github.com/ukparliament/parliament.uk-routes.git
cd parliament-routes
bundle install
Running the tests
We use RSpec as our testing framework and tests can be run using:
bundle exec rspec
Contributing
If you wish to submit a bug fix or feature, you can create a pull request and it will be merged pending a code review.
- Fork the repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Ensure your changes are tested using Rspec
- Create a new Pull Request
License
The gem is available as open source under the terms of the Open Parliament Licence.