cricket_score_notifier 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e105d1bc19a0e7fe3a9c1e3585463ad129f53464
4
- data.tar.gz: ebc9722b2cbb041e446b218156c86f294a1745d1
3
+ metadata.gz: 14b4358f2f5d58198efc09eb9b8582a175873a59
4
+ data.tar.gz: e8a85b14ce0795eaf2766eadf95be3f7a9e18302
5
5
  SHA512:
6
- metadata.gz: 2a7134ca25a1a0e97e695d2aa30a49764afaf6b53f722945fd743bbdef91404583e083ca0c34de348aef2d1fd47ff2972358e2b17d323b670166f289362896a8
7
- data.tar.gz: ae7137a9173a46e9b33a867952398e20514f271d86b587d73cb0040747c4dae9f8b28ea93af0d2d71d0c6990ed57cd514f26b3efee1470fcac5416a3aef483d5
6
+ metadata.gz: 59aec50f4a912d91dbf8442500bf506617f72e0844ad7eb1c251fe99d42bac767f5e7685a011eef527d67e21f771b3d35dbc99a0091bf6c016f48d26c6eefed5
7
+ data.tar.gz: 3ad05c75f6fe75770b935ad1f3b94e9c9d15a7f32378dfcb6a77b0c4b5ab86d0483bc3fc566e31ca4b84c55b54bc0af1e492c81f50020d17a373c9bc281ad396
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # CricketScoreNotifier
2
- [![Build Status](https://api.travis-ci.org/absk1317/cricket-score-notifier.svg?branch=master)](http://travis-ci.org/absk1317/cricket-score-notifier)
2
+ [![Build Status](https://api.travis-ci.org/absk1317/cricket-score-notifier.svg?branch=master)](http://travis-ci.org/absk1317/cricket-score-notifier) [![Gem Version](https://badge.fury.io/rb/cricket_score_notifier.svg)](https://badge.fury.io/rb/cricket_score_notifier)
3
3
 
4
4
  CricketScoreNotifier is a gem which answers the following question:
5
5
 
@@ -37,12 +37,27 @@ CricketScoreNotifier will prompt you with a list of ongoing matches e.g.
37
37
 
38
38
  Input your match choice for which you want live notifications.
39
39
 
40
- After selecting a match CricketScoreNotifier will ask you for an updates frequency input i.e the time interval at which you want CricketScoreNotifier to provide you desktop notifications.
40
+ After selecting a match CricketScoreNotifier will ask you for an updates frequency input i.e the time interval at which you want CricketScoreNotifier to provide you desktop notifications. Something like this:
41
41
 
42
- Input the frequency in seconds format and you're all set, you don't need to repeatedly go to your browser tab for checking cricket scores anymore as you can have live updates right on the desktop itself.
42
+ $ At what interval would like the score updates? (enter in seconds)
43
+
44
+ Input the frequency in seconds format and you're all set, you will start recieving notifications in the below format:
45
+
46
+ Live Scores:
47
+
48
+ ![alt tag](https://github.com/absk1317/cricket-score-notifier/blob/master/images/live_score.png)
49
+
50
+ Followed by current match status:
51
+
52
+ ![alt tag](https://github.com/absk1317/cricket-score-notifier/blob/master/images/current_status.png)
53
+
54
+ Now you don't need to repeatedly go to your browser tab for checking cricket scores anymore as you can have live updates right on the desktop itself.
43
55
 
44
56
  Any suggestions/features/ideas are most welcome!
45
57
 
58
+ ## Credits
59
+ Cricinfo for their awesome [APIs](http://www.espncricinfo.com/).
60
+
46
61
  ## Contributors
47
62
  The current core team consists of:
48
63
  * [Abhishek Verma](https://github.com/absk1317)
Binary file
Binary file
@@ -34,7 +34,7 @@ module CricketScoreNotifier
34
34
  loop do
35
35
  @match_status, @live_scores = fetch_live_scores(choice)
36
36
  unless @match_status
37
- TerminalNotifier.notify('Match not started yet.', title: 'Current Status')
37
+ TerminalNotifier.notify('Match not started yet.', title: 'Current Status', timeout: 1)
38
38
  break
39
39
  end
40
40
  show_score_notification
@@ -9,8 +9,8 @@ module CricketScoreNotifier
9
9
 
10
10
  def score_message
11
11
  innings_score = message.values
12
- innings_score[0].zip(*innings_score[1..-1]).map do |innings_score|
13
- innings_score.join(" ")
12
+ innings_score[0].zip(*innings_score[1..-1]).map do |score|
13
+ score.join(" ")
14
14
  end.join("\n")
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module CricketScoreNotifier
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cricket_score_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - abhishek verma
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-10 00:00:00.000000000 Z
12
+ date: 2017-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -116,6 +116,8 @@ files:
116
116
  - bin/cricket_score_notifier
117
117
  - bin/setup
118
118
  - cricket_score_notifier.gemspec
119
+ - images/current_status.png
120
+ - images/live_score.png
119
121
  - lib/cricket_score_notifier.rb
120
122
  - lib/cricket_score_notifier/live_matches_feed_parser.rb
121
123
  - lib/cricket_score_notifier/live_scores_parser.rb
@@ -143,9 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
145
  version: '0'
144
146
  requirements: []
145
147
  rubyforge_project:
146
- rubygems_version: 2.5.1
148
+ rubygems_version: 2.6.11
147
149
  signing_key:
148
150
  specification_version: 4
149
151
  summary: Provides a realtime notification of ongoing cricket matches.
150
152
  test_files: []
151
- has_rdoc: