ruql-canvas 1.0.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3418ecd8bce903e51bfeab3af00cc5d5ac0cbcc1c1043d35e730cdc9cf2df924
4
+ data.tar.gz: 2445969de592cba48c164fae63ebcdf3cbfd0670840fe518274f31a3b305e48d
5
+ SHA512:
6
+ metadata.gz: cf0f232a4ce1981fc8636b3f8840a66efe8a8bf152085f6129780177344f655d44f36159308ca91f9b25406de96e284efb6a034ad5c8f11010e05a1ca49db4ef
7
+ data.tar.gz: c01c3ff0a897fd33530577231d80eba5a64a7d9aa8b7cdf599a06886cd33b2836bd421b1b71427bc26828ed357bee9efd59be05961dacc8ceea0dcfd4a6a9343
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ .byebug_history
13
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.3.7
7
+ before_install: gem install bundler -v 1.17.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at fox@cs.berkeley.edu. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in ruql-canvas.gemspec
6
+ gemspec
@@ -0,0 +1,52 @@
1
+ # Ruql::Canvas
2
+
3
+ This formatter requires [ruql](https://github.com/saasbook/ruql) and
4
+ allos uploading RuQL quizzes into the Canvas LMS using its REST API.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'ruql-canvas'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install ruql-canvas
21
+
22
+ ## Usage
23
+
24
+ Prior to processing a quiz file, you'll need to create a simple `.yml`
25
+ file containing information about connecting to your Canvas instance's
26
+ API endpoint. Say `ruql canvas -h` for help on the file contents.
27
+
28
+ The file also lets you specify all the features of a Canvas quiz, such
29
+ as start time, whether to show one question at a time, etc. Of course
30
+ you can change these manually after the quiz is uploaded.
31
+
32
+ If you specify an existing quiz ID, that quiz will be completely
33
+ truncated and its contents replaced with the one you're processing.
34
+ This is useful for modifying a quiz "in place" when external links to
35
+ the quiz ID already exist.
36
+
37
+ If you turn on verbose mode (`--verbose` or `-V`) when running `ruql`,
38
+ you can see the REST requests being made against Canvas.
39
+
40
+ ## Development
41
+
42
+ 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
+
44
+ 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
+
46
+ ## Contributing
47
+
48
+ 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
+
50
+ ## Code of Conduct
51
+
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).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ruql/canvas"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,2 @@
1
+ require "ruql/canvas/version"
2
+ require "ruql/canvas/canvas"
@@ -0,0 +1,224 @@
1
+ module Ruql
2
+ class Canvas
3
+ require 'uri'
4
+ require 'faraday'
5
+ #require 'byebug'
6
+ require 'json'
7
+ require 'yaml'
8
+
9
+ class CanvasApiError < StandardError ; end
10
+
11
+ attr_reader :quiz
12
+ attr_reader :default_quiz_options_file
13
+ attr_reader :logger
14
+ attr_reader :dry_run
15
+ attr_reader :output
16
+
17
+ def initialize(quiz,options={})
18
+ @quiz = quiz
19
+ @logger = quiz.logger
20
+ @gem_root = Gem.loaded_specs['ruql-canvas'].full_gem_path rescue '.'
21
+ @default_quiz_options_file = File.join(@gem_root, 'templates', 'quiz.yml')
22
+ # read YAML options
23
+ yaml_options = options.delete('--canvas-config') || raise(Ruql::OptionsError.new("Canvas config file must be provided"))
24
+ yaml = YAML.load_file(yaml_options)
25
+ logger.warn "Doing dry run without making any changes" if
26
+ (@dry_run = yaml['dry_run'] || options['--canvas-dry-run'])
27
+ set_canvas_options(yaml['canvas'])
28
+
29
+ @quiz_options = YAML.load_file(@default_quiz_options_file)['quiz'].merge(yaml['quiz'] || {})
30
+ logger.info "Using quiz options:\n#{@quiz_options.inspect}"
31
+
32
+ verify_valid_quiz!
33
+
34
+ @current_group_id = nil
35
+ @response = nil
36
+ @group_count = 0
37
+ @qcount = 0
38
+
39
+ @output = ''
40
+
41
+ end
42
+
43
+ def self.allowed_options
44
+ opts = [
45
+ ['--canvas-config', GetoptLong::REQUIRED_ARGUMENT],
46
+ ['--canvas-dry-run', GetoptLong::NO_ARGUMENT],
47
+ ]
48
+ help = <<eos
49
+ The Canvas renderer adds the given file as a quiz in Canvas, with these options:
50
+ --canvas-dry-run - don't actually change anything, but do all non-state-changing API calls.
51
+ You can also set dry_run: true in the YAML file instead.
52
+ --canvas-config=file.yml - A Yaml file that must contain at least the following:
53
+ dry_run: true # don't actually change anything, but check API connection and parsability
54
+ canvas:
55
+ api_base: https://bcourses.berkeley.edu/api/v1 # base URL for Canvas LMS API
56
+ auth_token: 012345 # Bearer auth token for Canvas API
57
+ course_id: 99999 # Course ID in Canvas to which a NEW quiz should be added
58
+ # If a quiz_id is given and exists within that course, that quiz's contents
59
+ # will be completely replaced, otherwise a new quiz will be created:
60
+ quiz_id: 99999
61
+ quiz:
62
+ # various options that control quiz; defaults are in #{@default_quiz_options_file}
63
+ eos
64
+ return [help, opts]
65
+ end
66
+
67
+ # We must set up the following before adding questions:
68
+ # 1) create quiz with given options (unless quiz ID is given)
69
+ # 2) for each question in quiz, sorted so that same-pool questions are together:
70
+ # - if part of a new pool, start new QuizGroup
71
+ # - add it to the quiz, specifying its group
72
+ # docs: canvas.instructure.com/doc/api/{quizzes,quiz_question_groups,quiz_questions}.html
73
+
74
+ def verify_valid_quiz!
75
+ unless quiz.questions.all? { |q| MultipleChoice === q || SelectMultiple === q }
76
+ raise Ruql::QuizContentError.new(
77
+ "Canvas renderer currently only supports Multiple Choice and Select All That Apply questions")
78
+ end
79
+ end
80
+
81
+ def render_quiz
82
+ if @quiz_id
83
+ truncate_quiz!
84
+ @output = "Existing quiz #{@quiz_id}"
85
+ else
86
+ create_quiz!
87
+ @output = "New quiz #{@quiz_id}"
88
+ end
89
+ quiz.ungrouped_questions.each do |q|
90
+ canvas_question = render_multiple_choice(q)
91
+ add_question_to_current_group(canvas_question)
92
+ end
93
+ current_group = nil
94
+ quiz.grouped_questions.each do |q|
95
+ if q.question_group != current_group
96
+ start_new_group(:name => "Group:#{q.question_group}", :question_points => q.points)
97
+ current_group = q.question_group
98
+ end
99
+ canvas_question = render_multiple_choice(q)
100
+ add_question_to_current_group(canvas_question)
101
+ end
102
+ @output << " now has #{@qcount} questions in #{@group_count} pool(s)"
103
+ end
104
+ #####
105
+
106
+ private
107
+
108
+ def set_canvas_options(canvas)
109
+ @course_id = canvas['course_id'] || raise(Ruql::OptionsError.new("course_id missing from config file"))
110
+ @quiz_id = canvas['quiz_id'] # may be nil => create new quiz
111
+ token = canvas['auth_token'] || raise(Ruql::OptionsError.new("auth_token missing from config file"))
112
+ base = canvas['api_base'] || raise(Ruql::OptionsError.new("api_base missing from config file"))
113
+ logger.info "Using #{@base}"
114
+ @canvas = Faraday.new(
115
+ :url => base,
116
+ :headers => {
117
+ 'Authorization' => "Bearer #{token}",
118
+ 'Content-Type' => 'application/json'
119
+ })
120
+ end
121
+
122
+ def canvas(description, method, path, data: nil)
123
+ logger.info "#{method} #{path} #{data}"
124
+ return if dry_run && method.to_s != 'get'
125
+ if data
126
+ response = @canvas.send(method, path, data)
127
+ else
128
+ response = @canvas.send(method, path)
129
+ end
130
+ if response.success?
131
+ return response.body
132
+ else
133
+ raise CanvasApiError.new("#{description}: #{response.status} #{response.body}")
134
+ end
135
+ end
136
+
137
+ def time_limit_for_quiz
138
+ # intent is 1 point per minute, add 5 minutes for slop, round total up to nearest 5 minutes
139
+ # but # questions is really # unique groups.
140
+ limit = 5 * (quiz.points.to_i / 5 + 1)
141
+ logger.info "Time limit #{limit} based on #{quiz.points} grouped points"
142
+ limit
143
+ end
144
+
145
+ def truncate_quiz!
146
+ # list, then remove, all questions from existing quiz ID
147
+ path = "courses/#{@course_id}/quizzes/#{@quiz_id}"
148
+ response = canvas("Truncating quiz #{@quiz_id}", :get, path + "/questions")
149
+ questions = JSON.parse(response)
150
+ # delete all questions
151
+ questions.each do |q|
152
+ qid = q['id']
153
+ canvas("Delete question #{qid}", :delete, path + "/questions/#{qid}")
154
+ end
155
+ # collect all group numbers, since we have to delete them too
156
+ group_ids = questions.map { |q| q['quiz_group_id'] }.compact.uniq
157
+ group_ids.each do |gid|
158
+ canvas("Delete group #{gid}", :delete, path + "/groups/#{gid}")
159
+ end
160
+ end
161
+
162
+ def create_quiz!
163
+ quiz_opts = @quiz_options.merge({
164
+ 'title' => quiz.title,
165
+ 'time_limit' => time_limit_for_quiz,
166
+ 'due_at' => "2020-08-01T23:00Z",
167
+ 'unlock_at' => "2020-05-21T00:00Z"
168
+ })
169
+ quiz_object = {:quiz => quiz_opts}.to_json
170
+ path = "courses/#{@course_id}/quizzes"
171
+ new_quiz = canvas("Create quiz", :post, path, data: quiz_object)
172
+ @quiz_id = (dry_run ? 'XXXXX' : JSON.parse(new_quiz)['id'])
173
+ logger.info "Created new quiz #{@quiz_id} in course #{@course_id}"
174
+ end
175
+
176
+ def start_new_group(options = {})
177
+ options[:question_points] ||= 1
178
+ options[:pick_count] ||= 1
179
+ options[:name] ||= "group:#{@group_count}"
180
+ group = { quiz_groups: [ options ] }
181
+ resp = canvas("Creating new group with #{group.inspect}", :post, "courses/#{@course_id}/quizzes/#{@quiz_id}/groups", data: group.to_json)
182
+ @current_group_id = (dry_run ? 1000+rand(1000) : JSON.parse(resp)['quiz_groups'][0]['id'])
183
+ @group_count += 1
184
+ end
185
+
186
+ # Return a Ruby hash representation of a MCQ for Canvas API. May be modified by caller
187
+ # before converting to JSON.
188
+ def render_multiple_choice(q)
189
+ ans = array_of_answers(q)
190
+ question_text = q.multiple ? '(Select all that apply.) ' + q.question_text : q.question_text
191
+ question_type = q.multiple ? 'multiple_answers_question' : 'multiple_choice_question'
192
+ comments_key = q.raw? ? :incorrect_comments_html : :incorrect_comments_text
193
+
194
+ ques = {
195
+ :quiz_group_id => @current_group_id,
196
+ :question_name => "#{q.points} point#{'s' if q.points > 1}",
197
+ :question_type => question_type,
198
+ :points_possible => q.points,
199
+ :question_text => question_text,
200
+ :position => 10000,
201
+ :answers => ans
202
+ }
203
+ { question: ques }
204
+ end
205
+
206
+ def array_of_answers(question)
207
+ question.answers.map do |answer|
208
+ weight = answer.correct? ? 100 : 0
209
+ text_key = question.raw? ? :answer_html : :answer_text
210
+ { text_key => answer.answer_text,
211
+ :answer_weight => weight
212
+ }
213
+ end
214
+ end
215
+
216
+ def add_question_to_current_group(question)
217
+ question_json = question.to_json
218
+ canvas("Adding to group #{@current_group_id}:\n#{question_json}", :post,
219
+ "courses/#{@course_id}/quizzes/#{@quiz_id}/questions", data: question_json)
220
+ @qcount += 1
221
+ end
222
+
223
+ end
224
+ end
@@ -0,0 +1,5 @@
1
+ module Ruql
2
+ class Canvas
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1 @@
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
@@ -0,0 +1,42 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "ruql/canvas/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ruql-canvas"
8
+ spec.version = Ruql::Canvas::VERSION
9
+ spec.authors = ["Armando Fox"]
10
+ spec.email = ["fox@berkeley.edu"]
11
+
12
+ spec.summary = %q{Upload RuQL quizzes into Instructure Canvas using its REST API.}
13
+ spec.homepage = %q{https://github.com/saasbook/ruql-canvas}
14
+
15
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
19
+
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/saasbook/ruql-canvas"
22
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ spec.add_runtime_dependency 'faraday', '~> 1.0'
29
+
30
+ # Specify which files should be added to the gem when it is released.
31
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "exe"
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.17"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.0"
42
+ end
@@ -0,0 +1,10 @@
1
+ quiz:
2
+ title: "Will be overridden by argument of 'quiz' in RuQL file"
3
+ description: "Short description seen when quiz is started"
4
+ quiz_type: assignment
5
+ show_correct_answers: false
6
+ shuffle_answers: true
7
+ time_limit: 60
8
+ due_at: "2020-08-01T23:00Z"
9
+ unlock_at: "2020-05-21T00:00Z"
10
+ published: false
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruql-canvas
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Armando Fox
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description:
70
+ email:
71
+ - fox@berkeley.edu
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - README.md
82
+ - Rakefile
83
+ - bin/console
84
+ - bin/setup
85
+ - lib/ruql/canvas.rb
86
+ - lib/ruql/canvas/canvas.rb
87
+ - lib/ruql/canvas/version.rb
88
+ - result.json
89
+ - ruql-canvas.gemspec
90
+ - templates/quiz.yml
91
+ homepage: https://github.com/saasbook/ruql-canvas
92
+ licenses: []
93
+ metadata:
94
+ allowed_push_host: https://rubygems.org
95
+ homepage_uri: https://github.com/saasbook/ruql-canvas
96
+ source_code_uri: https://github.com/saasbook/ruql-canvas
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ requirements: []
112
+ rubygems_version: 3.0.8
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: Upload RuQL quizzes into Instructure Canvas using its REST API.
116
+ test_files: []