faker-precure 0.0.7 → 0.0.8

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: 558e9da4afd0d66b58fa83a640d1695fe48f14b5d464ba31e1598257f1db2107
4
- data.tar.gz: 2de45f42fb14a99e1b630a9915984f51903c1a54c460808b01b167091c1f4135
3
+ metadata.gz: d59b75ff73a77541cff1c7352556f11a0eca2726b73f7fc48b42a87d7a5c32b8
4
+ data.tar.gz: 23d545e9c55bc789784e500ac5216639cf4b46854703b3b0e9498596f2535ad8
5
5
  SHA512:
6
- metadata.gz: d67bf2128a60934119fdc025ecc78486d3f1e7642e02e561da0bcac5817910ba0ac927f26cd72ca26b667f65459ab0c1cdf5b8a9077bbbeba5dc636f5758d8ef
7
- data.tar.gz: 1f60ea20dd82a13a71e6e216c9e8b0239877b8ca07c2ea0283798b3400ddda91cec50a729281b1e714bfaca27413d1a3f99227ececb1a95378481bb13f1d8002
6
+ metadata.gz: b2eee9bb3567ba4c7711dd8e5523a78ff2f9837d7bb790a2e627f406b288cb13064758529ec50dba9d0ce5e3bda724b8a13e92c1baf87e712407cb79aecb71eb
7
+ data.tar.gz: d1bb0f91a2812f9d1d91fb48a72cc6be66a2f6ad33c31da28e8e26f83540102074401272ec05e548022556be8da02a91b8f9f4312585f5431fe9625b131c5060
@@ -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/faker-precure
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/faker-precure
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/faker-precure'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/faker-precure
14
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/faker-precure
11
+ gem-name: faker-precure
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 }}
@@ -35,21 +35,22 @@ jobs:
35
35
  - "3.2"
36
36
  - "3.3"
37
37
  - "3.4"
38
+ - "4.0"
38
39
 
39
40
  steps:
40
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
41
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
41
42
 
42
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
43
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
43
44
  with:
44
45
  ruby-version: ${{ matrix.ruby }}
45
46
  bundler-cache: true
46
47
 
47
- - run: bundle update --jobs $(nproc) --retry 3
48
+ - run: bundle update --all --jobs $(nproc) --retry 3
48
49
 
49
50
  - run: bundle exec rspec
50
51
 
51
52
  - name: Slack Notification (not success)
52
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
53
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
53
54
  if: "! success()"
54
55
  continue-on-error: true
55
56
  with:
@@ -57,17 +58,48 @@ jobs:
57
58
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
58
59
  matrix: ${{ toJson(matrix) }}
59
60
 
60
- notify:
61
- needs:
62
- - test
63
-
61
+ yard:
64
62
  runs-on: ubuntu-latest
65
63
 
66
64
  steps:
67
- - name: Slack Notification (success)
68
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
69
- if: always()
65
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
66
+
67
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
68
+ with:
69
+ ruby-version: ruby
70
+ bundler-cache: true
71
+
72
+ - name: bundle update
73
+ run: |
74
+ set -xe
75
+ bundle config path vendor/bundle
76
+ bundle update --all --jobs $(nproc) --retry 3
77
+
78
+ - name: yard generating test
79
+ run: |
80
+ set -xe
81
+ bundle exec yard
82
+ ls -ld doc/
83
+
84
+ - name: Slack Notification (not success)
85
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
86
+ if: "! success()"
70
87
  continue-on-error: true
71
88
  with:
72
89
  status: ${{ job.status }}
73
90
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
91
+
92
+ all-pass:
93
+ if: always()
94
+
95
+ needs:
96
+ - test
97
+ - yard
98
+
99
+ runs-on: ubuntu-slim
100
+
101
+ steps:
102
+ - name: check dependent jobs
103
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
104
+ with:
105
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,10 +1,19 @@
1
1
  # Changelog
2
2
  ## master
3
- [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.7...master)
3
+ [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.8...master)
4
+
5
+ ## [0.0.8](https://github.com/sue445/faker-precure/releases/tag/v0.0.8)
6
+ [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.7...v0.0.8)
7
+
8
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
9
+ * https://github.com/sue445/faker-precure/pull/98
4
10
 
5
11
  ## [0.0.7](https://github.com/sue445/faker-precure/releases/tag/v0.0.7)
6
12
  [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.6...v0.0.7)
7
13
 
14
+ * Release gem from GitHub Actions
15
+ * https://github.com/sue445/faker-precure/pull/58
16
+
8
17
  ## v0.0.6
9
18
  [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.5...v0.0.6)
10
19
 
data/Gemfile CHANGED
@@ -7,3 +7,13 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
7
7
  # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
8
8
  gem "term-ansicolor", "< 1.9.0"
9
9
  end
10
+
11
+ if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("4.0.0")
12
+ # rdoc is bundled gem since ruby 4.0
13
+ gem "rdoc"
14
+ end
15
+
16
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.2.0")
17
+ # NOTE: i18n 1.15.0+ requires Ruby 3.2+
18
+ gem "i18n", "< 1.15.0"
19
+ end
data/README.md CHANGED
@@ -3,7 +3,7 @@ Test data generator using Precure(Pretty Cure)
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/faker-precure.svg)](http://badge.fury.io/rb/faker-precure)
5
5
  [![test](https://github.com/sue445/faker-precure/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/faker-precure/actions/workflows/test.yml)
6
- [![Code Climate](https://codeclimate.com/github/sue445/faker-precure.png)](https://codeclimate.com/github/sue445/faker-precure)
6
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/faker-precure/maintainability.svg)](https://qlty.sh/gh/sue445/projects/faker-precure)
7
7
  [![Coverage Status](https://coveralls.io/repos/sue445/faker-precure/badge.png)](https://coveralls.io/r/sue445/faker-precure)
8
8
 
9
9
  ## Installation
@@ -1,5 +1,5 @@
1
1
  module Faker
2
2
  module Precure
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker-precure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -116,6 +116,8 @@ extra_rdoc_files: []
116
116
  files:
117
117
  - ".coveralls.yml"
118
118
  - ".github/dependabot.yml"
119
+ - ".github/release.yml"
120
+ - ".github/workflows/dependabot-manager.yml"
119
121
  - ".github/workflows/pages.yml"
120
122
  - ".github/workflows/release_gem.yml"
121
123
  - ".github/workflows/test.yml"
@@ -157,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
159
  - !ruby/object:Gem::Version
158
160
  version: '0'
159
161
  requirements: []
160
- rubygems_version: 3.6.7
162
+ rubygems_version: 4.0.16
161
163
  specification_version: 4
162
164
  summary: Test data generator using precure
163
165
  test_files: