activerecord-compatible_legacy_migration 0.1.3 → 0.1.4

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: 45f8646562eb1da138f03c9dc3864b72ca5162c93f9764f404334f868d9d7765
4
- data.tar.gz: f0c218d1379f473d596a169841ab56450f371cead793fa2d5d736951ef3a7eeb
3
+ metadata.gz: ca04f25e19dea58da4ca6a4b7f516d0c94996cc6ec8ed1c7a6c72560b14651de
4
+ data.tar.gz: 0aa96b87e954722dc205e8ba4fb3eb3d1430b20a8e94603ed926c2f15c84f952
5
5
  SHA512:
6
- metadata.gz: b6754b82bf44b551d9d11b3b99a143392079dba801e5486649b776a37fb2e730356c20584adc11c89cec4266f6c553c7a0410a38ff930bdcf461546e4b28e6d5
7
- data.tar.gz: 35bcf7e4afd394afeb3605e8f6777a442209ae7d1a9459f50950390551aa3cea327fb01c7e5796a574fa6f59fd2e830bb68ce053c7b3458b5d17e950ad531b9b
6
+ metadata.gz: bed6498fa31a44136287637a76fd1f231e1d1527350712154d93ec1e3202dfa86d699cc29f487943039d14cf3ea780361f00fff61acf97aecf9962e3274f11ff
7
+ data.tar.gz: 69ab1358db25454e88545e6817932679944fa4e0b476ab7a4ddc70ae702a40d4966c067df86d8c737e9f1227b0c7024db6fcb2406eef258c15d18be5977eac5d
@@ -2,11 +2,19 @@
2
2
  version: 2
3
3
 
4
4
  updates:
5
+ ###########################################################
6
+ # NOTE: following sections are auto generated. DO NOT EDIT!
7
+ ###########################################################
5
8
  - package-ecosystem: github-actions
6
9
  directory: /
7
10
  schedule:
8
- interval: weekly
9
- cooldown:
10
- default-days: 7
11
+ interval: monthly
12
+ time: "05:00"
13
+ timezone: Asia/Tokyo
11
14
  assignees:
12
15
  - sue445
16
+ cooldown:
17
+ default-days: 7
18
+ exclude:
19
+ - ruby/setup-ruby
20
+ ###########################################################
@@ -0,0 +1,31 @@
1
+ # ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
2
+
3
+ changelog:
4
+ exclude:
5
+ labels:
6
+ - chore
7
+
8
+ categories:
9
+ - title: ":bomb: Breaking Changes"
10
+ labels:
11
+ - breaking change
12
+
13
+ - title: ":lock: Security Fix"
14
+ labels:
15
+ - security
16
+
17
+ - title: ":rocket: Features"
18
+ labels:
19
+ - enhancement
20
+
21
+ - title: ":bug: Bug Fixes"
22
+ labels:
23
+ - bug
24
+
25
+ - title: ":dependabot: Dependency updates"
26
+ labels:
27
+ - dependencies
28
+
29
+ - title: ":pencil: Other Changes"
30
+ labels:
31
+ - "*"
@@ -0,0 +1,28 @@
1
+ name: dependabot-manager
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - synchronize # PR branch is rebased
8
+
9
+ jobs:
10
+ dependabot-auto-merge:
11
+ uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
12
+ with:
13
+ repo-name: sue445/activerecord-compatible_legacy_migration
14
+ secrets:
15
+ # TODO: Set secrets to Dependabot secrets
16
+ app-id: ${{ secrets.GH_APP_ID }}
17
+ private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
19
+
20
+ dependabot-security-alert:
21
+ uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
22
+ with:
23
+ repo-name: sue445/activerecord-compatible_legacy_migration
24
+ secrets:
25
+ # TODO: Set secrets to Dependabot secrets
26
+ app-id: ${{ secrets.GH_APP_ID }}
27
+ private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
28
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -1,59 +1,18 @@
1
- # Simple workflow for deploying static content to GitHub Pages
2
- name: Deploy static content to Pages
1
+ name: Deploy yard to Pages
3
2
 
4
3
  on:
