chinese-holidays 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/README.md +2 -1
- data/chinese-holidays.gemspec +1 -1
- data/lib/chinese/holidays/data/2020.json +67 -0
- data/lib/chinese/holidays/version.rb +1 -1
- metadata +12 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1996f4537fd3e74f5f141ac639855fe82099027aea3a5e942e2213f3b63fc32
|
4
|
+
data.tar.gz: 9bf98b71dbfc10c30cd7761c74aaf017d09af62aff44a835ea7863217a45ffee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc354d1af7081fdcfe6779af40b51d1479c1737efaed6c9f5d01e5f00d05f14682f0b2b9cd39e0d5936660cae3db50aa54e5c44203a99aaf1ee4ba645f5f8ca7
|
7
|
+
data.tar.gz: 7c464ab5f3a0e1849abf3b6d1d96d3c1db9bdf9d89de3e6609ba021bcc8d05ae5e25f14a5ffd16720c9c46044f9df4b92a2c29563102aa61cef5627e1937b9ed
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Chinese::Holidays
|
2
|
+
|
2
3
|
[![Build Status](https://travis-ci.org/bastengao/chinese-holidays-ruby.svg?branch=master)](https://travis-ci.org/bastengao/chinese-holidays-ruby) [![Code Climate](https://codeclimate.com/github/bastengao/chinese-holidays-ruby/badges/gpa.svg)](https://codeclimate.com/github/bastengao/chinese-holidays-ruby)
|
3
4
|
|
4
5
|
提供具有中国特色的休假安排或者工作日查询。
|
@@ -39,6 +40,7 @@ end
|
|
39
40
|
|
40
41
|
## 支持
|
41
42
|
|
43
|
+
* [支持 2020 年](http://www.gov.cn/zhengce/content/2019-11/21/content_5454164.htm)
|
42
44
|
* [支持 2019 年](http://www.gov.cn/zhengce/content/2018-12/06/content_5346276.htm) [五一假期调整](http://www.gov.cn/zhengce/content/2019-03/22/content_5375877.htm)
|
43
45
|
* [支持 2018 年](http://www.gov.cn/zhengce/content/2017-11/30/content_5243579.htm)
|
44
46
|
* [支持 2017 年](http://www.gov.cn/zhengce/content/2016-12/01/content_5141603.htm)
|
@@ -52,7 +54,6 @@ end
|
|
52
54
|
|
53
55
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/chinese-holidays. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
54
56
|
|
55
|
-
|
56
57
|
## License
|
57
58
|
|
58
59
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/chinese-holidays.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_development_dependency "bundler", "
|
22
|
+
spec.add_development_dependency "bundler", [">= 1.12", "< 3.0"]
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
25
25
|
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "元旦",
|
4
|
+
"range": ["2020-01-01"],
|
5
|
+
"type": "holiday"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"name": "春节",
|
9
|
+
"range": ["2020-01-19"],
|
10
|
+
"type": "workingday"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"name": "春节",
|
14
|
+
"range": ["2020-01-24", "2020-01-30"],
|
15
|
+
"type": "holiday"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"name": "春节",
|
19
|
+
"range": ["2020-02-01"],
|
20
|
+
"type": "workingday"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"name": "清明节",
|
24
|
+
"range": ["2020-04-04", "2020-04-06"],
|
25
|
+
"type": "holiday"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"name": "劳动节",
|
29
|
+
"range": ["2020-04-26"],
|
30
|
+
"type": "workingday"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "劳动节",
|
34
|
+
"range": ["2020-05-01", "2020-05-05"],
|
35
|
+
"type": "holiday"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"name": "劳动节",
|
39
|
+
"range": ["2020-05-09"],
|
40
|
+
"type": "workingday"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"name": "端午节",
|
44
|
+
"range": ["2020-06-25", "2020-06-27"],
|
45
|
+
"type": "holiday"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"name": "端午节",
|
49
|
+
"range": ["2020-06-28"],
|
50
|
+
"type": "workingday"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"name": "中秋节/国庆节",
|
54
|
+
"range": ["2020-09-27"],
|
55
|
+
"type": "workingday"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "中秋节/国庆节",
|
59
|
+
"range": ["2020-10-01", "2020-10-08"],
|
60
|
+
"type": "holiday"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"name": "中秋节/国庆节",
|
64
|
+
"range": ["2020-10-10"],
|
65
|
+
"type": "workingday"
|
66
|
+
}
|
67
|
+
]
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chinese-holidays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bastengao
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.12'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.12'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,6 +81,7 @@ files:
|
|
75
81
|
- lib/chinese/holidays/data/2017.json
|
76
82
|
- lib/chinese/holidays/data/2018.json
|
77
83
|
- lib/chinese/holidays/data/2019.json
|
84
|
+
- lib/chinese/holidays/data/2020.json
|
78
85
|
- lib/chinese/holidays/days.rb
|
79
86
|
- lib/chinese/holidays/version.rb
|
80
87
|
homepage: https://github.com/bastengao/chinese-holidays-ruby
|
@@ -96,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
103
|
- !ruby/object:Gem::Version
|
97
104
|
version: '0'
|
98
105
|
requirements: []
|
99
|
-
rubygems_version: 3.0.
|
106
|
+
rubygems_version: 3.0.6
|
100
107
|
signing_key:
|
101
108
|
specification_version: 4
|
102
109
|
summary: Chinese holidays
|