This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
forked from winebarrel/activerecord-mysql-reconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
119 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ -x "$(command -v toilet)" ] && toilet -f term -F border --gay " activerecord-mysql-reconnect " | ||
|
||
export STARSHIP_CONFIG=$(PWD)/.starship.toml | ||
|
||
source_env_if_exists .envrc.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,8 @@ tmp | |
test.rb | ||
*.bak | ||
*.swp | ||
/gemfiles/*.lock | ||
gemfiles | ||
.envrc.local | ||
.issue_title | ||
.idea | ||
.starship.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
appraise "activerecord-4.2" do | ||
gem "activerecord", "~> 4.2.0" | ||
gem "mysql2", "< 0.5" | ||
end | ||
|
||
appraise "activerecord-5.0" do | ||
gem "activerecord", "~> 5.0.0" | ||
end | ||
|
||
appraise "activerecord-5.1" do | ||
gem "activerecord", "~> 5.1.0" | ||
appraise "activerecord-6.1" do | ||
gem "activerecord", "~> 6.1.0" | ||
end | ||
|
||
appraise "activerecord-5.2" do | ||
gem "activerecord", "~> 5.2.0" | ||
end | ||
# appraise "activerecord-7.0" do | ||
# gem "activerecord", "~> 7.0.0" | ||
# end | ||
|
||
appraise "activerecord-6.0" do | ||
gem "activerecord", "~> 6.0.2" | ||
end | ||
|
||
appraise "activerecord-master" do | ||
gem "activerecord", git: "https://github.com/rails/rails.git" | ||
end | ||
# appraise "activerecord-master" do | ||
# gem "activerecord", git: "https://github.com/rails/rails.git" | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mysql_for_ar_mysql_reconn: | ||
image: "mysql:5.6" | ||
image: "mysql:8" | ||
ports: | ||
- "14407:3306" | ||
environment: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
require 'active_support' | ||
require 'retriable' | ||
|
||
ActiveSupport.on_load :active_record do | ||
require_relative 'activerecord/mysql/reconnect' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.