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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bdf919dce7808af99d9c66bf40176532535fecdb8545a03217451a872b6671f
4
- data.tar.gz: f8f4274d7155b6685bfdf023fd9c1a9de204786d1bbbdb615dbbc11ecb0639fc
3
+ metadata.gz: c649d01c1567e5ea1be6e1455e07ee6afe741283cfea897ff146a16f8bb8f93d
4
+ data.tar.gz: f9eeb22011706faa246152eae303849fbde97ec08749543406c4e240e212ead5
5
5
  SHA512:
6
- metadata.gz: d81a3eae0228f7e21914eb203a5fec6b300299c8b3fdbeef2fb549d81f48c2f0c73400440fbf9eda1171e22298f9c9f40730daf3ff27c57b153d894f162b61ca
7
- data.tar.gz: ae09a9f1d26a09318d37e12e4857defcef1ce9b030ec9d46f9307a6b77db5d3097f1aed8c5596bf498655db1a7bc17a757f06a87e263db58511d92e72e636b7e
6
+ metadata.gz: 85064d4cc52aa39e1d6c220b8d5b611448770522f7ab080afe90aa53638265c0fd1b46306b7e89dd4f2e2d931c5ff85c25ace9aef55ef3119d56026a5221d52b
7
+ data.tar.gz: cb47ece929c1d4bcd04cbbcfd9797dd64f9234b8e4f268e686dade7b5f8f88ef0342146703f29873f246c4d2dc90d9328e6bcb81eaa5f12fbc42926dd98fccd8
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 1.2.1
1
+ ### 1.2.2
2
2
 
3
3
  ### 0.0.1 / 2019-11-04
4
4
 
data/Rakefile CHANGED
@@ -25,6 +25,6 @@ Hoe.spec 'sportdb-sync' do
25
25
  ]
26
26
 
27
27
  self.spec_extras = {
28
- required_ruby_version: '>= 2.2.2'
28
+ required_ruby_version: '>= 3.1.0'
29
29
  }
30
30
  end
@@ -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.name )
253
+ name: goal.player )
254
254
  if person_rec.nil?
255
- person_rec = Model::Person.create!(
256
- key: goal.name.downcase.gsub( /[^a-z]/, '' ),
257
- name: goal.name
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
@@ -6,7 +6,7 @@ module Sync
6
6
 
7
7
  MAJOR = 1 ## todo: namespace inside version or something - why? why not??
8
8
  MINOR = 2
9
- PATCH = 1
9
+ PATCH = 2
10
10
  VERSION = [MAJOR,MINOR,PATCH].join('.')
11
11
 
12
12
  def self.version
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.1
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-06-27 00:00:00.000000000 Z
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: 2.2.2
111
+ version: 3.1.0
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="