chinese-holidays 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f51e0982897124a0d8af879e905c95864f94caa9513d3aa75e66020c1933068e
4
- data.tar.gz: c42334ce5cf85c8d1a887825ab4208f335577e355e42ebfc027d2414aa99d282
3
+ metadata.gz: 5c211cc2b9e8f4286323cd8a71e3c04854ad0bb083f9cebf3a81834d7a0a7eab
4
+ data.tar.gz: 9b645c9a508301faff56f7ae18ea70d7b63c7bc4f18d83ffbf26f0557bfd871e
5
5
  SHA512:
6
- metadata.gz: aa6059731161c6650f24aa177e4a979562128c6a8f781d49527e5a654136c58cc4885895a85b2acc540dae54112fd3e7525422c25749f578eb15c54b06e5fb81
7
- data.tar.gz: c3a70ad8dd15642c52c96ce812efedfd67eed82dd798af485bc2d5d5db277b46ed572c81753ce05cd1fc6a79b43860d65af832690c9f72d078d18e68dcc16cb1
6
+ metadata.gz: 2322c5f19ec41a54333b7d1949bde508ad0053ac5fa1cf472eac2dcd0933757a79a1cb00fdd0d7d995ccc2cdb4c0b4f68208c3283f265f1965e878cc1520b7df
7
+ data.tar.gz: 493bab690cebacd7297e9b0c147c82064fff05e0a443bc8e0bf3d7d9018540d72794c5c9ad913a19e392d2fbb7517cd7135e533a14bc9e4192f088fe1d14419e
@@ -0,0 +1,38 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ "master" ]
13
+ pull_request:
14
+ branches: [ "master" ]
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ test:
21
+
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ ruby-version: ['2.6', '2.7', '3.0', '3.1']
26
+
27
+ steps:
28
+ - uses: actions/checkout@v3
29
+ - name: Set up Ruby
30
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
32
+ # uses: ruby/setup-ruby@v1
33
+ uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
34
+ with:
35
+ ruby-version: ${{ matrix.ruby-version }}
36
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37
+ - name: Run tests
38
+ run: bundle exec rake
data/.travis.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 3.1.0
5
+ - 3.0.0
6
+ - 2.7.0
4
7
  - 2.6.0
5
8
  - 2.5.0
6
9
  - 2.4.0
7
- - 2.3.1
8
- - 2.2.4
9
10
  before_install: gem install bundler -v 1.12.5
