-
Notifications
You must be signed in to change notification settings - Fork 505
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
Rails > 6 and Ruby > 3 support #577
Open
sosolidkk
wants to merge
6
commits into
thiagopradi:master
Choose a base branch
from
CunhaDaniel:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ed94fce
Rails 6 dummy support
27b3d98
Upgrade ruby sintaxe on gem
9c295a7
Undo some unneeded changes and improvements
sosolidkk 05ca34d
Merge pull request #1 from CunhaDaniel/improvements-on-exisiting-code…
sosolidkk d0c9eff
Add empty line at end of .gitignore
sosolidkk 1082687
Change wrong credential user value
sosolidkk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ | ||
ruby 3.0.6 |
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,102 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
ar-octopus-ruby-3 (0.11.2) | ||
activerecord (~> 6.0.6.1) | ||
activesupport (~> 6.0.6.1) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activemodel (6.0.6.1) | ||
activesupport (= 6.0.6.1) | ||
activerecord (6.0.6.1) | ||
activemodel (= 6.0.6.1) | ||
activesupport (= 6.0.6.1) | ||
activesupport (6.0.6.1) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
zeitwerk (~> 2.2, >= 2.2.2) | ||
appraisal (2.4.1) | ||
bundler | ||
rake | ||
thor (>= 0.14.0) | ||
ast (2.4.2) | ||
byebug (11.1.3) | ||
coderay (1.1.3) | ||
concurrent-ruby (1.2.2) | ||
diff-lcs (1.5.0) | ||
i18n (1.14.1) | ||
concurrent-ruby (~> 1.0) | ||
json (2.6.3) | ||
method_source (1.0.0) | ||
minitest (5.18.0) | ||
mysql2 (0.5.5) | ||
parallel (1.23.0) | ||
parser (3.2.2.3) | ||
ast (~> 2.4.1) | ||
racc | ||
pg (0.21.0) | ||
pry (0.14.2) | ||
coderay (~> 1.1) | ||
method_source (~> 1.0) | ||
pry-byebug (3.10.1) | ||
byebug (~> 11.0) | ||
pry (>= 0.13, < 0.15) | ||
racc (1.7.0) | ||
rainbow (3.1.1) | ||
rake (13.0.6) | ||
regexp_parser (2.8.1) | ||
rexml (3.2.5) | ||
rspec (3.12.0) | ||
rspec-core (~> 3.12.0) | ||
rspec-expectations (~> 3.12.0) | ||
rspec-mocks (~> 3.12.0) | ||
rspec-core (3.12.2) | ||
rspec-support (~> 3.12.0) | ||
rspec-expectations (3.12.3) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.12.0) | ||
rspec-mocks (3.12.5) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.12.0) | ||
rspec-support (3.12.0) | ||
rubocop (1.52.1) | ||
json (~> 2.3) | ||
parallel (~> 1.10) | ||
parser (>= 3.2.2.3) | ||
rainbow (>= 2.2.2, < 4.0) | ||
regexp_parser (>= 1.8, < 3.0) | ||
rexml (>= 3.2.5, < 4.0) | ||
rubocop-ast (>= 1.28.0, < 2.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (>= 2.4.0, < 3.0) | ||
rubocop-ast (1.29.0) | ||
parser (>= 3.2.1.0) | ||
ruby-progressbar (1.13.0) | ||
sqlite3 (1.6.3-x86_64-linux) | ||
thor (1.2.2) | ||
thread_safe (0.3.6) | ||
tzinfo (1.2.11) | ||
thread_safe (~> 0.1) | ||
unicode-display_width (2.4.2) | ||
zeitwerk (2.6.8) | ||
|
||
PLATFORMS | ||
x86_64-linux | ||
|
||
DEPENDENCIES | ||
appraisal (>= 0.3.8) | ||
ar-octopus-ruby-3! | ||
mysql2 (~> 0.5) | ||
pg (~> 0.18) | ||
pry-byebug | ||
rake | ||
rspec (>= 3) | ||
rubocop | ||
sqlite3 (~> 1.4) | ||
|
||
BUNDLED WITH | ||
2.4.13 |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ $LOAD_PATH.push File.expand_path('../lib', __FILE__) | |
require 'octopus/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'ar-octopus' | ||
s.name = 'ar-octopus-ruby-3' | ||
s.version = Octopus::VERSION | ||
s.authors = ['Thiago Pradi', 'Mike Perham', 'Gabriel Sobrinho'] | ||
s.email = ['[email protected]', '[email protected]', '[email protected]'] | ||
|
@@ -17,22 +17,26 @@ Gem::Specification.new do |s| | |
s.require_paths = ['lib'] | ||
|
||
s.post_install_message = "Important: If you are upgrading from < Octopus 0.5.0 you need to run:\n" \ | ||
"$ rake octopus:copy_schema_versions\n\n" \ | ||
"$ rake octopus:copy_scha_versions\n\n" \ | ||
'Octopus now stores schema version information in each shard and migrations will not ' \ | ||
'work properly unless this task is invoked.' | ||
|
||
s.required_ruby_version = '>= 2.2.0' | ||
|
||
s.add_dependency 'activerecord', '>= 4.2.0' | ||
s.add_dependency 'activesupport', '>= 4.2.0' | ||
s.add_dependency 'activerecord', "~> 6.0.6.1" | ||
s.add_dependency 'activesupport', "~> 6.0.6.1" | ||
|
||
s.add_development_dependency 'appraisal', '>= 0.3.8' | ||
s.add_development_dependency 'mysql2', '>= 0.3.18', "< 0.5" | ||
# To install the mysql2 gem its necessary execute the following command before run bundle | ||
# $ sudo apt-get install libmysqlclient-dev | ||
s.add_development_dependency 'mysql2', '~> 0.5' | ||
s.add_development_dependency 'pg', '~> 0.18' | ||
s.add_development_dependency 'rake' | ||
s.add_development_dependency 'rspec', '>= 3' | ||
s.add_development_dependency 'rubocop' | ||
s.add_development_dependency 'sqlite3', '~> 1.3.6' | ||
# To install the sqlite3 gem its necessary execute the following command before run bundle | ||
# $ sudo apt-get install -y sqlite3 libsqlite3-dev | ||
s.add_development_dependency 'sqlite3', '~> 1.4' | ||
s.add_development_dependency 'pry-byebug' | ||
|
||
s.license = 'MIT' | ||
|
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to outsource it in another PR as this one isn't related to rails and would probably help to have it upstreamed faster.
Also, we should allow alisases here (or have a config for that)