mlb_gameday 0.0.7 → 0.0.8
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 +4 -4
- data/lib/mlb_gameday/game.rb +3 -3
- data/lib/mlb_gameday/version.rb +1 -1
- data/resources/data.yml +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b925644136eac81525835ee842aa444161978eb
|
|
4
|
+
data.tar.gz: 98355de6ba6a6936c5f9941e19c2de358ecffc87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 595f5c2949ebbb7f6408cbecec3da309b2d42b863326e5f9e1858d8d462898f3d6a85bf3fbb6a794fbeba0c37c92468e5be2a506d530d697267fe3a310b22fae
|
|
7
|
+
data.tar.gz: e4d0414218c517e761498606bd35ce23b02b8090cf9a0b48f899afb9a7c1f9ae105d6ea3915a5ec7fafdde4218c16ad165387b7ceda147efa01b13dbea757a3e
|
data/lib/mlb_gameday/game.rb
CHANGED
|
@@ -28,11 +28,11 @@ module MLBGameday
|
|
|
28
28
|
@linescore.xpath("//game/@venue").first.value
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def home_start_time
|
|
31
|
+
def home_start_time(ampm: true)
|
|
32
32
|
"#{ @linescore.xpath("//game/@home_time").first.value } #{ @linescore.xpath("//game/@home_time_zone").first.value }"
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
def away_start_time
|
|
35
|
+
def away_start_time(ampm: true)
|
|
36
36
|
"#{ @linescore.xpath("//game/@away_time").first.value } #{ @linescore.xpath("//game/@away_time_zone").first.value }"
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -144,7 +144,7 @@ module MLBGameday
|
|
|
144
144
|
end
|
|
145
145
|
when "Preview", "Warmup", "Pre-Game"
|
|
146
146
|
@api.pitcher @linescore.xpath("//game/away_probable_pitcher/@id").first.value
|
|
147
|
-
when "Final"
|
|
147
|
+
when "Final", "Game Over"
|
|
148
148
|
home, away = score
|
|
149
149
|
|
|
150
150
|
if home > away
|
data/lib/mlb_gameday/version.rb
CHANGED
data/resources/data.yml
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
divisions:
|
|
5
5
|
:East: &aleast !ruby/object:MLBGameday::Division
|
|
6
6
|
name: East
|
|
7
|
+
league: *al
|
|
7
8
|
teams:
|
|
8
9
|
:BAL: !ruby/object:MLBGameday::Team
|
|
9
10
|
name: Orioles
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
- toronto
|
|
72
73
|
:Central: &alcentral !ruby/object:MLBGameday::Division
|
|
73
74
|
name: Central
|
|
75
|
+
league: *al
|
|
74
76
|
teams:
|
|
75
77
|
:CLE: !ruby/object:MLBGameday::Team
|
|
76
78
|
name: Indians
|
|
@@ -129,6 +131,7 @@
|
|
|
129
131
|
- minnesota
|
|
130
132
|
:West: &alwest !ruby/object:MLBGameday::Division
|
|
131
133
|
name: West
|
|
134
|
+
league: *al
|
|
132
135
|
teams:
|
|
133
136
|
:ANA: !ruby/object:MLBGameday::Team
|
|
134
137
|
name: Angels
|
|
@@ -199,6 +202,7 @@
|
|
|
199
202
|
divisions:
|
|
200
203
|
:East: &nleast !ruby/object:MLBGameday::Division
|
|
201
204
|
name: East
|
|
205
|
+
league: *nl
|
|
202
206
|
teams:
|
|
203
207
|
:ATL: !ruby/object:MLBGameday::Team
|
|
204
208
|
name: Braves
|
|
@@ -261,6 +265,7 @@
|
|
|
261
265
|
- washington
|
|
262
266
|
:Central: &nlcentral !ruby/object:MLBGameday::Division
|
|
263
267
|
name: Central
|
|
268
|
+
league: *nl
|
|
264
269
|
teams:
|
|
265
270
|
:CHC: !ruby/object:MLBGameday::Team
|
|
266
271
|
name: Cubs
|
|
@@ -323,6 +328,7 @@
|
|
|
323
328
|
- st. louis
|
|
324
329
|
:West: &nlwest !ruby/object:MLBGameday::Division
|
|
325
330
|
name: West
|
|
331
|
+
league: *nl
|
|
326
332
|
teams:
|
|
327
333
|
:ARI: !ruby/object:MLBGameday::Team
|
|
328
334
|
name: Diamondbacks
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mlb_gameday
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Hoffman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-04-
|
|
11
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|