-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for Ruby 3.x -> 4.0, Rails 6.1 -> 8.1 #3518
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
bb34c7e
Tested with Rails 6.1
anitagraham 76ea092
Use matching ruby3 branch of refinerycms-i18n while still a work in p…
anitagraham 404b7dd
Change workflow to test only Ruby 3.1. Correct reference to refinery…
anitagraham 2d16f91
Merge branch 'master' into ruby3
anitagraham c06f640
Use Ruby 3 syntax callling Resource.create. Add a description for Fi…
anitagraham fd22de0
Tidy up configurations for mobility 1.2.9
anitagraham 16e23dd
WIP
anitagraham d1d981e
Merge branch 'main' into ruby3
parndt bc748cd
Merge pull request #6 from refinery/main
anitagraham 00c3cd6
Merge remote-tracking branch 'origin/ruby3' into ruby3
anitagraham 0067df3
remove all capybara configuration from spec/spec_helper to already ex…
anitagraham 19eb40d
remove reliance on www.example.com in tests, use attribute selectors …
anitagraham b6b34e2
previous usage of 'Pages' as a constant referring to Refinery::Pages …
anitagraham febcc90
saving generator options before switching to 'pretend=true' inside th…
anitagraham 5394a97
remove another instance of 'www.example.com'
anitagraham fe68993
refinery_help_tag will always show the 'tooltip' message
anitagraham 6e78d70
css cleanup: remove units from unitless values. (0px -> 0)
anitagraham 75afa2a
css cleanup: remove recent_activities and recent_inquiries from style…
anitagraham b38d277
use mixins for common styles between image views
anitagraham 2ed8b63
define ImageObject for use in Admin image views
anitagraham c4a4bcc
cleanup stylesheets:
anitagraham 7be64ac
use recommended dragonfly call for stripping images instead of deprec…
anitagraham 6257bd2
scss style reformatted all over to add blank lines and spaces.
anitagraham d504098
Add defined colours for image index actions.
anitagraham 8837cdc
Add defined colours for image index actions.
anitagraham 6eafef5
Change naming of 'grid_view' and 'list_view' to 'grid_format' and 'gr…
anitagraham 7cf83cb
Pages
anitagraham c68d478
Pages
anitagraham 3176ae8
refactor(assets): stylesheets
anitagraham 082bc60
refactor(refinery-images): make ruby3 compatible
anitagraham 9b1bf45
Changes to refinery/pages
anitagraham 4b068d4
refactor(refinery-core): new helper 'locales_with_translated_field'
anitagraham 8e734c5
refactor(refinery-core): new helper 'edit_in_locales'
anitagraham 0acd6e1
add resource_helper to resources_controller
anitagraham c11dcf3
Revert "Change naming of 'grid_view' and 'list_view' to 'grid_format'…
anitagraham cc59b67
update jquery-ui-rails to version '~7.0.0'
anitagraham df965f6
update Rails to ~>7.1
anitagraham 56b7635
update dependencies in refinerycms-testing
anitagraham e09e3ee
stylesheets: refactor locale icons/buttons
anitagraham 6e16238
refactor locale actions
anitagraham e095a11
Changes from ruby3 branch which are really Rails 7 changes
anitagraham 8920675
Merge branch 'main' into ruby3
parndt 4c86e60
Remove Gemfile lines that interfere with CI
parndt 4cc9f70
Update Ruby versions and checkout action in workflow
parndt 190895e
Update factory_bot_rails dependency version
parndt c6da7d2
Update rspec-rails dependency to version ~> 6.1
parndt 65940c6
Update rspec-rails gem version in Gemfile
parndt 0fd73e6
Add sqlite to database matrix in CI workflow
parndt cfa74f9
allow sqlite3
parndt c1d0019
Change sqlite to sqlite3 in workflow matrix
parndt 0812146
Add decorators gem for Zeitwerk compatibility
parndt 1b82ed4
Refactor Capybara app configuration for Rack 3+
parndt dc8b37f
Simplify find actions handling in crud.rb
parndt ce7f039
Attempt a few patches
parndt 9ba6277
Images needs imagemagick
parndt 2085dd9
Try some dubious fixes
parndt 66c625b
Tidy up dubious fixes
parndt 836e099
Tidy up a bit
parndt d766192
refactor(images): extract presenter refactoring to feature branch
parndt b5cabb9
fix(images): add minimal Ruby 3 and Rails compatibility fixes
parndt 7258aab
Fix locale picker to display locale codes instead of language names
parndt 3551fe0
disable selenium telemetry
parndt c3c3cbc
Add locales_with_translated_field helper for locale picker views
parndt 43ff945
Fix xhr_paging spec to ensure grid view is used
parndt 386ae33
Use allow() for config stubs instead of setting/unsetting in after bl…
parndt 83d9d01
Add specs for flash notice after successful upload
parndt 1463c7c
misc fixes
parndt b0a22ac
bring back image grid
parndt 4d38710
Fixups to have new things and old things still working
parndt d0d6e68
Test all the ruby/rails versions we can
parndt 598e84c
Try converting coffee to JS
parndt 0587a94
For now, precompile assets for Rails ~> 8.1.0
parndt 77bac04
Reverse order of ruby tests
parndt 0a0f43f
Try to remove the logger override
parndt 756523f
Try to rescue the dreaded logger error
parndt 88e2af5
Try to update the docs as much as possible
parndt e1ee344
Some name/label pedantry
parndt 9e4345c
Update Gemfile
parndt c25072a
Update Gemfile
parndt 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -97,3 +97,4 @@ Gemfile.lock | |
|
|
||
| # rspec failures | ||
| .rspec_failures | ||
| Refinery Review.md | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ def to_s | |
| end | ||
|
|
||
| def required_ruby_version | ||
| '>= 2.5.5' | ||
| '>= 3.1' | ||
| end | ||
| end | ||
| end | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| shared_examples 'edits an image' do | ||
| shared_examples 'Edit' do | ||
| pending | ||
| end | ||
| end |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.