coursemology-polyglot 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.hound.yml +8 -0
- data/.idea/Coursemology Polyglot.iml +383 -0
- data/.rspec +2 -0
- data/.rubocop.unhound.yml +244 -0
- data/.rubocop.yml +26 -0
- data/.travis.yml +14 -0
- data/Gemfile +4 -0
- data/README.md +5 -0
- data/Rakefile +6 -0
- data/coursemology-polyglot.gemspec +32 -0
- data/lib/coursemology/polyglot.rb +15 -0
- data/lib/coursemology/polyglot/language.rb +45 -0
- data/lib/coursemology/polyglot/language/python.rb +17 -0
- data/lib/coursemology/polyglot/version.rb +4 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1fcea57f10401c10c78cac93d094860baed87e8a
|
4
|
+
data.tar.gz: 9668b2ea0f2ce4fef60684ac8e79a6ef761599a0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a5c5b669761ebb5dc99cceefb56fd1a021e8ba0726676762c4dfc08c92186b60dd904a44bdc10aed98e5021477a80b8981bb17d8a4713321bd8f105dac392a90
|
7
|
+
data.tar.gz: d745bece70476f5470b235971ffd7db2b980a9a851100cf1e076746b9d1a39bb7fd215eb408537f53d8de92a9822e37a9333bd6e165be0a0301ad4b600e46a27
|
data/.gitignore
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config and gems.
|
8
|
+
/.bundle
|
9
|
+
/vendor/bundle
|
10
|
+
/Gemfile.lock
|
11
|
+
|
12
|
+
# Ignore generated code coverage information
|
13
|
+
/spec/coverage/*
|
14
|
+
/coverage/*
|
15
|
+
|
16
|
+
# Ignore RSpec state
|
17
|
+
/spec/examples.txt
|
data/.hound.yml
ADDED
@@ -0,0 +1,383 @@
|
|
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
|
+
<orderEntry type="module-library">
|
9
|
+
<library name="activesupport (vbundled(4.2.5), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5) [path][gem]">
|
10
|
+
<CLASSES>
|
11
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib" />
|
12
|
+
</CLASSES>
|
13
|
+
<JAVADOC />
|
14
|
+
<SOURCES>
|
15
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib" />
|
16
|
+
</SOURCES>
|
17
|
+
</library>
|
18
|
+
</orderEntry>
|
19
|
+
<orderEntry type="module-library">
|
20
|
+
<library name="codeclimate-test-reporter (vbundled(0.4.8), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.8) [path][gem]">
|
21
|
+
<CLASSES>
|
22
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.8/bin" />
|
23
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.8/lib" />
|
24
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.8/config" />
|
25
|
+
</CLASSES>
|
26
|
+
<JAVADOC />
|
27
|
+
<SOURCES>
|
28
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.8/bin" />
|
29
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.8/lib" />
|
30
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.8/config" />
|
31
|
+
</SOURCES>
|
32
|
+
</library>
|
33
|
+
</orderEntry>
|
34
|
+
<orderEntry type="module-library">
|
35
|
+
<library name="coveralls (vbundled(0.8.10), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/coveralls-0.8.10) [path][gem]">
|
36
|
+
<CLASSES>
|
37
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/coveralls-0.8.10/bin" />
|
38
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/coveralls-0.8.10/lib" />
|
39
|
+
</CLASSES>
|
40
|
+
<JAVADOC />
|
41
|
+
<SOURCES>
|
42
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/coveralls-0.8.10/bin" />
|
43
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/coveralls-0.8.10/lib" />
|
44
|
+
</SOURCES>
|
45
|
+
</library>
|
46
|
+
</orderEntry>
|
47
|
+
<orderEntry type="module-library">
|
48
|
+
<library name="diff-lcs (vbundled(1.2.5), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/diff-lcs-1.2.5) [path][gem]">
|
49
|
+
<CLASSES>
|
50
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/diff-lcs-1.2.5/bin" />
|
51
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/diff-lcs-1.2.5/lib" />
|
52
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/diff-lcs-1.2.5/autotest" />
|
53
|
+
</CLASSES>
|
54
|
+
<JAVADOC />
|
55
|
+
<SOURCES>
|
56
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/diff-lcs-1.2.5/bin" />
|
57
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/diff-lcs-1.2.5/lib" />
|
58
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/diff-lcs-1.2.5/autotest" />
|
59
|
+
</SOURCES>
|
60
|
+
</library>
|
61
|
+
</orderEntry>
|
62
|
+
<orderEntry type="module-library">
|
63
|
+
<library name="docile (vbundled(1.1.5), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/docile-1.1.5) [path][gem]">
|
64
|
+
<CLASSES>
|
65
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/docile-1.1.5/lib" />
|
66
|
+
</CLASSES>
|
67
|
+
<JAVADOC />
|
68
|
+
<SOURCES>
|
69
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/docile-1.1.5/lib" />
|
70
|
+
</SOURCES>
|
71
|
+
</library>
|
72
|
+
</orderEntry>
|
73
|
+
<orderEntry type="module-library">
|
74
|
+
<library name="domain_name (vbundled(0.5.25), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25) [path][gem]">
|
75
|
+
<CLASSES>
|
76
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25/lib" />
|
77
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25/data" />
|
78
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25/tool" />
|
79
|
+
</CLASSES>
|
80
|
+
<JAVADOC />
|
81
|
+
<SOURCES>
|
82
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25/lib" />
|
83
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25/data" />
|
84
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25/tool" />
|
85
|
+
</SOURCES>
|
86
|
+
</library>
|
87
|
+
</orderEntry>
|
88
|
+
<orderEntry type="module-library">
|
89
|
+
<library name="http-cookie (vbundled(1.0.2), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/http-cookie-1.0.2) [path][gem]">
|
90
|
+
<CLASSES>
|
91
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/http-cookie-1.0.2/lib" />
|
92
|
+
</CLASSES>
|
93
|
+
<JAVADOC />
|
94
|
+
<SOURCES>
|
95
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/http-cookie-1.0.2/lib" />
|
96
|
+
</SOURCES>
|
97
|
+
</library>
|
98
|
+
</orderEntry>
|
99
|
+
<orderEntry type="module-library">
|
100
|
+
<library name="i18n (vbundled(0.7.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/i18n-0.7.0) [path][gem]">
|
101
|
+
<CLASSES>
|
102
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/i18n-0.7.0/lib" />
|
103
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/i18n-0.7.0/gemfiles" />
|
104
|
+
</CLASSES>
|
105
|
+
<JAVADOC />
|
106
|
+
<SOURCES>
|
107
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/i18n-0.7.0/lib" />
|
108
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/i18n-0.7.0/gemfiles" />
|
109
|
+
</SOURCES>
|
110
|
+
</library>
|
111
|
+
</orderEntry>
|
112
|
+
<orderEntry type="module-library">
|
113
|
+
<library name="json (vbundled(1.8.3), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/json-1.8.3) [path][gem]">
|
114
|
+
<CLASSES>
|
115
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/ext" />
|
116
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/lib" />
|
117
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/data" />
|
118
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/java" />
|
119
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/tests" />
|
120
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/tools" />
|
121
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/diagrams" />
|
122
|
+
</CLASSES>
|
123
|
+
<JAVADOC />
|
124
|
+
<SOURCES>
|
125
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/ext" />
|
126
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/lib" />
|
127
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/data" />
|
128
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/java" />
|
129
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/tests" />
|
130
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/tools" />
|
131
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/diagrams" />
|
132
|
+
</SOURCES>
|
133
|
+
</library>
|
134
|
+
</orderEntry>
|
135
|
+
<orderEntry type="module-library">
|
136
|
+
<library name="mime-types (vbundled(2.99), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/mime-types-2.99) [path][gem]">
|
137
|
+
<CLASSES>
|
138
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/mime-types-2.99/lib" />
|
139
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/mime-types-2.99/data" />
|
140
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/mime-types-2.99/support" />
|
141
|
+
</CLASSES>
|
142
|
+
<JAVADOC />
|
143
|
+
<SOURCES>
|
144
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/mime-types-2.99/lib" />
|
145
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/mime-types-2.99/data" />
|
146
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/mime-types-2.99/support" />
|
147
|
+
</SOURCES>
|
148
|
+
</library>
|
149
|
+
</orderEntry>
|
150
|
+
<orderEntry type="module-library">
|
151
|
+
<library name="minitest (vbundled(5.8.3), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/minitest-5.8.3) [path][gem]">
|
152
|
+
<CLASSES>
|
153
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/minitest-5.8.3/lib" />
|
154
|
+
</CLASSES>
|
155
|
+
<JAVADOC />
|
156
|
+
<SOURCES>
|
157
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/minitest-5.8.3/lib" />
|
158
|
+
</SOURCES>
|
159
|
+
</library>
|
160
|
+
</orderEntry>
|
161
|
+
<orderEntry type="module-library">
|
162
|
+
<library name="netrc (vbundled(0.11.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/netrc-0.11.0) [path][gem]">
|
163
|
+
<CLASSES>
|
164
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/netrc-0.11.0/lib" />
|
165
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/netrc-0.11.0/data" />
|
166
|
+
</CLASSES>
|
167
|
+
<JAVADOC />
|
168
|
+
<SOURCES>
|
169
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/netrc-0.11.0/lib" />
|
170
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/netrc-0.11.0/data" />
|
171
|
+
</SOURCES>
|
172
|
+
</library>
|
173
|
+
</orderEntry>
|
174
|
+
<orderEntry type="module-library">
|
175
|
+
<library name="rake (vbundled(10.5.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/rake-10.5.0) [path][gem]">
|
176
|
+
<CLASSES>
|
177
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rake-10.5.0/bin" />
|
178
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rake-10.5.0/lib" />
|
179
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rake-10.5.0/rakelib" />
|
180
|
+
</CLASSES>
|
181
|
+
<JAVADOC />
|
182
|
+
<SOURCES>
|
183
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rake-10.5.0/bin" />
|
184
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rake-10.5.0/lib" />
|
185
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rake-10.5.0/rakelib" />
|
186
|
+
</SOURCES>
|
187
|
+
</library>
|
188
|
+
</orderEntry>
|
189
|
+
<orderEntry type="module-library">
|
190
|
+
<library name="rest-client (vbundled(1.8.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0) [path][gem]">
|
191
|
+
<CLASSES>
|
192
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/bin" />
|
193
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/lib" />
|
194
|
+
</CLASSES>
|
195
|
+
<JAVADOC />
|
196
|
+
<SOURCES>
|
197
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/bin" />
|
198
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/lib" />
|
199
|
+
</SOURCES>
|
200
|
+
</library>
|
201
|
+
</orderEntry>
|
202
|
+
<orderEntry type="module-library">
|
203
|
+
<library name="rspec (vbundled(3.4.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/rspec-3.4.0) [path][gem]">
|
204
|
+
<CLASSES>
|
205
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-3.4.0/lib" />
|
206
|
+
</CLASSES>
|
207
|
+
<JAVADOC />
|
208
|
+
<SOURCES>
|
209
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-3.4.0/lib" />
|
210
|
+
</SOURCES>
|
211
|
+
</library>
|
212
|
+
</orderEntry>
|
213
|
+
<orderEntry type="module-library">
|
214
|
+
<library name="rspec-core (vbundled(3.4.1), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.4.1) [path][gem]">
|
215
|
+
<CLASSES>
|
216
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.4.1/exe" />
|
217
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.4.1/lib" />
|
218
|
+
</CLASSES>
|
219
|
+
<JAVADOC />
|
220
|
+
<SOURCES>
|
221
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.4.1/exe" />
|
222
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.4.1/lib" />
|
223
|
+
</SOURCES>
|
224
|
+
</library>
|
225
|
+
</orderEntry>
|
226
|
+
<orderEntry type="module-library">
|
227
|
+
<library name="rspec-expectations (vbundled(3.4.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/rspec-expectations-3.4.0) [path][gem]">
|
228
|
+
<CLASSES>
|
229
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib" />
|
230
|
+
</CLASSES>
|
231
|
+
<JAVADOC />
|
232
|
+
<SOURCES>
|
233
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib" />
|
234
|
+
</SOURCES>
|
235
|
+
</library>
|
236
|
+
</orderEntry>
|
237
|
+
<orderEntry type="module-library">
|
238
|
+
<library name="rspec-mocks (vbundled(3.4.1), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.4.1) [path][gem]">
|
239
|
+
<CLASSES>
|
240
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.4.1/lib" />
|
241
|
+
</CLASSES>
|
242
|
+
<JAVADOC />
|
243
|
+
<SOURCES>
|
244
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-mocks-3.4.1/lib" />
|
245
|
+
</SOURCES>
|
246
|
+
</library>
|
247
|
+
</orderEntry>
|
248
|
+
<orderEntry type="module-library">
|
249
|
+
<library name="rspec-support (vbundled(3.4.1), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.4.1) [path][gem]">
|
250
|
+
<CLASSES>
|
251
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.4.1/lib" />
|
252
|
+
</CLASSES>
|
253
|
+
<JAVADOC />
|
254
|
+
<SOURCES>
|
255
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.4.1/lib" />
|
256
|
+
</SOURCES>
|
257
|
+
</library>
|
258
|
+
</orderEntry>
|
259
|
+
<orderEntry type="module-library">
|
260
|
+
<library name="simplecov (vbundled(0.11.1), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/simplecov-0.11.1) [path][gem]">
|
261
|
+
<CLASSES>
|
262
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-0.11.1/lib" />
|
263
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-0.11.1/features" />
|
264
|
+
</CLASSES>
|
265
|
+
<JAVADOC />
|
266
|
+
<SOURCES>
|
267
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-0.11.1/lib" />
|
268
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-0.11.1/features" />
|
269
|
+
</SOURCES>
|
270
|
+
</library>
|
271
|
+
</orderEntry>
|
272
|
+
<orderEntry type="module-library">
|
273
|
+
<library name="simplecov-html (vbundled(0.10.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0) [path][gem]">
|
274
|
+
<CLASSES>
|
275
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/lib" />
|
276
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/views" />
|
277
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/assets" />
|
278
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/public" />
|
279
|
+
</CLASSES>
|
280
|
+
<JAVADOC />
|
281
|
+
<SOURCES>
|
282
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/lib" />
|
283
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/views" />
|
284
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/assets" />
|
285
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/simplecov-html-0.10.0/public" />
|
286
|
+
</SOURCES>
|
287
|
+
</library>
|
288
|
+
</orderEntry>
|
289
|
+
<orderEntry type="module-library">
|
290
|
+
<library name="term-ansicolor (vbundled(1.3.2), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/term-ansicolor-1.3.2) [path][gem]">
|
291
|
+
<CLASSES>
|
292
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/term-ansicolor-1.3.2/bin" />
|
293
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/term-ansicolor-1.3.2/lib" />
|
294
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/term-ansicolor-1.3.2/tests" />
|
295
|
+
</CLASSES>
|
296
|
+
<JAVADOC />
|
297
|
+
<SOURCES>
|
298
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/term-ansicolor-1.3.2/bin" />
|
299
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/term-ansicolor-1.3.2/lib" />
|
300
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/term-ansicolor-1.3.2/tests" />
|
301
|
+
</SOURCES>
|
302
|
+
</library>
|
303
|
+
</orderEntry>
|
304
|
+
<orderEntry type="module-library">
|
305
|
+
<library name="thor (vbundled(0.19.1), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1) [path][gem]">
|
306
|
+
<CLASSES>
|
307
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/bin" />
|
308
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/lib" />
|
309
|
+
</CLASSES>
|
310
|
+
<JAVADOC />
|
311
|
+
<SOURCES>
|
312
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/bin" />
|
313
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/lib" />
|
314
|
+
</SOURCES>
|
315
|
+
</library>
|
316
|
+
</orderEntry>
|
317
|
+
<orderEntry type="module-library">
|
318
|
+
<library name="thread_safe (vbundled(0.3.5), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5) [path][gem]">
|
319
|
+
<CLASSES>
|
320
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/ext" />
|
321
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/lib" />
|
322
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/tasks" />
|
323
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/yard-template" />
|
324
|
+
</CLASSES>
|
325
|
+
<JAVADOC />
|
326
|
+
<SOURCES>
|
327
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/ext" />
|
328
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/lib" />
|
329
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/tasks" />
|
330
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/thread_safe-0.3.5/yard-template" />
|
331
|
+
</SOURCES>
|
332
|
+
</library>
|
333
|
+
</orderEntry>
|
334
|
+
<orderEntry type="module-library">
|
335
|
+
<library name="tins (vbundled(1.6.0), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/tins-1.6.0) [path][gem]">
|
336
|
+
<CLASSES>
|
337
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/tins-1.6.0/lib" />
|
338
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/tins-1.6.0/tests" />
|
339
|
+
</CLASSES>
|
340
|
+
<JAVADOC />
|
341
|
+
<SOURCES>
|
342
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/tins-1.6.0/lib" />
|
343
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/tins-1.6.0/tests" />
|
344
|
+
</SOURCES>
|
345
|
+
</library>
|
346
|
+
</orderEntry>
|
347
|
+
<orderEntry type="module-library">
|
348
|
+
<library name="tzinfo (vbundled(1.2.2), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/tzinfo-1.2.2) [path][gem]">
|
349
|
+
<CLASSES>
|
350
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/tzinfo-1.2.2/lib" />
|
351
|
+
</CLASSES>
|
352
|
+
<JAVADOC />
|
353
|
+
<SOURCES>
|
354
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/tzinfo-1.2.2/lib" />
|
355
|
+
</SOURCES>
|
356
|
+
</library>
|
357
|
+
</orderEntry>
|
358
|
+
<orderEntry type="module-library">
|
359
|
+
<library name="unf (vbundled(0.1.4), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/unf-0.1.4) [path][gem]">
|
360
|
+
<CLASSES>
|
361
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/unf-0.1.4/lib" />
|
362
|
+
</CLASSES>
|
363
|
+
<JAVADOC />
|
364
|
+
<SOURCES>
|
365
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/unf-0.1.4/lib" />
|
366
|
+
</SOURCES>
|
367
|
+
</library>
|
368
|
+
</orderEntry>
|
369
|
+
<orderEntry type="module-library">
|
370
|
+
<library name="unf_ext (vbundled(0.0.7.1), D:/Development/Projects/Coursemology Polyglot/vendor/bundle/ruby/2.2.0/gems/unf_ext-0.0.7.1) [path][gem]">
|
371
|
+
<CLASSES>
|
372
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/unf_ext-0.0.7.1/ext" />
|
373
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/unf_ext-0.0.7.1/lib" />
|
374
|
+
</CLASSES>
|
375
|
+
<JAVADOC />
|
376
|
+
<SOURCES>
|
377
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/unf_ext-0.0.7.1/ext" />
|
378
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/ruby/2.2.0/gems/unf_ext-0.0.7.1/lib" />
|
379
|
+
</SOURCES>
|
380
|
+
</library>
|
381
|
+
</orderEntry>
|
382
|
+
</component>
|
383
|
+
</module>
|
data/.rspec
ADDED
@@ -0,0 +1,244 @@
|
|
1
|
+
AccessorMethodName:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
ActionFilter:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Alias:
|
8
|
+
Enabled: true
|
9
|
+
|
10
|
+
ArrayJoin:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
AsciiComments:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
AsciiIdentifiers:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Attr:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
BlockNesting:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
CaseEquality:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
CharacterLiteral:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
ClassAndModuleChildren:
|
32
|
+
Enabled: true
|
33
|
+
EnforcedStyle: compact
|
34
|
+
|
35
|
+
ClassLength:
|
36
|
+
Enabled: true
|
37
|
+
|
38
|
+
ClassVars:
|
39
|
+
Enabled: true
|
40
|
+
|
41
|
+
CollectionMethods:
|
42
|
+
Enabled: true
|
43
|
+
PreferredMethods:
|
44
|
+
reduce:
|
45
|
+
inject: 'reduce'
|
46
|
+
find:
|
47
|
+
detect: 'find'
|
48
|
+
|
49
|
+
ColonMethodCall:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
CommentAnnotation:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
CyclomaticComplexity:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
Delegate:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
DeprecatedHashMethods:
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
DoubleNegation:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
EachWithObject:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
EmptyLiteral:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Encoding:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
EvenOdd:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
ExtraSpacing:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
FileName:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
FlipFlop:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
FormatString:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
GlobalVars:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
GuardClause:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
IfUnlessModifier:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
IfWithSemicolon:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
InlineComment:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
Lambda:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
LambdaCall:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
LineEndConcatenation:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
MethodLength:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
ModuleFunction:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
NegatedIf:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
NegatedWhile:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Next:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
NilComparison:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Not:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
NumericLiterals:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
OneLineConditional:
|
140
|
+
Enabled: true
|
141
|
+
|
142
|
+
OpMethod:
|
143
|
+
Enabled: true
|
144
|
+
|
145
|
+
ParameterLists:
|
146
|
+
Enabled: true
|
147
|
+
|
148
|
+
PercentLiteralDelimiters:
|
149
|
+
Enabled: true
|
150
|
+
|
151
|
+
PerlBackrefs:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
PredicateName:
|
155
|
+
NamePrefixBlacklist: []
|
156
|
+
|
157
|
+
Proc:
|
158
|
+
Enabled: true
|
159
|
+
|
160
|
+
RaiseArgs:
|
161
|
+
Enabled: true
|
162
|
+
|
163
|
+
RegexpLiteral:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
SelfAssignment:
|
167
|
+
Enabled: true
|
168
|
+
|
169
|
+
SingleLineBlockParams:
|
170
|
+
Enabled: true
|
171
|
+
|
172
|
+
SingleLineMethods:
|
173
|
+
Enabled: true
|
174
|
+
|
175
|
+
SignalException:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
SpecialGlobalVars:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
VariableInterpolation:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
TrailingComma:
|
185
|
+
Enabled: true
|
186
|
+
|
187
|
+
TrivialAccessors:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
VariableInterpolation:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
WhenThen:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
WhileUntilModifier:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
# Lint
|
200
|
+
|
201
|
+
AmbiguousOperator:
|
202
|
+
Enabled: true
|
203
|
+
|
204
|
+
AmbiguousRegexpLiteral:
|
205
|
+
Enabled: true
|
206
|
+
|
207
|
+
AssignmentInCondition:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
ConditionPosition:
|
211
|
+
Enabled: true
|
212
|
+
|
213
|
+
DeprecatedClassMethods:
|
214
|
+
Enabled: true
|
215
|
+
|
216
|
+
ElseLayout:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
HandleExceptions:
|
220
|
+
Enabled: true
|
221
|
+
|
222
|
+
InvalidCharacterLiteral:
|
223
|
+
Enabled: true
|
224
|
+
|
225
|
+
LiteralInCondition:
|
226
|
+
Enabled: true
|
227
|
+
|
228
|
+
LiteralInInterpolation:
|
229
|
+
Enabled: true
|
230
|
+
|
231
|
+
Loop:
|
232
|
+
Enabled: true
|
233
|
+
|
234
|
+
ParenthesesAsGroupedExpression:
|
235
|
+
Enabled: true
|
236
|
+
|
237
|
+
RequireParentheses:
|
238
|
+
Enabled: true
|
239
|
+
|
240
|
+
UnderscorePrefixedVariableName:
|
241
|
+
Enabled: true
|
242
|
+
|
243
|
+
Void:
|
244
|
+
Enabled: true
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
inherit_from:
|
2
|
+
- .rubocop.unhound.yml
|
3
|
+
|
4
|
+
Metrics/LineLength:
|
5
|
+
Max: 100
|
6
|
+
|
7
|
+
Style/DotPosition:
|
8
|
+
EnforcedStyle: trailing
|
9
|
+
|
10
|
+
Style/Documentation:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/IndentHash:
|
14
|
+
EnforcedStyle: consistent
|
15
|
+
|
16
|
+
Style/StringLiterals:
|
17
|
+
EnforcedStyle: single_quotes
|
18
|
+
|
19
|
+
Style/WordArray:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/RegexpLiteral:
|
23
|
+
AllowInnerSlashes: true
|
24
|
+
|
25
|
+
Style/ClassAndModuleChildren:
|
26
|
+
EnforcedStyle: compact
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
# Coursemology Polyglot [![Build Status](https://travis-ci.org/Coursemology/polyglot.svg?branch=master)](https://travis-ci.org/Coursemology/polyglot)
|
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)
|
3
|
+
|
4
|
+
This is the library common between the web application and the evaluator for determining the
|
5
|
+
programming languages supported in Coursemology.
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'coursemology/polyglot/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'coursemology-polyglot'
|
8
|
+
spec.version = Coursemology::Polyglot::VERSION
|
9
|
+
spec.authors = ['Joel Low']
|
10
|
+
spec.email = ['joel@joelsplace.sg']
|
11
|
+
spec.license = 'MIT'
|
12
|
+
|
13
|
+
spec.summary = 'Coursemology polyglot definitions'
|
14
|
+
spec.description = <<-DESC
|
15
|
+
Common definitions shared between the web application and the evaluator for determining the
|
16
|
+
programming languages supported in Coursemology.
|
17
|
+
DESC
|
18
|
+
spec.homepage = 'http://coursemology.org'
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").
|
20
|
+
reject { |f| f.match(/^(test|spec|features)\//) }
|
21
|
+
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'rspec'
|
27
|
+
spec.add_development_dependency 'simplecov'
|
28
|
+
spec.add_development_dependency 'coveralls'
|
29
|
+
spec.add_development_dependency 'codeclimate-test-reporter'
|
30
|
+
|
31
|
+
spec.add_dependency 'activesupport', '~> 4.2.0', '>= 4.2.2'
|
32
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'active_support/all'
|
2
|
+
require 'coursemology/polyglot/version'
|
3
|
+
|
4
|
+
module Coursemology::Polyglot
|
5
|
+
extend ActiveSupport::Autoload
|
6
|
+
|
7
|
+
eager_autoload do
|
8
|
+
autoload :Language
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.eager_load!
|
12
|
+
super
|
13
|
+
Coursemology::Polyglot::Language.eager_load!
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
if defined?(ActiveRecord)
|
2
|
+
# :nocov:
|
3
|
+
# TODO: This is for compatibility with the Web application. A future refactoring might be able
|
4
|
+
# to remove this dependency.
|
5
|
+
class Coursemology::Polyglot::Language < ActiveRecord::Base; end
|
6
|
+
# :nocov:
|
7
|
+
else
|
8
|
+
class Coursemology::Polyglot::Language; end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Coursemology::Polyglot::Language
|
12
|
+
extend ActiveSupport::Autoload
|
13
|
+
|
14
|
+
eager_autoload do
|
15
|
+
autoload :Python
|
16
|
+
end
|
17
|
+
|
18
|
+
# Gets the display name of the language.
|
19
|
+
#
|
20
|
+
# @abstract
|
21
|
+
# @return [String]
|
22
|
+
def self.display_name
|
23
|
+
fail NotImplementedError
|
24
|
+
end
|
25
|
+
|
26
|
+
# The stylesheets that need to be packaged with the rest of the application.
|
27
|
+
#
|
28
|
+
# This should include the Rouge/Pygments stylesheet for formatting code.
|
29
|
+
#
|
30
|
+
# @abstract
|
31
|
+
# @return [Array<String>]
|
32
|
+
def self.stylesheets
|
33
|
+
fail NotImplementedError
|
34
|
+
end
|
35
|
+
|
36
|
+
# The script files that need to be packaged with the rest of the application.
|
37
|
+
#
|
38
|
+
# This should include the Ace mode for the language.
|
39
|
+
#
|
40
|
+
# @abstract
|
41
|
+
# @return [Array<String>]
|
42
|
+
def self.javascript
|
43
|
+
fail NotImplementedError
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Coursemology::Polyglot::Language::Python < Coursemology::Polyglot::Language
|
2
|
+
class Python2Point7 < Coursemology::Polyglot::Language::Python
|
3
|
+
class << self
|
4
|
+
def display_name
|
5
|
+
'Python 2.7'
|
6
|
+
end
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
class Python3Point4 < Coursemology::Polyglot::Language::Python
|
11
|
+
class << self
|
12
|
+
def display_name
|
13
|
+
'Python 3.4'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: coursemology-polyglot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joel Low
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coveralls
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: codeclimate-test-reporter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: activesupport
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.2.0
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 4.2.2
|
107
|
+
type: :runtime
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 4.2.0
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 4.2.2
|
117
|
+
description: |
|
118
|
+
Common definitions shared between the web application and the evaluator for determining the
|
119
|
+
programming languages supported in Coursemology.
|
120
|
+
email:
|
121
|
+
- joel@joelsplace.sg
|
122
|
+
executables: []
|
123
|
+
extensions: []
|
124
|
+
extra_rdoc_files: []
|
125
|
+
files:
|
126
|
+
- ".gitignore"
|
127
|
+
- ".hound.yml"
|
128
|
+
- ".idea/Coursemology Polyglot.iml"
|
129
|
+
- ".rspec"
|
130
|
+
- ".rubocop.unhound.yml"
|
131
|
+
- ".rubocop.yml"
|
132
|
+
- ".travis.yml"
|
133
|
+
- Gemfile
|
134
|
+
- README.md
|
135
|
+
- Rakefile
|
136
|
+
- coursemology-polyglot.gemspec
|
137
|
+
- lib/coursemology/polyglot.rb
|
138
|
+
- lib/coursemology/polyglot/language.rb
|
139
|
+
- lib/coursemology/polyglot/language/python.rb
|
140
|
+
- lib/coursemology/polyglot/version.rb
|
141
|
+
homepage: http://coursemology.org
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
metadata: {}
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
requirements: []
|
160
|
+
rubyforge_project:
|
161
|
+
rubygems_version: 2.4.8
|
162
|
+
signing_key:
|
163
|
+
specification_version: 4
|
164
|
+
summary: Coursemology polyglot definitions
|
165
|
+
test_files: []
|