chinese-holidays 0.8.0 → 0.10.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 +1 -0
- data/lib/chinese/holidays/data/2024.json +77 -0
- data/lib/chinese/holidays/data/2025.json +57 -0
- data/lib/chinese/holidays/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7454285b6451b502a395525776a01c9217ca79d6a2be36468c77bfc11680bdc
|
4
|
+
data.tar.gz: 7299a2761fcc8346766ed8eb803fcbbf54c95f3c6d0cc16b2725a3ad2eef9a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ede79bd075d0516522c8911898f0c7f16422c3136846cfb3e8ba2bcd2fead786954e8fd6eeb4564c866391769644808eceecdbddda07075c34100545ea2efce5
|
7
|
+
data.tar.gz: b5eeff04d700ebcc477a464fe7bdd403a567d7ff5bd1a9e29ec3e1d7762d39dc9bdc7a321304e49b23a73a6ce91258bce44c4123acf261bd02e51fd800a4d22e
|
data/README.md
CHANGED
@@ -40,6 +40,7 @@ end
|
|
40
40
|
|
41
41
|
## 支持
|
42
42
|
|
43
|
+
* [支持 2024 年](https://www.gov.cn/zhengce/content/202310/content_6911527.htm)
|
43
44
|
* [支持 2023 年](http://www.gov.cn/zhengce/content/2022-12/08/content_5730844.htm)
|
44
45
|
* [支持 2022 年](http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm)
|
45
46
|
* [支持 2021 年](http://www.gov.cn/zhengce/content/2020-11/25/content_5564127.htm)
|
@@ -0,0 +1,77 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "元旦",
|
4
|
+
"range": ["2023-12-30", "2024-01-01"],
|
5
|
+
"type": "holiday"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"name": "春节",
|
9
|
+
"range": ["2024-02-04"],
|
10
|
+
"type": "workingday"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"name": "春节",
|
14
|
+
"range": ["2024-02-10", "2024-02-17"],
|
15
|
+
"type": "holiday"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"name": "春节",
|
19
|
+
"range": ["2024-02-18"],
|
20
|
+
"type": "workingday"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"name": "清明节",
|
24
|
+
"range": ["2024-04-04", "2024-04-06"],
|
25
|
+
"type": "holiday"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"name": "清明节",
|
29
|
+
"range": ["2024-04-07"],
|
30
|
+
"type": "workingday"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "劳动节",
|
34
|
+
"range": ["2024-04-28"],
|
35
|
+
"type": "workingday"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"name": "劳动节",
|
39
|
+
"range": ["2024-05-01", "2024-05-05"],
|
40
|
+
"type": "holiday"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"name": "劳动节",
|
44
|
+
"range": ["2024-05-11"],
|
45
|
+
"type": "workingday"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"name": "端午节",
|
49
|
+
"range": ["2024-06-08", "2024-06-10"],
|
50
|
+
"type": "holiday"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"name": "中秋节",
|
54
|
+
"range": ["2024-09-14"],
|
55
|
+
"type": "workingday"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "中秋节",
|
59
|
+
"range": ["2024-09-15", "2024-09-17"],
|
60
|
+
"type": "holiday"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"name": "国庆节",
|
64
|
+
"range": ["2024-09-29"],
|
65
|
+
"type": "workingday"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"name": "国庆节",
|
69
|
+
"range": ["2024-10-01", "2024-10-07"],
|
70
|
+
"type": "holiday"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"name": "国庆节",
|
74
|
+
"range": ["2024-10-12"],
|
75
|
+
"type": "workingday"
|
76
|
+
}
|
77
|
+
]
|
@@ -0,0 +1,57 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "元旦",
|
4
|
+
"range": ["2025-01-01"],
|
5
|
+
"type": "holiday"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"name": "春节",
|
9
|
+
"range": ["2025-01-26"],
|
10
|
+
"type": "workingday"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"name": "春节",
|
14
|
+
"range": ["2025-01-28", "2025-02-04"],
|
15
|
+
"type": "holiday"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"name": "春节",
|
19
|
+
"range": ["2025-02-08"],
|
20
|
+
"type": "workingday"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"name": "清明节",
|
24
|
+
"range": ["2025-04-04", "2025-04-06"],
|
25
|
+
"type": "holiday"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"name": "劳动节",
|
29
|
+
"range": ["2025-04-27"],
|
30
|
+
"type": "workingday"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "劳动节",
|
34
|
+
"range": ["2025-05-01", "2025-05-05"],
|
35
|
+
"type": "holiday"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"name": "端午节",
|
39
|
+
"range": ["2025-05-31", "2025-06-02"],
|
40
|
+
"type": "holiday"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"name": "国庆节、中秋节",
|
44
|
+
"range": ["2025-09-28"],
|
45
|
+
"type": "workingday"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"name": "国庆节、中秋节",
|
49
|
+
"range": ["2025-10-01", "2025-10-08"],
|
50
|
+
"type": "holiday"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"name": "国庆节、中秋节",
|
54
|
+
"range": ["2025-10-11"],
|
55
|
+
"type": "workingday"
|
56
|
+
}
|
57
|
+
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chinese-holidays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bastengao
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,6 +86,8 @@ files:
|
|
86
86
|
- lib/chinese/holidays/data/2021.json
|
87
87
|
- lib/chinese/holidays/data/2022.json
|
88
88
|
- lib/chinese/holidays/data/2023.json
|
89
|
+
- lib/chinese/holidays/data/2024.json
|
90
|
+
- lib/chinese/holidays/data/2025.json
|
89
91
|
- lib/chinese/holidays/days.rb
|
90
92
|
- lib/chinese/holidays/version.rb
|
91
93
|
homepage: https://github.com/bastengao/chinese-holidays-ruby
|
@@ -107,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
109
|
- !ruby/object:Gem::Version
|
108
110
|
version: '0'
|
109
111
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
112
|
+
rubygems_version: 3.4.14
|
111
113
|
signing_key:
|
112
114
|
specification_version: 4
|
113
115
|
summary: Chinese holidays
|