livescorefeed_parser 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
|
|
1
1
|
module LivescorefeedParser
|
2
2
|
class Soccer
|
3
3
|
|
4
|
-
def self.get_matches
|
4
|
+
def self.get_matches(date = nil)
|
5
5
|
options = {
|
6
6
|
:games => "livescores",
|
7
7
|
:key => LivescorefeedParser.key,
|
8
|
-
:format => "json"
|
9
|
-
:date => Date.today.to_s
|
8
|
+
:format => "json"
|
10
9
|
}
|
10
|
+
options[:date] = date.to_s if date
|
11
11
|
games = {}
|
12
12
|
http_response = HTTParty.get('http://livescorefeed.net/data/data.php', query: options)
|
13
13
|
if http_response.parsed_response["maininfo"]
|
@@ -23,13 +23,13 @@ module LivescorefeedParser
|
|
23
23
|
games
|
24
24
|
end
|
25
25
|
|
26
|
-
def self.get_scores
|
27
|
-
|
26
|
+
def self.get_scores(date = nil)
|
27
|
+
options = {
|
28
28
|
:games => "livescores",
|
29
29
|
:key => LivescorefeedParser.key,
|
30
|
-
:format => "json"
|
31
|
-
:date => Date.today.to_s
|
30
|
+
:format => "json"
|
32
31
|
}
|
32
|
+
options[:date] = date.to_s if date
|
33
33
|
games = {}
|
34
34
|
http_response = HTTParty.get('http://livescorefeed.net/data/data.php', query: options)
|
35
35
|
if http_response.parsed_response["maininfo"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livescorefeed_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|