quiz_api_client 4.11.1 → 4.12.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 296ae98e95e4fff6555495c5ae214e08fe3c54d5ed7ad0dcc5b6438097e4229e
4
- data.tar.gz: f9b544b10bf67683f216e0f357fd6ce3862cfc8cc526b9f9eb62506a89f30745
3
+ metadata.gz: cf8ebb895e11ed001175aa646a27c6a9b8667f8a1a0caa787f58d2035de8b898
4
+ data.tar.gz: 52a4fa85e3091c58e852b8c7e5f82b24f724e69793df3fdd449f0a2803df90ef
5
5
  SHA512:
6
- metadata.gz: b00e342816f726c8f06bde41615b4e474866d99c3f63bc216e2a4bb3803c7c2e879ef1c82a08c4e08b571aed5af5091a91559b291214fe07f060bc6cf6c16bc5
7
- data.tar.gz: f6f0e3ddd4197ae8dc2567a58c3e6b67ca6835cbf6ac7c21144e2bd3d021ba111f922794a1d499fd6b1110ccdb5b3fa7c13ebae52d179dbaf68ff61bd0e3ca1d
6
+ metadata.gz: 775ff430f08c656af27901035b17ca44c0ba22a804ae533d97ef938cb78ff5bf774a98241d825a40e0501dfd45119853b187bf810142298ffc19fdba6d7afd2b
7
+ data.tar.gz: 756a49f30f6bd9e020ad817206a6afaf6121599507fea8dc7399df4f680fe8cf0c0601b2f733356402a1b3978199bb11c97a482b0b1222b9bb87373f4ab128cc
@@ -8,8 +8,9 @@ module QuizApiClient::Services
8
8
 
9
9
  def post_to_quiz_api(params:, token:)
10
10
  client(token: token).post(
11
- "/api/quizzes/#{params[:quiz_id]}/stats",
12
- quiz_sessions: params[:quiz_sessions]
11
+ "/api/quizzes/#{params[:quiz_id]}/analyses",
12
+ quiz_session_ids: params[:quiz_session_ids],
13
+ filter: params[:filter]
13
14
  )
14
15
  end
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module QuizApiClient
2
- VERSION = '4.11.1'.freeze
2
+ VERSION = '4.12.0'.freeze
3
3
  end
@@ -5,10 +5,10 @@ describe QuizApiClient::Services::AnalysesService do
5
5
 
6
6
  describe '#create' do
7
7
  let(:params) do
8
- { quiz_id: 1, quiz_session: [1, 5, 10] }
8
+ { quiz_id: 1, quiz_session_ids: [1, 5, 10], filter: :last_attempt }
9
9
  end
10
10
  let(:stubbed_response) { { 'job_id' => 1 } }
11
- let(:expected_url) { "https://#{host}/api/quizzes/#{params[:quiz_id]}/stats" }
11
+ let(:expected_url) { "https://#{host}/api/quizzes/#{params[:quiz_id]}/analyses" }
12
12
  let(:status_code) { 200 }
13
13
 
14
14
  before do
@@ -20,7 +20,7 @@ describe QuizApiClient::Services::AnalysesService do
20
20
  )
21
21
  end
22
22
 
23
- it 'posts to quiz_api/api/quizzes/{id}/stats and returns the response' do
23
+ it 'posts to quiz_api/api/quizzes/{id}/analyses and returns the response' do
24
24
  result = subject.create(params: params, token: 'token')
25
25
  expect(result.parsed_response).to eql(stubbed_response)
26
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.11.1
4
+ version: 4.12.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: 2023-04-18 00:00:00.000000000 Z
18
+ date: 2023-06-05 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: httparty
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  - !ruby/object:Gem::Version
253
253
  version: '0'
254
254
  requirements: []
255
- rubygems_version: 3.3.7
255
+ rubygems_version: 3.4.10
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Ruby client for quiz_api