kiriban_getter 0.1.3 → 0.1.4.alpha1

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: be2b3d4196b57180cd3ac265dcbd00385e755aac3f2485558c3a475e655bd460
4
- data.tar.gz: a17596c661c1015d5c844369bd38a2c730d5ca0bffeb02d88c020fe82c2937b7
3
+ metadata.gz: 36dac30065d102e5bbcbd077f152abf07ca5ec4eab80df73e174174c37301ca5
4
+ data.tar.gz: '083675126708c0c590a45127dd7289062033d0b177078b7a74ae04ca03f23f93'
5
5
  SHA512:
6
- metadata.gz: f8800864e08c64cc18652998912c892c3d63a173ed83cb07737c2feed99de330ef26c85d2f805739bbc8fcda31d674e164989e42e9932e2b83132b615c54a857
7
- data.tar.gz: daf073458066e7f47d0da67d8726a86543a86e5a102d52ca356f8deda5303d6f23721ac577a4f6fd647ccee734c281d0dfe861fe506dcff41bb04ff5bb233c35
6
+ metadata.gz: 4118fc07ebef4e832beb16a3e83e2c3c212b1b1326c7f4589f198ceb37ba46c60b5757bae2ce3c5d3ceb83ca50d464d7db76f8a059d8cae971f4ccf8817ec2dc
7
+ data.tar.gz: a33af78b28951c8f1f3ba54b4e612a0f7ca80268e4ca80f76db8377b4c04c192b9ea644df280185886396f8343e7c0bf656501ebaa367932f05ad80beddc6d9d
@@ -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/kiriban_getter
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/kiriban_getter
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 }}
@@ -18,20 +18,20 @@ jobs:
18
18
 
19
19
  steps:
20
20
  - name: Harden Runner
21
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
21
+ uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
22
22
  with:
23
23
  egress-policy: audit
24
24
 
25
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26
26
 
27
27
  - name: Set up Ruby
28
- uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
28
+ uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
29
29
  with:
30
30
  bundler-cache: true
31
31
  ruby-version: ruby
32
32
 
33
33
  - name: Publish to RubyGems
34
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
34
+ uses: rubygems/release-gem@052cc82692552de3ef2b81fd670e41d13cba8092 # v1.4.0
35
35
 
36
36
  - name: Create GitHub release
37
37
  run: |
@@ -0,0 +1,11 @@
1
+ name: Publish gem to rubygems.org (test)
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/kiriban_getter
11
+ gem-name: kiriban_getter
@@ -32,54 +32,86 @@ jobs:
32
32
  - "3.2"
33
33
  - "3.3"
34
34
  - "3.4"
35
+ - "4.0"
36
+
37
+ include:
38
+ # FIXME: Workaround for "ArgumentError: wrong number of arguments (given 4, expected 1)"
39
+ # c.f. https://github.com/ruby/setup-ruby#rubygems
40
+ - ruby: "2.5"
41
+ rubygems: "3.0.0"
35
42
 
36
43
  steps:
37
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
44
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
45
+
46
+ # FIXME: Workaround for error in `bundle clean`
47
+ # /opt/hostedtoolcache/Ruby/2.5.9/x64/bin/bundle clean
48
+ # Cleaning all the gems on your system is dangerous! If you're sure you want to
49
+ # remove every system gem not in this bundle, run `bundle clean --force`.
50
+ - name: export BUNDLE_PATH
51
+ run: echo "BUNDLE_PATH=vendor/bundle" >> $GITHUB_ENV
52
+ if: matrix.ruby == '2.5'
38
53
 
39
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
54
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
40
55
  with:
41
56
  ruby-version: ${{ matrix.ruby }}
42
57
  bundler-cache: true
58
+ rubygems: ${{ matrix.rubygems || 'default' }}
43
59
 
44
- - run: bundle update --jobs $(nproc) --retry 3
60
+ - run: bundle update --all --jobs $(nproc) --retry 3
45
61
 
46
- - name: Setup Code Climate Test Reporter
47
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
48
- with:
49
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
50
- command: before-build
62
+ - run: bundle exec rspec
63
+
64
+ - name: Slack Notification (not success)
65
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
66
+ if: "! success()"
51
67
  continue-on-error: true
68
+ with:
69
+ status: ${{ job.status }}
70
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
71
+ matrix: ${{ toJson(matrix) }}
52
72
 
53
- - run: bundle exec rspec
73
+ yard:
74
+ runs-on: ubuntu-latest
54
75
 
55
- - name: Teardown Code Climate Test Reporter
56
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
76
+ steps:
77
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
78
+
79
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
57
80
  with:
58
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
59
- command: after-build
60
- if: always()
61
- continue-on-error: true
81
+ ruby-version: ruby
82
+ bundler-cache: true
83
+
84
+ - name: bundle update
85
+ run: |
86
+ set -xe
87
+ bundle config path vendor/bundle
88
+ bundle update --all --jobs $(nproc) --retry 3
89
+
90
+ - name: yard generating test
91
+ run: |
92
+ set -xe
93
+ bundle exec yard
94
+ ls -ld doc/
62
95
 
63
96
  - name: Slack Notification (not success)
64
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
97
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
65
98
  if: "! success()"
66
99
  continue-on-error: true
67
100
  with:
68
101
  status: ${{ job.status }}
69
102
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
70
- matrix: ${{ toJson(matrix) }}
71
103
 
72
- notify:
104
+ all-pass:
105
+ if: always()
106
+
73
107
  needs:
74
108
  - test
109
+ - yard
75
110
 
76
- runs-on: ubuntu-latest
111
+ runs-on: ubuntu-slim
77
112
 
78
113
  steps:
79
- - name: Slack Notification (success)
80
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
81
- if: always()
82
- continue-on-error: true
114
+ - name: check dependent jobs
115
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
83
116
  with:
84
- status: ${{ job.status }}
85
- webhook-url: ${{ secrets.SLACK_WEBHOOK }}
117
+ jobs: ${{ toJSON(needs) }}
data/README.md CHANGED
@@ -5,7 +5,7 @@ Add `#kiriban?`, `#kuraiban?` and `#zorome?` methods to `Integer`
5
5
 
6
6
  [![Gem Version](https://badge.fury.io/rb/kiriban_getter.svg)](https://badge.fury.io/rb/kiriban_getter)
7
7
  [![test](https://github.com/sue445/kiriban_getter/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/kiriban_getter/actions/workflows/test.yml)
8
- [![Code Climate](https://codeclimate.com/github/sue445/kiriban_getter/badges/gpa.svg)](https://codeclimate.com/github/sue445/kiriban_getter)
8
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/kiriban_getter/maintainability.svg)](https://qlty.sh/gh/sue445/projects/kiriban_getter)
9
9
  [![Coverage Status](https://coveralls.io/repos/github/sue445/kiriban_getter/badge.svg?branch=master)](https://coveralls.io/github/sue445/kiriban_getter?branch=master)
10
10
 
11
11
  ## Requirements
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "bundler", ">= 1.12"
32
32
  spec.add_development_dependency "coveralls_reborn"
33
33
  spec.add_development_dependency "rake", ">= 10.0"
34
+ spec.add_development_dependency "rdoc"
34
35
  spec.add_development_dependency "rspec", "~> 3.0"
35
36
  spec.add_development_dependency "rspec-parameterized"
36
37
  spec.add_development_dependency "simplecov"
@@ -1,3 +1,3 @@
1
1
  module KiribanGetter
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4.alpha1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiriban_getter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -65,6 +65,20 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '10.0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: rdoc
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
68
82
  - !ruby/object:Gem::Dependency
69
83
  name: rspec
70
84
  requirement: !ruby/object:Gem::Requirement
@@ -159,8 +173,11 @@ files:
159
173
  - ".codeclimate.yml"
160
174
  - ".coveralls.yml"
161
175
  - ".github/dependabot.yml"
176
+ - ".github/release.yml"
177
+ - ".github/workflows/dependabot-manager.yml"
162
178
  - ".github/workflows/pages.yml"
163
179
  - ".github/workflows/release_gem.yml"
180
+ - ".github/workflows/release_gem_test.yml"
164
181
  - ".github/workflows/test.yml"
165
182
  - ".gitignore"
166
183
  - ".rspec"
@@ -199,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
216
  - !ruby/object:Gem::Version
200
217
  version: '0'
201
218
  requirements: []
202
- rubygems_version: 3.6.7
219
+ rubygems_version: 4.0.16
203
220
  specification_version: 4
204
221
  summary: Check number whether kiriban
205
222
  test_files: []