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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75b4ca658d25b404bf5b4f1594da50c42564ad7ffc43e3190429a7c4627b8c94
4
- data.tar.gz: 25eac464226fea4b31da270bc195c443e34bc4fa68ce9de1bd0646b8ec63639e
3
+ metadata.gz: 7726fe860831f64a9657a1753ec0769e071551d9633b853948b5eb8f1ae494b5
4
+ data.tar.gz: ef6f9655ec6615d0a429379e5fb498162dfbf59f941f7d07f534ab78deed8b2f
5
5
  SHA512:
6
- metadata.gz: a1762d1389a13f0380267a7b8a0621b6df1e176eb847a4cac454fcfdfb87ece7321a950e80ad2c1ffedbd38f2966def3c63cda9d159063e568b1854bac0349b9
7
- data.tar.gz: e791218fe6679d8c03545114cb60a7ce588b8f8dce4f8d80764aaa1da1168f6ab7552af00098ad6165a59d97ecea5fc1292cbb979689835f029bb4d06a1bc5cb
6
+ metadata.gz: b260dca09d8a9ae981a35a373cf5d2701ae3e4ef74df454ce20f96354043f1e2018e61e6aee05acedd23edfc52650aa1287eaa9d2950689a5bc653398ba032e9
7
+ data.tar.gz: e407f6ac2b10758c1ea14a81098df914b30f76df3bba15cd2a90719ec8444843538f4a47c74b46ccd15c35817110187709a635d0bbf68e9d72acffaf68ff40a6
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 2026.5.25
1
+ ### 2026.5.26
2
2
  ### 1.0.0 / 2018-06-09
3
3
 
4
4
  * Everything is new (again). First release.
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
- Upcoming matches:
25
- Sat Sep 28 12:30 (in 1d) Newcastle United FC vs Manchester City FC ▪ Matchday 6
26
- Sat Sep 28 15:00 (in 1d) Arsenal FC vs Leicester City FC ▪ Matchday 6
27
- Sat Sep 28 15:00 (in 1d) Brentford FC vs West Ham United FC ▪ Matchday 6
28
- Sat Sep 28 15:00 (in 1d) Chelsea FC vs Brighton & Hove Albion ▪ Matchday 6
29
- Sat Sep 28 15:00 (in 1d) Everton FC vs Crystal Palace FC ▪ Matchday 6
30
- Sat Sep 28 15:00 (in 1d) Nottingham Forest FC vs Fulham FC ▪ Matchday 6
31
- Sat Sep 28 17:30 (in 1d) Wolverhampton Wanderers FC vs Liverpool FC ▪ Matchday 6
32
- Sun Sep 29 14:00 (in 2d) Ipswich Town FC vs Aston Villa FC ▪ Matchday 6
33
- Sun Sep 29 16:30 (in 2d) Manchester United FC vs Tottenham Hotspur FC ▪ Matchday 6
34
- Mon Sep 30 20:00 (in 3d) AFC Bournemouth vs Southampton FC ▪ Matchday 6
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` or `--up` or `-u` to print all upcoming matches e.g.:
48
+ Use `--upcoming`/`--up` or `-u` to print all upcoming matches e.g.:
49
49
 
50
50
  $ footty --upcoming # -or-
51
51
  $ footty --up
@@ -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
- print "#{date.strftime('%a %b %d')} " ## e.g. Thu Jun 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 " vs "
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
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Footty
3
- VERSION = '2026.5.25'
3
+ VERSION = '2026.5.26'
4
4
 
5
5
  def self.banner
6
6
  "footty/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
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.25
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-25 00:00:00.000000000 Z
11
+ date: 2026-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sportdb-quick