Dependency Updates and more #112
Open
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.
This pull request includes several updates to dependencies, helper methods, and model logic, as well as some cleanup and refactoring. The most significant changes involve updating gem dependencies, refactoring the
URLHelper
module, and improving theConference
model's URL handling. Below are the key changes grouped by theme:Dependency Updates:
loofah
gem from~> 2.3.1
to~> 2.21
,rails
from~> 6.1.7.8
to~> 7.1.3
,sidekiq
from~> 4.1.3
to~> 6.5.10
, andmocha
from1.7.0
to~> 2.0
in theGemfile
. These updates bring in newer versions of the libraries, ensuring compatibility and security. [1] [2]Helper Refactoring:
URLHelper
to a newmodule
inapp/helpers/url_helper.rb
with a simplifiedfix_url
method. Removed the oldURLHelper
class fromapp/lib/url_helper.rb
and added a new implementation inlib/url_helper.rb
for broader usage. [1] [2] [3]Model Enhancements:
Conference
model to use the newURLHelper.fix_url
method for normalizing URLs (url
,cfpUrl
,cocUrl
) and moved thefix_url
method to abefore_validation
callback for better lifecycle management. Removed the oldfix_url
method implementation. [1] [2] [3]Logic Improvements:
add_related_topic
in theConference
model to ensure no duplicate topics are added when computing related topics.Cleanup:
else
branch in theTopic
model'srelated_topic
method, ensuring proper handling of unmatched cases.config.load_defaults
inconfig/application.rb
from version5.1
to5.2
to align with the Rails upgrade.