activerecord-compatible_legacy_migration 0.1.2 → 0.1.3
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 +12 -0
- data/.github/workflows/pages.yml +59 -0
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +102 -56
- data/.yardopts +2 -0
- data/CHANGELOG.md +7 -1
- data/Gemfile +2 -0
- data/README.md +1 -1
- data/activerecord-compatible_legacy_migration.gemspec +7 -12
- data/gemfiles/common.gemfile +17 -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 +29 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45f8646562eb1da138f03c9dc3864b72ca5162c93f9764f404334f868d9d7765
|
|
4
|
+
data.tar.gz: f0c218d1379f473d596a169841ab56450f371cead793fa2d5d736951ef3a7eeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6754b82bf44b551d9d11b3b99a143392079dba801e5486649b776a37fb2e730356c20584adc11c89cec4266f6c553c7a0410a38ff930bdcf461546e4b28e6d5
|
|
7
|
+
data.tar.gz: 35bcf7e4afd394afeb3605e8f6777a442209ae7d1a9459f50950390551aa3cea327fb01c7e5796a574fa6f59fd2e830bb68ce053c7b3458b5d17e950ad531b9b
|
|
@@ -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/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
|
+
|
|
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 }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -16,19 +16,21 @@ 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"
|
|
32
34
|
gemfile:
|
|
33
35
|
- rails_4_0
|
|
34
36
|
- rails_4_1
|
|
@@ -37,89 +39,136 @@ jobs:
|
|
|
37
39
|
- rails_5_1
|
|
38
40
|
- rails_5_2
|
|
39
41
|
- rails_6_0
|
|
42
|
+
|
|
43
|
+
include:
|
|
44
|
+
# Rails 4.x requires bundler 1.x
|
|
45
|
+
- gemfile: rails_4_0
|
|
46
|
+
bundler: 1
|
|
47
|
+
- gemfile: rails_4_1
|
|
48
|
+
bundler: 1
|
|
49
|
+
- gemfile: rails_4_2
|
|
50
|
+
bundler: 1
|
|
51
|
+
|
|
40
52
|
exclude:
|
|
41
53
|
# Rails 6.0 requires Ruby 2.5+
|
|
42
|
-
- ruby:
|
|
54
|
+
- ruby: "2.3"
|
|
43
55
|
gemfile: rails_6_0
|
|
44
|
-
- ruby:
|
|
56
|
+
- ruby: "2.4"
|
|
45
57
|
gemfile: rails_6_0
|
|
46
58
|
|
|
47
59
|
# Ruby 2.7.0 contains bundler 2.1.2, but Rails 4.x locks with bundler 1.x
|
|
48
|
-
- ruby:
|
|
60
|
+
- ruby: "2.7"
|
|
49
61
|
gemfile: rails_4_0
|
|
50
|
-
- ruby:
|
|
62
|
+
- ruby: "2.7"
|
|
51
63
|
gemfile: rails_4_1
|
|
52
|
-
- ruby:
|
|
64
|
+
- ruby: "2.7"
|
|
53
65
|
gemfile: rails_4_2
|
|
54
66
|
|
|
55
67
|
# Rails 4.x and 5.x doesn't work on Ruby 3.0+
|
|
56
|
-
- ruby:
|
|
68
|
+
- ruby: "3.0"
|
|
69
|
+
gemfile: rails_4_0
|
|
70
|
+
- ruby: "3.0"
|
|
71
|
+
gemfile: rails_4_1
|
|
72
|
+
- ruby: "3.0"
|
|
73
|
+
gemfile: rails_4_2
|
|
74
|
+
- ruby: "3.0"
|
|
75
|
+
gemfile: rails_5_0
|
|
76
|
+
- ruby: "3.0"
|
|
77
|
+
gemfile: rails_5_1
|
|
78
|
+
- ruby: "3.0"
|
|
79
|
+
gemfile: rails_5_2
|
|
80
|
+
- ruby: "3.1"
|
|
81
|
+
gemfile: rails_4_0
|
|
82
|
+
- ruby: "3.1"
|
|
83
|
+
gemfile: rails_4_1
|
|
84
|
+
- ruby: "3.1"
|
|
85
|
+
gemfile: rails_4_2
|
|
86
|
+
- ruby: "3.1"
|
|
87
|
+
gemfile: rails_5_0
|
|
88
|
+
- ruby: "3.1"
|
|
89
|
+
gemfile: rails_5_1
|
|
90
|
+
- ruby: "3.1"
|
|
91
|
+
gemfile: rails_5_2
|
|
92
|
+
- ruby: "3.2"
|
|
57
93
|
gemfile: rails_4_0
|
|
58
|
-
- ruby:
|
|
94
|
+
- ruby: "3.2"
|
|
59
95
|
gemfile: rails_4_1
|
|
60
|
-
- ruby:
|
|
96
|
+
- ruby: "3.2"
|
|
61
97
|
gemfile: rails_4_2
|
|
62
|
-
- ruby:
|
|
98
|
+
- ruby: "3.2"
|
|
63
99
|
gemfile: rails_5_0
|
|
64
|
-
- ruby:
|
|
100
|
+
- ruby: "3.2"
|
|
65
101
|
gemfile: rails_5_1
|
|
66
|
-
- ruby:
|
|
102
|
+
- ruby: "3.2"
|
|
103
|
+
gemfile: rails_5_2
|
|
104
|
+
- ruby: "3.3"
|
|
105
|
+
gemfile: rails_4_0
|
|
106
|
+
- ruby: "3.3"
|
|
107
|
+
gemfile: rails_4_1
|
|
108
|
+
- ruby: "3.3"
|
|
109
|
+
gemfile: rails_4_2
|
|
110
|
+
- ruby: "3.3"
|
|
111
|
+
gemfile: rails_5_0
|
|
112
|
+
- ruby: "3.3"
|
|
113
|
+
gemfile: rails_5_1
|
|
114
|
+
- ruby: "3.3"
|
|
115
|
+
gemfile: rails_5_2
|
|
116
|
+
- ruby: "3.4"
|
|
117
|
+
gemfile: rails_4_0
|
|
118
|
+
- ruby: "3.4"
|
|
119
|
+
gemfile: rails_4_1
|
|
120
|
+
- ruby: "3.4"
|
|
121
|
+
gemfile: rails_4_2
|
|
122
|
+
- ruby: "3.4"
|
|
123
|
+
gemfile: rails_5_0
|
|
124
|
+
- ruby: "3.4"
|
|
125
|
+
gemfile: rails_5_1
|
|
126
|
+
- ruby: "3.4"
|
|
67
127
|
gemfile: rails_5_2
|
|
68
128
|
|
|
69
129
|
env:
|
|
70
130
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
71
131
|
|
|
72
132
|
steps:
|
|
73
|
-
- uses: actions/checkout@
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
133
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
134
|
+
|
|
135
|
+
- run: sudo apt-get update
|
|
136
|
+
- run: sudo apt-get install -y libsqlite3-dev
|
|
137
|
+
|
|
138
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
78
139
|
with:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
run: |
|
|
86
|
-
set -xe
|
|
87
|
-
bundle config path vendor/bundle
|
|
88
|
-
bundle update --jobs $(nproc) --retry 3
|
|
89
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
140
|
+
ruby-version: ${{ matrix.ruby }}
|
|
141
|
+
bundler-cache: true
|
|
142
|
+
bundler: ${{ matrix.bundler || 'default' }}
|
|
143
|
+
cache-version: ${{ matrix.gemfile }}
|
|
144
|
+
|
|
145
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
|
90
146
|
|
|
91
147
|
- name: Setup Code Climate Test Reporter
|
|
92
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
148
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
93
149
|
with:
|
|
94
150
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
95
151
|
command: before-build
|
|
96
|
-
if: matrix.ruby >= 'ruby:2.4'
|
|
97
152
|
continue-on-error: true
|
|
98
153
|
|
|
99
|
-
-
|
|
100
|
-
run: |
|
|
101
|
-
set -xe
|
|
102
|
-
bundle exec rspec
|
|
103
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
154
|
+
- run: bundle exec rspec
|
|
104
155
|
|
|
105
156
|
- name: Teardown Code Climate Test Reporter
|
|
106
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
157
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
107
158
|
with:
|
|
108
159
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
109
160
|
command: after-build
|
|
110
|
-
if:
|
|
161
|
+
if: always()
|
|
111
162
|
continue-on-error: true
|
|
112
163
|
|
|
113
164
|
- name: Slack Notification (not success)
|
|
114
|
-
uses:
|
|
165
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
115
166
|
if: "! success()"
|
|
116
167
|
continue-on-error: true
|
|
117
168
|
with:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
122
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
169
|
+
status: ${{ job.status }}
|
|
170
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
171
|
+
matrix: ${{ toJson(matrix) }}
|
|
123
172
|
|
|
124
173
|
notify:
|
|
125
174
|
needs: test
|
|
@@ -127,12 +176,9 @@ jobs:
|
|
|
127
176
|
|
|
128
177
|
steps:
|
|
129
178
|
- name: Slack Notification (success)
|
|
130
|
-
uses:
|
|
179
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
131
180
|
if: always()
|
|
132
181
|
continue-on-error: true
|
|
133
182
|
with:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
icon_emoji: ":octocat:"
|
|
137
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
138
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
183
|
+
status: ${{ job.status }}
|
|
184
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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.3...master)
|
|
3
|
+
|
|
4
|
+
## v0.1.3
|
|
5
|
+
[full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.2...v0.1.3)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/sue445/activerecord-compatible_legacy_migration/pull/83
|
|
3
9
|
|
|
4
10
|
## v0.1.2
|
|
5
11
|
[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,7 +3,7 @@
|
|
|
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
7
|
[](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration)
|
|
8
8
|
[](https://coveralls.io/github/sue445/activerecord-compatible_legacy_migration?branch=master)
|
|
9
9
|
|
|
@@ -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"
|
|
@@ -34,10 +28,11 @@ Gem::Specification.new do |spec|
|
|
|
34
28
|
spec.add_dependency "activerecord", ">= 4.0.0"
|
|
35
29
|
|
|
36
30
|
spec.add_development_dependency "bundler", ">= 1.12"
|
|
37
|
-
spec.add_development_dependency "coveralls"
|
|
38
31
|
spec.add_development_dependency "rails"
|
|
39
32
|
spec.add_development_dependency "rake"
|
|
40
33
|
spec.add_development_dependency "rspec"
|
|
41
34
|
spec.add_development_dependency "simplecov"
|
|
42
35
|
spec.add_development_dependency "sqlite3"
|
|
36
|
+
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
37
|
+
spec.add_development_dependency "yard"
|
|
43
38
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
end
|
|
13
|
+
|
|
14
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
|
|
15
|
+
# term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
|
|
16
|
+
gem "term-ansicolor", "< 1.9.0"
|
|
17
|
+
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.3
|
|
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
|
|
@@ -39,7 +38,7 @@ dependencies:
|
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '1.12'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
41
|
+
name: rails
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - ">="
|
|
@@ -53,7 +52,7 @@ dependencies:
|
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
53
|
version: '0'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
55
|
+
name: rake
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - ">="
|
|
@@ -67,7 +66,7 @@ dependencies:
|
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
67
|
version: '0'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
69
|
+
name: rspec
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - ">="
|
|
@@ -81,7 +80,7 @@ dependencies:
|
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '0'
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
83
|
+
name: simplecov
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
86
85
|
requirements:
|
|
87
86
|
- - ">="
|
|
@@ -95,7 +94,7 @@ dependencies:
|
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
95
|
version: '0'
|
|
97
96
|
- !ruby/object:Gem::Dependency
|
|
98
|
-
name:
|
|
97
|
+
name: sqlite3
|
|
99
98
|
requirement: !ruby/object:Gem::Requirement
|
|
100
99
|
requirements:
|
|
101
100
|
- - ">="
|
|
@@ -109,7 +108,21 @@ dependencies:
|
|
|
109
108
|
- !ruby/object:Gem::Version
|
|
110
109
|
version: '0'
|
|
111
110
|
- !ruby/object:Gem::Dependency
|
|
112
|
-
name:
|
|
111
|
+
name: term-ansicolor
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
requirements:
|
|
114
|
+
- - "!="
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: 1.11.1
|
|
117
|
+
type: :development
|
|
118
|
+
prerelease: false
|
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - "!="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: 1.11.1
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: yard
|
|
113
126
|
requirement: !ruby/object:Gem::Requirement
|
|
114
127
|
requirements:
|
|
115
128
|
- - ">="
|
|
@@ -130,9 +143,13 @@ extensions: []
|
|
|
130
143
|
extra_rdoc_files: []
|
|
131
144
|
files:
|
|
132
145
|
- ".coveralls.yml"
|
|
146
|
+
- ".github/dependabot.yml"
|
|
147
|
+
- ".github/workflows/pages.yml"
|
|
148
|
+
- ".github/workflows/release_gem.yml"
|
|
133
149
|
- ".github/workflows/test.yml"
|
|
134
150
|
- ".gitignore"
|
|
135
151
|
- ".rspec"
|
|
152
|
+
- ".yardopts"
|
|
136
153
|
- CHANGELOG.md
|
|
137
154
|
- Gemfile
|
|
138
155
|
- LICENSE.txt
|
|
@@ -141,6 +158,7 @@ files:
|
|
|
141
158
|
- activerecord-compatible_legacy_migration.gemspec
|
|
142
159
|
- bin/console
|
|
143
160
|
- bin/setup
|
|
161
|
+
- gemfiles/common.gemfile
|
|
144
162
|
- gemfiles/rails_4_0.gemfile
|
|
145
163
|
- gemfiles/rails_4_1.gemfile
|
|
146
164
|
- gemfiles/rails_4_2.gemfile
|
|
@@ -159,8 +177,8 @@ metadata:
|
|
|
159
177
|
homepage_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
|
|
160
178
|
source_code_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
|
|
161
179
|
changelog_uri: https://github.com/sue445/activerecord-compatible_legacy_migration/blob/master/CHANGELOG.md
|
|
180
|
+
documentation_uri: https://sue445.github.io/activerecord-compatible_legacy_migration/
|
|
162
181
|
rubygems_mfa_required: 'true'
|
|
163
|
-
post_install_message:
|
|
164
182
|
rdoc_options: []
|
|
165
183
|
require_paths:
|
|
166
184
|
- lib
|
|
@@ -175,8 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
175
193
|
- !ruby/object:Gem::Version
|
|
176
194
|
version: '0'
|
|
177
195
|
requirements: []
|
|
178
|
-
rubygems_version: 3.
|
|
179
|
-
signing_key:
|
|
196
|
+
rubygems_version: 3.6.7
|
|
180
197
|
specification_version: 4
|
|
181
198
|
summary: Compatible migration file between Rails 4.2 and 5+
|
|
182
199
|
test_files: []
|