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
URLHelpermodule, and improving theConferencemodel's URL handling. Below are the key changes grouped by theme:Dependency Updates:
loofahgem from~> 2.3.1to~> 2.21,railsfrom~> 6.1.7.8to~> 7.1.3,sidekiqfrom~> 4.1.3to~> 6.5.10, andmochafrom1.7.0to~> 2.0in theGemfile. These updates bring in newer versions of the libraries, ensuring compatibility and security. [1] [2]Helper Refactoring:
URLHelperto a newmoduleinapp/helpers/url_helper.rbwith a simplifiedfix_urlmethod. Removed the oldURLHelperclass fromapp/lib/url_helper.rband added a new implementation inlib/url_helper.rbfor broader usage. [1] [2] [3]Model Enhancements:
Conferencemodel to use the newURLHelper.fix_urlmethod for normalizing URLs (url,cfpUrl,cocUrl) and moved thefix_urlmethod to abefore_validationcallback for better lifecycle management. Removed the oldfix_urlmethod implementation. [1] [2] [3]Logic Improvements:
add_related_topicin theConferencemodel to ensure no duplicate topics are added when computing related topics.Cleanup:
elsebranch in theTopicmodel'srelated_topicmethod, ensuring proper handling of unmatched cases.config.load_defaultsinconfig/application.rbfrom version5.1to5.2to align with the Rails upgrade.