coursemology-polyglot 0.2.9.4 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -2
- data/README.md +16 -2
- data/lib/coursemology/polyglot/language/java.rb +8 -1
- data/lib/coursemology/polyglot/version.rb +1 -1
- metadata +3 -4
- data/.idea/Coursemology Polyglot.iml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4ee427821b9548e400d2e7565fb721128ec3c812c6274fb725566a6787b9cfd5
|
4
|
+
data.tar.gz: '0963217fc17cc9367d8fc1c786e1de8d550712d6bd7a86ee9fe57d505adb6b5f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 529e9bfed641986d9bb24f0e5a5205332d1f1d41ccfaca63e3ee0b028709b3dadf42513924e62508a4cf0666b58bfe814dc147211d869635e01faec58c51010d
|
7
|
+
data.tar.gz: 66bd6c5c6959c93491839ce53165e205be74b835bc8d75498fd4a986460a23861f654ffeb81e6ec46217b0705adcec4b2819ef1f2ddac41f00bb51b46739f55f
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Coursemology Polyglot [![Build Status](https://travis-ci.org/Coursemology/polyglot.svg?branch=master)](https://travis-ci.org/Coursemology/polyglot)
|
2
2
|
[![Code Climate](https://codeclimate.com/github/Coursemology/polyglot/badges/gpa.svg)](https://codeclimate.com/github/Coursemology/polyglot) [![Coverage Status](https://coveralls.io/repos/Coursemology/polyglot/badge.svg?branch=master&service=github)](https://coveralls.io/github/Coursemology/polyglot?branch=master) [![Security](https://hakiri.io/github/Coursemology/polyglot/master.svg)](https://hakiri.io/github/Coursemology/polyglot/master) [![Inline docs](http://inch-ci.org/github/coursemology/polyglot.svg?branch=master)](http://inch-ci.org/github/coursemology/polyglot) [![Gem Version](https://badge.fury.io/rb/coursemology-polyglot.svg)](https://badge.fury.io/rb/coursemology-polyglot)
|
3
3
|
|
4
|
-
This is the library common between the web application and the evaluator for determining the
|
4
|
+
This is the library common between the web application and the evaluator for determining the
|
5
5
|
programming languages supported in Coursemology.
|
6
6
|
|
7
7
|
## Usage
|
@@ -28,5 +28,19 @@ Then, in your application:
|
|
28
28
|
Coursemology::Polyglot.eager_load!
|
29
29
|
```
|
30
30
|
|
31
|
-
The Polyglot library needs to be eager loaded so that it knows which languages are defined.
|
31
|
+
The Polyglot library needs to be eager loaded so that it knows which languages are defined.
|
32
32
|
Otherwise, the list of `concrete_languages` will be empty.
|
33
|
+
|
34
|
+
## Version 0.3 upgrade
|
35
|
+
### Breaking changes
|
36
|
+
Before version 0.3, Coursemology polyglot only supported Java 8, using docker image `coursemology/evaluator-image-java:latest`.
|
37
|
+
|
38
|
+
Version 0.3 adds support for Java 11.
|
39
|
+
|
40
|
+
To ensure old questions using Java continue to evaluate correctly, you need to run a migration to change Java's record in `polyglot_languages` table in your database.
|
41
|
+
|
42
|
+
The SQL command below summarizes the necessary changes, to be run *right before* upgrading to version 3.0:
|
43
|
+
|
44
|
+
```
|
45
|
+
UPDATE polyglot_languages SET type = 'Coursemology::Polyglot::Language::Java::Java8', name = 'Java 8' where type = 'Coursemology::Polyglot::Language::Java';
|
46
|
+
```
|
@@ -1,4 +1,11 @@
|
|
1
1
|
class Coursemology::Polyglot::Language::Java < Coursemology::Polyglot::Language
|
2
2
|
syntax_highlighter 'java'
|
3
|
-
|
3
|
+
|
4
|
+
class Java8 < Coursemology::Polyglot::Language::Java
|
5
|
+
concrete_language 'Java 8', docker_image: 'java:8'
|
6
|
+
end
|
7
|
+
|
8
|
+
class Java11 < Coursemology::Polyglot::Language::Java
|
9
|
+
concrete_language 'Java 11', docker_image: 'java:11'
|
10
|
+
end
|
4
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coursemology-polyglot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Low
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -145,7 +145,6 @@ extra_rdoc_files: []
|
|
145
145
|
files:
|
146
146
|
- ".gitignore"
|
147
147
|
- ".hound.yml"
|
148
|
-
- ".idea/Coursemology Polyglot.iml"
|
149
148
|
- ".rspec"
|
150
149
|
- ".rubocop.unhound.yml"
|
151
150
|
- ".rubocop.yml"
|
@@ -185,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
184
|
version: '0'
|
186
185
|
requirements: []
|
187
186
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.6
|
187
|
+
rubygems_version: 2.7.6
|
189
188
|
signing_key:
|
190
189
|
specification_version: 4
|
191
190
|
summary: Coursemology polyglot definitions
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
-
<exclude-output />
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
6
|
-
<orderEntry type="inheritedJdk" />
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
-
</component>
|
9
|
-
</module>
|