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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83bf236073c81560457a5ac1a4c70ac8da4346526af3a4553a2c28e9c081b983
4
- data.tar.gz: a3b7e7cf5f9d0c7b1a464f02fe4aaf1147b1dc7790b4ef7d169396bfb8a126e9
3
+ metadata.gz: 0f6c883a1fe9ecba43c0d71e27a7d206eb973c88f111aa9d5d5b5fc0eed17fff
4
+ data.tar.gz: 9341be37d8da86b41a58b5a355e8f117d79e39b3ecabec9a0724741185a3c46e
5
5
  SHA512:
6
- metadata.gz: f2447389cd0d58e6e1f79ed1a2f14f8b58e619507d8c8a2e0a319de8fcc89811dd78f05e4643f0a8070b0d573a710ebbdc402e2ea53c88b15e1f163abd614fbe
7
- data.tar.gz: 9eacb3fd0a51cb5f9633ac57715ff6aa4d750b3c93fe800b25540faf7ea4f107e66c575968ed1eede66bf6eca94ee1043f0b5a700fd6722fc911310296105f15
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 }}
@@ -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
- - ruby:2.2
30
- - ruby:2.3
31
- - ruby:2.4
32
- - ruby:2.5
33
- - ruby:2.6
34
- - ruby:2.7
35
- - ruby:3.0
36
- - rubylang/ruby:master-nightly-bionic
37
- include:
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@v2
35
+ - uses: actions/checkout@v3
43
36
 
44
- - run: apt-get update && apt-get install -y libsqlite3-dev
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
- 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' }}
39
+ ruby-version: ${{ matrix.ruby }}
40
+ bundler-cache: true
55
41
 
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' }}
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
- - name: Run test
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: matrix.ruby >= 'ruby:2.4' && always()
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.1...master)
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
- # https://github.com/rails/rails/blob/v6.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
28
- gem "sqlite3", "~> 1.4"
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'
@@ -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.exists?(file_path)
98
+ unless File.exist?(file_path)
99
99
  ActiveRecord::Migration.say("[WARN] #{file_path} is not exists")
100
100
  next
101
101
  end
@@ -1,3 +1,3 @@
1
1
  module HeartSeed
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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: 2021-11-19 00:00:00.000000000 Z
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.2.22
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)