activerecord-compatible_legacy_migration 0.1.2 → 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 +4 -4
- data/.github/dependabot.yml +20 -0
- data/.github/release.yml +31 -0
- data/.github/workflows/dependabot-manager.yml +28 -0
- data/.github/workflows/pages.yml +18 -0
- data/.github/workflows/release_gem.yml +14 -0
- data/.github/workflows/test.yml +146 -70
- data/.yardopts +2 -0
- data/CHANGELOG.md +13 -1
- data/Gemfile +2 -0
- data/README.md +2 -2
- data/activerecord-compatible_legacy_migration.gemspec +8 -12
- data/gemfiles/common.gemfile +25 -0
- data/gemfiles/rails_4_0.gemfile +9 -0
- data/gemfiles/rails_4_1.gemfile +9 -0
- data/gemfiles/rails_4_2.gemfile +9 -0
- data/gemfiles/rails_5_0.gemfile +2 -0
- data/gemfiles/rails_5_1.gemfile +2 -0
- data/gemfiles/rails_5_2.gemfile +2 -0
- data/gemfiles/rails_6_0.gemfile +8 -0
- data/lib/active_record/compatible_legacy_migration/version.rb +1 -1
- metadata +45 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca04f25e19dea58da4ca6a4b7f516d0c94996cc6ec8ed1c7a6c72560b14651de
|
|
4
|
+
data.tar.gz: 0aa96b87e954722dc205e8ba4fb3eb3d1430b20a8e94603ed926c2f15c84f952
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bed6498fa31a44136287637a76fd1f231e1d1527350712154d93ec1e3202dfa86d699cc29f487943039d14cf3ea780361f00fff61acf97aecf9962e3274f11ff
|
|
7
|
+
data.tar.gz: 69ab1358db25454e88545e6817932679944fa4e0b476ab7a4ddc70ae702a40d4966c067df86d8c737e9f1227b0c7024db6fcb2406eef258c15d18be5977eac5d
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
###########################################################
|
|
6
|
+
# NOTE: following sections are auto generated. DO NOT EDIT!
|
|
7
|
+
###########################################################
|
|
8
|
+
- package-ecosystem: github-actions
|
|
9
|
+
directory: /
|
|
10
|
+
schedule:
|
|
11
|
+
interval: monthly
|
|
12
|
+
time: "05:00"
|
|
13
|
+
timezone: Asia/Tokyo
|
|
14
|
+
assignees:
|
|
15
|
+
- sue445
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
18
|
+
exclude:
|
|
19
|
+
- ruby/setup-ruby
|
|
20
|
+
###########################################################
|
data/.github/release.yml
ADDED
|
@@ -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 }}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Deploy yard to Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
pages: write
|
|
12
|
+
id-token: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
deploy:
|
|
16
|
+
uses: sue445/workflows/.github/workflows/pages-yard.yml@main
|
|
17
|
+
secrets:
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
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
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
id-token: write
|
data/.github/workflows/test.yml
CHANGED
|
@@ -16,19 +16,22 @@ jobs:
|
|
|
16
16
|
test:
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
18
|
|
|
19
|
-
container: ${{ matrix.ruby }}
|
|
20
|
-
|
|
21
19
|
strategy:
|
|
22
20
|
fail-fast: false
|
|
23
21
|
|
|
24
22
|
matrix:
|
|
25
23
|
ruby:
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
24
|
+
- "2.3"
|
|
25
|
+
- "2.4"
|
|
26
|
+
- "2.5"
|
|
27
|
+
- "2.6"
|
|
28
|
+
- "2.7"
|
|
29
|
+
- "3.0"
|
|
30
|
+
- "3.1"
|
|
31
|
+
- "3.2"
|
|
32
|
+
- "3.3"
|
|
33
|
+
- "3.4"
|
|
34
|
+
- "4.0"
|
|
32
35
|
gemfile:
|
|
33
36
|
- rails_4_0
|
|
34
37
|
- rails_4_1
|
|
@@ -37,102 +40,175 @@ jobs:
|
|
|
37
40
|
- rails_5_1
|
|
38
41
|
- rails_5_2
|
|
39
42
|
- rails_6_0
|
|
43
|
+
|
|
44
|
+
include:
|
|
45
|
+
# Rails 4.x requires bundler 1.x
|
|
46
|
+
- gemfile: rails_4_0
|
|
47
|
+
bundler: 1
|
|
48
|
+
- gemfile: rails_4_1
|
|
49
|
+
bundler: 1
|
|
50
|
+
- gemfile: rails_4_2
|
|
51
|
+
bundler: 1
|
|
52
|
+
|
|
40
53
|
exclude:
|
|
41
54
|
# Rails 6.0 requires Ruby 2.5+
|
|
42
|
-
- ruby:
|
|
55
|
+
- ruby: "2.3"
|
|
43
56
|
gemfile: rails_6_0
|
|
44
|
-
- ruby:
|
|
57
|
+
- ruby: "2.4"
|
|
45
58
|
gemfile: rails_6_0
|
|
46
59
|
|
|
47
60
|
# Ruby 2.7.0 contains bundler 2.1.2, but Rails 4.x locks with bundler 1.x
|
|
48
|
-
- ruby:
|
|
61
|
+
- ruby: "2.7"
|
|
49
62
|
gemfile: rails_4_0
|
|
50
|
-
- ruby:
|
|
63
|
+
- ruby: "2.7"
|
|
51
64
|
gemfile: rails_4_1
|
|
52
|
-
- ruby:
|
|
65
|
+
- ruby: "2.7"
|
|
53
66
|
gemfile: rails_4_2
|
|
54
67
|
|
|
55
68
|
# Rails 4.x and 5.x doesn't work on Ruby 3.0+
|
|
56
|
-
- ruby:
|
|
69
|
+
- ruby: "3.0"
|
|
70
|
+
gemfile: rails_4_0
|
|
71
|
+
- ruby: "3.0"
|
|
72
|
+
gemfile: rails_4_1
|
|
73
|
+
- ruby: "3.0"
|
|
74
|
+
gemfile: rails_4_2
|
|
75
|
+
- ruby: "3.0"
|
|
76
|
+
gemfile: rails_5_0
|
|
77
|
+
- ruby: "3.0"
|
|
78
|
+
gemfile: rails_5_1
|
|
79
|
+
- ruby: "3.0"
|
|
80
|
+
gemfile: rails_5_2
|
|
81
|
+
- ruby: "3.1"
|
|
82
|
+
gemfile: rails_4_0
|
|
83
|
+
- ruby: "3.1"
|
|
84
|
+
gemfile: rails_4_1
|
|
85
|
+
- ruby: "3.1"
|
|
86
|
+
gemfile: rails_4_2
|
|
87
|
+
- ruby: "3.1"
|
|
88
|
+
gemfile: rails_5_0
|
|
89
|
+
- ruby: "3.1"
|
|
90
|
+
gemfile: rails_5_1
|
|
91
|
+
- ruby: "3.1"
|
|
92
|
+
gemfile: rails_5_2
|
|
93
|
+
- ruby: "3.2"
|
|
94
|
+
gemfile: rails_4_0
|
|
95
|
+
- ruby: "3.2"
|
|
96
|
+
gemfile: rails_4_1
|
|
97
|
+
- ruby: "3.2"
|
|
98
|
+
gemfile: rails_4_2
|
|
99
|
+
- ruby: "3.2"
|
|
100
|
+
gemfile: rails_5_0
|
|
101
|
+
- ruby: "3.2"
|
|
102
|
+
gemfile: rails_5_1
|
|
103
|
+
- ruby: "3.2"
|
|
104
|
+
gemfile: rails_5_2
|
|
105
|
+
- ruby: "3.3"
|
|
106
|
+
gemfile: rails_4_0
|
|
107
|
+
- ruby: "3.3"
|
|
108
|
+
gemfile: rails_4_1
|
|
109
|
+
- ruby: "3.3"
|
|
110
|
+
gemfile: rails_4_2
|
|
111
|
+
- ruby: "3.3"
|
|
112
|
+
gemfile: rails_5_0
|
|
113
|
+
- ruby: "3.3"
|
|
114
|
+
gemfile: rails_5_1
|
|
115
|
+
- ruby: "3.3"
|
|
116
|
+
gemfile: rails_5_2
|
|
117
|
+
- ruby: "3.4"
|
|
118
|
+
gemfile: rails_4_0
|
|
119
|
+
- ruby: "3.4"
|
|
120
|
+
gemfile: rails_4_1
|
|
121
|
+
- ruby: "3.4"
|
|
122
|
+
gemfile: rails_4_2
|
|
123
|
+
- ruby: "3.4"
|
|
124
|
+
gemfile: rails_5_0
|
|
125
|
+
- ruby: "3.4"
|
|
126
|
+
gemfile: rails_5_1
|
|
127
|
+
- ruby: "3.4"
|
|
128
|
+
gemfile: rails_5_2
|
|
129
|
+
- ruby: "4.0"
|
|
57
130
|
gemfile: rails_4_0
|
|
58
|
-
- ruby:
|
|
131
|
+
- ruby: "4.0"
|
|
59
132
|
gemfile: rails_4_1
|
|
60
|
-
- ruby:
|
|
133
|
+
- ruby: "4.0"
|
|
61
134
|
gemfile: rails_4_2
|
|
62
|
-
- ruby:
|
|
135
|
+
- ruby: "4.0"
|
|
63
136
|
gemfile: rails_5_0
|
|
64
|
-
- ruby:
|
|
137
|
+
- ruby: "4.0"
|
|
65
138
|
gemfile: rails_5_1
|
|
66
|
-
- ruby:
|
|
139
|
+
- ruby: "4.0"
|
|
67
140
|
gemfile: rails_5_2
|
|
68
141
|
|
|
69
142
|
env:
|
|
70
143
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
71
144
|
|
|
72
145
|
steps:
|
|
73
|
-
- uses: actions/checkout@
|
|
74
|
-
- run: apt-get install libsqlite3-dev -y
|
|
75
|
-
- name: Cache vendor/bundle
|
|
76
|
-
uses: actions/cache@v1
|
|
77
|
-
id: cache_gem
|
|
78
|
-
with:
|
|
79
|
-
path: vendor/bundle
|
|
80
|
-
key: v1-gem-${{ runner.os }}-${{ env.RBENV_VERSION }}-${{ github.sha }}
|
|
81
|
-
restore-keys: |
|
|
82
|
-
v1-gem-${{ runner.os }}-${{ env.RBENV_VERSION }}-
|
|
146
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
83
147
|
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
set -xe
|
|
87
|
-
bundle config path vendor/bundle
|
|
88
|
-
bundle update --jobs $(nproc) --retry 3
|
|
89
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
148
|
+
- run: sudo apt-get update
|
|
149
|
+
- run: sudo apt-get install -y libsqlite3-dev
|
|
90
150
|
|
|
91
|
-
-
|
|
92
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
151
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
93
152
|
with:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
153
|
+
ruby-version: ${{ matrix.ruby }}
|
|
154
|
+
bundler-cache: true
|
|
155
|
+
bundler: ${{ matrix.bundler || 'default' }}
|
|
156
|
+
cache-version: ${{ matrix.gemfile }}
|
|
98
157
|
|
|
99
|
-
-
|
|
100
|
-
run: |
|
|
101
|
-
set -xe
|
|
102
|
-
bundle exec rspec
|
|
103
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
158
|
+
- run: bundle update --all --jobs $(nproc) --retry 3
|
|
104
159
|
|
|
105
|
-
-
|
|
106
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
107
|
-
with:
|
|
108
|
-
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
109
|
-
command: after-build
|
|
110
|
-
if: matrix.ruby >= 'ruby:2.4' && always()
|
|
111
|
-
continue-on-error: true
|
|
160
|
+
- run: bundle exec rspec
|
|
112
161
|
|
|
113
162
|
- name: Slack Notification (not success)
|
|
114
|
-
uses:
|
|
163
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
115
164
|
if: "! success()"
|
|
116
165
|
continue-on-error: true
|
|
117
166
|
with:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
notify:
|
|
125
|
-
needs: test
|
|
167
|
+
status: ${{ job.status }}
|
|
168
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
169
|
+
matrix: ${{ toJson(matrix) }}
|
|
170
|
+
|
|
171
|
+
yard:
|
|
126
172
|
runs-on: ubuntu-latest
|
|
127
173
|
|
|
128
174
|
steps:
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
|
|
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()"
|
|
132
196
|
continue-on-error: true
|
|
133
197
|
with:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
198
|
+
status: ${{ job.status }}
|
|
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/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
## unreleased
|
|
2
|
-
[full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.
|
|
2
|
+
[full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.4...master)
|
|
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)
|
|
11
|
+
[full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.2...v0.1.3)
|
|
12
|
+
|
|
13
|
+
* Release gem from GitHub Actions
|
|
14
|
+
* https://github.com/sue445/activerecord-compatible_legacy_migration/pull/83
|
|
3
15
|
|
|
4
16
|
## v0.1.2
|
|
5
17
|
[full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.1...v0.1.2)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Compatible migration file between Rails 4.2 and 5+
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/activerecord-compatible_legacy_migration)
|
|
6
|
-
[](https://github.com/sue445/activerecord-compatible_legacy_migration/actions/workflows/test.yml)
|
|
7
|
+
[](https://qlty.sh/gh/sue445/projects/activerecord-compatible_legacy_migration)
|
|
8
8
|
[](https://coveralls.io/github/sue445/activerecord-compatible_legacy_migration?branch=master)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -14,17 +14,11 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.homepage = "https://github.com/sue445/activerecord-compatible_legacy_migration"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
23
|
-
spec.metadata["rubygems_mfa_required"] = "true"
|
|
24
|
-
else
|
|
25
|
-
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
|
26
|
-
'public gem pushes.'
|
|
27
|
-
end
|
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
20
|
+
spec.metadata["documentation_uri"] = "https://sue445.github.io/activerecord-compatible_legacy_migration/"
|
|
21
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
28
22
|
|
|
29
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
30
24
|
spec.bindir = "exe"
|
|
@@ -33,11 +27,13 @@ Gem::Specification.new do |spec|
|
|
|
33
27
|
|
|
34
28
|
spec.add_dependency "activerecord", ">= 4.0.0"
|
|
35
29
|
|
|
30
|
+
spec.add_development_dependency "benchmark"
|
|
36
31
|
spec.add_development_dependency "bundler", ">= 1.12"
|
|
37
|
-
spec.add_development_dependency "coveralls"
|
|
38
32
|
spec.add_development_dependency "rails"
|
|
39
33
|
spec.add_development_dependency "rake"
|
|
40
34
|
spec.add_development_dependency "rspec"
|
|
41
35
|
spec.add_development_dependency "simplecov"
|
|
42
36
|
spec.add_development_dependency "sqlite3"
|
|
37
|
+
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
38
|
+
spec.add_development_dependency "yard"
|
|
43
39
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
|
|
2
|
+
# FIXME: coveralls_reborn cannot be installed due to dependencies with json and rails 4.x
|
|
3
|
+
# c.f. https://github.com/sue445/activerecord-compatible_legacy_migration/actions/runs/3854778531/jobs/6569131703
|
|
4
|
+
gem "coveralls"
|
|
5
|
+
else
|
|
6
|
+
gem "coveralls_reborn"
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.6.0")
|
|
10
|
+
# NOTE: minitest 5.16.0+ requires Ruby 2.6.0+
|
|
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"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
|
|
18
|
+
# term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
|
|
19
|
+
gem "term-ansicolor", "< 1.9.0"
|
|
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
|
data/gemfiles/rails_4_0.gemfile
CHANGED
|
@@ -3,4 +3,13 @@ source "https://rubygems.org"
|
|
|
3
3
|
gem "rails", "~> 4.0.0"
|
|
4
4
|
gem "sqlite3", "~> 1.3.6"
|
|
5
5
|
|
|
6
|
+
# activesupport uses `BigDecimal#initialize`, but this was removed bigdecimal v1.4.0
|
|
7
|
+
#
|
|
8
|
+
# c.f.
|
|
9
|
+
# * https://github.com/rails/rails/blob/v4.0.13/activesupport/lib/active_support/core_ext/object/duplicable.rb#L82
|
|
10
|
+
# * https://github.com/ruby/bigdecimal/blob/master/CHANGES.md#140
|
|
11
|
+
gem "bigdecimal", "< 1.4.0"
|
|
12
|
+
|
|
13
|
+
eval_gemfile "#{__dir__}/common.gemfile"
|
|
14
|
+
|
|
6
15
|
gemspec path: '../'
|
data/gemfiles/rails_4_1.gemfile
CHANGED
|
@@ -3,4 +3,13 @@ source "https://rubygems.org"
|
|
|
3
3
|
gem "rails", "~> 4.1.0"
|
|
4
4
|
gem "sqlite3", "~> 1.3.6"
|
|
5
5
|
|
|
6
|
+
# activesupport uses `BigDecimal#initialize`, but this was removed bigdecimal v1.4.0
|
|
7
|
+
#
|
|
8
|
+
# c.f.
|
|
9
|
+
# * https://github.com/rails/rails/blob/v4.1.16/activesupport/lib/active_support/core_ext/object/duplicable.rb#L82
|
|
10
|
+
# * https://github.com/ruby/bigdecimal/blob/master/CHANGES.md#140
|
|
11
|
+
gem "bigdecimal", "< 1.4.0"
|
|
12
|
+
|
|
13
|
+
eval_gemfile "#{__dir__}/common.gemfile"
|
|
14
|
+
|
|
6
15
|
gemspec path: '../'
|
data/gemfiles/rails_4_2.gemfile
CHANGED
|
@@ -3,4 +3,13 @@ source "https://rubygems.org"
|
|
|
3
3
|
gem "rails", "~> 4.2.0"
|
|
4
4
|
gem "sqlite3", "~> 1.3.6"
|
|
5
5
|
|
|
6
|
+
# activesupport uses `BigDecimal#initialize`, but this was removed bigdecimal v1.4.0
|
|
7
|
+
#
|
|
8
|
+
# c.f.
|
|
9
|
+
# * https://github.com/rails/rails/blob/v4.2.11.3/activesupport/lib/active_support/core_ext/object/duplicable.rb#L111
|
|
10
|
+
# * https://github.com/ruby/bigdecimal/blob/master/CHANGES.md#140
|
|
11
|
+
gem "bigdecimal", "< 1.4.0"
|
|
12
|
+
|
|
13
|
+
eval_gemfile "#{__dir__}/common.gemfile"
|
|
14
|
+
|
|
6
15
|
gemspec path: '../'
|
data/gemfiles/rails_5_0.gemfile
CHANGED
data/gemfiles/rails_5_1.gemfile
CHANGED
data/gemfiles/rails_5_2.gemfile
CHANGED
data/gemfiles/rails_6_0.gemfile
CHANGED
|
@@ -5,4 +5,12 @@ gem "rails", "~> 6.0.0"
|
|
|
5
5
|
# c.f. https://github.com/rails/rails/blob/v6.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
|
6
6
|
gem "sqlite3", "~> 1.4"
|
|
7
7
|
|
|
8
|
+
# for Ruby 3.4+
|
|
9
|
+
gem "base64"
|
|
10
|
+
gem "bigdecimal"
|
|
11
|
+
gem "drb"
|
|
12
|
+
gem "mutex_m"
|
|
13
|
+
|
|
14
|
+
eval_gemfile "#{__dir__}/common.gemfile"
|
|
15
|
+
|
|
8
16
|
gemspec path: '../'
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-compatible_legacy_migration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activerecord
|
|
@@ -25,33 +24,33 @@ dependencies:
|
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: 4.0.0
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: benchmark
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
32
|
+
version: '0'
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
39
|
+
version: '0'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
41
|
+
name: bundler
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - ">="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
46
|
+
version: '1.12'
|
|
48
47
|
type: :development
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - ">="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
53
|
+
version: '1.12'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: rails
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -122,6 +121,34 @@ dependencies:
|
|
|
122
121
|
- - ">="
|
|
123
122
|
- !ruby/object:Gem::Version
|
|
124
123
|
version: '0'
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: term-ansicolor
|
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - "!="
|
|
129
|
+
- !ruby/object:Gem::Version
|
|
130
|
+
version: 1.11.1
|
|
131
|
+
type: :development
|
|
132
|
+
prerelease: false
|
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
134
|
+
requirements:
|
|
135
|
+
- - "!="
|
|
136
|
+
- !ruby/object:Gem::Version
|
|
137
|
+
version: 1.11.1
|
|
138
|
+
- !ruby/object:Gem::Dependency
|
|
139
|
+
name: yard
|
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
|
141
|
+
requirements:
|
|
142
|
+
- - ">="
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: '0'
|
|
145
|
+
type: :development
|
|
146
|
+
prerelease: false
|
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
- - ">="
|
|
150
|
+
- !ruby/object:Gem::Version
|
|
151
|
+
version: '0'
|
|
125
152
|
description: Compatible migration file between Rails 4.2 and 5+
|
|
126
153
|
email:
|
|
127
154
|
- sue445@sue445.net
|
|
@@ -130,9 +157,15 @@ extensions: []
|
|
|
130
157
|
extra_rdoc_files: []
|
|
131
158
|
files:
|
|
132
159
|
- ".coveralls.yml"
|
|
160
|
+
- ".github/dependabot.yml"
|
|
161
|
+
- ".github/release.yml"
|
|
162
|
+
- ".github/workflows/dependabot-manager.yml"
|
|
163
|
+
- ".github/workflows/pages.yml"
|
|
164
|
+
- ".github/workflows/release_gem.yml"
|
|
133
165
|
- ".github/workflows/test.yml"
|
|
134
166
|
- ".gitignore"
|
|
135
167
|
- ".rspec"
|
|
168
|
+
- ".yardopts"
|
|
136
169
|
- CHANGELOG.md
|
|
137
170
|
- Gemfile
|
|
138
171
|
- LICENSE.txt
|
|
@@ -141,6 +174,7 @@ files:
|
|
|
141
174
|
- activerecord-compatible_legacy_migration.gemspec
|
|
142
175
|
- bin/console
|
|
143
176
|
- bin/setup
|
|
177
|
+
- gemfiles/common.gemfile
|
|
144
178
|
- gemfiles/rails_4_0.gemfile
|
|
145
179
|
- gemfiles/rails_4_1.gemfile
|
|
146
180
|
- gemfiles/rails_4_2.gemfile
|
|
@@ -159,8 +193,8 @@ metadata:
|
|
|
159
193
|
homepage_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
|
|
160
194
|
source_code_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
|
|
161
195
|
changelog_uri: https://github.com/sue445/activerecord-compatible_legacy_migration/blob/master/CHANGELOG.md
|
|
196
|
+
documentation_uri: https://sue445.github.io/activerecord-compatible_legacy_migration/
|
|
162
197
|
rubygems_mfa_required: 'true'
|
|
163
|
-
post_install_message:
|
|
164
198
|
rdoc_options: []
|
|
165
199
|
require_paths:
|
|
166
200
|
- lib
|
|
@@ -175,8 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
175
209
|
- !ruby/object:Gem::Version
|
|
176
210
|
version: '0'
|
|
177
211
|
requirements: []
|
|
178
|
-
rubygems_version:
|
|
179
|
-
signing_key:
|
|
212
|
+
rubygems_version: 4.0.16
|
|
180
213
|
specification_version: 4
|
|
181
214
|
summary: Compatible migration file between Rails 4.2 and 5+
|
|
182
215
|
test_files: []
|