heart_seed 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pages.yml +62 -0
- data/.github/workflows/test.yml +16 -40
- data/CHANGELOG.md +7 -1
- data/Gemfile +7 -2
- data/heart_seed.gemspec +1 -0
- data/lib/heart_seed/db_seed.rb +1 -1
- data/lib/heart_seed/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f6c883a1fe9ecba43c0d71e27a7d206eb973c88f111aa9d5d5b5fc0eed17fff
|
4
|
+
data.tar.gz: 9341be37d8da86b41a58b5a355e8f117d79e39b3ecabec9a0724741185a3c46e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f923b0a6394b0ae54e2c02126a3ca51ea497b2dce85974c57d388db4988b981c0f1ead9e8ae3575f9316302421cf1d04759030627b4c678f527fa06e88d9d894
|
7
|
+
data.tar.gz: 7b0d8f029e8300748aae87d4f0b468f135203a6f210829bf824425be8018c73a5c1a342e7b1d2d47992571c81e16dfe1d3e9d0655460269246fbfc317f1a0599
|
@@ -0,0 +1,62 @@
|
|
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@v3
|
34
|
+
|
35
|
+
- uses: ruby/setup-ruby@v1
|
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@v1
|
44
|
+
- name: Upload artifact
|
45
|
+
uses: actions/upload-pages-artifact@v1
|
46
|
+
with:
|
47
|
+
# Upload entire repository
|
48
|
+
path: './doc'
|
49
|
+
- name: Deploy to GitHub Pages
|
50
|
+
id: deployment
|
51
|
+
uses: actions/deploy-pages@main
|
52
|
+
|
53
|
+
- name: Slack Notification (not success)
|
54
|
+
uses: lazy-actions/slatify@master
|
55
|
+
if: "! success()"
|
56
|
+
continue-on-error: true
|
57
|
+
with:
|
58
|
+
job_name: "*pages*"
|
59
|
+
type: ${{ job.status }}
|
60
|
+
icon_emoji: ":octocat:"
|
61
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
62
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
@@ -12,74 +12,50 @@ 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
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
|
38
|
-
- ruby: rubylang/ruby:master-nightly-bionic
|
39
|
-
allow_failures: "true"
|
24
|
+
- "2.2"
|
25
|
+
- "2.3"
|
26
|
+
- "2.4"
|
27
|
+
- "2.5"
|
28
|
+
- "2.6"
|
29
|
+
- "2.7"
|
30
|
+
- "3.0"
|
31
|
+
- "3.1"
|
32
|
+
- "3.2"
|
40
33
|
|
41
34
|
steps:
|
42
|
-
- uses: actions/checkout@
|
35
|
+
- uses: actions/checkout@v3
|
43
36
|
|
44
|
-
-
|
45
|
-
|
46
|
-
- name: Cache vendor/bundle
|
47
|
-
uses: actions/cache@v1
|
48
|
-
id: cache_gem
|
37
|
+
- uses: ruby/setup-ruby@v1
|
49
38
|
with:
|
50
|
-
|
51
|
-
|
52
|
-
restore-keys: |
|
53
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
54
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
39
|
+
ruby-version: ${{ matrix.ruby }}
|
40
|
+
bundler-cache: true
|
55
41
|
|
56
|
-
-
|
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' }}
|
42
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
62
43
|
|
63
44
|
- name: Setup Code Climate Test Reporter
|
64
45
|
uses: aktions/codeclimate-test-reporter@v1
|
65
46
|
with:
|
66
47
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
67
48
|
command: before-build
|
68
|
-
if: matrix.ruby >= 'ruby:2.4'
|
69
49
|
continue-on-error: true
|
70
50
|
|
71
|
-
-
|
72
|
-
run: |
|
73
|
-
set -xe
|
74
|
-
bundle exec rspec
|
75
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
51
|
+
- run: bundle exec rspec
|
76
52
|
|
77
53
|
- name: Teardown Code Climate Test Reporter
|
78
54
|
uses: aktions/codeclimate-test-reporter@v1
|
79
55
|
with:
|
80
56
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
81
57
|
command: after-build
|
82
|
-
if:
|
58
|
+
if: always()
|
83
59
|
continue-on-error: true
|
84
60
|
|
85
61
|
- name: Slack Notification (not success)
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](https://github.com/sue445/heart_seed/compare/v0.2.
|
2
|
+
[full changelog](https://github.com/sue445/heart_seed/compare/v0.2.2...master)
|
3
|
+
|
4
|
+
## 0.2.2 (2022/12/29)
|
5
|
+
[full changelog](https://github.com/sue445/heart_seed/compare/v0.2.1...v0.2.2)
|
6
|
+
|
7
|
+
* Support Ruby 3.2
|
8
|
+
* https://github.com/sue445/heart_seed/pull/67
|
3
9
|
|
4
10
|
## 0.2.1 (2021/11/20)
|
5
11
|
[full changelog](https://github.com/sue445/heart_seed/compare/v0.2.0...v0.2.1)
|
data/Gemfile
CHANGED
@@ -24,11 +24,16 @@ else
|
|
24
24
|
gem "activerecord", "< 6.1.0"
|
25
25
|
gem "activesupport", "< 6.1.0"
|
26
26
|
|
27
|
-
#
|
28
|
-
gem "sqlite3", "
|
27
|
+
# FIXME: sqlite3 v1.5.0+ requires Ruby 2.6.0+
|
28
|
+
gem "sqlite3", "< 1.5.0"
|
29
29
|
end
|
30
30
|
|
31
31
|
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
|
32
32
|
# NOTE: unparser v0.3.0+ requires Ruby 2.5+
|
33
33
|
gem "unparser", "< 0.3.0"
|
34
34
|
end
|
35
|
+
|
36
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.6.0")
|
37
|
+
# minitest v5.16.0+ requires ruby 2.6.0+
|
38
|
+
gem "minitest", "< 5.16.0"
|
39
|
+
end
|
data/heart_seed.gemspec
CHANGED
@@ -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/heart_seed/"
|
19
20
|
spec.metadata["rubygems_mfa_required"] = "true"
|
20
21
|
|
21
22
|
spec.required_ruby_version = '>= 2.0.0'
|
data/lib/heart_seed/db_seed.rb
CHANGED
@@ -95,7 +95,7 @@ module HeartSeed
|
|
95
95
|
target_table_names.each do |table_name|
|
96
96
|
file_path = File.join(seed_dir, "#{table_name}.yml")
|
97
97
|
|
98
|
-
unless File.
|
98
|
+
unless File.exist?(file_path)
|
99
99
|
ActiveRecord::Migration.say("[WARN] #{file_path} is not exists")
|
100
100
|
next
|
101
101
|
end
|
data/lib/heart_seed/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heart_seed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -270,6 +270,7 @@ extensions: []
|
|
270
270
|
extra_rdoc_files: []
|
271
271
|
files:
|
272
272
|
- ".coveralls.yml"
|
273
|
+
- ".github/workflows/pages.yml"
|
273
274
|
- ".github/workflows/test.yml"
|
274
275
|
- ".gitignore"
|
275
276
|
- ".rspec"
|
@@ -367,6 +368,7 @@ metadata:
|
|
367
368
|
homepage_uri: https://github.com/sue445/heart_seed
|
368
369
|
source_code_uri: https://github.com/sue445/heart_seed
|
369
370
|
changelog_uri: https://github.com/sue445/heart_seed/blob/master/CHANGELOG.md
|
371
|
+
documentation_uri: https://sue445.github.io/heart_seed/
|
370
372
|
rubygems_mfa_required: 'true'
|
371
373
|
post_install_message:
|
372
374
|
rdoc_options: []
|
@@ -383,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
383
385
|
- !ruby/object:Gem::Version
|
384
386
|
version: '0'
|
385
387
|
requirements: []
|
386
|
-
rubygems_version: 3.
|
388
|
+
rubygems_version: 3.4.1
|
387
389
|
signing_key:
|
388
390
|
specification_version: 4
|
389
391
|
summary: seed util (convert excel to yaml and insert yaml to db)
|