5
- # Runs on pushes targeting the default branch
6
4
  push:
7
5
  branches:
8
6
  - master
9
-
10
- # Allows you to run this workflow manually from the Actions tab
11
7
  workflow_dispatch:
12
8
 
13
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
9
  permissions:
15
10
  contents: read
16
11
  pages: write
17
12
  id-token: write
18
13
 
19
- # Allow one concurrent deployment
20
- concurrency:
21
- group: "pages"
22
- cancel-in-progress: true
23
-
24
14
  jobs:
25
- # Single deploy job since we're just deploying
26
15
  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 }}
16
+ uses: sue445/workflows/.github/workflows/pages-yard.yml@main
17
+ secrets:
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -5,37 +5,10 @@ on:
5
5
 
6
6
  jobs:
7
7
  release:
8
- if: github.repository == 'sue445/activerecord-compatible_legacy_migration'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/activerecord-compatible_legacy_migration
14
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/activerecord-compatible_legacy_migration
11
+ gem-name: activerecord-compatible_legacy_migration
15
12
  permissions:
16
13
  contents: write
17
14
  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 }}
@@ -31,6 +31,7 @@ jobs:
31
31
  - "3.2"
32
32
  - "3.3"
33
33
  - "3.4"
34
+ - "4.0"
34
35
  gemfile:
35
36
  - rails_4_0
36
37
  - rails_4_1
@@ -125,44 +126,41 @@ jobs:
125
126
  gemfile: rails_5_1
126
127
  - ruby: "3.4"
127
128
  gemfile: rails_5_2
129
+ - ruby: "4.0"
130
+ gemfile: rails_4_0
131
+ - ruby: "4.0"
132
+ gemfile: rails_4_1
133
+ - ruby: "4.0"
134
+ gemfile: rails_4_2
135
+ - ruby: "4.0"
136
+ gemfile: rails_5_0
137
+ - ruby: "4.0"
138
+ gemfile: rails_5_1
139
+ - ruby: "4.0"
140
+ gemfile: rails_5_2
128
141
 
129
142
  env:
130
143
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
131
144
 
132
145
  steps:
133
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
146
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
134
147
 
135
148
  - run: sudo apt-get update
136
149
  - run: sudo apt-get install -y libsqlite3-dev
137
150
 
138
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
151
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
139
152
  with:
140
153
  ruby-version: ${{ matrix.ruby }}
141
154
  bundler-cache: true
142
155
  bundler: ${{ matrix.bundler || 'default' }}
143
156
  cache-version: ${{ matrix.gemfile }}
144
157
 
145
- - run: bundle update --jobs $(nproc) --retry 3
146
-
147
- - name: Setup Code Climate Test Reporter
148
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
149
- with:
150
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
151
- command: before-build
152
- continue-on-error: true
158
+ - run: bundle update --all --jobs $(nproc) --retry 3
153
159
 
154
160
  - run: bundle exec rspec
155
161
 
156
- - name: Teardown Code Climate Test Reporter
157
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
158
- with:
159
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
160
- command: after-build
161
- if: always()
162
- continue-on-error: true
163
-
164
162
  - name: Slack Notification (not success)
165
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
163
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
166
164
  if: "! success()"
167
165
  continue-on-error: true
168
166
  with:
@@ -170,15 +168,47 @@ jobs:
170
168
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
171
169
  matrix: ${{ toJson(matrix) }}
172
170
 
173
- notify:
174
- needs: test
171
+ yard:
175
172
  runs-on: ubuntu-latest
176
173
 
177
174
  steps:
178
- - name: Slack Notification (success)
179
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
180
- if: always()
175
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
176
+
177
+ - run: sudo apt-get update
178
+ - run: sudo apt-get install -y libsqlite3-dev
179
+
180
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
181
+ with:
182
+ ruby-version: ruby
183
+ bundler-cache: true
184
+
185
+ - run: bundle update --all --jobs $(nproc) --retry 3
186
+
187
+ - name: yard generating test
188
+ run: |
189
+ set -xe
190
+ bundle exec yard
191
+ ls -ld doc/
192
+
193
+ - name: Slack Notification (not success)
194
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
195
+ if: "! success()"
181
196
  continue-on-error: true
