cricinfo 0.0.3 → 0.0.4
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.
- data/.gemtest +0 -0
- data/History.txt +4 -0
- data/lib/cricinfo.rb +1 -1
- data/lib/cricinfo/scores.rb +3 -1
- metadata +11 -28
data/.gemtest
ADDED
|
File without changes
|
data/History.txt
CHANGED
data/lib/cricinfo.rb
CHANGED
data/lib/cricinfo/scores.rb
CHANGED
|
@@ -3,7 +3,8 @@ module CricInfo
|
|
|
3
3
|
class Scores
|
|
4
4
|
include CricInfo::GameTypes
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
DEBUG = false
|
|
7
|
+
SCORES_HOST = "m.espncricinfo.com"
|
|
7
8
|
SCORES_PATH = "/s/2497/Scores"
|
|
8
9
|
|
|
9
10
|
# match name, team1, team2, inningsdata, start_time
|
|
@@ -35,6 +36,7 @@ module CricInfo
|
|
|
35
36
|
game = Game.new
|
|
36
37
|
game.name = match_name
|
|
37
38
|
game.type = GAMETYPE_TEST if match_name.match(/Test/)
|
|
39
|
+
game.type = GAMETYPE_T20 if match_name.match(/^\d+.. Match/)
|
|
38
40
|
game.team1 = team1
|
|
39
41
|
game.team2 = team2
|
|
40
42
|
game.start_time = start ? Time.parse(start) : nil
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cricinfo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 23
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.0.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andrew S Williams
|
|
@@ -15,41 +15,24 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
19
|
-
default_executable:
|
|
18
|
+
date: 2011-04-10 00:00:00 Z
|
|
20
19
|
dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|
|
22
|
-
name:
|
|
21
|
+
name: hoe
|
|
23
22
|
prerelease: false
|
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
24
|
none: false
|
|
26
25
|
requirements:
|
|
27
26
|
- - ">="
|
|
28
27
|
- !ruby/object:Gem::Version
|
|
29
|
-
hash:
|
|
28
|
+
hash: 35
|
|
30
29
|
segments:
|
|
31
30
|
- 2
|
|
32
|
-
-
|
|
31
|
+
- 9
|
|
33
32
|
- 4
|
|
34
|
-
version: 2.
|
|
33
|
+
version: 2.9.4
|
|
35
34
|
type: :development
|
|
36
35
|
version_requirements: *id001
|
|
37
|
-
- !ruby/object:Gem::Dependency
|
|
38
|
-
name: hoe
|
|
39
|
-
prerelease: false
|
|
40
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
|
-
requirements:
|
|
43
|
-
- - ">="
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
hash: 21
|
|
46
|
-
segments:
|
|
47
|
-
- 2
|
|
48
|
-
- 6
|
|
49
|
-
- 1
|
|
50
|
-
version: 2.6.1
|
|
51
|
-
type: :development
|
|
52
|
-
version_requirements: *id002
|
|
53
36
|
description: An interface to cricinfo.com game data (current games only).
|
|
54
37
|
email:
|
|
55
38
|
- sobakasu@gmail.com
|
|
@@ -81,7 +64,7 @@ files:
|
|
|
81
64
|
- ./spec/fixtures/Scores5.html
|
|
82
65
|
- ./spec/spec.opts
|
|
83
66
|
- ./spec/spec_helper.rb
|
|
84
|
-
|
|
67
|
+
- .gemtest
|
|
85
68
|
homepage: http://github.com/sobakasu/cricinfo
|
|
86
69
|
licenses: []
|
|
87
70
|
|
|
@@ -112,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
95
|
requirements: []
|
|
113
96
|
|
|
114
97
|
rubyforge_project: cricinfo
|
|
115
|
-
rubygems_version: 1.
|
|
98
|
+
rubygems_version: 1.7.2
|
|
116
99
|
signing_key:
|
|
117
100
|
specification_version: 3
|
|
118
101
|
summary: An interface to cricinfo.com game data (current games only).
|