sportradar-api 0.1.6 → 0.1.7
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/Gemfile.lock +12 -1
- data/lib/sportradar/api.rb +1 -1
- data/lib/sportradar/api/soccer/schedule.rb +9 -0
- data/lib/sportradar/api/version.rb +1 -1
- data/sportradar-api.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 086e7858c3f23fa867c96f5f3a016b58491a3d4c
|
|
4
|
+
data.tar.gz: 24a1e38531cce70b3d60dae0a440a9d13b1511fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93648e66c26bc4633fb02919b87c585a334df9b69939fec975aef15e3ebca62ca965d444fb245d9c104c409707e275e274feeae70b62794e1b50112fa2d52104
|
|
7
|
+
data.tar.gz: f87012b60c24c49d166adeafa51c2e3cb1db8d1b97ad023e036ff27287d3c2e3fe3cb7202428255ecd79a0b7255f2702b44cc760f2790cff2de69f071c754500
|
data/Gemfile.lock
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sportradar-api (0.1.
|
|
4
|
+
sportradar-api (0.1.7)
|
|
5
|
+
activesupport
|
|
5
6
|
httparty (>= 0.13.3)
|
|
6
7
|
|
|
7
8
|
GEM
|
|
8
9
|
remote: https://rubygems.org/
|
|
9
10
|
specs:
|
|
11
|
+
activesupport (5.0.0)
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
+
i18n (~> 0.7)
|
|
14
|
+
minitest (~> 5.1)
|
|
15
|
+
tzinfo (~> 1.1)
|
|
10
16
|
addressable (2.4.0)
|
|
11
17
|
coderay (1.1.1)
|
|
18
|
+
concurrent-ruby (1.0.2)
|
|
12
19
|
coveralls (0.8.14)
|
|
13
20
|
json (>= 1.8, < 3)
|
|
14
21
|
simplecov (~> 0.12.0)
|
|
@@ -38,6 +45,7 @@ GEM
|
|
|
38
45
|
httparty (0.13.7)
|
|
39
46
|
json (~> 1.8)
|
|
40
47
|
multi_xml (>= 0.5.2)
|
|
48
|
+
i18n (0.7.0)
|
|
41
49
|
json (1.8.3)
|
|
42
50
|
listen (3.1.5)
|
|
43
51
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
@@ -73,7 +81,10 @@ GEM
|
|
|
73
81
|
term-ansicolor (1.3.2)
|
|
74
82
|
tins (~> 1.0)
|
|
75
83
|
thor (0.19.1)
|
|
84
|
+
thread_safe (0.3.5)
|
|
76
85
|
tins (1.6.0)
|
|
86
|
+
tzinfo (1.2.2)
|
|
87
|
+
thread_safe (~> 0.1)
|
|
77
88
|
vcr (3.0.3)
|
|
78
89
|
webmock (2.1.0)
|
|
79
90
|
addressable (>= 2.3.6)
|
data/lib/sportradar/api.rb
CHANGED
|
@@ -8,6 +8,15 @@ module Sportradar
|
|
|
8
8
|
@matches = data["schedule"]["matches"]["match"].map {|x| Sportradar::Api::Soccer::Match.new x } if data["schedule"]["matches"]["match"]
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
def league(league_name)
|
|
12
|
+
matches.select{ |match| match.tournament_group.name.parameterize == league_name.parameterize}
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def available_leagues
|
|
16
|
+
matches.map {|match| match.tournament_group.name}.uniq
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
|
|
11
20
|
end
|
|
12
21
|
end
|
|
13
22
|
end
|
data/sportradar-api.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sportradar-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Eggett
|
|
@@ -192,6 +192,20 @@ dependencies:
|
|
|
192
192
|
- - ">="
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
194
|
version: 0.13.3
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: activesupport
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - ">="
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0'
|
|
202
|
+
type: :runtime
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - ">="
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: '0'
|
|
195
209
|
description: " Ruby wrapper for interacting with the SportRadar API. SportRadar has
|
|
196
210
|
over 23 published APIs. This library aims to support them incrementally. Contributions
|
|
197
211
|
welcome! "
|