quiz_api_client 4.16.1 → 4.17.1

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: d09fd6f046ee756bdce9439fb2b10585444002d42ccff124b1b74806db432830
4
+ data.tar.gz: 68e4132368a554d8e957cdab9250553f578e06da51e3662051d8c45f7db75372
5
5
  SHA512:
6
- metadata.gz: 3ba48330b8b9724443dbfe3cc5e50828468b333369a69bc55508a06b0a93a6964e37f9b1b1916a04c7dfa1cd414e129f715de7ff414239a84547fa5a6be6fbc5
7
- data.tar.gz: c2cfb2990d045e7202d116fd0348ffa65629ba330e0854436b85de838a7616d7d8afa5a15622214943f6d52f7b3c77dac7ce915c5101a06fbeb407ea0898e57d
6
+ metadata.gz: 360473c5a226927eb692ccc8dc66334c9770878c9d952d10077b73b6004cbf120e79159dd3426f861fd84f1a310ea78fa133a21ed6b1e851446bec0a032db37a
7
+ data.tar.gz: b414958e672367c5d1c01cf5d649fcc0c0a4af5164eb91aae79a1d916d841455cb20f014aef1c13e57a48bd7a2f696926844ab19fcf3423e7d81352367f24665
@@ -9,8 +9,7 @@ module QuizApiClient::Services
9
9
  def post_to_quiz_api(params:, token:)
10
10
  client(token: token).post(
11
11
  "/api/quizzes/#{params[:quiz_id]}/analyses",
12
- quiz_session_ids: params[:quiz_session_ids],
13
- filter: params[:filter]
12
+ params
14
13
  )
15
14
  end
16
15
  end
@@ -1,3 +1,3 @@
1
1
  module QuizApiClient
2
- VERSION = '4.16.1'.freeze
2
+ VERSION = '4.17.1'.freeze
3
3
  end
@@ -5,7 +5,7 @@ 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" }
@@ -13,6 +13,9 @@ describe QuizApiClient::Services::AnalysesService do
13
13
 
14
14
  before do
15
15
  stub_request(:post, expected_url)
16
+ .with(
17
+ body: params.to_json
18
+ )
16
19
  .to_return(
17
20
  status: status_code,
18
21
  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.1
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