chinese-holidays 0.7.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: a55d79b5453beafc3e19d2ca9ba928651db6c3f91729a0a9063ca20cdb6ac287
4
- data.tar.gz: 9b735204c43be52bf5ce655d4afeca3c8b56918354be43b42dca31bd0720ba68
3
+ metadata.gz: 5c211cc2b9e8f4286323cd8a71e3c04854ad0bb083f9cebf3a81834d7a0a7eab
4
+ data.tar.gz: 9b645c9a508301faff56f7ae18ea70d7b63c7bc4f18d83ffbf26f0557bfd871e
5
5
  SHA512:
6
- metadata.gz: 7df4d9f7fd219441ce2e2c201488a162673ad9c61dcbe5a374fd88fb871a6e2ac2410ea75a9a1c415aa1bdbc2e81cb86057f9c1e382172bbe26e66985697d846
7
- data.tar.gz: 3ee2542aa62c804df6803f82eec7ffa4f4f13159fd28d93a36d600c36fd4f89b13cb8bdecc81d282b73c8220d74e9115a00152594b479e4403d6af2c6575c601
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,7 @@ end
40
40
 
41
41
  ## 支持
42
42
 
43
+ * [支持 2023 年](http://www.gov.cn/zhengce/content/2022-12/08/content_5730844.htm)
43
44
  * [支持 2022 年](http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm)
44
45
  * [支持 2021 年](http://www.gov.cn/zhengce/content/2020-11/25/content_5564127.htm)
45
46
  * [支持 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
+ ]
@@ -1,5 +1,5 @@
1
1
  module Chinese
2
2
  module Holidays
3
- VERSION = "0.7.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.7.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: 2021-11-04 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"
@@ -84,6 +85,7 @@ 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
87
89
  - lib/chinese/holidays/days.rb
88
90
  - lib/chinese/holidays/version.rb
89
91
  homepage: https://github.com/bastengao/chinese-holidays-ruby