activerecord-compatible_legacy_migration 0.1.1 → 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 +5 -5
- 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 +184 -0
- data/.yardopts +2 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +2 -0
- data/README.md +1 -2
- data/activerecord-compatible_legacy_migration.gemspec +11 -4
- data/gemfiles/common.gemfile +17 -0
- data/gemfiles/rails_4_0.gemfile +15 -0
- data/gemfiles/rails_4_1.gemfile +15 -0
- data/gemfiles/rails_4_2.gemfile +15 -0
- data/gemfiles/rails_5_0.gemfile +8 -0
- data/gemfiles/rails_5_1.gemfile +8 -0
- data/gemfiles/rails_5_2.gemfile +8 -0
- data/gemfiles/rails_6_0.gemfile +16 -0
- data/lib/active_record/compatible_legacy_migration/version.rb +1 -1
- metadata +48 -25
- data/.travis.yml +0 -28
- data/gemfiles/activerecord_4_0.gemfile +0 -5
- data/gemfiles/activerecord_4_1.gemfile +0 -5
- data/gemfiles/activerecord_4_2.gemfile +0 -5
- data/gemfiles/activerecord_5_0.gemfile +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
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 }}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
types:
|
|
9
|
+
- opened
|
|
10
|
+
- synchronize
|
|
11
|
+
- reopened
|
|
12
|
+
schedule:
|
|
13
|
+
- cron: "0 19 * * 5" # JST 4:00 (Sat)
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
test:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
|
|
22
|
+
matrix:
|
|
23
|
+
ruby:
|
|
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
|
+
gemfile:
|
|
35
|
+
- rails_4_0
|
|
36
|
+
- rails_4_1
|
|
37
|
+
- rails_4_2
|
|
38
|
+
- rails_5_0
|
|
39
|
+
- rails_5_1
|
|
40
|
+
- rails_5_2
|
|
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
|
+
|
|
52
|
+
exclude:
|
|
53
|
+
# Rails 6.0 requires Ruby 2.5+
|
|
54
|
+
- ruby: "2.3"
|
|
55
|
+
gemfile: rails_6_0
|
|
56
|
+
- ruby: "2.4"
|
|
57
|
+
gemfile: rails_6_0
|
|
58
|
+
|
|
59
|
+
# Ruby 2.7.0 contains bundler 2.1.2, but Rails 4.x locks with bundler 1.x
|
|
60
|
+
- ruby: "2.7"
|
|
61
|
+
gemfile: rails_4_0
|
|
62
|
+
- ruby: "2.7"
|
|
63
|
+
gemfile: rails_4_1
|
|
64
|
+
- ruby: "2.7"
|
|
65
|
+
gemfile: rails_4_2
|
|
66
|
+
|
|
67
|
+
# Rails 4.x and 5.x doesn't work on Ruby 3.0+
|
|
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"
|
|
93
|
+
gemfile: rails_4_0
|
|
94
|
+
- ruby: "3.2"
|
|
95
|
+
gemfile: rails_4_1
|
|
96
|
+
- ruby: "3.2"
|
|
97
|
+
gemfile: rails_4_2
|
|
98
|
+
- ruby: "3.2"
|
|
99
|
+
gemfile: rails_5_0
|
|
100
|
+
- ruby: "3.2"
|
|
101
|
+
gemfile: rails_5_1
|
|
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"
|
|
127
|
+
gemfile: rails_5_2
|
|
128
|
+
|
|
129
|
+
env:
|
|
130
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
131
|
+
|
|
132
|
+
steps:
|
|
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
|
|
139
|
+
with:
|
|
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
|
|
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
|
|
153
|
+
|
|
154
|
+
- run: bundle exec rspec
|
|
155
|
+
|
|
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
|
+
- name: Slack Notification (not success)
|
|
165
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
166
|
+
if: "! success()"
|
|
167
|
+
continue-on-error: true
|
|
168
|
+
with:
|
|
169
|
+
status: ${{ job.status }}
|
|
170
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
171
|
+
matrix: ${{ toJson(matrix) }}
|
|
172
|
+
|
|
173
|
+
notify:
|
|
174
|
+
needs: test
|
|
175
|
+
runs-on: ubuntu-latest
|
|
176
|
+
|
|
177
|
+
steps:
|
|
178
|
+
- name: Slack Notification (success)
|
|
179
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
180
|
+
if: always()
|
|
181
|
+
continue-on-error: true
|
|
182
|
+
with:
|
|
183
|
+
status: ${{ job.status }}
|
|
184
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
## unreleased
|
|
2
|
-
[full changelog](http://github.com/sue445/
|
|
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
|
|
9
|
+
|
|
10
|
+
## v0.1.2
|
|
11
|
+
[full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.1...v0.1.2)
|
|
12
|
+
|
|
13
|
+
* Enable MFA requirement for gem releasing
|
|
14
|
+
* https://github.com/sue445/activerecord-compatible_legacy_migration/pull/49
|
|
3
15
|
|
|
4
16
|
## v0.1.1
|
|
5
|
-
[full changelog](http://github.com/sue445/
|
|
17
|
+
[full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.0...v0.1.1)
|
|
6
18
|
|
|
7
19
|
* Add default_version to configuration
|
|
8
20
|
* https://github.com/sue445/activerecord-compatible_legacy_migration/pull/4
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
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
|
-
[](https://gemnasium.com/github.com/sue445/activerecord-compatible_legacy_migration)
|
|
10
9
|
|
|
11
10
|
## Installation
|
|
12
11
|
|
|
@@ -14,6 +14,12 @@ 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
|
+
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"
|
|
22
|
+
|
|
17
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
24
|
spec.bindir = "exe"
|
|
19
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
@@ -21,11 +27,12 @@ Gem::Specification.new do |spec|
|
|
|
21
27
|
|
|
22
28
|
spec.add_dependency "activerecord", ">= 4.0.0"
|
|
23
29
|
|
|
24
|
-
spec.add_development_dependency "bundler", "
|
|
25
|
-
spec.add_development_dependency "coveralls"
|
|
26
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
|
30
|
+
spec.add_development_dependency "bundler", ">= 1.12"
|
|
27
31
|
spec.add_development_dependency "rails"
|
|
28
|
-
spec.add_development_dependency "rake"
|
|
32
|
+
spec.add_development_dependency "rake"
|
|
29
33
|
spec.add_development_dependency "rspec"
|
|
34
|
+
spec.add_development_dependency "simplecov"
|
|
30
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"
|
|
31
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
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "rails", "~> 4.0.0"
|
|
4
|
+
gem "sqlite3", "~> 1.3.6"
|
|
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
|
+
|
|
15
|
+
gemspec path: '../'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "rails", "~> 4.1.0"
|
|
4
|
+
gem "sqlite3", "~> 1.3.6"
|
|
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
|
+
|
|
15
|
+
gemspec path: '../'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "rails", "~> 4.2.0"
|
|
4
|
+
gem "sqlite3", "~> 1.3.6"
|
|
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
|
+
|
|
15
|
+
gemspec path: '../'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "rails", "~> 6.0.0"
|
|
4
|
+
|
|
5
|
+
# c.f. https://github.com/rails/rails/blob/v6.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
|
6
|
+
gem "sqlite3", "~> 1.4"
|
|
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
|
+
|
|
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
|
|
@@ -28,18 +27,18 @@ dependencies:
|
|
|
28
27
|
name: bundler
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
32
|
version: '1.12'
|
|
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
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,21 +80,21 @@ 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
|
+
- - ">="
|
|
88
87
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
88
|
+
version: '0'
|
|
90
89
|
type: :development
|
|
91
90
|
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
|
-
- - "
|
|
93
|
+
- - ">="
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
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"
|
|
149
|
+
- ".github/workflows/test.yml"
|
|
133
150
|
- ".gitignore"
|
|
134
151
|
- ".rspec"
|
|
135
|
-
- ".
|
|
152
|
+
- ".yardopts"
|
|
136
153
|
- CHANGELOG.md
|
|
137
154
|
- Gemfile
|
|
138
155
|
- LICENSE.txt
|
|
@@ -141,10 +158,14 @@ files:
|
|
|
141
158
|
- activerecord-compatible_legacy_migration.gemspec
|
|
142
159
|
- bin/console
|
|
143
160
|
- bin/setup
|
|
144
|
-
- gemfiles/
|
|
145
|
-
- gemfiles/
|
|
146
|
-
- gemfiles/
|
|
147
|
-
- gemfiles/
|
|
161
|
+
- gemfiles/common.gemfile
|
|
162
|
+
- gemfiles/rails_4_0.gemfile
|
|
163
|
+
- gemfiles/rails_4_1.gemfile
|
|
164
|
+
- gemfiles/rails_4_2.gemfile
|
|
165
|
+
- gemfiles/rails_5_0.gemfile
|
|
166
|
+
- gemfiles/rails_5_1.gemfile
|
|
167
|
+
- gemfiles/rails_5_2.gemfile
|
|
168
|
+
- gemfiles/rails_6_0.gemfile
|
|
148
169
|
- lib/active_record/compatible_legacy_migration.rb
|
|
149
170
|
- lib/active_record/compatible_legacy_migration/configuration.rb
|
|
150
171
|
- lib/active_record/compatible_legacy_migration/version.rb
|
|
@@ -152,8 +173,12 @@ files:
|
|
|
152
173
|
homepage: https://github.com/sue445/activerecord-compatible_legacy_migration
|
|
153
174
|
licenses:
|
|
154
175
|
- MIT
|
|
155
|
-
metadata:
|
|
156
|
-
|
|
176
|
+
metadata:
|
|
177
|
+
homepage_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
|
|
178
|
+
source_code_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
|
|
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/
|
|
181
|
+
rubygems_mfa_required: 'true'
|
|
157
182
|
rdoc_options: []
|
|
158
183
|
require_paths:
|
|
159
184
|
- lib
|
|
@@ -168,9 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
193
|
- !ruby/object:Gem::Version
|
|
169
194
|
version: '0'
|
|
170
195
|
requirements: []
|
|
171
|
-
|
|
172
|
-
rubygems_version: 2.5.1
|
|
173
|
-
signing_key:
|
|
196
|
+
rubygems_version: 3.6.7
|
|
174
197
|
specification_version: 4
|
|
175
198
|
summary: Compatible migration file between Rails 4.2 and 5+
|
|
176
199
|
test_files: []
|
data/.travis.yml
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.2.5
|
|
4
|
-
- 2.3.1
|
|
5
|
-
- ruby-head
|
|
6
|
-
gemfile:
|
|
7
|
-
- gemfiles/activerecord_4_0.gemfile
|
|
8
|
-
- gemfiles/activerecord_4_1.gemfile
|
|
9
|
-
- gemfiles/activerecord_4_2.gemfile
|
|
10
|
-
- gemfiles/activerecord_5_0.gemfile
|
|
11
|
-
cache: bundler
|
|
12
|
-
sudo: false
|
|
13
|
-
before_install: gem install bundler -v 1.12.5
|
|
14
|
-
before_script:
|
|
15
|
-
- export CODECLIMATE_REPO_TOKEN=87a9b1085def76711dabebf564293d7907986c6adb0a92233bceaaf4b212687d
|
|
16
|
-
- export CI=true
|
|
17
|
-
script:
|
|
18
|
-
- bundle exec rspec
|
|
19
|
-
branches:
|
|
20
|
-
only:
|
|
21
|
-
- master
|
|
22
|
-
notifications:
|
|
23
|
-
email: false
|
|
24
|
-
slack:
|
|
25
|
-
secure: A0voR9CpjyAbwo/8l3YytjvUacNe/6KQuCn0F6g711bbsmDdQiv+DYSuLcDpvq6y8o0QGFdJ2UgPtP3nkG96bFyhmbm6CfpERgwR+/1Hg5Tovw3lFny5ud1Y9xfFUQI7apmp4HkUatxIU7/0rjmqPHIXMugyv6dv4qqADJ0ma5H+CLlyIvrqXRZrFzUWqFn1/pfkfb7jahZ0MIk5NBAvAmvupaV5GEGzWHlM3/xdIQYijbYoveaKBaRe//Sj98EzGxwBMKrJjkSFuUBoano6GGc4IZ6B6yHfEfSziW0hp3+dqGBCugXThAWLyNxAeBrWd30eRsUMgVe33ry4gaszktrcoKx+CcMUyniKLUqFP/Y/f0fkvr6P2i8GctYKbY+tMgfeDAC6F0PET6nkx+e8xQYt+HqywiqXMjLUQSXE7Uw4n/0O/8QkB3Ylzr4gmSIezBeZM4+FDClWQyqd6V0LE15sD4+4s+QKtnJXazoD3pFj5lYLGfc4nYyRCy1MlgezjQ90Ji8Ol4POLLZbJgEmkgIhyr4nus64kLfFhSTwpCtFKq8FqkJIIO381cFlWb+EsO4a4rWVOVPe2niKp7+fO9L2l46ZSoqAEP2dvC9uhERDOe38ZzL3g1zKiisSYpvO+zO8k0vjpJJEm8DDtqpdWjRxtcaAW+XyGHFLEUFcgJ4=
|
|
26
|
-
matrix:
|
|
27
|
-
allow_failures:
|
|
28
|
-
- rvm: ruby-head
|