-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ActiveRecord >= 6.1 compatibility (#61)
* Update rubocop to be a bit more lenient with class/method length * Update gemspec to ensure ActiveRecord < 6.2 * Add compatibility for ActiveRecord >= 6.1 * Re-remove Gemfile.lock * Add tests for add_index and remove_index methods * Fix specs * Fix add_index for ruby3/AR6 * Fix test matrix since activerecord 6.0 is incompatible with ruby 3 * v0.3.0 * Add custom matcher replacing matching method * Update script to automatically test against all gemfiles in the gemfiles directory
- Loading branch information
Showing
8 changed files
with
244 additions
and
53 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
test_version() { | ||
local version=$(echo $1 | sed "s/[^0-9.]*//g") | ||
echo | ||
echo "----------------------------------------------------------------------------------------------------------------------" | ||
echo -e "\033[1;34mTesting against ActiveRecord ${version}\033[0m" | ||
|
||
local gemfile="${1}" | ||
shift | ||
|
||
bundle install --gemfile "${gemfile}" --quiet | ||
bundle exec --gemfile "${gemfile}" rspec "$@" | ||
} | ||
|
||
for gemfile in $(find gemfiles -type f -regex ".*\.Gemfile$"); do | ||
test_version "${gemfile}" | ||
done |
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,3 +1,3 @@ | ||
module GhostAdapter | ||
VERSION = '0.2.3'.freeze | ||
VERSION = '0.3.0'.freeze | ||
end |
Oops, something went wrong.