chinese-holidays 0.7.0 → 0.9.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: a55d79b5453beafc3e19d2ca9ba928651db6c3f91729a0a9063ca20cdb6ac287
4
- data.tar.gz: 9b735204c43be52bf5ce655d4afeca3c8b56918354be43b42dca31bd0720ba68
3
+ metadata.gz: 4dcc3e18d564f777e8baf69423e016c57e97c41174457f7b3968b2e6d9181697
4
+ data.tar.gz: e7f126e0199096ea0f533dd6ca6b70364a8d37410bb03730e5ece634385cfbd3
5
5
  SHA512:
6
- metadata.gz: 7df4d9f7fd219441ce2e2c201488a162673ad9c61dcbe5a374fd88fb871a6e2ac2410ea75a9a1c415aa1bdbc2e81cb86057f9c1e382172bbe26e66985697d846
7
- data.tar.gz: 3ee2542aa62c804df6803f82eec7ffa4f4f13159fd28d93a36d600c36fd4f89b13cb8bdecc81d282b73c8220d74e9115a00152594b479e4403d6af2c6575c601
6
+ metadata.gz: bed1c89ff44638d0144a98db51bdae3bb3d984550875d21e8f228f75a9fb3ce51f2daaa6a25a6b0788edfe04d71293851e821edaa44ab7bc31630ce8b05aed43
7
+ data.tar.gz: 4b05fdabd8772a0e7e0bd4dbc80c67d5b1b4af51bed0472b1eb1202c16dc8b79f145fa4a8f9b97f68670e36cadd2712c39df07daa26a59bb11a7bebdcfd4a416
@@ -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
+ * [支持 2024 年](https://www.gov.cn/zhengce/content/202310/content_6911527.htm)
44
+ * [支持 2023 年](http://www.gov.cn/zhengce/content/2022-12/08/content_5730844.htm)
43
45
  * [支持 2022 年](http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm)
44
46
  * [支持 2021 年](http://www.gov.cn/zhengce/content/2020-11/25/content_5564127.htm)
45
47
  * [支持 2020 年](http://www.gov.cn/zhengce/content/2019-11/21/content_5454164.htm)
@@ -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
+ ]
@@ -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
+ ]
@@ -1,5 +1,5 @@
1
1
  module Chinese
2
2
  module Holidays
3
- VERSION = "0.7.0"
3
+ VERSION = "0.9.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.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bastengao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2023-11-08 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"
@@ -84,6 +85,8 @@ files:
84
85
  - lib/chinese/holidays/data/2020.json
85
86
  - lib/chinese/holidays/data/2021.json
86
87
  - lib/chinese/holidays/data/2022.json
88
+ - lib/chinese/holidays/data/2023.json
89
+ - lib/chinese/holidays/data/2024.json
87
90
  - lib/chinese/holidays/days.rb
88
91
  - lib/chinese/holidays/version.rb
89
92
  homepage: https://github.com/bastengao/chinese-holidays-ruby
@@ -105,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
108
  - !ruby/object:Gem::Version
106
109
  version: '0'
107
110
  requirements: []
108
- rubygems_version: 3.2.3
111
+ rubygems_version: 3.4.14
109
112
  signing_key:
110
113
  specification_version: 4
111
114
  summary: Chinese holidays