ruql-canvas 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/config.yml.sample +29 -0
- data/lib/ruql/canvas/version.rb +1 -1
- metadata +7 -7
- data/result.json +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73803c74a762e5057c6791f20f6bbf163c8d380c00d66ca4fe082fdc8419b817
|
4
|
+
data.tar.gz: 87772de849750aa549b9dad4fbcfd96072f331cd1eca0817c97fe0f7a618ab39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa1b86386c24541ef4b3849d3b9685d797ceaac703b8dd045af4f214e0acfd94ca14c7aca2ce9d1791c29ad0a2945a73bf84b29a4dd58b1d5913fcc87dc5070c
|
7
|
+
data.tar.gz: 89bf1704b396f81f3355cfcf545cb989b85760c8b336c03867aa70599675869fe0c81dbc161d883d7c9b5e75ec76cb1752accccc9cc8529a1dce68abed81b232
|
data/README.md
CHANGED
@@ -23,30 +23,30 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
Prior to processing a quiz file, you'll need to create a simple `.yml`
|
25
25
|
file containing information about connecting to your Canvas instance's
|
26
|
-
API endpoint. Say `ruql canvas -h` for help on the file contents
|
26
|
+
API endpoint. Say `ruql canvas -h` for help on the file contents
|
27
|
+
or take a look at `config.yml.sample`.
|
27
28
|
|
28
29
|
The file also lets you specify all the features of a Canvas quiz, such
|
29
30
|
as start time, whether to show one question at a time, etc. Of course
|
30
31
|
you can change these manually after the quiz is uploaded.
|
31
32
|
|
32
|
-
If you specify an existing quiz ID,
|
33
|
-
truncated and its contents replaced with the one you're processing.
|
33
|
+
If you specify an existing quiz ID, the existing quiz will be
|
34
|
+
truncated (all questions deleted) and its contents replaced with the one you're processing.
|
34
35
|
This is useful for modifying a quiz "in place" when external links to
|
35
36
|
the quiz ID already exist.
|
36
37
|
|
38
|
+
Quiz time limits are computed by the `ruql` gem itself (`ruql -h` for info)
|
39
|
+
but can be overridden in the `.yml` file.
|
40
|
+
|
37
41
|
If you turn on verbose mode (`--verbose` or `-V`) when running `ruql`,
|
38
42
|
you can see the REST requests being made against Canvas.
|
39
43
|
|
40
|
-
## Development
|
44
|
+
## Development/Contributing
|
41
45
|
|
42
46
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
43
47
|
|
44
48
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
45
49
|
|
46
|
-
## Contributing
|
47
|
-
|
48
50
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruql-canvas. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
49
51
|
|
50
|
-
## Code of Conduct
|
51
|
-
|
52
52
|
Everyone interacting in the Ruql::Canvas project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ruql-canvas/blob/master/CODE_OF_CONDUCT.md).
|
data/config.yml.sample
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Uncomment the dry_run line to try/show what would be done, but not actually make changes:
|
2
|
+
#dry_run: true
|
3
|
+
canvas:
|
4
|
+
# replace with your institution's Canvas API base:
|
5
|
+
api_base: https://bcourses.yourschool.edu/api/v1
|
6
|
+
# replace with an auth_token you generate while logged into Canvas:
|
7
|
+
auth_token: "LONG_AUTH_TOKEN"
|
8
|
+
# replace with canvas Course ID of your course
|
9
|
+
course_id: 1487863
|
10
|
+
# replace with existing Quiz ID, or if omitted, will create new quiz
|
11
|
+
quiz_id: 2311075
|
12
|
+
|
13
|
+
# Properties of the quiz - can be changed using canvas GUI after import:
|
14
|
+
|
15
|
+
quiz:
|
16
|
+
# Description shown to students when quiz started
|
17
|
+
description: "You must now complete the entire quiz within the given time limit. Your work is automatically saved periodically, but once you press Submit Quiz, your answers cannot be changed. So only click Submit once, when you are sure your answers are final. As a reminder, NO COLLABORATION is allowed on quizzes: closed book, closed Internet, closed friends. Good skill!"
|
18
|
+
# Most quizzes show up as "assignments" in canvas; see canvas API docs
|
19
|
+
quiz_type: assignment
|
20
|
+
# Should student see correct answer after submitting their own?
|
21
|
+
show_correct_answers: false
|
22
|
+
# Randomize order of answers?
|
23
|
+
shuffle_answers: true
|
24
|
+
# Quiz due date
|
25
|
+
due_at: "2020-08-01T23:00Z"
|
26
|
+
# When students can first access quiz
|
27
|
+
unlock_at: "2020-05-21T00:00Z"
|
28
|
+
# Initially published or not?
|
29
|
+
published: false
|
data/lib/ruql/canvas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruql-canvas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Armando Fox
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- fox@berkeley.edu
|
72
72
|
executables: []
|
@@ -82,10 +82,10 @@ files:
|
|
82
82
|
- Rakefile
|
83
83
|
- bin/console
|
84
84
|
- bin/setup
|
85
|
+
- config.yml.sample
|
85
86
|
- lib/ruql/canvas.rb
|
86
87
|
- lib/ruql/canvas/canvas.rb
|
87
88
|
- lib/ruql/canvas/version.rb
|
88
|
-
- result.json
|
89
89
|
- ruql-canvas.gemspec
|
90
90
|
- templates/quiz.yml
|
91
91
|
homepage: https://github.com/saasbook/ruql-canvas
|
@@ -94,7 +94,7 @@ metadata:
|
|
94
94
|
allowed_push_host: https://rubygems.org
|
95
95
|
homepage_uri: https://github.com/saasbook/ruql-canvas
|
96
96
|
source_code_uri: https://github.com/saasbook/ruql-canvas
|
97
|
-
post_install_message:
|
97
|
+
post_install_message:
|
98
98
|
rdoc_options: []
|
99
99
|
require_paths:
|
100
100
|
- lib
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubygems_version: 3.0.8
|
113
|
-
signing_key:
|
113
|
+
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Upload RuQL quizzes into Instructure Canvas using its REST API.
|
116
116
|
test_files: []
|
data/result.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
curl -X POST -H Authorization: Bearer 1072~v2YlFRSHpWOC7Sm8ovy6W5GiDTzlSBc6EDH7CtPKiRje0jH2PAKj7L8C2b0SwxQ4 -H Content-Type: application/json -d @quiz.json https://bcourses.berkeley.edu/api/v1/courses/1487863/quizzes
|