xml_soccer 0.0.5 → 0.0.6
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/README.md +3 -0
- data/lib/xml_soccer/version.rb +1 -1
- data/spec/fixtures/get_fixture_match_by_id.xml +49 -0
- data/spec/fixtures/get_player_by_id.xml +22 -0
- data/spec/fixtures/get_players_by_team.xml +78 -0
- data/xml_soccer.gemspec +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f79be1b4b19fd63d2e9480238aa8db51f9666369
|
|
4
|
+
data.tar.gz: d698bbd34eb8b20b2102554ae1ab90e31696fe9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0963cffdc7c0cba1cad9040e8f7eedc8d7447c83209ae0cecb59f644a65b19592f5831d52629ccd6647f3117b4081cfe0ea8890ee8e5edcec4317031f26ef22
|
|
7
|
+
data.tar.gz: a6eb804eb6a06b225cd5f3198692c530417725555937c9dee1035823916294523883da603dcd0536e6c85fdcf7c93a08e3e54f338ed2722bba41b92150f24b8c
|
data/README.md
CHANGED
|
@@ -62,6 +62,7 @@ xml_soccer method | xmlsoccer.com API call
|
|
|
62
62
|
`teams_in_league_by_season(league: 'league', season: 'season')` | GetAllTeamsByLeagueAndSeason
|
|
63
63
|
`team(team: 'team')` | GetTeam
|
|
64
64
|
`earliest_match_date_by_league(league: 'league')` | GetEarliestMatchDatePerLeague
|
|
65
|
+
`fixture(fixture_id: 'fixture_id')` | GetFixtureMatchByID
|
|
65
66
|
`fixtures_by_date(start_date: Date, end_date: Date)` | GetFixturesByDateInterval
|
|
66
67
|
`fixtures_by_date_and_league(league: 'league', start_date: Date, end_date: Date)` | GetFixturesByDateIntervalAndLeague
|
|
67
68
|
`fixtures_by_date_and_team(team: 'team', start_date: Date, end_date: Date)` | GetFixturesByDateIntervalAndTeam
|
|
@@ -77,6 +78,8 @@ xml_soccer method | xmlsoccer.com API call
|
|
|
77
78
|
`live_scores_by_league(league: 'league')` | GetLiveScoreByLeague
|
|
78
79
|
`odds_by_fixture(fixture_id: 'league')` | GetOddsByFixtureMatchId
|
|
79
80
|
`top_scorers_by_league_and_season(league: 'league', season: 'season')` | GetTopScorersByLeagueAndSeason
|
|
81
|
+
`players_by_team(team_id: 'team_id')` | GetPlayersByTeam
|
|
82
|
+
`player(player_id: 'player_id')` | GetPlayerById
|
|
80
83
|
|
|
81
84
|
## Contributing
|
|
82
85
|
|
data/lib/xml_soccer/version.rb
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Envelope>
|
|
3
|
+
<Body>
|
|
4
|
+
<GetFixtureMatchByIdResponse>
|
|
5
|
+
<GetFixtureMatchByIdResult>
|
|
6
|
+
<XMLSOCCER.COM>
|
|
7
|
+
<Match>
|
|
8
|
+
<Id>350686</Id>
|
|
9
|
+
<Date>2015-08-29T14:00:00+00:00</Date>
|
|
10
|
+
<League>Scottish Premier League</League>
|
|
11
|
+
<Round>6</Round>
|
|
12
|
+
<Spectators>4702</Spectators>
|
|
13
|
+
<HomeTeam>Dundee FC</HomeTeam>
|
|
14
|
+
<HomeTeam_Id>522</HomeTeam_Id>
|
|
15
|
+
<AwayTeam>Inverness C</AwayTeam>
|
|
16
|
+
<AwayTeam_Id>48</AwayTeam_Id>
|
|
17
|
+
<Time>Finished</Time>
|
|
18
|
+
<HomeGoals>1</HomeGoals>
|
|
19
|
+
<AwayGoals>1</AwayGoals>
|
|
20
|
+
<HomeGoalDetails>90': Kane Hemmings;</HomeGoalDetails>
|
|
21
|
+
<AwayGoalDetails>60': David Raven;</AwayGoalDetails>
|
|
22
|
+
<HomeLineupGoalkeeper> Scott Bain</HomeLineupGoalkeeper>
|
|
23
|
+
<AwayLineupGoalkeeper> Owain Fon Williams</AwayLineupGoalkeeper>
|
|
24
|
+
<HomeLineupDefense> Paul McGinn; Thomas Konrad; James McPake; Gary Irvine;</HomeLineupDefense>
|
|
25
|
+
<AwayLineupDefense> David Raven; Ross Draper; Daniel Devine; Carl Tremarco;</AwayLineupDefense>
|
|
26
|
+
<HomeLineupMidfield> Paul McGowan; Kevin Thomson; Nick Ross; Nicky Low;</HomeLineupMidfield>
|
|
27
|
+
<AwayLineupMidfield> Greg Tansey; Iain Vigurs; Andrea Mbuyi-Mutombo; Ryan Christie; Danny Williams;</AwayLineupMidfield>
|
|
28
|
+
<HomeLineupForward> Kane Hemmings; Greg Stewart;</HomeLineupForward>
|
|
29
|
+
<AwayLineupForward> Daniel Lopez;</AwayLineupForward>
|
|
30
|
+
<HomeLineupSubstitutes>Daryll Meggatt; Dylan Carreiro; Simon Ferry; David Mitchell; Kostadin Gadzhalov; Kevin Holt; Jesse Curran;</HomeLineupSubstitutes>
|
|
31
|
+
<AwayLineupSubstitutes>Richie Foran; Jason Brown; Nathaniel Wedderburn; Lewis Horner; Liam Polworth; Ryan Esson; Calum Ferguson;</AwayLineupSubstitutes>
|
|
32
|
+
<HomeLineupCoach>Paul Hartley;</HomeLineupCoach>
|
|
33
|
+
<AwayLineupCoach>John Hughes;</AwayLineupCoach>
|
|
34
|
+
<HomeSubDetails>75': in Dylan Carreiro;75': out Gary Irvine;67': out Thomas Konrad;67': in Daryll Meggatt;</HomeSubDetails>
|
|
35
|
+
<AwaySubDetails>82': in Nathaniel Wedderburn;82': out Iain Vigurs;</AwaySubDetails>
|
|
36
|
+
<HomeTeamFormation>4-4-2</HomeTeamFormation>
|
|
37
|
+
<AwayTeamFormation>4-2-3-1</AwayTeamFormation>
|
|
38
|
+
<Location>Dens Park</Location>
|
|
39
|
+
<Stadium>Dens Park</Stadium>
|
|
40
|
+
<HomeTeamYellowCardDetails>70': Daryll Meggatt;</HomeTeamYellowCardDetails>
|
|
41
|
+
<AwayTeamYellowCardDetails>83': Daniel Devine;50': Iain Vigurs;25': Ross Draper;18': Greg Tansey;</AwayTeamYellowCardDetails>
|
|
42
|
+
<HomeTeamRedCardDetails>90': Dylan Carreiro;</HomeTeamRedCardDetails>
|
|
43
|
+
<AwayTeamRedCardDetails />
|
|
44
|
+
</Match>
|
|
45
|
+
</XMLSOCCER.COM>
|
|
46
|
+
</GetFixtureMatchByIdResult>
|
|
47
|
+
</GetFixtureMatchByIdResponse>
|
|
48
|
+
</Body>
|
|
49
|
+
</Envelope>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Envelope>
|
|
3
|
+
<Body>
|
|
4
|
+
<GetPlayerByIdResponse>
|
|
5
|
+
<GetPlayerByIdResult>
|
|
6
|
+
<XMLSOCCER.COM>
|
|
7
|
+
<Player>
|
|
8
|
+
<Id>15435</Id>
|
|
9
|
+
<Name>Cem Felek </Name>
|
|
10
|
+
<Nationality>Germany</Nationality>
|
|
11
|
+
<Position>Midfielder</Position>
|
|
12
|
+
<Team_Id>45</Team_Id>
|
|
13
|
+
<PlayerNumber>47</PlayerNumber>
|
|
14
|
+
<DateOfBirth>1996-05-12T00:00:00+00:00</DateOfBirth>
|
|
15
|
+
<DateOfSigning>2014-07-01T00:00:00+00:00</DateOfSigning>
|
|
16
|
+
<Signing>Signed</Signing>
|
|
17
|
+
</Player>
|
|
18
|
+
</XMLSOCCER.COM>
|
|
19
|
+
</GetPlayerByIdResult>
|
|
20
|
+
</GetPlayerByIdResponse>
|
|
21
|
+
</Body>
|
|
22
|
+
</Envelope>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Envelope>
|
|
3
|
+
<Body>
|
|
4
|
+
<GetPlayersByTeamResponse>
|
|
5
|
+
<GetPlayersByTeamResult>
|
|
6
|
+
<XMLSOCCER.COM>
|
|
7
|
+
<Player>
|
|
8
|
+
<Id>2523</Id>
|
|
9
|
+
<Name>David Goodwillie </Name>
|
|
10
|
+
<Height>1.7</Height>
|
|
11
|
+
<Weight>70.29</Weight>
|
|
12
|
+
<Nationality>Scotland</Nationality>
|
|
13
|
+
<Position>Forward</Position>
|
|
14
|
+
<Team_Id>45</Team_Id>
|
|
15
|
+
<PlayerNumber>17</PlayerNumber>
|
|
16
|
+
<DateOfBirth>1989-03-28T00:00:00+00:00</DateOfBirth>
|
|
17
|
+
<DateOfSigning>2014-07-07T00:00:00+00:00</DateOfSigning>
|
|
18
|
+
<Signing>Free</Signing>
|
|
19
|
+
</Player>
|
|
20
|
+
<Player>
|
|
21
|
+
<Id>2796</Id>
|
|
22
|
+
<Name>Paul Quinn </Name>
|
|
23
|
+
<Height>1.85</Height>
|
|
24
|
+
<Weight>71.2</Weight>
|
|
25
|
+
<Nationality>Scotland</Nationality>
|
|
26
|
+
<Position>Defender</Position>
|
|
27
|
+
<Team_Id>45</Team_Id>
|
|
28
|
+
<PlayerNumber>18</PlayerNumber>
|
|
29
|
+
<DateOfBirth>1985-07-21T00:00:00+00:00</DateOfBirth>
|
|
30
|
+
<DateOfSigning>2015-07-01T00:00:00+00:00</DateOfSigning>
|
|
31
|
+
<Signing>Signed</Signing>
|
|
32
|
+
</Player>
|
|
33
|
+
<Player>
|
|
34
|
+
<Id>3004</Id>
|
|
35
|
+
<Name>Daniel Rogers </Name>
|
|
36
|
+
<Nationality>Ireland</Nationality>
|
|
37
|
+
<Position>Goalkeeper</Position>
|
|
38
|
+
<Team_Id>45</Team_Id>
|
|
39
|
+
<PlayerNumber>1</PlayerNumber>
|
|
40
|
+
<DateOfBirth>1994-03-23T00:00:00+00:00</DateOfBirth>
|
|
41
|
+
<DateOfSigning>2012-01-01T00:00:00+00:00</DateOfSigning>
|
|
42
|
+
<Signing>Signed</Signing>
|
|
43
|
+
</Player>
|
|
44
|
+
<Player>
|
|
45
|
+
<Id>3007</Id>
|
|
46
|
+
<Name>Russell Anderson </Name>
|
|
47
|
+
<Height>1.85</Height>
|
|
48
|
+
<Weight>78.46</Weight>
|
|
49
|
+
<Nationality>Scotland</Nationality>
|
|
50
|
+
<Position>Defender</Position>
|
|
51
|
+
<Team_Id>45</Team_Id>
|
|
52
|
+
<PlayerNumber>4</PlayerNumber>
|
|
53
|
+
<DateOfBirth>1978-10-25T00:00:00+00:00</DateOfBirth>
|
|
54
|
+
<DateOfSigning>2012-03-29T00:00:00+00:00</DateOfSigning>
|
|
55
|
+
<Signing>Free</Signing>
|
|
56
|
+
</Player>
|
|
57
|
+
<Player>
|
|
58
|
+
<Id>3008</Id>
|
|
59
|
+
<Name>Andrew Considine </Name>
|
|
60
|
+
<Height>1.83</Height>
|
|
61
|
+
<Weight>73.47</Weight>
|
|
62
|
+
<Nationality>Scotland</Nationality>
|
|
63
|
+
<Position>Defender</Position>
|
|
64
|
+
<Team_Id>45</Team_Id>
|
|
65
|
+
<PlayerNumber>4</PlayerNumber>
|
|
66
|
+
<DateOfBirth>1987-04-01T00:00:00+00:00</DateOfBirth>
|
|
67
|
+
<DateOfSigning>2004-04-24T00:00:00+00:00</DateOfSigning>
|
|
68
|
+
<Signing>Youth</Signing>
|
|
69
|
+
</Player>
|
|
70
|
+
</XMLSOCCER.COM>
|
|
71
|
+
</GetPlayersByTeamResult>
|
|
72
|
+
</GetPlayersByTeamResponse>
|
|
73
|
+
</Body>
|
|
74
|
+
</Envelope>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
data/xml_soccer.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
|
12
12
|
|
|
13
13
|
gem.required_ruby_version = ">= 2.0"
|
|
14
14
|
gem.add_dependency "savon", "~> 2.3"
|
|
15
|
-
gem.add_dependency "activesupport", "
|
|
15
|
+
gem.add_dependency "activesupport", ">= 3.0"
|
|
16
16
|
gem.add_development_dependency "rspec", "~> 2.14"
|
|
17
17
|
gem.add_development_dependency 'webmock', "~> 1.17"
|
|
18
18
|
gem.add_development_dependency "rake", "~> 10.1"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xml_soccer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Augustine
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|
|
@@ -28,14 +28,14 @@ dependencies:
|
|
|
28
28
|
name: activesupport
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '3.0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '3.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
@@ -114,6 +114,7 @@ files:
|
|
|
114
114
|
- spec/fixtures/get_all_teams.xml
|
|
115
115
|
- spec/fixtures/get_all_teams_by_league_and_season.xml
|
|
116
116
|
- spec/fixtures/get_earliest_match_date_per_league.xml
|
|
117
|
+
- spec/fixtures/get_fixture_match_by_id.xml
|
|
117
118
|
- spec/fixtures/get_fixtures_by_date_interval.xml
|
|
118
119
|
- spec/fixtures/get_fixtures_by_date_interval_and_league.xml
|
|
119
120
|
- spec/fixtures/get_fixtures_by_date_interval_and_team.xml
|
|
@@ -128,6 +129,8 @@ files:
|
|
|
128
129
|
- spec/fixtures/get_live_score.xml
|
|
129
130
|
- spec/fixtures/get_live_score_by_league.xml
|
|
130
131
|
- spec/fixtures/get_odds_by_fixture_match_id.xml
|
|
132
|
+
- spec/fixtures/get_player_by_id.xml
|
|
133
|
+
- spec/fixtures/get_players_by_team.xml
|
|
131
134
|
- spec/fixtures/get_team.xml
|
|
132
135
|
- spec/fixtures/get_top_scorers_by_league_and_season.xml
|
|
133
136
|
- spec/fixtures/hashed_responses.rb
|
|
@@ -164,6 +167,7 @@ test_files:
|
|
|
164
167
|
- spec/fixtures/get_all_teams.xml
|
|
165
168
|
- spec/fixtures/get_all_teams_by_league_and_season.xml
|
|
166
169
|
- spec/fixtures/get_earliest_match_date_per_league.xml
|
|
170
|
+
- spec/fixtures/get_fixture_match_by_id.xml
|
|
167
171
|
- spec/fixtures/get_fixtures_by_date_interval.xml
|
|
168
172
|
- spec/fixtures/get_fixtures_by_date_interval_and_league.xml
|
|
169
173
|
- spec/fixtures/get_fixtures_by_date_interval_and_team.xml
|
|
@@ -178,6 +182,8 @@ test_files:
|
|
|
178
182
|
- spec/fixtures/get_live_score.xml
|
|
179
183
|
- spec/fixtures/get_live_score_by_league.xml
|
|
180
184
|
- spec/fixtures/get_odds_by_fixture_match_id.xml
|
|
185
|
+
- spec/fixtures/get_player_by_id.xml
|
|
186
|
+
- spec/fixtures/get_players_by_team.xml
|
|
181
187
|
- spec/fixtures/get_team.xml
|
|
182
188
|
- spec/fixtures/get_top_scorers_by_league_and_season.xml
|
|
183
189
|
- spec/fixtures/hashed_responses.rb
|