tournament-system 0.1.5 → 0.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
  SHA1:
3
- metadata.gz: 8079e2152df4c6c3ba2f084b80ed9b0c25f24135
4
- data.tar.gz: 80e2cbcaccdbf8f4a96543ea02327722ef0519b2
3
+ metadata.gz: bd912ef35f68f8237e6afdbda74714491cd6fe62
4
+ data.tar.gz: b7120f64bce87da75121b631c6078e091087058f
5
5
  SHA512:
6
- metadata.gz: 98ca2b3ca59a77928148846a64a0020a511a34456694e15b9c2b1c60b8dfba60957c1814dec414e6aa3b14dbfd5ced19568dae3353cd06346297f6d23cae9035
7
- data.tar.gz: bb76ea854b4f13efc63205c4c2e0555a92b99b2a2659449ad41e561ce66cc4aa9f00b6e61d41640586cd96bebf349f1e0e2833ecb788a4d577c4ba8fa87fc222
6
+ metadata.gz: 45a74ab8000dd0d20aea367f5f041136505e0e9927ab39e4b097f9562f7b1fd1518d72d353df057fbf9597423c3512e930b71c66fa727aa83a4f394aaccb66b1
7
+ data.tar.gz: 3340a40b929f1d47e9fd282b6149536a08ffe9cba5eacc5f1eaacc7e93c06125e22f07da82fa2bb756d3ad84c5382002c24281562c62802279c64c6ccfc9dd75
@@ -7,6 +7,14 @@ module Tournament
7
7
  # The total number of rounds needed for all page playoff tournaments.
8
8
  TOTAL_ROUNDS = 3
9
9
 
10
+ # Mapping from number of matches to round number
11
+ MATCH_ROUND_MAP = {
12
+ 0 => 0,
13
+ 2 => 1,
14
+ 3 => 2,
15
+ }.freeze
16
+ private_constant :MATCH_ROUND_MAP
17
+
10
18
  # :reek:ControlParameter
11
19
 
12
20
  # Guess the next round (starting at 0) for page playoff.
@@ -21,14 +29,6 @@ module Tournament
21
29
 
22
30
  round
23
31
  end
24
-
25
- private
26
-
27
- MATCH_ROUND_MAP = {
28
- 0 => 0,
29
- 2 => 1,
30
- 3 => 2,
31
- }.freeze
32
32
  end
33
33
  end
34
34
  end
@@ -1,4 +1,4 @@
1
1
  module Tournament
2
2
  # The current version of this gem.
3
- VERSION = '0.1.5'.freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tournament-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Schaaf