You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to Ruby 3.2.0, I encountered an error with the shopify-mock gem. Specifically, the method File.exists? used in the gem is no longer available in Ruby 3.2.0, leading to a NoMethodError.
Error Message:
undefined method `exists?' for class File (NoMethodError)
Suggested Fix:
Replace File.exists? with File.exist? which is the correct method name in Ruby 3.2.0.
Steps to Reproduce:
Upgrade Ruby to version 3.2.0.
Use the shopify-mock gem to the last version
Run any operation that invokes the File.exists? method in the gem.
Impact:
This issue prevents the gem from functioning properly with Ruby 3.2.0, which could affect all users who have upgraded to this version of Ruby.
Proposed Solution:
I would like to open a Pull Request to fix this issue by replacing all instances of File.exists? with File.exist? in the gem's codebase.
The text was updated successfully, but these errors were encountered:
After upgrading to Ruby 3.2.0, I encountered an error with the shopify-mock gem. Specifically, the method File.exists? used in the gem is no longer available in Ruby 3.2.0, leading to a NoMethodError.
Error Message:
undefined method `exists?' for class File (NoMethodError)
Suggested Fix:
Replace File.exists? with File.exist? which is the correct method name in Ruby 3.2.0.
Steps to Reproduce:
Upgrade Ruby to version 3.2.0.
Use the shopify-mock gem to the last version
Run any operation that invokes the File.exists? method in the gem.
Impact:
This issue prevents the gem from functioning properly with Ruby 3.2.0, which could affect all users who have upgraded to this version of Ruby.
Proposed Solution:
I would like to open a Pull Request to fix this issue by replacing all instances of File.exists? with File.exist? in the gem's codebase.
The text was updated successfully, but these errors were encountered: