google_holiday_calendar 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c6644bf7ce3f457b67ab609c1cb0b4040a48e2c1efb08c1cb40c556d58505da
4
- data.tar.gz: d418905f0bd78187cbc90f943aa55316334cbac93d4cea4d461eac2200bee5d5
3
+ metadata.gz: 73ceacac10ffcff4a3306930f104a6b92d6852a2553dd97fd1f8d739c2d8ce21
4
+ data.tar.gz: 2d06b6fbfd199946a1f820b90bafbb423a37bf6349eddc61caaab6979c0845fe
5
5
  SHA512:
6
- metadata.gz: 8ce89ff3cdaedb0a3c111979ee51c252d52999f24f88c37f7656c76c7fd1cddabe290c6f0cae8bcb9c417990a62eea649cfcad47a2124fbfe942ed49caf20792
7
- data.tar.gz: '089b3ca6bde0678af5d12310776d95ac2548d56eec0cee2e205fb3e04acd05b070aa1e97bbc6166b40caca49b78f334ef435505de989c9989ee7d18f9a2680ae'
6
+ metadata.gz: 13d66b42cc9c7332a09e47ef2a37fad4c8368d0bd85c8db845389e239ab309d7fb83cb43763a3a54816fc378f67f07838559bc9b503c3aa549233ed6e8e4008d
7
+ data.tar.gz: 8e75f08d873f4c196224a1a7aaf7cb5f7065ad68126d22aad35a0c6b8c8e0e2dfe4afea75b5eb450bbda83019671ac7215b1fb48e69c225dca2e20beeb142316
@@ -2,11 +2,19 @@
2
2
  version: 2
3
3
 
4
4
  updates:
5
+ ###########################################################
6
+ # NOTE: following sections are auto generated. DO NOT EDIT!
7
+ ###########################################################
5
8
  - package-ecosystem: github-actions
6
9
  directory: /
7
10
  schedule:
8
- interval: weekly
9
- cooldown:
10
- default-days: 7
11
+ interval: monthly
12
+ time: "05:00"
13
+ timezone: Asia/Tokyo
11
14
  assignees:
12
15
  - sue445
16
+ cooldown:
17
+ default-days: 7
18
+ exclude:
19
+ - ruby/setup-ruby
20
+ ###########################################################
@@ -0,0 +1,31 @@
1
+ # ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
2
+
3
+ changelog:
4
+ exclude:
5
+ labels:
6
+ - chore
7
+
8
+ categories:
9
+ - title: ":bomb: Breaking Changes"
10
+ labels:
11
+ - breaking change
12
+
13
+ - title: ":lock: Security Fix"
14
+ labels:
15
+ - security
16
+
17
+ - title: ":rocket: Features"
18
+ labels:
19
+ - enhancement
20
+
21
+ - title: ":bug: Bug Fixes"
22
+ labels:
23
+ - bug
24
+
25
+ - title: ":dependabot: Dependency updates"
26
+ labels:
27
+ - dependencies
28
+
29
+ - title: ":pencil: Other Changes"
30
+ labels:
31
+ - "*"
@@ -0,0 +1,28 @@
1
+ name: dependabot-manager
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - synchronize # PR branch is rebased
8
+
9
+ jobs:
10
+ dependabot-auto-merge:
11
+ uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
12
+ with:
13
+ repo-name: sue445/google_holiday_calendar
14
+ secrets:
15
+ # TODO: Set secrets to Dependabot secrets
16
+ app-id: ${{ secrets.GH_APP_ID }}
17
+ private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
19
+
20
+ dependabot-security-alert:
21
+ uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
22
+ with:
23
+ repo-name: sue445/google_holiday_calendar
24
+ secrets:
25
+ # TODO: Set secrets to Dependabot secrets
26
+ app-id: ${{ secrets.GH_APP_ID }}
27
+ private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
28
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -1,59 +1,18 @@
1
- # Simple workflow for deploying static content to GitHub Pages
2
- name: Deploy static content to Pages
1
+ name: Deploy yard to Pages
3
2
 
4
3
  on:
5
- # Runs on pushes targeting the default branch
6
4
  push:
7
5
  branches:
8
6
  - master
9
-
10
- # Allows you to run this workflow manually from the Actions tab
11
7
  workflow_dispatch:
12
8
 
13
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
9
  permissions:
15
10
  contents: read
16
11
  pages: write
17
12
  id-token: write
18
13
 
19
- # Allow one concurrent deployment
20
- concurrency:
21
- group: "pages"
22
- cancel-in-progress: true
23
-
24
14
  jobs:
25
- # Single deploy job since we're just deploying
26
15
  deploy:
27
- environment:
28
- name: github-pages
29
- url: ${{ steps.deployment.outputs.page_url }}
30
- runs-on: ubuntu-latest
31
- steps:
32
- - name: Checkout
33
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
34
-
35
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
36
- with:
37
- ruby-version: ruby
38
- bundler-cache: true
39
-
40
- - run: bundle exec yard
41
-
42
- - name: Setup Pages
43
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
44
- - name: Upload artifact
45
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
46
- with:
47
- # Upload entire repository
48
- path: './doc'
49
- - name: Deploy to GitHub Pages
50
- id: deployment
51
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
52
-
53
- - name: Slack Notification (not success)
54
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
55
- if: "! success()"
56
- continue-on-error: true
57
- with:
58
- status: ${{ job.status }}
59
- webhook-url: ${{ secrets.SLACK_WEBHOOK }}
16
+ uses: sue445/workflows/.github/workflows/pages-yard.yml@main
17
+ secrets:
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -5,37 +5,10 @@ on:
5
5
 
6
6
  jobs:
7
7
  release:
8
- if: github.repository == 'sue445/google_holiday_calendar'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/google_holiday_calendar
14
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/google_holiday_calendar
11
+ gem-name: google_holiday_calendar
15
12
  permissions:
16
13
  contents: write
17
14
  id-token: write
18
-
19
- steps:
20
- - name: Harden Runner
21
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22
- with:
23
- egress-policy: audit
24
-
25
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
-
27
- - name: Set up Ruby
28
- uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
29
- with:
30
- bundler-cache: true
31
- ruby-version: ruby
32
-
33
- - name: Publish to RubyGems
34
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
35
-
36
- - name: Create GitHub release
37
- run: |
38
- tag_name="$(git describe --tags --abbrev=0)"
39
- gh release create "${tag_name}" --verify-tag --generate-notes
40
- env:
41
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -34,21 +34,37 @@ jobs:
34
34
  - "3.2"
35
35
  - "3.3"
36
36
  - "3.4"
37
+ - "4.0"
38
+
39
+ include:
40
+ # FIXME: Workaround for "ArgumentError: wrong number of arguments (given 4, expected 1)"
41
+ # c.f. https://github.com/ruby/setup-ruby#rubygems
42
+ - ruby: "2.5"
43
+ rubygems: "3.0.0"
37
44
 
38
45
  steps:
39
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
46
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
47
+
48
+ # FIXME: Workaround for error in `bundle clean`
49
+ # /opt/hostedtoolcache/Ruby/2.5.9/x64/bin/bundle clean
50
+ # Cleaning all the gems on your system is dangerous! If you're sure you want to
51
+ # remove every system gem not in this bundle, run `bundle clean --force`.
52
+ - name: export BUNDLE_PATH
53
+ run: echo "BUNDLE_PATH=vendor/bundle" >> $GITHUB_ENV
54
+ if: matrix.ruby == '2.5'
40
55
 
41
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
56
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
42
57
  with:
43
58
  ruby-version: ${{ matrix.ruby }}
44
59
  bundler-cache: true
60
+ rubygems: ${{ matrix.rubygems || 'default' }}
45
61
 
46
- - run: bundle update --jobs $(nproc) --retry 3
62
+ - run: bundle update --all --jobs $(nproc) --retry 3
47
63
 
48
64
  - run: bundle exec rspec
49
65
 
50
66
  - name: Slack Notification (not success)
51
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
67
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
52
68
  if: "! success()"
53
69
  continue-on-error: true
54
70
  with:
@@ -56,17 +72,48 @@ jobs:
56
72
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
57
73
  matrix: ${{ toJson(matrix) }}
58
74
 
59
- notify:
60
- needs:
61
- - test
62
-
75
+ yard:
63
76
  runs-on: ubuntu-latest
64
77
 
65
78
  steps:
66
- - name: Slack Notification (success)
67
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
68
- if: always()
79
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
80
+
81
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
82
+ with:
83
+ ruby-version: ruby
84
+ bundler-cache: true
85
+
86
+ - name: bundle update
87
+ run: |
88
+ set -xe
89
+ bundle config path vendor/bundle
90
+ bundle update --all --jobs $(nproc) --retry 3
91
+
92
+ - name: yard generating test
93
+ run: |
94
+ set -xe
95
+ bundle exec yard
96
+ ls -ld doc/
97
+
98
+ - name: Slack Notification (not success)
99
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
100
+ if: "! success()"
69
101
  continue-on-error: true
70
102
  with:
71
103
  status: ${{ job.status }}
72
104
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
105
+
106
+ all-pass:
107
+ if: always()
108
+
109
+ needs:
110
+ - test
111
+ - yard
112
+
113
+ runs-on: ubuntu-slim
114
+
115
+ steps:
116
+ - name: check dependent jobs
117
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
118
+ with:
119
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.3...master)
2
+ [full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.4...master)
3
+
4
+ ## [v0.1.4](https://github.com/sue445/google_holiday_calendar/releases/tag/v0.1.4)
5
+ [full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.3...v0.1.4)
6
+
7
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
8
+ * https://github.com/sue445/google_holiday_calendar/pull/116
3
9
 
4
10
  ## [v0.1.3](https://github.com/sue445/google_holiday_calendar/releases/tag/v0.1.3)
5
11
  [full changelog](http://github.com/sue445/google_holiday_calendar/compare/v0.1.2...v0.1.3)
data/Gemfile CHANGED
@@ -52,3 +52,7 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
52
52
  gem "term-ansicolor", "< 1.9.0"
53
53
  end
54
54
 
55
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.2.0")
56
+ # NOTE: i18n 1.15.0+ requires Ruby 3.2+
57
+ gem "i18n", "< 1.15.0"
58
+ end
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/google_holiday_calendar.png)](http://badge.fury.io/rb/google_holiday_calendar)
4
4
  [![test](https://github.com/sue445/google_holiday_calendar/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/google_holiday_calendar/actions/workflows/test.yml)
5
5
  [![Coverage Status](https://coveralls.io/repos/sue445/google_holiday_calendar/badge.png)](https://coveralls.io/r/sue445/google_holiday_calendar)
6
- [![Code Climate](https://codeclimate.com/github/sue445/google_holiday_calendar.png)](https://codeclimate.com/github/sue445/google_holiday_calendar)
6
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/google_holiday_calendar/maintainability.svg)](https://qlty.sh/gh/sue445/projects/google_holiday_calendar)
7
7
 
8
8
  Get holidays via Google Calendar.
9
9
 
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "coveralls_reborn"
37
37
  spec.add_development_dependency "delorean"
38
38
  spec.add_development_dependency "rake"
39
+ spec.add_development_dependency "rdoc"
39
40
  spec.add_development_dependency "rspec"
40
41
  spec.add_development_dependency "rspec-collection_matchers"
41
42
  spec.add_development_dependency "rspec-its"
@@ -1,3 +1,3 @@
1
1
  module GoogleHolidayCalendar
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_holiday_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -79,6 +79,20 @@ dependencies:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: rdoc
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
82
96
  - !ruby/object:Gem::Dependency
83
97
  name: rspec
84
98
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +187,8 @@ extra_rdoc_files: []
173
187
  files:
174
188
  - ".coveralls.yml"
175
189
  - ".github/dependabot.yml"
190
+ - ".github/release.yml"
191
+ - ".github/workflows/dependabot-manager.yml"
176
192
  - ".github/workflows/pages.yml"
177
193
  - ".github/workflows/release_gem.yml"
178
194
  - ".github/workflows/test.yml"
@@ -212,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
228
  - !ruby/object:Gem::Version
213
229
  version: '0'
214
230
  requirements: []
215
- rubygems_version: 3.6.7
231
+ rubygems_version: 4.0.16
216
232
  specification_version: 4
217
233
  summary: Get holidays via Google Calendar.
218
234
  test_files: []