faker-pretty_series 0.1.2 → 0.1.3

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: f8a416ca6fcee0c4996d231c8a3020686aa24b4d2a1a3cff06b9546c01c8960c
4
- data.tar.gz: 6c6a889b49f4239d12898ef88aa185b9a8103907575028e6bed83b8975e7d14d
3
+ metadata.gz: eae9cb6d58909d8f1b23a3bec5968001b78ad0e6e3176815dd7f09bedeb14655
4
+ data.tar.gz: fb10bafb9f736d15848823ee6253a5794897213d81b95507a3897934cf0aee26
5
5
  SHA512:
6
- metadata.gz: b626e5b80776a2b9e99016a6bcacd4ac76a6e2866185b76d2ca92c0dad767629e07a9580a14bea48fb1ad1c886bde15c954416c9399bdbaa3992d14ea167df2b
7
- data.tar.gz: 060f2312ead9322c9644d54bdb180c061fdd3759a7509624e7d0dc64e93fd39570a8a5358d5b59be5d11de74a70dfdd604139baadb1b0e4147a9c5438adafd05
6
+ metadata.gz: e414c2df391fe4e66de60e38d7fa83aa367cfd055470bed106d722f3d36709fa99fb17df6be6b9339109bca8014cd78393e47a99b1284da71a9ed43792044a00
7
+ data.tar.gz: e4325f12d89a205947b4ce2dac2c7c2b072a209623ee0a261baba42ad66d2964a1e167a83730c53f4e5c149161ca71d4ab059563d6ade2dc61f2372b4f8524ca
@@ -0,0 +1,12 @@
1
+ # c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ cooldown:
10
+ default-days: 7
11
+ assignees:
12
+ - sue445
@@ -0,0 +1,59 @@
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name: Deploy static content to Pages
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches:
8
+ - master
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # Allow one concurrent deployment
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: true
23
+
24
+ jobs:
25
+ # Single deploy job since we're just deploying
26
+ 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 }}
@@ -0,0 +1,41 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
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
+
15
+ permissions:
16
+ contents: write
17
+ 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 }}
@@ -12,80 +12,59 @@ on:
12
12
  schedule:
13
13
  - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
14
 
15
- env:
16
- CI: "true"
17
-
18
15
  jobs:
19
16
  test:
20
17
  runs-on: ubuntu-latest
21
18
 
22
- container: ${{ matrix.ruby }}
23
-
24
19
  strategy:
25
20
  fail-fast: false
26
21
 
27
22
  matrix:
28
23
  ruby:
29
- - ruby:2.5
30
- - ruby:2.6
31
- - ruby:2.7
32
- - ruby:3.0
33
- - rubylang/ruby:master-nightly-bionic
34
- include:
35
- - ruby: rubylang/ruby:master-nightly-bionic
36
- allow_failures: "true"
24
+ - "2.5"
25
+ - "2.6"
26
+ - "2.7"
27
+ - "3.0"
28
+ - "3.1"
29
+ - "3.2"
30
+ - "3.3"
31
+ - "3.4"
37
32
 
38
33
  steps:
39
- - uses: actions/checkout@v2
40
- - name: Cache vendor/bundle
41
- uses: actions/cache@v1
42
- id: cache_gem
34
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
35
+
36
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
43
37
  with:
44
- path: vendor/bundle
45
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
46
- restore-keys: |
47
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
48
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
38
+ ruby-version: ${{ matrix.ruby }}
39
+ bundler-cache: true
49
40
 
50
- - name: bundle update
51
- run: |
52
- set -xe
53
- bundle config path vendor/bundle
54
- bundle update --jobs $(nproc) --retry 3
55
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
41
+ - run: bundle update --jobs $(nproc) --retry 3
56
42
 
57
43
  - name: Setup Code Climate Test Reporter
58
- uses: aktions/codeclimate-test-reporter@v1
44
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
59
45
  with:
60
46
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
61
47
  command: before-build
62
- if: matrix.ruby >= 'ruby:2.4'
63
48
  continue-on-error: true
64
49
 
65
- - name: Run test
66
- run: |
67
- set -xe
68
- bundle exec rspec
69
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
50
+ - run: bundle exec rspec
70
51
 
71
52
  - name: Teardown Code Climate Test Reporter
72
- uses: aktions/codeclimate-test-reporter@v1
53
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
73
54
  with:
74
55
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
75
56
  command: after-build
76
- if: matrix.ruby >= 'ruby:2.4' && always()
57
+ if: always()
77
58
  continue-on-error: true
78
59
 
79
60
  - name: Slack Notification (not success)
80
- uses: lazy-actions/slatify@master
61
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
81
62
  if: "! success()"
82
63
  continue-on-error: true
