ScoreWatch 0.2.2 → 0.2.3

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.
Binary file
@@ -4,7 +4,7 @@ require 'open-uri'
4
4
  require 'nokogiri'
5
5
 
6
6
  module ScoreWatch
7
- VERSION = "0.2.2"
7
+ VERSION = "0.2.3"
8
8
  end
9
9
 
10
10
  require 'ScoreWatch/match'
@@ -11,6 +11,7 @@ class ScoreWatch::Match
11
11
  @game_on = false
12
12
  @status = nil
13
13
  get_teams
14
+ message("#{@home_team} v. #{@away_team}")
14
15
  watch
15
16
  end
16
17
 
@@ -18,7 +19,7 @@ class ScoreWatch::Match
18
19
  refresh
19
20
  get_score
20
21
  get_status
21
- if @old_score != @current_score
22
+ if @game_on == true && @old_score != @current_score
22
23
  message("#{@home_team} #{@current_score} #{@away_team}")
23
24
  comment = get_goal_comment
24
25
  if comment
@@ -73,7 +74,8 @@ class ScoreWatch::Match
73
74
  @game_on = true
74
75
  elsif is_over?
75
76
  end_match
76
- else
77
+ elsif @status != :watching
78
+ @status = :watching
77
79
  message("Waiting for match to start.")
78
80
  end
79
81
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ScoreWatch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease:
4
+ hash: 17
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Svenningsen
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-24 00:00:00 Z
18
+ date: 2012-05-02 00:00:00 -05:00
19
+ default_executable:
19
20
  dependencies: []
20
21
 
21
22
  description: Given an ESPN Gamecast match ID, Score Watch will scrape the Gamecast Page for updates and broadcast them on the command line and also via GrowlNotify.
@@ -30,10 +31,9 @@ files:
30
31
  - lib/ScoreWatch/match.rb
31
32
  - lib/ScoreWatch.rb
32
33
  - README.md
33
- - Score_Watch-0.2.0.gem
34
- - ScoreWatch-0.2.1.gem
35
- - ScoreWatch-0.2.gem
34
+ - ScoreWatch-0.2.2.gem
36
35
  - bin/score_watch
36
+ has_rdoc: true
37
37
  homepage: https://github.com/crsven/score_watch
38
38
  licenses: []
39
39
 
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements: []
64
64
 
65
65
  rubyforge_project:
66
- rubygems_version: 1.8.23
66
+ rubygems_version: 1.3.7
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: Watches ESPN Gamecast pages for updates and broadcasts those updates.
Binary file
Binary file
Binary file