basketball 0.0.12 → 0.0.13

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: 3afeb30a56e0bd82eebf0d44278686fe638130ad3c92fec1253cdd550566bbfd
4
- data.tar.gz: 26c3668f23cea16dba950bb50dbb2e786e3b49e29651517ca4117957ca4cbed1
3
+ metadata.gz: 07c17436d67c69fdda803a3b43623dea353ce9c8e8699d32733b1a6006843dc8
4
+ data.tar.gz: 1a9a5bee3bca6e755e72a806653079ca42ec205c2a9c32f7e2797882cfc41d50
5
5
  SHA512:
6
- metadata.gz: 8772022a69960076cb3296be4e5b618199e907855393486bafafd120f2a8c34fae5ebbdd0ed9202b43b3a225b0fb2952a98c634e906c84ff710272a967af577b
7
- data.tar.gz: a6bf8bdda2e7962d0ca200ab6f64b5ecd821faaae4aa438e579f9d569034f3df030be55177fdacf782b0531d00c9a868df3dbda7f34d69e8d5dd07aafa1ce9a0
6
+ metadata.gz: 9d6854e37c39bc719eae78421020798f18123b18e486fd0ee8f97470e39de1706ad74a48086a86e6cfbecc79f6b23dd2fa73d8d291bb5e401ee3dc7ff2782949
7
+ data.tar.gz: 42bb76951430e75d0be97ebcec2611b5937236412d3233296c40de95ac1d6dc8d537c4c17e303418946be6a306374d8655b12d54f1aa93343148d3377324672c
@@ -13,9 +13,11 @@ module Basketball
13
13
  class UnknownFrontOfficeError < StandardError; end
14
14
  class UnknownPlayerError < StandardError; end
15
15
 
16
+ DEFAULT_ROUNDS = 12
17
+
16
18
  attr_reader :rounds, :players, :front_offices, :events
17
19
 
18
- def initialize(front_offices:, rounds:, players: [], events: [])
20
+ def initialize(events: [], front_offices: [], players: [], rounds: DEFAULT_ROUNDS)
19
21
  super()
20
22
 
21
23
  raise InvalidRoundsError, "#{rounds} should be a positive number" unless rounds.positive?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Basketball
4
- VERSION = '0.0.12'
4
+ VERSION = '0.0.13'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basketball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio