square / connect-api-examples

Code samples demonstrating the functionality of the Square Connect API
https://developer.squareup.com/docs/sample-apps
389 stars 792 forks source link

[Rails Snippet] Upgrade Ruby to 3.0.6 and Rails to 7.0 for Apple M1/M2 support #411

Open joe-boudreau opened 1 year ago

joe-boudreau commented 1 year ago

Ruby version <2.7 are not supported on Apple M1/M2 arch. This PR updates the Rails Snippet example app to use Ruby 3.0.6 and Rails 7.0.0. The webpacker library is not supported on Ruby 3 so that had to be replaced with importmaps and Hotwire. The omniauth library we use needed to be upgraded as well.