182
197
  with:
183
198
  status: ${{ job.status }}
184
199
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
200
+
201
+ all-pass:
202
+ if: always()
203
+
204
+ needs:
205
+ - test
206
+ - yard
207
+
208
+ runs-on: ubuntu-slim
209
+
210
+ steps:
211
+ - name: check dependent jobs
212
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
213
+ with:
214
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  ## unreleased
2
- [full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.3...master)
2
+ [full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.4...master)
3
3
 
4
- ## v0.1.3
4
+ ## [v0.1.4](https://github.com/sue445/activerecord-compatible_legacy_migration/releases/tag/v0.1.4)
5
+ [full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.3...v0.1.4)
6
+
7
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
8
+ * https://github.com/sue445/activerecord-compatible_legacy_migration/pull/127
9
+
10
+ ## [v0.1.3](https://github.com/sue445/activerecord-compatible_legacy_migration/releases/tag/v0.1.3)
5
11
  [full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.2...v0.1.3)
6
12
 
7
13
  * Release gem from GitHub Actions
data/README.md CHANGED
@@ -4,7 +4,7 @@ Compatible migration file between Rails 4.2 and 5+
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/activerecord-compatible_legacy_migration.svg)](https://badge.fury.io/rb/activerecord-compatible_legacy_migration)
6
6
  [![test](https://github.com/sue445/activerecord-compatible_legacy_migration/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/activerecord-compatible_legacy_migration/actions/workflows/test.yml)
7
- [![Code Climate](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration)
7
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/activerecord-compatible_legacy_migration/maintainability.svg)](https://qlty.sh/gh/sue445/projects/activerecord-compatible_legacy_migration)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/activerecord-compatible_legacy_migration/badge.svg?branch=master)](https://coveralls.io/github/sue445/activerecord-compatible_legacy_migration?branch=master)
9
9
 
10
10
  ## Installation
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency "activerecord", ">= 4.0.0"
29
29
 
30
+ spec.add_development_dependency "benchmark"
30
31
  spec.add_development_dependency "bundler", ">= 1.12"
31
32
  spec.add_development_dependency "rails"
32
33
  spec.add_development_dependency "rake"
@@ -9,9 +9,17 @@ end
9
9
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.6.0")
10
10
  # NOTE: minitest 5.16.0+ requires Ruby 2.6.0+
11
11
  gem "minitest", "< 5.16.0"
12
+
13
+ # NOTE: mini_mime 1.1.4+ requires Ruby 2.6.0+
14
+ gem "mini_mime", "< 1.1.4"
12
15
  end
13
16
 
14
17
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
15
18
  # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
16
19
  gem "term-ansicolor", "< 1.9.0"
17
20
  end
21
+
22
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.2.0")
23
+ # NOTE: i18n 1.15.0+ requires Ruby 3.2+
24
+ gem "i18n", "< 1.15.0"
25
+ end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module CompatibleLegacyMigration
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-compatible_legacy_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -23,6 +23,20 @@ dependencies:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
25
  version: 4.0.0
26
+ - !ruby/object:Gem::Dependency
27
+ name: benchmark
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'
26
40
  - !ruby/object:Gem::Dependency
27
41
  name: bundler
28
42
  requirement: !ruby/object:Gem::Requirement
@@ -144,6 +158,8 @@ extra_rdoc_files: []
144
158
  files:
145
159
  - ".coveralls.yml"
146
160
  - ".github/dependabot.yml"
161
+ - ".github/release.yml"
162
+ - ".github/workflows/dependabot-manager.yml"
147
163
  - ".github/workflows/pages.yml"
148
164
  - ".github/workflows/release_gem.yml"
149
165
  - ".github/workflows/test.yml"
@@ -193,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
209
  - !ruby/object:Gem::Version
194
210
  version: '0'
195
211
  requirements: []
196
- rubygems_version: 3.6.7
212
+ rubygems_version: 4.0.16
197
213
  specification_version: 4
198
214
  summary: Compatible migration file between Rails 4.2 and 5+
199
215
  test_files: []