live_soccer 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,6 @@
1
+ 0.1.1
2
+ * Nice message when there's no ongoing match
3
+ * Added changelog
4
+
5
+ 0.1.0
6
+ * Initial release
data/README.md CHANGED
@@ -1,8 +1,14 @@
1
- # live_soccer #
1
+ # live_soccer
2
2
 
3
3
  Find out how your soccer team is going right now!
4
4
 
5
- # Contributing to live_soccer #
5
+ ### Usage
6
+
7
+ * Install it: `gem install live_soccer`
8
+ * Run it (from terminal): `live_soccer`
9
+ * Have a beer!
10
+
11
+ # Contributing to live_soccer
6
12
 
7
13
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
14
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
@@ -12,7 +18,7 @@ Find out how your soccer team is going right now!
12
18
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
19
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
20
 
15
- # Copyright #
21
+ # Copyright
16
22
 
17
23
  Copyright (c) 2012 Matias H. Leidemer. See LICENSE.txt for
18
24
  further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -11,6 +11,7 @@ module LiveSoccer
11
11
  end
12
12
 
13
13
  def to_s
14
+ return "Sorry, but looks like no one is on the pitch right now..." if self.matches.empty?
14
15
  self.matches.map(&:to_s).join "\n"
15
16
  end
16
17
 
data/live_soccer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "live_soccer"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matias H. Leidemer"]
12
- s.date = "2012-05-21"
12
+ s.date = "2012-05-22"
13
13
  s.description = "Find out how your soccer team is going right now!"
14
14
  s.email = "matiasleidemer@gmail.com"
15
15
  s.executables = ["live_soccer"]
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.files = [
21
21
  ".document",
22
22
  ".rspec",
23
+ "CHANGELOG",
23
24
  "Gemfile",
24
25
  "Gemfile.lock",
25
26
  "LICENSE.txt",
data/spec/checker_spec.rb CHANGED
@@ -15,7 +15,7 @@ describe "Checker" do
15
15
  end
16
16
 
17
17
  describe ".parse_matches" do
18
- let(:match) { { date: DateTime.parse("20May 18h30"), home: "Vasco", visitor: "Grêmio", score: "1 x 2", id: "40075" } }
18
+ let(:match) { { date: DateTime.parse("18h30"), home: "Vasco", visitor: "Grêmio", score: "1 x 2", id: "40075" } }
19
19
 
20
20
  it "parses the matches" do
21
21
  LiveSoccer::Checker.parse_matches.first.should == match
@@ -20,8 +20,17 @@ describe "MatchCollection" do
20
20
  end
21
21
 
22
22
  describe "#to_s" do
23
- it "prints each Match" do
24
- match_collection.to_s.should == "20May 18:30 - Vasco 1 x 2 Grêmio\n20May 18:30 - Cruzeiro 0 x 0 Atlético-GO"
23
+ context "with running matches" do
24
+ it "prints each Match" do
25
+ match_collection.to_s.should == "20May 18:30 - Vasco 1 x 2 Grêmio\n20May 18:30 - Cruzeiro 0 x 0 Atlético-GO"
26
+ end
27
+ end
28
+
29
+ context "without running matches" do
30
+ it "prints a message" do
31
+ match_collection = LiveSoccer::MatchCollection.new []
32
+ match_collection.to_s.should == "Sorry, but looks like no one is on the pitch right now..."
33
+ end
25
34
  end
26
35
  end
27
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_soccer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-21 00:00:00.000000000Z
12
+ date: 2012-05-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70202340893720 !ruby/object:Gem::Requirement
16
+ requirement: &70111554097100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70202340893720
24
+ version_requirements: *70111554097100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: nokogiri
27
- requirement: &70202340893040 !ruby/object:Gem::Requirement
27
+ requirement: &70111554095540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.5.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70202340893040
35
+ version_requirements: *70111554095540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &70202340892200 !ruby/object:Gem::Requirement
38
+ requirement: &70111554093360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.15.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70202340892200
46
+ version_requirements: *70111554093360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70202340891240 !ruby/object:Gem::Requirement
49
+ requirement: &70111554092120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.10.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70202340891240
57
+ version_requirements: *70111554092120
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rdoc
60
- requirement: &70202340890280 !ruby/object:Gem::Requirement
60
+ requirement: &70111554090380 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '3.12'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70202340890280
68
+ version_requirements: *70111554090380
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &70202340889480 !ruby/object:Gem::Requirement
71
+ requirement: &70111554088880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.1.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70202340889480
79
+ version_requirements: *70111554088880
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: jeweler
82
- requirement: &70202340888600 !ruby/object:Gem::Requirement
82
+ requirement: &70111554087580 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.8.3
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70202340888600
90
+ version_requirements: *70111554087580
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: simplecov
93
- requirement: &70202340824220 !ruby/object:Gem::Requirement
93
+ requirement: &70111554085420 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 0.6.4
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70202340824220
101
+ version_requirements: *70111554085420
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: fakeweb
104
- requirement: &70202340823340 !ruby/object:Gem::Requirement
104
+ requirement: &70111554083620 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: 1.3.0
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70202340823340
112
+ version_requirements: *70111554083620
113
113
  description: Find out how your soccer team is going right now!
114
114
  email: matiasleidemer@gmail.com
115
115
  executables:
@@ -121,6 +121,7 @@ extra_rdoc_files:
121
121
  files:
122
122
  - .document
123
123
  - .rspec
124
+ - CHANGELOG
124
125
  - Gemfile
125
126
  - Gemfile.lock
126
127
  - LICENSE.txt
@@ -154,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
155
  version: '0'
155
156
  segments:
156
157
  - 0
157
- hash: 4314211782101427104
158
+ hash: -44823639091886771
158
159
  required_rubygems_version: !ruby/object:Gem::Requirement
159
160
  none: false
160
161
  requirements: