faker-pretty_series 0.1.3 → 0.1.5

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: eae9cb6d58909d8f1b23a3bec5968001b78ad0e6e3176815dd7f09bedeb14655
4
- data.tar.gz: fb10bafb9f736d15848823ee6253a5794897213d81b95507a3897934cf0aee26
3
+ metadata.gz: 5a75d571f894260d292288861d08e321e836a8934a99cea9f1d70fe87d974e37
4
+ data.tar.gz: 7aaeb4bba68d8f072b5574d3325817a10df4521e144c52352fbc74ed26f0265b
5
5
  SHA512:
6
- metadata.gz: e414c2df391fe4e66de60e38d7fa83aa367cfd055470bed106d722f3d36709fa99fb17df6be6b9339109bca8014cd78393e47a99b1284da71a9ed43792044a00
7
- data.tar.gz: e4325f12d89a205947b4ce2dac2c7c2b072a209623ee0a261baba42ad66d2964a1e167a83730c53f4e5c149161ca71d4ab059563d6ade2dc61f2372b4f8524ca
6
+ metadata.gz: 583df6fa5143a3ec91af4a38c4b4eef18f1dd2b5aeedc8fb6cd1e7a517293c5cf9689935577c5e6bafeb3af822a2f6c871a06e85bf1d19b9640440c2497e4870
7
+ data.tar.gz: 20c3c95800c81c92911474285df276e1c14888ab56da870cf84d7c601b73008a241b0cffa98b0d16a7b07dbeb23ef51bed6668acb7968712dd4e6c92199f6d86
@@ -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-pretty_series
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-pretty_series
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-pretty_series'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/faker-pretty_series
14
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/faker-pretty_series
11
+ gem-name: faker-pretty_series
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 }}
@@ -29,54 +29,71 @@ jobs:
29
29
  - "3.2"
30
30
  - "3.3"
31
31
  - "3.4"
32
+ - "4.0"
32
33
 
33
34
  steps:
34
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
35
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
35
36
 
36
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
37
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
37
38
  with:
38
39
  ruby-version: ${{ matrix.ruby }}
39
40
  bundler-cache: true
40
41
 
41
- - run: bundle update --jobs $(nproc) --retry 3
42
+ - run: bundle update --all --jobs $(nproc) --retry 3
42
43
 
43
- - name: Setup Code Climate Test Reporter
44
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
45
- with:
46
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
47
- command: before-build
44
+ - run: bundle exec rspec
45
+
46
+ - name: Slack Notification (not success)
47
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
48
+ if: "! success()"
48
49
  continue-on-error: true
50
+ with:
51
+ status: ${{ job.status }}
52
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
53
+ matrix: ${{ toJson(matrix) }}
49
54
 
50
- - run: bundle exec rspec
55
+ yard:
56
+ runs-on: ubuntu-latest
51
57
 
52
- - name: Teardown Code Climate Test Reporter
53
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
58
+ steps:
59
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
60
+
61
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
54
62
  with:
55
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
56
- command: after-build
57
- if: always()
58
- continue-on-error: true
63
+ ruby-version: ruby
64
+ bundler-cache: true
65
+
66
+ - name: bundle update
67
+ run: |
68
+ set -xe
69
+ bundle config path vendor/bundle
70
+ bundle update --all --jobs $(nproc) --retry 3
71
+
72
+ - name: yard generating test
73
+ run: |
74
+ set -xe
75
+ bundle exec yard
76
+ ls -ld doc/
59
77
 
60
78
  - name: Slack Notification (not success)
61
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
79
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
62
80
  if: "! success()"
63
81
  continue-on-error: true
64
82
  with:
65
83
  status: ${{ job.status }}
66
84
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
67
- matrix: ${{ toJson(matrix) }}
68
85
 
69
- notify:
86
+ all-pass:
87
+ if: always()
88
+
70
89
  needs:
71
90
  - test
91
+ - yard
72
92
 
73
- runs-on: ubuntu-latest
93
+ runs-on: ubuntu-slim
74
94
 
75
95
  steps:
76
- - name: Slack Notification (success)
77
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
78
- if: always()
79
- continue-on-error: true
96
+ - name: check dependent jobs
97
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
80
98
  with:
81
- status: ${{ job.status }}
82
- webhook-url: ${{ secrets.SLACK_WEBHOOK }}
99
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## Unreleased
2
- [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.3...master)
2
+ [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.5...master)
3
+
4
+ ## [v0.1.5](https://github.com/sue445/faker-pretty_series/releases/tag/v0.1.4)
5
+ [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.4...v0.1.5)
6
+
7
+ * Fix error in gem releasing
8
+ * https://github.com/sue445/faker-pretty_series/pull/69
9
+
10
+ ## [v0.1.4](https://github.com/sue445/faker-pretty_series/releases/tag/v0.1.4)
11
+ [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.3...v0.1.4)
12
+
13
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
14
+ * https://github.com/sue445/faker-pretty_series/pull/68
3
15
 
4
16
  ## [v0.1.3](https://github.com/sue445/faker-pretty_series/releases/tag/v0.1.3)
5
17
  [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.2...v0.1.3)
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ source "https://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  gem "coveralls"
7
+ gem "ostruct"
7
8
  gem "prismdb"
8
9
  gem "rake", "~> 12.0"
9
10
  gem "rspec", "~> 3.0"
@@ -12,3 +13,8 @@ gem "rspec", "~> 3.0"
12
13
  # Stop upgrading SimpleCov until the following issue will be resolved.
13
14
  # https://github.com/codeclimate/test-reporter/issues/418
14
15
  gem "simplecov", "~> 0.10", "< 0.18"
16
+
17
+ if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("4.0.0")
18
+ # rdoc is bundled gem since ruby 4.0
19
+ gem "rdoc"
20
+ end
data/README.md CHANGED
@@ -4,7 +4,7 @@ Test data generator using [PrettySeries](https://en.wikipedia.org/wiki/Pretty_Rh
4
4
  [![Gem Version](https://badge.fury.io/rb/faker-pretty_series.svg)](https://badge.fury.io/rb/faker-pretty_series)
5
5
  [![test](https://github.com/sue445/faker-pretty_series/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/faker-pretty_series/actions/workflows/test.yml)
6
6
  [![Coverage Status](https://coveralls.io/repos/github/sue445/faker-pretty_series/badge.svg?branch=master)](https://coveralls.io/github/sue445/faker-pretty_series?branch=master)
7
- [![Maintainability](https://api.codeclimate.com/v1/badges/1e61884ff835944a69d2/maintainability)](https://codeclimate.com/github/sue445/faker-pretty_series/maintainability)
7
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/faker-pretty_series/maintainability.svg)](https://qlty.sh/gh/sue445/projects/faker-pretty_series)
8
8
 
9
9
  ## Installation
10
10
 
@@ -1,5 +1,5 @@
1
1
  module Faker
2
2
  module PrettySeries
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker-pretty_series
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -46,6 +46,8 @@ extra_rdoc_files: []
46
46
  files:
47
47
  - ".coveralls.yml"
48
48
  - ".github/dependabot.yml"
49
+ - ".github/release.yml"
50
+ - ".github/workflows/dependabot-manager.yml"
49
51
  - ".github/workflows/pages.yml"
50
52
  - ".github/workflows/release_gem.yml"
51
53
  - ".github/workflows/test.yml"
@@ -93,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  - !ruby/object:Gem::Version
94
96
  version: '0'
95
97
  requirements: []
96
- rubygems_version: 3.6.7
98
+ rubygems_version: 4.0.16
97
99
  specification_version: 4
98
100
  summary: Test data generator using PrettySeries
99
101
  test_files: []