Sha256: 52a8f4d02e139a4b707430bf264afcf4f2b2b41ff4c4930c8bf880de7a0dd71b
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
# Coursemology Polyglot [](https://travis-ci.org/Coursemology/polyglot) [](https://codeclimate.com/github/Coursemology/polyglot) [](https://coveralls.io/github/Coursemology/polyglot?branch=master) [](https://hakiri.io/github/Coursemology/polyglot/master) [](http://inch-ci.org/github/coursemology/polyglot) [](https://badge.fury.io/rb/coursemology-polyglot) This is the library common between the web application and the evaluator for determining the programming languages supported in Coursemology. ## Usage ### With Rails 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: ```javascript //= require coursemology/polyglot/ace-modes ``` Ensure that Ace is found within the `ace` directory (i.e. `ace/mode-python.js` etc.) ### Without Rails In your `Gemfile`: ```ruby gem 'coursemology-polyglot' ``` Then, in your application: ```ruby 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.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coursemology-polyglot-0.2.2 | README.md |
coursemology-polyglot-0.2.1 | README.md |
coursemology-polyglot-0.2.0 | README.md |