cricket_score_notifier 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/README.md +18 -3
- data/images/current_status.png +0 -0
- data/images/live_score.png +0 -0
- data/lib/cricket_score_notifier.rb +1 -1
- data/lib/cricket_score_notifier/notification.rb +2 -2
- data/lib/cricket_score_notifier/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14b4358f2f5d58198efc09eb9b8582a175873a59
|
4
|
+
data.tar.gz: e8a85b14ce0795eaf2766eadf95be3f7a9e18302
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59aec50f4a912d91dbf8442500bf506617f72e0844ad7eb1c251fe99d42bac767f5e7685a011eef527d67e21f771b3d35dbc99a0091bf6c016f48d26c6eefed5
|
7
|
+
data.tar.gz: 3ad05c75f6fe75770b935ad1f3b94e9c9d15a7f32378dfcb6a77b0c4b5ab86d0483bc3fc566e31ca4b84c55b54bc0af1e492c81f50020d17a373c9bc281ad396
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# CricketScoreNotifier
|
2
|
-
[](http://travis-ci.org/absk1317/cricket-score-notifier)
|
2
|
+
[](http://travis-ci.org/absk1317/cricket-score-notifier) [](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
|
-
|
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
|
+

|
49
|
+
|
50
|
+
Followed by current match status:
|
51
|
+
|
52
|
+

|
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 |
|
13
|
-
|
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
|
|
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.
|
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-
|
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.
|
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:
|