sportdb-sync 1.2.1 → 1.2.2
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/Rakefile +1 -1
- data/lib/sportdb/sync/sync.rb +8 -8
- data/lib/sportdb/sync/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c649d01c1567e5ea1be6e1455e07ee6afe741283cfea897ff146a16f8bb8f93d
|
4
|
+
data.tar.gz: f9eeb22011706faa246152eae303849fbde97ec08749543406c4e240e212ead5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85064d4cc52aa39e1d6c220b8d5b611448770522f7ab080afe90aa53638265c0fd1b46306b7e89dd4f2e2d931c5ff85c25ace9aef55ef3119d56026a5221d52b
|
7
|
+
data.tar.gz: cb47ece929c1d4bcd04cbbcfd9797dd64f9234b8e4f268e686dade7b5f8f88ef0342146703f29873f246c4d2dc90d9328e6bcb81eaa5f12fbc42926dd98fccd8
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
data/lib/sportdb/sync/sync.rb
CHANGED
@@ -250,22 +250,22 @@ module SportDb
|
|
250
250
|
if goals && goals.size > 0
|
251
251
|
goals.each do |goal|
|
252
252
|
person_rec = Model::Person.find_by(
|
253
|
-
name: goal.
|
253
|
+
name: goal.player )
|
254
254
|
if person_rec.nil?
|
255
|
-
person_rec = Model::Person.create!(
|
256
|
-
key: goal.
|
257
|
-
name: goal.
|
255
|
+
person_rec = Model::Person.create!(
|
256
|
+
key: goal.player.downcase.gsub( /[^a-z]/, '' ),
|
257
|
+
name: goal.player
|
258
258
|
)
|
259
259
|
end
|
260
260
|
Model::Goal.create!(
|
261
261
|
match_id: rec.id,
|
262
|
-
person_id: person_rec.id,
|
263
|
-
team_id: goal.team == 1 ? rec.team1.id
|
262
|
+
person_id: person_rec.id,
|
263
|
+
team_id: goal.team == 1 ? rec.team1.id
|
264
264
|
: rec.team2.id,
|
265
265
|
minute: goal.minute,
|
266
|
-
offset: goal.offset,
|
266
|
+
offset: goal.offset || 0,
|
267
267
|
penalty: goal.penalty,
|
268
|
-
owngoal: goal.owngoal,
|
268
|
+
owngoal: goal.owngoal,
|
269
269
|
)
|
270
270
|
end
|
271
271
|
end
|
data/lib/sportdb/sync/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
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-
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-catalogs
|
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements:
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 3.1.0
|
112
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|