sportdb-structs 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/sportdb/structs/structs/match.rb +5 -1
- data/lib/sportdb/structs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9431034364f7a840395b78fcf67ceb649ee9ca0066cb7431004013cec474d01
|
4
|
+
data.tar.gz: 31df641c63e132a6c957768341e3b42417ca9f6b6837bb5bde541bd3143b2d68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe06e842890afab3ff027151ccf0f8cf23fa225aa7b7b4b9acc8462db689a5d03e1931f1ac0489dfd250875f5e751ef17007c36261b36ae6c3ee76ee70a6b74
|
7
|
+
data.tar.gz: 467780063aeb3926f338cd10e7e0977e5c60aaef69c999f942ef3b594963433851cbfe3a671da57167ab0b822c8a3cf61f0f8fed100c429798eee48f8acbb3e6
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,8 @@ module Sports
|
|
4
4
|
|
5
5
|
class Match
|
6
6
|
|
7
|
-
attr_reader :
|
7
|
+
attr_reader :num,
|
8
|
+
:date,
|
8
9
|
:time,
|
9
10
|
:team1, :team2, ## todo/fix: use team1_name, team2_name or similar - for compat with db activerecord version? why? why not?
|
10
11
|
:score1, :score2, ## full time
|
@@ -37,7 +38,10 @@ class Match
|
|
37
38
|
update( **kwargs ) unless kwargs.empty?
|
38
39
|
end
|
39
40
|
|
41
|
+
|
40
42
|
def update( **kwargs )
|
43
|
+
@num = kwargs[:num] if kwargs.has_key?( :num )
|
44
|
+
|
41
45
|
## note: check with has_key? because value might be nil!!!
|
42
46
|
@date = kwargs[:date] if kwargs.has_key?( :date )
|
43
47
|
@time = kwargs[:time] if kwargs.has_key?( :time )
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-structs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: alphabets
|