quiz_api_client 4.5.2 → 4.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70b15efbfcbaa839cb8926bd79a9e59ff4fac43d23fb9d9006b018660c57c208
4
- data.tar.gz: 660cbf7a8ed8a218609c048412353c49144b27cbaad8ed7c2f7358fade2741f5
3
+ metadata.gz: 67900ec0f740056eb710dd6cdc077376bcff73697d6245f2f8ce724502a9149e
4
+ data.tar.gz: 7a46d4cd33abad4cd846460829430867e235ed3e6a9750300da8c72ab9018528
5
5
  SHA512:
6
- metadata.gz: 957d26373a0ede105dd0cf541282101b33fd356cc1ad35458983f3bcb687fa0ff6d65bedb4cc1ff9bb64fa1d603d315845cb61e6b5d05949a294e6412e248b97
7
- data.tar.gz: e5e1211e0a2d0556ab4ccf4b1273ea1ff0b179bc074bdc00e9f8cf11fdc2bd38b96c61c3ebdc81c6df7c64092adfae83817ae7b73557c62a46afbd2088757720
6
+ metadata.gz: 8493ad9be849ebf1d74efed623dd0cafb343731b9d80849fa587474c20eeb0588ff4c9daa9bad63b79947340490abaaf2c3110e2c0e8c9c97094466dbb66a489
7
+ data.tar.gz: fab7a363cf5a4f9532cef754579c11df219a44c089531dfd3c2b5b4e4910871a3402c0f61c6e7732e00600bf080385228decd8205639322496afbac18789f1d0
@@ -1,7 +1,7 @@
1
1
  module QuizApiClient::Services
2
2
  class QuizCloneJobsService < BaseApiService
3
- def create(params:, token: nil)
4
- post_to_quiz_api(params: params, token: token)
3
+ def create(body: nil, params:, token: nil)
4
+ post_to_quiz_api(body: body, params: params, token: token)
5
5
  end
6
6
 
7
7
  def create_batch(body:, token: nil)
@@ -10,9 +10,10 @@ module QuizApiClient::Services
10
10
 
11
11
  private
12
12
 
13
- def post_to_quiz_api(params:, token:)
13
+ def post_to_quiz_api(body:, params:, token:)
14
14
  client(token: token).post(
15
- "/api/quizzes/#{params.fetch(:quiz_id)}/quiz_clone_jobs"
15
+ "/api/quizzes/#{params.fetch(:quiz_id)}/quiz_clone_jobs",
16
+ body
16
17
  )
17
18
  end
18
19
 
@@ -1,3 +1,3 @@
1
1
  module QuizApiClient
2
- VERSION = '4.5.2'.freeze
2
+ VERSION = '4.5.3'.freeze
3
3
  end
@@ -5,6 +5,7 @@ describe QuizApiClient::Services::QuizCloneJobsService do
5
5
 
6
6
  describe '#create' do
7
7
  let(:expected_url) { "https://#{host}/api/quizzes/#{params[:quiz_id]}/quiz_clone_jobs" }
8
+ let(:body) { { field_overrides: { course_id: 1 } } }
8
9
  let(:params) { { quiz_id: 1 } }
9
10
  let(:stubbed_response) { { 'id' => '1' } }
10
11
 
@@ -19,7 +20,7 @@ describe QuizApiClient::Services::QuizCloneJobsService do
19
20
  end
20
21
 
21
22
  it 'posts to /api/quizzes/:quiz_id/quiz_clone_job' do
22
- result = subject.create(params: params, token: 'token')
23
+ result = subject.create(body: body, params: params, token: 'token')
23
24
  expect(result.parsed_response).to eql(stubbed_response)
24
25
  end
25
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiz_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.2
4
+ version: 4.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Slaughter
@@ -11,6 +11,7 @@ authors:
11
11
  - Michael Hargiss
12
12
  - Robin Kuss
13
13
  - Ryan Taylor
14
+ - Dustin Cowles
14
15
  autorequire:
15
16
  bindir: exe
16
17
  cert_chain: []
@@ -165,6 +166,7 @@ email:
165
166
  - mhargiss@instructure.com
166
167
  - rkuss@instructure.com
167
168
  - rtaylor@instructure.com
169
+ - dustin.cowles@instructure.com
168
170
  executables: []
169
171
  extensions: []
170
172
  extra_rdoc_files: []