livescore-parser 0.2.2 → 0.2.3

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: 9e38bc865a167a3aec4e89793011ac53846bb179
4
- data.tar.gz: e4b54b276248d57633c5458b16272382d6a879a5
3
+ metadata.gz: ab0d1395e7bd48cf3a87a3c8f0108441d714a389
4
+ data.tar.gz: c66424790a7d96388f51cd815c6f6a1e1335b14b
5
5
  SHA512:
6
- metadata.gz: 2ca1bf9f79a016212526ccba33e171645fa8663d2caa9769621b57bb7ab2aa33ef7864b4839f56630c6c0146340b886d3cd43841a639b10804c795c34b1d4baf
7
- data.tar.gz: 70ede772fb1eb09c6cb6ab31bcbd595ca7c180b7f0bf671861a9744d014067bf8b452db94108d0f0997e549877e50d043a9fd2d758174e91899637b95b4c1923
6
+ metadata.gz: d4c8eaf5e57a338f442f96197b8aafdca297038b4483aa0b93c7e581b2badbaad08b385a35c1ca892834e8c2fc5b3e12b7d4759116169a668e9802a9cfa1fa6a
7
+ data.tar.gz: f9d65c84228a14a693df823c954058a358dfaff7cff0919f8677ede3f7d65c151c10a55c3f09ffc24d39cba061a1a5864562be0ed3380ce2f80c944dd897bb1e
@@ -39,7 +39,7 @@ module LivescoreParser
39
39
  time_raw = row.css('.min').text.strip
40
40
  {
41
41
  wiersz: index,
42
- czas: (time_raw.match(/[0-9]+:[0-9]+/)) ? (Time.parse(time_raw) + 3600).strftime('%H:%M') : time_raw,
42
+ czas: (time_raw.match(/[0-9]+:[0-9]+/)) ? (Time.parse(time_raw) + Time.new.utc_offset).strftime('%H:%M') : time_raw,
43
43
  gracz1: row.css('.ply.tright').text.strip,
44
44
  wynik1: row.css('.sco').text.strip.match(/^[0-9\?]+/).to_s,
45
45
  gracz2: row.css('.sco + .ply').text.strip,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livescore-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Walusiak