-
Notifications
You must be signed in to change notification settings - Fork 300
Compatibility to Rails 7.1.x and Ruby 3.3.x #619
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
Open
thadeu
wants to merge
16
commits into
refile:master
Choose a base branch
from
thadeu: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
16 commits
Select commit
Hold shift + click to select a range
8000
da5bc81
ci: added new rvm test line
thadeu 2f4f06b
added Gemfile to Rails 7.1.x
thadeu 39fd5c6
create a locales inside test_app
thadeu 3121b2a
fix: dont match (=~) to TrueClass
thadeu dacbd8f
added object to simple_form wrapper
thadeu cd164d2
attachment method should be use an errors.add method correctly
thadeu f918b30
attachment_field with keyword arguments
thadeu 474d042
added I18n.t to active_record setup
thadeu 5df04dc
require capybara and use kwargs
thadeu cab07c2
remove update_attributes methods
thadeu 1fa8423
require byebug
thadeu aed954a
configure capybara + poltergeist
thadeu e9fd16e
remove update_attributes unexist method
thadeu 05e12a0
remove update_attributes method
thadeu 5e95ddc
remove unused acceptance test
thadeu 09fdcb5
added spec/refile/test_app/db/* to gitignore
thadeu 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec path: '../' | ||
|
||
ruby '3.3.4' | ||
|
||
gem 'aws-sdk-s3' | ||
gem 'bundler' | ||
gem 'capybara' | ||
gem 'selenium-webdriver' | ||
gem 'webdrivers' | ||
gem 'jquery-rails' | ||
gem 'poltergeist' | ||
gem 'phantomjs', :require => 'phantomjs/poltergeist' | ||
gem 'puma' | ||
gem 'rack', '~> 2.2.0' | ||
gem 'rack-session', '~> 1.0.0' | ||
gem 'rackup', '~> 1.0.0' | ||
gem 'rails', '~> 7.1' | ||
gem 'rake' | ||
gem 'rspec' | ||
gem 'rspec-rails' | ||
gem 'rubocop', '~> 0.49.0' | ||
gem 'sprockets-rails' | ||
gem "sqlite3", "~> 1.4", platforms: [:ruby] | ||
gem 'webmock' | ||
gem 'byebug' | ||
gem 'yard' |
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
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 |
---|---|---|
|
@@ -7,14 +7,18 @@ | |
|
||
module Refile | ||
class TestApp < Rails::Application | ||
config.middleware.delete "ActionDispatch::Cookies" | ||
config.middleware.delete "ActionDispatch::Session::CookieStore" | ||
config.middleware.delete "ActionDispatch::Flash" | ||
if Rails::VERSION::MAJOR < 7 | ||
config.middleware.delete "ActionDispatch::Cookies" | ||
config.middleware.delete "ActionDispatch::Session::CookieStore" | ||
config.middleware.delete "ActionDispatch::Flash" | ||
end | ||
|
||
config.active_support.deprecation = :log | ||
config.eager_load = false | ||
config.action_dispatch.show_exceptions = false | ||
config.consider_all_requests_local = true | ||
config.root = ::File.expand_path("test_app", ::File.dirname(__FILE__)) | ||
config.i18n.enforce_available_locales = true | ||
end | ||
|
||
Rails.backtrace_cleaner.remove_silencers! | ||
|
@@ -27,7 +31,6 @@ class TestApp < Rails::Application | |
require "capybara/rspec" | ||
require "refile/spec_helper" | ||
require "refile/active_record_helper" | ||
require "capybara/poltergeist" | ||
|
||
if ENV["SAUCE_BROWSER"] | ||
Capybara.register_driver :selenium do |app| | ||
|
@@ -39,6 +42,16 @@ class TestApp < Rails::Application | |
end | ||
end | ||
|
||
require 'capybara/poltergeist' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually poltergeist is long dead, what the point adding it here? |
||
require 'phantomjs' | ||
|
||
Phantomjs.path # Force install on require | ||
|
||
Capybara.register_driver :poltergeist do |app| | ||
driver = Capybara::Poltergeist::Driver.new(app, :phantomjs => Phantomjs.path) | ||
driver | ||
end | ||
|
||
Capybara.javascript_driver = :poltergeist | ||
|
||
Capybara.configure do |config| | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
en: | ||
activerecord: | ||
errors: | ||
messages: | ||
too_large: "is too large" | ||
download_failed: "could not be downloaded" | ||
invalid_content_type: "You are not allowed to upload %{content} file format. Allowed types: %{permitted}." | ||
invalid_extension: "You are not allowed to upload %{extension} file extension. Allowed types: %{permitted}." | ||
refile: | ||
empty_param: "an empty" |
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.
this should not be required