faker-precure 0.0.5 → 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
- SHA1:
3
- metadata.gz: eda647764978adabb8ef4db09ab102415b3af758
4
- data.tar.gz: 719a6ff72fffa0ef90f7ae42500f36997a9df46b
2
+ SHA256:
3
+ metadata.gz: 558e9da4afd0d66b58fa83a640d1695fe48f14b5d464ba31e1598257f1db2107
4
+ data.tar.gz: 2de45f42fb14a99e1b630a9915984f51903c1a54c460808b01b167091c1f4135
5
5
  SHA512:
6
- metadata.gz: 9440a4551aff47fdb56cca95413de58a7ad9ce34141b126cc6dc3931ba2db6d8f2ac5e5455efe173b0151d30e02219d4a4d58631dc6ab4637f8507fd63a7857f
7
- data.tar.gz: 7f1f219e33ded039fed983965f03016819d50573cbce53e923c34caa0dc5195821de6e74d22eff0ed194bdf5ef9e12fc893c718436b7b3cf26e1b5648f23daf1
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 }}
@@ -0,0 +1,73 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ env:
16
+ RUBYOPT: -EUTF-8
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ strategy:
23
+ fail-fast: false
24
+
25
+ matrix:
26
+ ruby:
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"
38
+
39
+ steps:
40
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
41
+
42
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
43
+ with:
44
+ ruby-version: ${{ matrix.ruby }}
45
+ bundler-cache: true
46
+
47
+ - run: bundle update --jobs $(nproc) --retry 3
48
+
49
+ - run: bundle exec rspec
50
+
51
+ - name: Slack Notification (not success)
52
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
53
+ if: "! success()"
54
+ continue-on-error: true
55
+ with:
56
+ status: ${{ job.status }}
57
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
58
+ matrix: ${{ toJson(matrix) }}
59
+
60
+ notify:
61
+ needs:
62
+ - test
63
+
64
+ runs-on: ubuntu-latest
65
+
66
+ steps:
67
+ - name: Slack Notification (success)
68
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
69
+ if: always()
70
+ continue-on-error: true
71
+ with:
72
+ status: ${{ job.status }}
73
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
  ## master
3
- [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.5...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)
7
+
8
+ ## v0.0.6
9
+ [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.5...v0.0.6)
10
+
11
+ * Enable MFA requirement for gem releasing
12
+ * https://github.com/sue445/faker-precure/pull/28
4
13
 
5
14
  ## v0.0.5
6
15
  [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.4...v0.0.5)
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in faker-precure.gemspec
4
4
  gemspec
5
5
 
6
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
7
- # NOTE: activesupport 5.x supports only ruby 2.2.2+
8
- gem "activesupport", ">= 4.0.0", "< 5.0.0"
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
9
  end
data/README.md CHANGED
@@ -2,10 +2,9 @@
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://travis-ci.org/sue445/faker-precure.svg?branch=master)](https://travis-ci.org/sue445/faker-precure)
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
- [![Dependency Status](https://gemnasium.com/sue445/faker-precure.svg)](https://gemnasium.com/sue445/faker-precure)
9
8
 
10
9
  ## Installation
11
10
 
@@ -13,6 +13,12 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/sue445/faker-precure"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
19
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/faker-precure/"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
16
22
  spec.files = `git ls-files -z`.split("\x0")
17
23
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
24
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -23,6 +29,7 @@ Gem::Specification.new do |spec|
23
29
  spec.add_development_dependency "bundler", ">= 1.5"
24
30
  spec.add_development_dependency "rake"
25
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
26
33
  spec.add_development_dependency "yard"
27
- spec.add_development_dependency "coveralls"
34
+ spec.add_development_dependency "coveralls_reborn"
28
35
  end
@@ -1,5 +1,5 @@
1
1
  module Faker
2
2
  module Precure
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,11 @@
1
- if ENV["COVERAGE"]
1
+ if ENV["CI"]
2
2
  require 'coveralls'
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.5
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: 2017-07-09 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,10 +115,12 @@ 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"
121
+ - ".github/workflows/test.yml"
105
122
  - ".gitignore"
106
123
  - ".rspec"
107
- - ".tachikoma.yml"
108
- - ".travis.yml"
109
124
  - ".yardopts"
110
125
  - CHANGELOG.md
111
126
  - Gemfile
@@ -122,8 +137,12 @@ files:
122
137
  homepage: https://github.com/sue445/faker-precure
123
138
  licenses:
124
139
  - MIT
125
- metadata: {}
126
- post_install_message:
140
+ metadata:
141
+ homepage_uri: https://github.com/sue445/faker-precure
142
+ source_code_uri: https://github.com/sue445/faker-precure
143
+ changelog_uri: https://github.com/sue445/faker-precure/blob/master/CHANGELOG.md
144
+ documentation_uri: https://sue445.github.io/faker-precure/
145
+ rubygems_mfa_required: 'true'
127
146
  rdoc_options: []
128
147
  require_paths:
129
148
  - lib
@@ -138,9 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
157
  - !ruby/object:Gem::Version
139
158
  version: '0'
140
159
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.5.1
143
- signing_key:
160
+ rubygems_version: 3.6.7
144
161
  specification_version: 4
145
162
  summary: Test data generator using precure
146
163
  test_files:
data/.tachikoma.yml DELETED
@@ -1 +0,0 @@
1
- strategy: 'bundler'
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.2
4
- - 2.3.3
5
- - 2.4.0
6
- - ruby-head
7
- bundler_args: "--jobs=2"
8
- cache: bundler
9
- before_script:
10
- - export COVERAGE=true
11
- script: bundle exec rspec
12
- branches:
13
- only:
14
- - master
15
- notifications:
16
- email: false
17
- slack:
18
- secure: HKvrZjP1KUWhyNMA/3TfIe7vGXARu0gZFnntYPpIGm0N3Y8o3IHBc0Z0cY6N/VpFLinA95mfG8fk6SWUyqqlIfJiEQ7eIMj6kkOqWL+ro7BDMmi+pVSlE+Q2RmroY8pBKhFC7RsVW0JEjJ2OU4GqrVlxTncMNsfKNDCU3BXpWAU=
19
- matrix:
20
- allow_failures:
21
- - rvm: ruby-head
22
- sudo: false