bearcat 1.4.3 → 1.4.4

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
- SHA256:
3
- metadata.gz: 8825a9f6eed62312304510363c55d68948e868120b7eadd78c549c530b83f94a
4
- data.tar.gz: 72a33b5db750fe482564c58bf0f45ce41a3e5373c8b0eec21d3d663c48f1b63a
2
+ SHA1:
3
+ metadata.gz: 0857221e4d0ad037b8ff726dbb24110994f4bf6b
4
+ data.tar.gz: d2d95e0503296a927e082c7d71e0ca43a8b961c0
5
5
  SHA512:
6
- metadata.gz: 4c64052484c4736f63a2a1cfcc9cb7d2ca2576bca0d1913fa9c39d741019f16c19adb6f7599ce9a8e8d6458414d05a3c2e584f88c5169b80715faf19e886de42
7
- data.tar.gz: aa70d1e1e0d2e835f2393fff665440b950c672cf1bfc1f2463e5d3316f3106110cdbbf2465ad8c3af82e0f2954bfc989c86a2103b9e8268a13bb8d1d25b11f93
6
+ metadata.gz: 2951d3c1ced27bd655e0aa22e334540f75faf0773ecb4508381a20d3098027cdeb1191d56170501fa9d91686236812a752fee354272c0440fd7c76916eb0dda5
7
+ data.tar.gz: 1dcfb8372c50727e46d98f6f17c04d10b04495535faf916c04913a17f905827be4080e52ad4681856f5b0459fef9b09fd34a9084fc41cae1fdbe6b4d52b68b6f
@@ -44,6 +44,7 @@ module Bearcat
44
44
  require 'bearcat/client/rubric'
45
45
  require 'bearcat/client/rubric_assessment'
46
46
  require 'bearcat/client/rubric_association'
47
+ require 'bearcat/client/progresses'
47
48
 
48
49
  include Assignments
49
50
  include Accounts
@@ -84,6 +85,7 @@ module Bearcat
84
85
  include Rubric
85
86
  include RubricAssessment
86
87
  include RubricAssociation
88
+ include Progresses
87
89
 
88
90
  # Override Footrest request for ApiArray support
89
91
  def request(method, &block)
@@ -0,0 +1,10 @@
1
+ module Bearcat
2
+ class Client < Footrest::Client
3
+ module Progresses
4
+
5
+ def progress(progress, params={})
6
+ get("/api/v1/progress/#{progress}", params)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -29,6 +29,14 @@ module Bearcat
29
29
  def create_quiz(course, params={})
30
30
  post("/api/v1/courses/#{course}/quizzes", params)
31
31
  end
32
+
33
+ def create_quiz_report(course, quiz, params={})
34
+ post("/api/v1/courses/#{course}/quizzes/#{quiz}/reports", params)
35
+ end
36
+
37
+ def get_quiz_report(course, quiz, report, params)
38
+ get("/api/v1/courses/#{course}/quizzes/#{quiz}/reports/#{report}", params)
39
+ end
32
40
  end
33
41
  end
34
42
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.4.3' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.4.4' unless defined?(Bearcat::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bearcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills, Jake Sorce
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-26 00:00:00.000000000 Z
11
+ date: 2020-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -164,6 +164,7 @@ files:
164
164
  - lib/bearcat/client/outcome_groups.rb
165
165
  - lib/bearcat/client/outcomes.rb
166
166
  - lib/bearcat/client/pages.rb
167
+ - lib/bearcat/client/progresses.rb
167
168
  - lib/bearcat/client/quizzes.rb
168
169
  - lib/bearcat/client/reports.rb
169
170
  - lib/bearcat/client/roles.rb
@@ -362,10 +363,10 @@ files:
362
363
  - spec/fixtures/user_page_views.json
363
364
  - spec/fixtures/user_profile.json
364
365
  - spec/helper.rb
365
- homepage:
366
+ homepage:
366
367
  licenses: []
367
368
  metadata: {}
368
- post_install_message:
369
+ post_install_message:
369
370
  rdoc_options: []
370
371
  require_paths:
371
372
  - lib
@@ -380,8 +381,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
380
381
  - !ruby/object:Gem::Version
381
382
  version: '0'
382
383
  requirements: []
383
- rubygems_version: 3.1.2
384
- signing_key:
384
+ rubyforge_project:
385
+ rubygems_version: 2.4.5.1
386
+ signing_key:
385
387
  specification_version: 4
386
388
  summary: Canvas API
387
389
  test_files: