-
Notifications
You must be signed in to change notification settings - Fork 0
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
[#1][Backend] Setup project #24
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ gem 'jsbundling-rails' # Bundle and transpile JavaScript | |
gem 'i18n-js', '3.9.0' # A library to provide the I18n translations on the Javascript | ||
# gem 'devise-i18n' # Translations for Devise | ||
|
||
gem 'psych', '< 4.0' | ||
# Fix Ruby 3.1 that uses psych version 4.0 and conflicts with rails-template | ||
gem 'psych', '3.3.4' | ||
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. the root cause is that Ruby 3.1 comes with psych v4 which is a breaking change. But the gem file here is limiting the version to 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. The line |
||
|
||
group :development do | ||
gem 'foreman' # Manage Procfile-based applications | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -492,7 +492,7 @@ DEPENDENCIES | |
pg | ||
pry-byebug | ||
pry-rails | ||
psych (< 4.0) | ||
psych (= 3.3.4) | ||
puma | ||
pundit | ||
rack-timeout | ||
|
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 comment does not reflect the actual situation. What does it mean by "conflicts with rails-template"?
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.
I tried to create a rails app without a template using Ruby
3.2.1
without downgrading Psych to version 3, and everything worked fine. So, I think there will be some issue that does not work properly in the template.I might be misunderstanding the root issue in this case.
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.
You mean you created the project without using the Rails template, and it worked, right?
It's because Rails template uses the Figaro gem, and it will break if you use Ruby 3.1 and above (which requires psych v4).
So, even if you initialized the project without the Rails template, later, if you add the Figaro gem (or any other gem that depends on
psynch
but has not been updated to work with psynch v4), it will break again.Check this issue for more details
nimblehq/rails-templates#316.
So instead of forcing
psych < 4.0
, I would suggest, eitherThere 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.
also to clarify: in the end, did you use the Rails-template to initialize this project?