Locabulary
An extraction of limited localized vocabulary for Sipity and CurateND. This controlled vocabulary has a limited shelf-life as we explore other more robust options.
Getting Started
See the Locublary module in lib/locabulary for the public methods of this gem.
Testing
Install the gems via BUNDLE_GEMFILE=gemfiles/activesupport4.gemfile bundle install
The full test suite is run via bundle exec rake
.
If you are interested in running each file in isolation - a good thing for unit tests - use ./bin/rspec_isolated
.
Testing/Using Different Gemfiles
If you want to run your tests via a different gemfile, see the following:
$ BUNDLE_GEMFILE=gemfiles/activesupport4.gemfile bundle install
$ BUNDLE_GEMFILE=gemfiles/activesupport4.gemfile bundle exec rspec
See the Bundler bundle config
documentation for further information.
Updating Data Files
The "administrative_units" data is maintained in a Google Spreadsheet. To synchronize the JSON data:
- Ensure that you have a copy of the
config/client_secret.yml
from the staging secrets - Make sure you have a clean working tree (eg.
git status
shows no changes) - Run
bundle exec ./script/update_data_files.sh
script following its instructions - Review changes to the
data/administrative_units.json
file (eg.git diff
) - Commit changes
Once committed and pushed upstream, to see the changes will require a deploy of the applications.