faker-precure 0.0.6 → 0.0.7

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: 1219da6f946db4aae347159b44a09505ad7a30ef52a8ec3aedc08002a2ddcc6b
4
- data.tar.gz: 0113e9882a6a3d1c81c77690922de77107d2527ed9705595cc6e240e5bcb834d
3
+ metadata.gz: 558e9da4afd0d66b58fa83a640d1695fe48f14b5d464ba31e1598257f1db2107
4
+ data.tar.gz: 2de45f42fb14a99e1b630a9915984f51903c1a54c460808b01b167091c1f4135
5
5
  SHA512:
6
- metadata.gz: f92834cbd09bdee9e02f1f335fbc85ec2ed7eddd4769b4059ee26065f4968a15f43d63a094f334104bf5858cfdd9d185a7670bdb00640908165580e7b6c5729f
7
- data.tar.gz: 8c1b756943e0297f6f906b4b57386542e53badee156d61ea8f50fae1fcb9eeb020f132255b3179e2b0e03d2a1954b588c1762da8e288e13972001849b81d722b
6
+ metadata.gz: d67bf2128a60934119fdc025ecc78486d3f1e7642e02e561da0bcac5817910ba0ac927f26cd72ca26b667f65459ab0c1cdf5b8a9077bbbeba5dc636f5758d8ef
7
+ data.tar.gz: 1f60ea20dd82a13a71e6e216c9e8b0239877b8ca07c2ea0283798b3400ddda91cec50a729281b1e714bfaca27413d1a3f99227ececb1a95378481bb13f1d8002
@@ -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-precure'
9
+ runs-on: ubuntu-latest
10
+
11
+ environment:
12
+ name: rubygems.org
13
+ url: https://rubygems.org/gems/faker-precure
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 }}
@@ -13,69 +13,49 @@ on:
13
13
  - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
14
 
15
15
  env:
16
- CI: "true"
17
16
  RUBYOPT: -EUTF-8
18
17
 
19
18
  jobs:
20
19
  test:
21
20
  runs-on: ubuntu-latest
22
21
 
23
- container: ${{ matrix.ruby }}
24
-
25
22
  strategy:
26
23
  fail-fast: false
27
24
 
28
25
  matrix:
29
26
  ruby:
30
- - ruby:2.2
31
- - ruby:2.3
32
- - ruby:2.4
33
- - ruby:2.5
34
- - ruby:2.6
35
- - ruby:2.7
36
- - ruby:3.0
37
- - rubylang/ruby:master-nightly-bionic
38
- include:
39
- - ruby: rubylang/ruby:master-nightly-bionic
40
- allow_failures: "true"
27
+ - "2.2"
28
+ - "2.3"
29
+ - "2.4"
30
+ - "2.5"
31
+ - "2.6"
32
+ - "2.7"
33
+ - "3.0"
34
+ - "3.1"
35
+ - "3.2"
36
+ - "3.3"
37
+ - "3.4"
41
38
 
42
39
  steps:
43
- - uses: actions/checkout@v2
44
-
40
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
45
41
 
46
- - name: Cache vendor/bundle
47
- uses: actions/cache@v1
48
- id: cache_gem
42
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
49
43
  with:
50
- path: vendor/bundle
51
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
52
- restore-keys: |
53
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
54
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
44
+ ruby-version: ${{ matrix.ruby }}
45
+ bundler-cache: true
55
46
 
56
- - name: bundle update
57
- run: |
58
- set -xe
59
- bundle config path vendor/bundle
60
- bundle update --jobs $(nproc) --retry 3
61
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
47
+ - run: bundle update --jobs $(nproc) --retry 3
62
48
 
63
- - name: Run test
64
- run: |
65
- set -xe
66
- bundle exec rspec
67
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
49
+ - run: bundle exec rspec
68
50
 
69
51
  - name: Slack Notification (not success)
70
- uses: lazy-actions/slatify@master
52
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
71
53
  if: "! success()"
72
54
  continue-on-error: true
73
55
  with:
74
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
75
- type: ${{ job.status }}
76
- icon_emoji: ":octocat:"
77
- url: ${{ secrets.SLACK_WEBHOOK }}
78
- token: ${{ secrets.GITHUB_TOKEN }}
56
+ status: ${{ job.status }}
57
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
58
+ matrix: ${{ toJson(matrix) }}
79
59
 
80
60
  notify:
81
61
  needs:
@@ -85,12 +65,9 @@ jobs:
85
65
 
86
66
  steps:
87
67
  - name: Slack Notification (success)
88
- uses: lazy-actions/slatify@master
68
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
89
69
  if: always()
90
70
  continue-on-error: true
91
71
  with:
