ruql 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac017e4ff423a6512c6fb5ce4c96ddeb444e27d4eddc33f629889a4bec3b4ff2
4
- data.tar.gz: 29479e8ed8d5fa71d54b6ab0ca8ac264cc81532ffc3af273a71caa3a606fb773
3
+ metadata.gz: ff79fa8465db54b4e2ce0e9ee62c891649b2066a5093c76747f7a3693cc8321e
4
+ data.tar.gz: 43f22ab810aebe22665a985d25db33a8a8d46cba38ff1f0d4cd6145de4bf0fce
5
5
  SHA512:
6
- metadata.gz: 581422b4e8c0d094d6f3c9e2f4eab77d2f29fd8a8f039a2b865fd19dd0f24247bf0e08a0227216baec18475d4c8d8d787e95cd1f987e4ff2ce83e7c042447347
7
- data.tar.gz: 39438734c62ea04ebda86a95b1f834f9eba553530d4a4e8c8d7ac7a11bf77b456245dae069e27d32e1307652c39ae3471342406222330ebb9c2d3413d7b369a8
6
+ metadata.gz: 7f2ec53ca0098f8c7fe2bf43557935351b73313469ce3610517eb51122bdecb5353509dedd84a05119b7f422c85510b47cc2fb062b17a34a51bd15e077deb4a3
7
+ data.tar.gz: 78913cb4c7913a01748cd9f6966bf0fbfed7886bc5c94e81a95bac7ec893f0e5469c2621a7f00124f18f57fd45e64fe8541f6e8d76a16316a75e7ff52fe88411
data/README.md CHANGED
@@ -13,21 +13,25 @@ Some types of questions or question elements that can be expressed in
13
13
  RuQL cannot be expressed by some LMSs, and some LMS-specific question
14
14
  features cannot be expressed in RuQL.
15
15
 
16
+ [Registered ESaaS instructors](http://www.saasbook.info/instructors) can access
17
+ [this repo](/saasbook/csw169a-quizzes) of questions, grouped by
18
+ chapter of the [ESaaS textbook](http://www.saasbook.info).
19
+
16
20
 
17
21
  Installation
18
22
  ============
19
23
 
20
- `gem install ruql` to install this from RubyGems. It works with Ruby
21
- >=1.9.2
24
+ `gem install ruql` to install this from RubyGems. It works with Ruby 1.9 or later.
22
25
 
23
26
  You'll also need to install one or more formatters to produce quiz output.
24
27
 
25
28
  Installation: Current Formatters
26
29
  ================================
27
30
 
28
- * [ruql-html](https://github.com/saasbook/ruql-html): produces HTML 5 output using a default or user-supplied HTML
31
+ * [ruql-html](/saasbook/ruql-html): produces HTML 5 output using a default or user-supplied HTML
29
32
  template
30
- * [ruql-canvas](https://github.com/saasbook/ruql-canvas): creates a quiz in Canvas LMS using its REST API
33
+ * [ruql-canvas](/saasbook/ruql-canvas): creates a quiz in Canvas LMS using its REST API
34
+ * [ruql-olx](/saasbook/ruql-olx): creates a quiz in edX's Open Learning XML
31
35
 
32
36
 
33
37
  Running RuQL
@@ -243,8 +247,14 @@ future tools that can use this information.
243
247
  3. The optional `comment` clause is followed by a string and allows a
244
248
  free-text comment to be added to a question.
245
249
 
250
+ 4. The optional `group` clause, which takes a single string, names
251
+ a "pool" of questions of which this question is a part. Some formatters
252
+ such as the Canvas importer will turn this into a "quiz question group"
253
+ so that one question from the pool will be randomly chosen to show the
254
+ student. See each formatter's documentation for how/whether it uses this property.
255
+
246
256
 
247
- Adding your own renderer
257
+ Adding your own formatter
248
258
  ========================
249
259
 
250
260
  **This documentation is incomplete**
@@ -287,7 +297,7 @@ minimum:
287
297
 
288
298
  ```ruby
289
299
  module Ruql
290
- module Foobar
300
+ class Foobar
291
301
  def initialize(quiz, options={})
292
302
  # initialize yourself, given a Quiz object and command-line
293
303
  # options in Getoptlong format
@@ -1,7 +1,10 @@
1
- class SelectMultiple < MultipleChoice
1
+ class SelectMultiple < Question
2
2
 
3
+ attr_accessor :multiple
4
+
3
5
  def initialize(text='', opts={})
4
6
  super
7
+ self.question_text = text
5
8
  self.multiple = true
6
9
  end
7
10
 
@@ -1,3 +1,3 @@
1
1
  module Ruql
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armando Fox
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-13 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -137,7 +137,7 @@ metadata:
137
137
  allowed_push_host: https://rubygems.org
138
138
  homepage_uri: http://github.com/saasbook/ruql
139
139
  source_code_uri: http://github.com/saasbook/ruql
140
- post_install_message:
140
+ post_install_message:
141
141
  rdoc_options: []
142
142
  require_paths:
143
143
  - lib
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubygems_version: 3.0.8
156
- signing_key:
156
+ signing_key:
157
157
  specification_version: 4
158
158
  summary: Ruby question language
159
159
  test_files: []