83
64
  with:
84
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
85
- type: ${{ job.status }}
86
- icon_emoji: ":octocat:"
87
- url: ${{ secrets.SLACK_WEBHOOK }}
88
- token: ${{ secrets.GITHUB_TOKEN }}
65
+ status: ${{ job.status }}
66
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
67
+ matrix: ${{ toJson(matrix) }}
89
68
 
90
69
  notify:
91
70
  needs:
@@ -95,12 +74,9 @@ jobs:
95
74
 
96
75
  steps:
97
76
  - name: Slack Notification (success)
98
- uses: lazy-actions/slatify@master
77
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
99
78
  if: always()
100
79
  continue-on-error: true
101
80
  with:
102
- job_name: '*build*'
103
- type: ${{ job.status }}
104
- icon_emoji: ":octocat:"
105
- url: ${{ secrets.SLACK_WEBHOOK }}
106
- token: ${{ secrets.GITHUB_TOKEN }}
81
+ status: ${{ job.status }}
82
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
- [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.2...master)
2
+ [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.3...master)
3
+
4
+ ## [v0.1.3](https://github.com/sue445/faker-pretty_series/releases/tag/v0.1.3)
5
+ [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.2...v0.1.3)
6
+
7
+ * Release gem from GitHub Actions
8
+ * https://github.com/sue445/faker-pretty_series/pull/30
3
9
 
4
10
  ## v0.1.2
5
11
  [full changelog](http://github.com/sue445/faker-pretty_series/compare/v0.1.1...v0.1.2)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  Test data generator using [PrettySeries](https://en.wikipedia.org/wiki/Pretty_Rhythm)
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/faker-pretty_series.svg)](https://badge.fury.io/rb/faker-pretty_series)
5
- [![test](https://github.com/sue445/faker-pretty_series/workflows/test/badge.svg?branch=master)](https://github.com/sue445/faker-pretty_series/actions?query=workflow%3Atest)
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
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/1e61884ff835944a69d2/maintainability)](https://codeclimate.com/github/sue445/faker-pretty_series/maintainability)
8
8
 
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = "https://github.com/sue445/faker-pretty_series"
17
17
  spec.metadata["changelog_uri"] = "https://github.com/sue445/faker-pretty_series/blob/master/CHANGELOG.md"
18
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/faker-pretty_series"
18
19
  spec.metadata["rubygems_mfa_required"] = "true"
19
20
 
20
21
  # Specify which files should be added to the gem when it is released.
@@ -25,4 +26,7 @@ Gem::Specification.new do |spec|
25
26
  spec.bindir = "exe"
26
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
28
  spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
31
+ spec.add_development_dependency "yard"
28
32
  end
@@ -1,5 +1,5 @@
1
1
  module Faker
2
2
  module PrettySeries
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker-pretty_series
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
12
- dependencies: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: term-ansicolor
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "!="
17
+ - !ruby/object:Gem::Version
18
+ version: 1.11.1
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "!="
24
+ - !ruby/object:Gem::Version
25
+ version: 1.11.1
26
+ - !ruby/object:Gem::Dependency
27
+ name: yard
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
13
40
  description: Test data generator using PrettySeries
14
41
  email:
15
42
  - sue445@sue445.net
@@ -18,9 +45,13 @@ extensions: []
18
45
  extra_rdoc_files: []
19
46
  files:
20
47
  - ".coveralls.yml"
48
+ - ".github/dependabot.yml"
49
+ - ".github/workflows/pages.yml"
50
+ - ".github/workflows/release_gem.yml"
21
51
  - ".github/workflows/test.yml"
22
52
  - ".gitignore"
23
53
  - ".rspec"
54
+ - ".yardopts"
24
55
  - CHANGELOG.md
25
56
  - Gemfile
26
57
  - LICENSE.txt
@@ -46,8 +77,8 @@ metadata:
46
77
  homepage_uri: https://github.com/sue445/faker-pretty_series
47
78
  source_code_uri: https://github.com/sue445/faker-pretty_series
48
79
  changelog_uri: https://github.com/sue445/faker-pretty_series/blob/master/CHANGELOG.md
80
+ documentation_uri: https://sue445.github.io/faker-pretty_series
49
81
  rubygems_mfa_required: 'true'
50
- post_install_message:
51
82
  rdoc_options: []
52
83
  require_paths:
53
84
  - lib
@@ -62,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
93
  - !ruby/object:Gem::Version
63
94
  version: '0'
64
95
  requirements: []
65
- rubygems_version: 3.2.22
66
- signing_key:
96
+ rubygems_version: 3.6.7
67
97
  specification_version: 4
68
98
  summary: Test data generator using PrettySeries
69
99
  test_files: []