This is the library common between the web application and the evaluator for determining the programming languages supported in Coursemology.
The library works with Railties, so there is no special configuration.
The gem provides a JavaScript asset which can be used to require all Ace modes that are needed by all concrete languages. In your application manifest, include this:
//= require coursemology/polyglot/ace-modesEnsure that Ace is found within the ace directory (i.e. ace/mode-python.js etc.)
In your Gemfile:
gem 'coursemology-polyglot'Then, in your application:
Coursemology::Polyglot.eager_load!The Polyglot library needs to be eager loaded so that it knows which languages are defined.
Otherwise, the list of concrete_languages will be empty.