quiz_api_client 4.16.1 → 4.17.0

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: 133c4f8957b34364bb6593a4b42e4457513be8660ad7eb9c5c06ef88612c2be9
4
- data.tar.gz: d44d9611acba9c72bdcbe1b5f04b92a087c5d153157034ddd2186331a824bb25
3
+ metadata.gz: e23a84ac19d13092f5a3b444fb14ad9347a6b213823f76d59cf6bbcf416f1d45
4
+ data.tar.gz: b2c552afb96c01f953bbddfb6884ca89815a0ce41984ce303e8d577b8eacdc7b
5
5
  SHA512:
6
- metadata.gz: 3ba48330b8b9724443dbfe3cc5e50828468b333369a69bc55508a06b0a93a6964e37f9b1b1916a04c7dfa1cd414e129f715de7ff414239a84547fa5a6be6fbc5
7
- data.tar.gz: c2cfb2990d045e7202d116fd0348ffa65629ba330e0854436b85de838a7616d7d8afa5a15622214943f6d52f7b3c77dac7ce915c5101a06fbeb407ea0898e57d
6
+ metadata.gz: f574041231c954f70acc74cc5f3f9ba142b6f9f9f289fc782839e3fbd4eedd116142850380af90707492dbccd8d9f5ff3370c915f76cb971068b5b9010892399
7
+ data.tar.gz: 492b05909f9bb60cd5994ee313dca258012b9706525e22fb7f48a2f536792fe9b75d3ac8098f55aa50787a0b6d54b7431e7b86d0a504007f27a2696e16cd5c81
@@ -10,7 +10,8 @@ module QuizApiClient::Services
10
10
  client(token: token).post(
11
11
  "/api/quizzes/#{params[:quiz_id]}/analyses",
12
12
  quiz_session_ids: params[:quiz_session_ids],
13
- filter: params[:filter]
13
+ filter: params[:filter],
14
+ analysis_type: params[:analysis_type]
14
15
  )
15
16
  end
16
17
  end
@@ -1,3 +1,3 @@
1
1
  module QuizApiClient
2
- VERSION = '4.16.1'.freeze
2
+ VERSION = '4.17.0'.freeze
3
3
  end
@@ -5,14 +5,18 @@ describe QuizApiClient::Services::AnalysesService do
5
5
 
6
6
  describe '#create' do
7
7
  let(:params) do
8
- { quiz_id: 1, quiz_session_ids: [1, 5, 10], filter: :last_attempt }
8
+ { quiz_id: 1, quiz_session_ids: [1, 5, 10], filter: :last_attempt, analysis_type: 'student_analysis' }
9
9
  end
10
10
  let(:stubbed_response) { { 'job_id' => 1 } }
11
11
  let(:expected_url) { "https://#{host}/api/quizzes/#{params[:quiz_id]}/analyses" }
12
+ let(:expected_params) { { quiz_session_ids: [1, 5, 10], filter: :last_attempt, analysis_type: 'student_analysis' } }
12
13
  let(:status_code) { 200 }
13
14
 
14
15
  before do
15
16
  stub_request(:post, expected_url)
17
+ .with(
18
+ body: expected_params.to_json
19
+ )
16
20
  .to_return(
17
21
  status: status_code,
18
22
  body: stubbed_response.to_json,
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.16.1
4
+ version: 4.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Slaughter
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: exe
17
17
  cert_chain: []
18
- date: 2024-06-05 00:00:00.000000000 Z
18
+ date: 2024-11-13 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: httparty