data/README.md CHANGED
@@ -1,6 +1,6 @@
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
+ [![Ruby](https://github.com/bastengao/chinese-holidays-ruby/actions/workflows/ruby.yml/badge.svg)](https://github.com/bastengao/chinese-holidays-ruby/actions/workflows/ruby.yml) [![Code Climate](https://codeclimate.com/github/bastengao/chinese-holidays-ruby/badges/gpa.svg)](https://codeclimate.com/github/bastengao/chinese-holidays-ruby)
4
4
 
5
5
  提供具有中国特色的休假安排或者工作日查询。
6
6
 
@@ -40,6 +40,8 @@ end
40
40
 
41
41
  ## 支持
42
42
 
43
+ * [支持 2023 年](http://www.gov.cn/zhengce/content/2022-12/08/content_5730844.htm)
44
+ * [支持 2022 年](http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm)
43
45
  * [支持 2021 年](http://www.gov.cn/zhengce/content/2020-11/25/content_5564127.htm)
44
46
  * [支持 2020 年](http://www.gov.cn/zhengce/content/2019-11/21/content_5454164.htm)
45
47
  * [支持 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)
@@ -0,0 +1,62 @@
1
+ [
2
+ {
3
+ "name": "元旦",
4
+ "range": ["2022-01-01", "2022-01-03"],
5
+ "type": "holiday"
6
+ },
7
+ {
8
+ "name": "春节",
9
+ "range": ["2022-01-29", "2022-01-30"],
10
+ "type": "workingday"
11
+ },
12
+ {
13
+ "name": "春节",
14
+ "range": ["2022-01-31", "2022-02-06"],
15
+ "type": "holiday"
16
+ },
17
+ {
18
+ "name": "清明节",
19
+ "range": ["2022-04-02"],
20
+ "type": "workingday"
21
+ },
22
+ {
23
+ "name": "清明节",
24
+ "range": ["2022-04-03", "2022-04-05"],
25
+ "type": "holiday"
26
+ },
27
+ {
28
+ "name": "劳动节",
29
+ "range": ["2022-04-24"],
30
+ "type": "workingday"
31
+ },
32
+ {
33
+ "name": "劳动节",
34
+ "range": ["2022-04-30", "2022-05-04"],
35
+ "type": "holiday"
36
+ },
37
+ {
38
+ "name": "劳动节",
39
+ "range": ["2022-05-07"],
40
+ "type": "workingday"
41
+ },
42
+ {
43
+ "name": "端午节",
44
+ "range": ["2022-06-03", "2022-06-05"],
45
+ "type": "holiday"
46
+ },
47
+ {
48
+ "name": "中秋节",
49
+ "range": ["2022-09-10", "2022-09-12"],
50
+ "type": "holiday"
51
+ },
52
+ {
53
+ "name": "国庆节",
54
+ "range": ["2022-10-01", "2022-10-07"],
55
+ "type": "holiday"
56
+ },
57
+ {
58
+ "name": "国庆节",
59
+ "range": ["2022-10-08", "2022-10-09"],
60
+ "type": "workingday"
61
+ }
62
+ ]
@@ -0,0 +1,57 @@
1
+ [
2
+ {
3
+ "name": "元旦",
4
+ "range": ["2022-12-31", "2023-01-02"],
5
+ "type": "holiday"
6
+ },
7
+ {
8
+ "name": "春节",
9
+ "range": ["2023-01-21", "2023-01-27"],
10
+ "type": "holiday"
11
+ },
12
+ {
13
+ "name": "春节",
14
+ "range": ["2023-01-28", "2023-01-29"],
15
+ "type": "workingday"
16
+ },
17
+ {
18
+ "name": "清明节",
19
+ "range": ["2023-04-05"],
20
+ "type": "holiday"
21
+ },
22
+ {
23
+ "name": "劳动节",
24
+ "range": ["2023-04-23"],
25
+ "type": "workingday"
26
+ },
27
+ {
28
+ "name": "劳动节",
29
+ "range": ["2023-04-29", "2023-05-03"],
30
+ "type": "holiday"
31
+ },
32
+ {
33
+ "name": "劳动节",
34
+ "range": ["2023-05-06"],
35
+ "type": "workingday"
36
+ },
37
+ {
38
+ "name": "端午节",
39
+ "range": ["2023-06-22", "2023-06-24"],
40
+ "type": "holiday"
41
+ },
42
+ {
43
+ "name": "端午节",
44
+ "range": ["2023-06-25"],
45
+ "type": "workingday"
46
+ },
47
+ {
48
+ "name": "中秋节/国庆节",
49
+ "range": ["2023-09-29", "2023-10-06"],
50
+ "type": "holiday"
51
+ },
52
+ {
53
+ "name": "中秋节/国庆节",
54
+ "range": ["2023-10-07", "2023-10-08"],
55
+ "type": "workingday"
56
+ }
57
+ ]
@@ -1,5 +1,5 @@
1
1
  module Chinese
2
2
  module Holidays
3
- VERSION = "0.6.0"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
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.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bastengao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-24 00:00:00.000000000 Z
11
+ date: 2022-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,6 +65,7 @@ executables: []
65
65
  extensions: []
66
66
  extra_rdoc_files: []
67
67
  files:
68
+ - ".github/workflows/ruby.yml"
68
69
  - ".gitignore"
69
70
  - ".rspec"
70
71
  - ".travis.yml"
@@ -83,6 +84,8 @@ files:
83
84
  - lib/chinese/holidays/data/2019.json
84
85
  - lib/chinese/holidays/data/2020.json
85
86
  - lib/chinese/holidays/data/2021.json
87
+ - lib/chinese/holidays/data/2022.json
88
+ - lib/chinese/holidays/data/2023.json
86
89
  - lib/chinese/holidays/days.rb
87
90
  - lib/chinese/holidays/version.rb
88
91
  homepage: https://github.com/bastengao/chinese-holidays-ruby
@@ -104,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
107
  - !ruby/object:Gem::Version
105
108
  version: '0'
106
109
  requirements: []
107
- rubygems_version: 3.0.6
110
+ rubygems_version: 3.2.3
108
111
  signing_key:
109
112
  specification_version: 4
110
113
  summary: Chinese holidays