swedish_holidays 1.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/2020 +48 -48
- data/data/2021 +41 -41
- data/data/2022 +45 -45
- data/data/2023 +43 -43
- data/data/2024 +29 -29
- data/data/2025 +44 -44
- data/data/2026 +42 -42
- data/data/2027 +47 -47
- data/data/2028 +49 -49
- data/data/2029 +17 -17
- data/data/2030 +43 -43
- data/data/2031 +41 -41
- data/data/2032 +45 -45
- data/data/2033 +45 -45
- data/data/2034 +43 -43
- data/data/2035 +29 -29
- data/data/2036 +46 -46
- data/data/2037 +42 -42
- data/data/2038 +49 -49
- data/data/2039 +45 -45
- data/data/2040 +35 -35
- data/data/2041 +43 -43
- data/data/2042 +41 -41
- data/data/2043 +36 -36
- data/data/2044 +51 -51
- data/lib/swedish_holidays.rb +26 -12
- data/lib/swedish_holidays/holiday.rb +23 -11
- data/lib/swedish_holidays/utils.rb +24 -4
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d796342dee6648ad4a93cae254c26817790a70c3e79aca4507595cfa397b3e3f
|
4
|
+
data.tar.gz: cd76695854d5c7bcd6f7f23b5215652dfd8a912bb4dce4cf1fe3de9a109b8478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 766d4d00db67af721b5cfbb8f4032976317146fd03f3b5a3874c26bca16a930722a3133f7dd241bf60d087c43cd0d58ac9901c254fc1706d6d6574eaf7140e5a
|
7
|
+
data.tar.gz: bef499fed0786151900405f0dec6584a9da3970a60d28f18fd0776ef7c4a32106cfd8d851b8163c60d52f08d9b32f1c99fac2f737aa6eb4f3d30bf972fe93b00
|
data/data/2020
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2020-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
4
|
:week: 1
|
5
|
-
:weekday:
|
5
|
+
:weekday: Onsdag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2020-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
|
-
:week:
|
11
|
-
:weekday:
|
10
|
+
:week: 2
|
11
|
+
:weekday: Måndag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2020-04-10'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 15
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 101
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2020-04-11'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 15
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 102
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2020-04-12'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 15
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 103
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2020-04-13'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 16
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 104
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2020-05-01'
|
39
39
|
:name: Första maj
|
40
40
|
:week: 18
|
41
|
-
:weekday:
|
42
|
-
:yday:
|
41
|
+
:weekday: Fredag
|
42
|
+
:yday: 122
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2020-05-21'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 21
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 142
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2020-05-31'
|
51
51
|
:name: Pingstdagen
|
52
|
-
:week:
|
52
|
+
:week: 22
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 152
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2020-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
|
-
:weekday:
|
60
|
-
:yday:
|
59
|
+
:weekday: Lördag
|
60
|
+
:yday: 158
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2020-06-19'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 171
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2020-06-20'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 172
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2020-10-31'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 305
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2020-12-24'
|
81
81
|
:name: Julafton
|
82
82
|
:week: 52
|
83
|
-
:weekday:
|
84
|
-
:yday:
|
83
|
+
:weekday: Torsdag
|
84
|
+
:yday: 359
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2020-12-25'
|
87
87
|
:name: Juldagen
|
88
88
|
:week: 52
|
89
|
-
:weekday:
|
90
|
-
:yday:
|
89
|
+
:weekday: Fredag
|
90
|
+
:yday: 360
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2020-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
|
-
:weekday:
|
96
|
-
:yday:
|
95
|
+
:weekday: Lördag
|
96
|
+
:yday: 361
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2020-12-31'
|
99
99
|
:name: Nyårsafton
|
100
|
-
:week:
|
101
|
-
:weekday:
|
102
|
-
:yday:
|
100
|
+
:week: 53
|
101
|
+
:weekday: Torsdag
|
102
|
+
:yday: 366
|
103
103
|
:real_holiday: false
|
data/data/2021
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2021-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
|
-
:week:
|
5
|
-
:weekday:
|
4
|
+
:week: 53
|
5
|
+
:weekday: Fredag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2021-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
10
|
:week: 1
|
11
|
-
:weekday:
|
11
|
+
:weekday: Onsdag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2021-04-02'
|
15
15
|
:name: Långfredagen
|
16
16
|
:week: 13
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 92
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2021-04-03'
|
21
21
|
:name: Påskafton
|
22
22
|
:week: 13
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 93
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2021-04-04'
|
27
27
|
:name: Påskdagen
|
28
28
|
:week: 13
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 94
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2021-04-05'
|
33
33
|
:name: Annandag påsk
|
34
34
|
:week: 14
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 95
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2021-05-01'
|
39
39
|
:name: Första maj
|
40
|
-
:week:
|
41
|
-
:weekday:
|
40
|
+
:week: 17
|
41
|
+
:weekday: Lördag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2021-05-13'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
46
|
:week: 19
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 133
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2021-05-23'
|
51
51
|
:name: Pingstdagen
|
52
52
|
:week: 20
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 143
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2021-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
|
-
:week:
|
59
|
-
:weekday:
|
58
|
+
:week: 22
|
59
|
+
:weekday: Söndag
|
60
60
|
:yday: 157
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2021-06-25'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 176
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2021-06-26'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 177
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2021-11-06'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 310
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2021-12-24'
|
81
81
|
:name: Julafton
|
82
|
-
:week:
|
83
|
-
:weekday:
|
82
|
+
:week: 51
|
83
|
+
:weekday: Fredag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2021-12-25'
|
87
87
|
:name: Juldagen
|
88
|
-
:week:
|
89
|
-
:weekday:
|
88
|
+
:week: 51
|
89
|
+
:weekday: Lördag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2021-12-26'
|
93
93
|
:name: Annandag jul
|
94
|
-
:week:
|
95
|
-
:weekday:
|
94
|
+
:week: 51
|
95
|
+
:weekday: Söndag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2021-12-31'
|
99
99
|
:name: Nyårsafton
|
100
|
-
:week:
|
101
|
-
:weekday:
|
100
|
+
:week: 52
|
101
|
+
:weekday: Fredag
|
102
102
|
:yday: 365
|
103
103
|
:real_holiday: false
|
data/data/2022
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2022-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
|
-
:week:
|
5
|
-
:weekday:
|
4
|
+
:week: 52
|
5
|
+
:weekday: Lördag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2022-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
10
|
:week: 1
|
11
|
-
:weekday:
|
11
|
+
:weekday: Torsdag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2022-04-15'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 15
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 105
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2022-04-16'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 15
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 106
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2022-04-17'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 15
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 107
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2022-04-18'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 16
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 108
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2022-05-01'
|
39
39
|
:name: Första maj
|
40
|
-
:week:
|
41
|
-
:weekday:
|
40
|
+
:week: 17
|
41
|
+
:weekday: Söndag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2022-05-26'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 21
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 146
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2022-06-05'
|
51
51
|
:name: Pingstdagen
|
52
|
-
:week:
|
52
|
+
:week: 22
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 156
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2022-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
|
-
:weekday:
|
59
|
+
:weekday: Måndag
|
60
60
|
:yday: 157
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2022-06-24'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 175
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2022-06-25'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 176
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2022-11-05'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 309
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2022-12-24'
|
81
81
|
:name: Julafton
|
82
|
-
:week:
|
83
|
-
:weekday:
|
82
|
+
:week: 51
|
83
|
+
:weekday: Lördag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2022-12-25'
|
87
87
|
:name: Juldagen
|
88
|
-
:week:
|
89
|
-
:weekday:
|
88
|
+
:week: 51
|
89
|
+
:weekday: Söndag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2022-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
|
-
:weekday:
|
95
|
+
:weekday: Måndag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2022-12-31'
|
99
99
|
:name: Nyårsafton
|
100
|
-
:week:
|
101
|
-
:weekday:
|
100
|
+
:week: 52
|
101
|
+
:weekday: Lördag
|
102
102
|
:yday: 365
|
103
103
|
:real_holiday: false
|