cricinfo 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -1,3 +1,7 @@
1
+ === 0.0.4 2011-04-10
2
+
3
+ * updated URL (http://m.espncricinfo.com/s/2497/Scores)
4
+
1
5
  === 0.0.3 2010-09-12
2
6
 
3
7
  * bugfix for parsing team names containing spaces
@@ -8,7 +8,7 @@ require 'cricinfo/game'
8
8
  require 'cricinfo/scores'
9
9
 
10
10
  module CricInfo
11
- VERSION = '0.0.3'
11
+ VERSION = '0.0.4'
12
12
  end
13
13
 
14
14
  # array monkey patch
@@ -3,7 +3,8 @@ module CricInfo
3
3
  class Scores
4
4
  include CricInfo::GameTypes
5
5
 
6
- SCORES_HOST = "m.cricinfo.com"
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: 25
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
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: 2010-09-12 00:00:00 +09:30
19
- default_executable:
18
+ date: 2011-04-10 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: rubyforge
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: 7
28
+ hash: 35
30
29
  segments:
31
30
  - 2
32
- - 0
31
+ - 9
33
32
  - 4
34
- version: 2.0.4
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
- has_rdoc: true
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.3.7
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).