92
- job_name: '*build*'
93
- type: ${{ job.status }}
94
- icon_emoji: ":octocat:"
95
- url: ${{ secrets.SLACK_WEBHOOK }}
96
- token: ${{ secrets.GITHUB_TOKEN }}
72
+ status: ${{ job.status }}
73
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Changelog
2
2
  ## master
3
- [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.6...master)
3
+ [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.7...master)
4
+
5
+ ## [0.0.7](https://github.com/sue445/faker-precure/releases/tag/v0.0.7)
6
+ [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.6...v0.0.7)
4
7
 
5
8
  ## v0.0.6
6
9
  [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.5...v0.0.6)
data/Gemfile CHANGED
@@ -2,3 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in faker-precure.gemspec
4
4
  gemspec
5
+
6
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
7
+ # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
8
+ gem "term-ansicolor", "< 1.9.0"
9
+ end
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  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
- [![Build Status](https://github.com/sue445/faker-precure/workflows/test/badge.svg?branch=master)](https://github.com/sue445/faker-precure/actions?query=workflow%3Atest)
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
6
  [![Code Climate](https://codeclimate.com/github/sue445/faker-precure.png)](https://codeclimate.com/github/sue445/faker-precure)
7
7
  [![Coverage Status](https://coveralls.io/repos/sue445/faker-precure/badge.png)](https://coveralls.io/r/sue445/faker-precure)
8
8
 
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.metadata["homepage_uri"] = spec.homepage
17
17
  spec.metadata["source_code_uri"] = spec.homepage
18
18
  spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
19
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/faker-precure/"
19
20
  spec.metadata["rubygems_mfa_required"] = "true"
20
21
 
21
22
  spec.files = `git ls-files -z`.split("\x0")
@@ -28,6 +29,7 @@ Gem::Specification.new do |spec|
28
29
  spec.add_development_dependency "bundler", ">= 1.5"
29
30
  spec.add_development_dependency "rake"
30
31
  spec.add_development_dependency "rspec"
32
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
31
33
  spec.add_development_dependency "yard"
32
- spec.add_development_dependency "coveralls"
34
+ spec.add_development_dependency "coveralls_reborn"
33
35
  end
@@ -1,5 +1,5 @@
1
1
  module Faker
2
2
  module Precure
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -3,6 +3,9 @@ if ENV["CI"]
3
3
  Coveralls.wear!
4
4
  end
5
5
 
6
+ # FIXME: NameError: uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger when activesupport < 7.1
7
+ require "logger"
8
+
6
9
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
7
10
  require 'faker/precure'
8
11
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker-precure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rubicure
@@ -66,6 +65,20 @@ dependencies:
66
65
  - - ">="
67
66
  - !ruby/object:Gem::Version
68
67
  version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: term-ansicolor
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "!="
73
+ - !ruby/object:Gem::Version
74
+ version: 1.11.1
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "!="
80
+ - !ruby/object:Gem::Version
81
+ version: 1.11.1
69
82
  - !ruby/object:Gem::Dependency
70
83
  name: yard
71
84
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +94,7 @@ dependencies:
81
94
  - !ruby/object:Gem::Version
82
95
  version: '0'
83
96
  - !ruby/object:Gem::Dependency
84
- name: coveralls
97
+ name: coveralls_reborn
85
98
  requirement: !ruby/object:Gem::Requirement
86
99
  requirements:
87
100
  - - ">="
@@ -102,6 +115,9 @@ extensions: []
102
115
  extra_rdoc_files: []
103
116
  files:
104
117
  - ".coveralls.yml"
118
+ - ".github/dependabot.yml"
119
+ - ".github/workflows/pages.yml"
120
+ - ".github/workflows/release_gem.yml"
105
121
  - ".github/workflows/test.yml"
106
122
  - ".gitignore"
107
123
  - ".rspec"
@@ -125,8 +141,8 @@ metadata:
125
141
  homepage_uri: https://github.com/sue445/faker-precure
126
142
  source_code_uri: https://github.com/sue445/faker-precure
127
143
  changelog_uri: https://github.com/sue445/faker-precure/blob/master/CHANGELOG.md
144
+ documentation_uri: https://sue445.github.io/faker-precure/
128
145
  rubygems_mfa_required: 'true'
129
- post_install_message:
130
146
  rdoc_options: []
131
147
  require_paths:
132
148
  - lib
@@ -141,8 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
157
  - !ruby/object:Gem::Version
142
158
  version: '0'
143
159
  requirements: []
144
- rubygems_version: 3.2.22
145
- signing_key:
160
+ rubygems_version: 3.6.7
146
161
  specification_version: 4
147
162
  summary: Test data generator using precure
148
163
  test_files: