norcal 1.5.0 → 1.7.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 +2 -2
- data/{bin/norcal → norcal} +7 -5
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ea11de6169c16b831cc1bafddcd6a0d90da625dc0d0338e5147f61d23252ac2
|
|
4
|
+
data.tar.gz: 473b297f83bd1dca0ec9d4f8d2ee4df773af203c6280c760980ca71784434b26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 801eeb10c659639fd71ab215fd2a360316c1ac7317adcd845ab4e1e37a03ab87ef084762fc7389ef4a158e3e09251c44e6b54324d146024515ae24ffcad4dbe6
|
|
7
|
+
data.tar.gz: 6325457e8e23f079b70ed25d8ef605577f00c4befd76c5625a3a0c5bb713e333ff3532decb16b96b71620beb796ffe3ea757d5041f0a7affd370877627eae3c5
|
data/README.md
CHANGED
|
@@ -31,7 +31,7 @@ gem install norcal
|
|
|
31
31
|
git clone https://github.com/baosen/norcal.git
|
|
32
32
|
cd norcal
|
|
33
33
|
gem build norcal.gemspec
|
|
34
|
-
gem install norcal-1.
|
|
34
|
+
gem install norcal-1.7.0.gem
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
## Usage
|
|
@@ -59,7 +59,7 @@ norcal --light 2026 # light mode, specific year
|
|
|
59
59
|
|
|
60
60
|
## References
|
|
61
61
|
|
|
62
|
-
- Djupvik, Guro: [røde dager](https://lille.snl.no/r%C3%B8de_dager)
|
|
62
|
+
- Djupvik, Guro: [røde dager](https://lille.snl.no/r%C3%B8de_dager) in Lille norske leksikon at snl.no. Retrieved 7 April 2026.
|
|
63
63
|
|
|
64
64
|
## License
|
|
65
65
|
|
data/{bin/norcal → norcal}
RENAMED
|
@@ -99,12 +99,11 @@ def notable_dates(year)
|
|
|
99
99
|
|
|
100
100
|
# Non-red notable dates
|
|
101
101
|
entries += [
|
|
102
|
-
[Date.new(year, 1, 21), "
|
|
102
|
+
[Date.new(year, 1, 21), "Kronprinsesse Ingrid Alexandra, #{year - 2004} år"],
|
|
103
103
|
[Date.new(year, 2, 6), "Samefolkets dag"],
|
|
104
104
|
[morsdag, "Morsdag"],
|
|
105
105
|
[Date.new(year, 2, 14), "Valentinsdag"],
|
|
106
106
|
[fastelavn, "Fastelavn"],
|
|
107
|
-
[Date.new(year, 2, 21), "Kong Harald, #{year - 1937} år"],
|
|
108
107
|
[Date.new(year, 3, 8), "Kvinnedagen"],
|
|
109
108
|
[Date.new(year, 3, 20), "Vårjevndøgn"],
|
|
110
109
|
[sommer_start, "Sommertid start"],
|
|
@@ -115,9 +114,9 @@ def notable_dates(year)
|
|
|
115
114
|
[Date.new(year, 6, 21), "Sommersolverv"],
|
|
116
115
|
[Date.new(year, 6, 23), "Sankthansaften"],
|
|
117
116
|
[Date.new(year, 7, 4), "Dronning Sonja, #{year - 1937} år"],
|
|
118
|
-
[Date.new(year, 7, 20), "
|
|
117
|
+
[Date.new(year, 7, 20), "Kong Haakon, #{year - 1973} år"],
|
|
119
118
|
[Date.new(year, 7, 29), "Olsokdagen"],
|
|
120
|
-
[Date.new(year, 8, 19), "
|
|
119
|
+
[Date.new(year, 8, 19), "Dronning Mette-Marit, #{year - 1973} år"],
|
|
121
120
|
[Date.new(year, 9, 23), "Høstjevndøgn"],
|
|
122
121
|
[botsdag, "Bots- og bededag"],
|
|
123
122
|
[sommer_slutt, "Sommertid slutt"],
|
|
@@ -134,6 +133,8 @@ def notable_dates(year)
|
|
|
134
133
|
[Date.new(year, 12, 31), "Nyttårsaften"],
|
|
135
134
|
].map { |date, name| [date, name, false] }
|
|
136
135
|
|
|
136
|
+
entries << [Date.new(year, 9, 9), "Kong Harald Vs gravferd 2026", false] if year >= 2026
|
|
137
|
+
|
|
137
138
|
entries.sort_by { |d, _, _| d }
|
|
138
139
|
end
|
|
139
140
|
|
|
@@ -429,7 +430,8 @@ def build_buttons(parent)
|
|
|
429
430
|
command {
|
|
430
431
|
$red_only = !$red_only
|
|
431
432
|
rebuild_notable
|
|
432
|
-
|
|
433
|
+
Tk.update_idletasks # flush new geometry so $fit reads accurate height
|
|
434
|
+
$fit.call(false)
|
|
433
435
|
}
|
|
434
436
|
}
|
|
435
437
|
$w[:buttons] << { w: b5, fg: :dkgray, text_key: nil,
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: norcal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- baosen
|
|
8
|
-
bindir:
|
|
8
|
+
bindir: "."
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
@@ -30,9 +30,10 @@ executables:
|
|
|
30
30
|
extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
|
32
32
|
files:
|
|
33
|
+
- "./norcal"
|
|
33
34
|
- LICENSE
|
|
34
35
|
- README.md
|
|
35
|
-
-
|
|
36
|
+
- norcal
|
|
36
37
|
homepage: https://github.com/baosen/norcal
|
|
37
38
|
licenses:
|
|
38
39
|
- Unlicense
|
|
@@ -51,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
51
52
|
- !ruby/object:Gem::Version
|
|
52
53
|
version: '0'
|
|
53
54
|
requirements: []
|
|
54
|
-
rubygems_version: 4.0.
|
|
55
|
+
rubygems_version: 4.0.12
|
|
55
56
|
specification_version: 4
|
|
56
57
|
summary: Norwegian calendar
|
|
57
58
|
test_files: []
|