rating-chgk-v2 1.0.1 → 1.2.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: 32e9b5b23a321dcdc852d8ad1ee65ee64e2b0ac34f12141d5b5b6ac3b1907df5
4
- data.tar.gz: 6384799d428ad6e9d541f589d90916aaf63e2aea34b72b24ee4efafe21fc0249
3
+ metadata.gz: b7cea429b4143eac837e8925c99b756c5085e5e4d14939dacd137e5d2d2a2801
4
+ data.tar.gz: 00a0d90bcdd94b3b725fb77996d2482073a6cb2aea262a23d4dedddc736ce256
5
5
  SHA512:
6
- metadata.gz: 6d576f34181d9ef0f059cd33a10f0bc7db83b0554eb3f372144597b0f24e7d5eb784d3766c260ad81bd454be66c77fde4a9ae0a0626737bd4b0f4dac4e3bb8a8
7
- data.tar.gz: 8835357de3b4eab7b1e693ff8ea9a9c20c573efb38156694733bf0e36969ac1591b77418ad17f59ff730dfd39f7788e70dc968e1b8073996cb59f2da40c9b846
6
+ metadata.gz: 42b41f53941786a3d72002a10395e8400d39fee6c8d5e7bcd69d76e0053886fef18fedad82d64b566619e75bb0aa9aa29075afdadb3dd314fe5d83f05337d44b
7
+ data.tar.gz: c2076f389f03ac389d6f025fc12f60121c039e05525d076ab3122a8b34834b018fe014c8c5b23a07a6124fa1e0cf61607b48a0967518c55724d4f8afeab6ab7a
data/CHANGELOG.md CHANGED
@@ -1,8 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ## 1.0.1 (29-Jul-22)
3
+ ## 1.2.0 (17-Oct-22)
4
4
 
5
- * Fixed client reinitialization (thanks, @L-Eugene)
5
+ * Properly handle flat params:
6
+
7
+ ```ruby
8
+ client.tournaments 'type[]': [1, 2, 3] # requesting tournaments with IDs 1, 2, or 3
9
+ ```
10
+
11
+ ## 1.1.0 (29-Jul-22)
12
+
13
+ * Added requests for venues (thanks, @L-Eugene)
14
+
15
+ ## 1.0.1 (28-Jul-22)
16
+
17
+ * Fixed endpoint reinitialization (thanks, @L-Eugene)
6
18
  * Minor fixes
7
19
 
8
20
  ## 1.0.0 (12-Apr-22)
@@ -27,7 +27,11 @@ module RatingChgkV2
27
27
 
28
28
  # Allows to customize request params per-client
29
29
  def request_params_for(client)
30
- {request: {timeout: client.timeout, open_timeout: client.open_timeout}}
30
+ {request: {
31
+ timeout: client.timeout,
32
+ open_timeout: client.open_timeout,
33
+ params_encoder: Faraday::FlatParamsEncoder
34
+ }}
31
35
  end
32
36
  end
33
37
  end
@@ -5,4 +5,5 @@
5
5
  - narrators
6
6
  - approximateTeamsCount
7
7
  - issuedAt
8
+ - dateStart
8
9
  - tournamentId
@@ -11,6 +11,11 @@ module RatingChgkV2
11
11
  def destroy
12
12
  endpoint.do_delete
13
13
  end
14
+
15
+ def requests(params = {})
16
+ endpoint.reinitialize new_params: params, add_query: :requests
17
+ RatingChgkV2::Collections::TournamentRequestsCollection.load :do_get, endpoint
18
+ end
14
19
  end
15
20
  end
16
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RatingChgkV2
4
- VERSION = '1.0.1'
4
+ VERSION = '1.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rating-chgk-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Krukowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-28 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -363,7 +363,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
363
363
  - !ruby/object:Gem::Version
364
364
  version: '0'
365
365
  requirements: []
366
- rubygems_version: 3.3.19
366
+ rubygems_version: 3.3.24
367
367
  signing_key:
368
368
  specification_version: 4
369
369
  summary: Ruby interface for the new CHGK rating API