footty 2026.5.25 → 2026.5.26
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/CHANGELOG.md +1 -1
- data/README.md +12 -12
- data/lib/footty/pp_matches.rb +36 -10
- data/lib/footty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7726fe860831f64a9657a1753ec0769e071551d9633b853948b5eb8f1ae494b5
|
|
4
|
+
data.tar.gz: ef6f9655ec6615d0a429379e5fb498162dfbf59f941f7d07f534ab78deed8b2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b260dca09d8a9ae981a35a373cf5d2701ae3e4ef74df454ce20f96354043f1e2018e61e6aee05acedd23edfc52650aa1287eaa9d2950689a5bc653398ba032e9
|
|
7
|
+
data.tar.gz: e407f6ac2b10758c1ea14a81098df914b30f76df3bba15cd2a90719ec8444843538f4a47c74b46ccd15c35817110187709a635d0bbf68e9d72acffaf68ff40a6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -21,17 +21,17 @@ for upcoming or past matches. For example:
|
|
|
21
21
|
prints on Sep 27, 2024:
|
|
22
22
|
|
|
23
23
|
==> English Premier League 2024/25
|
|
24
|
-
|
|
25
|
-
Sat Sep 28 12:30 (in 1d) Newcastle United FC
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Sun Sep 29 14:00 (in 2d) Ipswich Town FC
|
|
33
|
-
|
|
34
|
-
Mon Sep 30 20:00 (in 3d) AFC Bournemouth
|
|
24
|
+
▪ Matchday 6 ▪
|
|
25
|
+
Sat Sep 28 12:30 (in 1d) Newcastle United FC v Manchester City FC
|
|
26
|
+
15:00 (in 1d) Arsenal FC v Leicester City FC
|
|
27
|
+
15:00 (in 1d) Brentford FC v West Ham United FC
|
|
28
|
+
15:00 (in 1d) Chelsea FC v Brighton & Hove Albion
|
|
29
|
+
15:00 (in 1d) Everton FC v Crystal Palace FC
|
|
30
|
+
15:00 (in 1d) Nottingham Forest FC v Fulham FC
|
|
31
|
+
17:30 (in 1d) Wolverhampton Wanderers FC v Liverpool FC
|
|
32
|
+
Sun Sep 29 14:00 (in 2d) Ipswich Town FC v Aston Villa FC
|
|
33
|
+
16:30 (in 2d) Manchester United FC v Tottenham Hotspur FC
|
|
34
|
+
Mon Sep 30 20:00 (in 3d) AFC Bournemouth v Southampton FC
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -45,7 +45,7 @@ Use `--yesterday` or `-y` to print yesterday's matches e.g.:
|
|
|
45
45
|
$ footty --yesterday # -or-
|
|
46
46
|
$ footty -y
|
|
47
47
|
|
|
48
|
-
Use `--upcoming
|
|
48
|
+
Use `--upcoming`/`--up` or `-u` to print all upcoming matches e.g.:
|
|
49
49
|
|
|
50
50
|
$ footty --upcoming # -or-
|
|
51
51
|
$ footty --up
|
data/lib/footty/pp_matches.rb
CHANGED
|
@@ -9,9 +9,40 @@ module Footty
|
|
|
9
9
|
|
|
10
10
|
today = Date.today
|
|
11
11
|
|
|
12
|
+
last_date = nil
|
|
13
|
+
last_round = nil
|
|
14
|
+
|
|
12
15
|
matches.each do |match|
|
|
16
|
+
|
|
17
|
+
## note - merge group into round
|
|
18
|
+
|
|
19
|
+
round = String.new
|
|
20
|
+
round += "#{match['group']}, " if match['group'] ## (optional) group
|
|
21
|
+
round += "#{match['round']}"
|
|
22
|
+
|
|
23
|
+
if last_round.nil? || last_round != round
|
|
24
|
+
print "▪ #{round} ▪\n" ## knock out (k.o.) phase/stage
|
|
25
|
+
last_date = nil
|
|
26
|
+
else
|
|
27
|
+
## print " " + (" " *round.length)
|
|
28
|
+
end
|
|
29
|
+
last_round = round
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
13
35
|
date = match['date']
|
|
14
|
-
|
|
36
|
+
|
|
37
|
+
## do NOT repeat same date
|
|
38
|
+
if last_date.nil? || last_date != date
|
|
39
|
+
print "#{date.strftime('%a %b %d')} " ## e.g. Thu Jun 14
|
|
40
|
+
else
|
|
41
|
+
print " "
|
|
42
|
+
end
|
|
43
|
+
last_date = date
|
|
44
|
+
|
|
45
|
+
|
|
15
46
|
print "#{match['time']} " if match['time']
|
|
16
47
|
|
|
17
48
|
if date > today
|
|
@@ -55,7 +86,7 @@ module Footty
|
|
|
55
86
|
score = "#{match['score'][0]}-#{match['score'][1]}"
|
|
56
87
|
print " #{score} "
|
|
57
88
|
else
|
|
58
|
-
print "
|
|
89
|
+
print " v "
|
|
59
90
|
end
|
|
60
91
|
|
|
61
92
|
if match['team2'].is_a?( Hash )
|
|
@@ -65,20 +96,15 @@ module Footty
|
|
|
65
96
|
end
|
|
66
97
|
|
|
67
98
|
|
|
68
|
-
print "▪" ## note - add round marker!!
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
print " #{match['group']} /" if match['group'] ## (optional) group
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
print " #{match['round']} " ## knock out (k.o.) phase/stage
|
|
75
|
-
|
|
76
99
|
|
|
77
100
|
print "%-5s " % "(\##{match['num']}) " if match['num']
|
|
78
101
|
|
|
79
102
|
print " @ #{match['ground']}" if match['ground']
|
|
80
103
|
|
|
81
104
|
|
|
105
|
+
print " [#{match['status']}]" if match['status']
|
|
106
|
+
|
|
107
|
+
|
|
82
108
|
print "\n"
|
|
83
109
|
|
|
84
110
|
|
data/lib/footty/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: footty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2026.5.
|
|
4
|
+
version: 2026.5.26
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gerald Bauer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sportdb-quick
|