Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update migration_spec.rb #18

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
# working_directory: ~/appName
docker:
- image: cimg/ruby:2.7.7
- image: cimg/ruby:3.1.6
environment:
PG_HOST: localhost
PG_USER: ubuntu
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/
*.gem
/gemfiles/*.gemfile.lock
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.7
3.1.6
41 changes: 13 additions & 28 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,41 +1,26 @@
appraise "activerecord-4" do
gem "activerecord", "4.2.7.1"
gem "pg", "~> 0.21"
gem "bigdecimal", "1.3.5"
appraise "activerecord_6_1" do
gem "activerecord", "~> 6.1.0"
end

appraise "activerecord-4_with_strong_migrations" do
gem "activerecord", "4.2.7.1"
appraise "activerecord_6_1_with_strong_migrations" do
gem "activerecord", "~> 6.1.0"
gem "strong_migrations", "0.2"
gem "pg", "~> 0.21"
gem "bigdecimal", "1.3.5"
end

appraise "activerecord-5" do
gem "activerecord", "5.0.0.1"
gem "pg", "~> 0.21"
appraise "activerecord_7" do
gem "activerecord", "~> 7.0.1"
end

appraise "activerecord-5_with_strong_migrations" do
gem "activerecord", "5.0.0.1"
gem "strong_migrations", "0.2"
gem "pg", "~> 0.21"
end

appraise "activerecord-6" do
gem "activerecord", "6.0.0"
end

appraise "activerecord-6_with_strong_migrations" do
gem "activerecord", "6.0.0"
gem "strong_migrations", "0.2"
appraise "activerecord_7_with_strong_migrations" do
gem "activerecord", "~> 7.0.1"
gem "strong_migrations"
end

appraise "activerecord-7" do
gem "activerecord", "7.0.0"
appraise "activerecord_7_1" do
gem "activerecord", "~> 7.1.0"
end

appraise "activerecord-7_with_strong_migrations" do
gem "activerecord", "7.0.0"
appraise "activerecord_7_1_with_strong_migrations" do
gem "activerecord", "~> 7.1.0"
gem "strong_migrations"
end
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in migration-lock-timeout.gemspec
gemspec

group :development, :test do
gem 'appraisal', require: false
gem 'database_cleaner', require: false
gem 'pg', '~> 1.1', require: false
gem 'rake', '~> 13', require: false
gem 'rspec', '~> 3.2', require: false
end
79 changes: 79 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
PATH
remote: .
specs:
migration-lock-timeout (1.4.0)
activerecord (>= 6.1, < 8.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (7.1.3.4)
activesupport (= 7.1.3.4)
activerecord (7.1.3.4)
activemodel (= 7.1.3.4)
activesupport (= 7.1.3.4)
timeout (>= 0.4.0)
activesupport (7.1.3.4)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
base64 (0.2.0)
bigdecimal (3.1.8)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.2.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.5.1)
drb (2.2.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
minitest (5.24.1)
mutex_m (0.2.0)
pg (1.5.7)
rake (13.2.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)

PLATFORMS
arm64-darwin-22
ruby

DEPENDENCIES
appraisal
database_cleaner
migration-lock-timeout!
pg (~> 1.1)
rake (~> 13)
rspec (~> 3.2)

BUNDLED WITH
2.5.10
9 changes: 0 additions & 9 deletions gemfiles/activerecord_4.gemfile

This file was deleted.

10 changes: 0 additions & 10 deletions gemfiles/activerecord_4_with_strong_migrations.gemfile

This file was deleted.

8 changes: 0 additions & 8 deletions gemfiles/activerecord_5.gemfile

This file was deleted.

9 changes: 0 additions & 9 deletions gemfiles/activerecord_5_with_strong_migrations.gemfile

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/activerecord_6.gemfile

This file was deleted.

15 changes: 15 additions & 0 deletions gemfiles/activerecord_6_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 6.1.0"

group :development, :test do
gem "appraisal", require: false
gem "database_cleaner", require: false
gem "pg", "~> 1.1", require: false
gem "rake", "~> 13", require: false
gem "rspec", "~> 3.2", require: false
end

gemspec path: "../"
70 changes: 70 additions & 0 deletions gemfiles/activerecord_6_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
PATH
remote: ..
specs:
migration-lock-timeout (1.4.0)
activerecord (>= 6.1, < 8.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (6.1.7.8)
activesupport (= 6.1.7.8)
activerecord (6.1.7.8)
activemodel (= 6.1.7.8)
activesupport (= 6.1.7.8)
activesupport (6.1.7.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
concurrent-ruby (1.3.3)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.2.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.5.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
minitest (5.24.1)
pg (1.5.7)
rake (13.2.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
thor (1.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
zeitwerk (2.6.17)

PLATFORMS
arm64-darwin-22
ruby

DEPENDENCIES
activerecord (~> 6.1.0)
appraisal
database_cleaner
migration-lock-timeout!
pg (~> 1.1)
rake (~> 13)
rspec (~> 3.2)

BUNDLED WITH
2.5.10
16 changes: 16 additions & 0 deletions gemfiles/activerecord_6_1_with_strong_migrations.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 6.1.0"
gem "strong_migrations", "0.2"

group :development, :test do
gem "appraisal", require: false
gem "database_cleaner", require: false
gem "pg", "~> 1.1", require: false
gem "rake", "~> 13", require: false
gem "rspec", "~> 3.2", require: false
end

gemspec path: "../"
73 changes: 73 additions & 0 deletions gemfiles/activerecord_6_1_with_strong_migrations.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
PATH
remote: ..
specs:
migration-lock-timeout (1.4.0)
activerecord (>= 6.1, < 8.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (6.1.7.8)
activesupport (= 6.1.7.8)
activerecord (6.1.7.8)
activemodel (= 6.1.7.8)
activesupport (= 6.1.7.8)
activesupport (6.1.7.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
concurrent-ruby (1.3.3)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.2.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.5.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
minitest (5.24.1)
pg (1.5.7)
rake (13.2.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
strong_migrations (0.2.0)
activerecord (>= 3.2.0)
thor (1.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
zeitwerk (2.6.17)

PLATFORMS
arm64-darwin-22
ruby

DEPENDENCIES
activerecord (~> 6.1.0)
appraisal
database_cleaner
migration-lock-timeout!
pg (~> 1.1)
rake (~> 13)
rspec (~> 3.2)
strong_migrations (= 0.2)

BUNDLED WITH
2.5.10
Loading