Closed tonyjoblin closed 10 months ago
Thanks for reporting, I'll take a look as soon as I can.
So Gem::Platform#match_gem?
was introduced in https://github.com/ruby/ruby/commit/4aca77ed / Rubygems v3.2.0 which was released with just before Ruby 3.0 on 2020-12-10.
I think we've got three options
required_rubygems_version
to >= 3.2.0
in tailwindcss-rails.gemspec
@rafaelfranca do you have an opinion between options 2 and 3 above?
2 is ok for me. Rubygems 3.2 supports 2.7, so people can just upgrade.
v2.0.32 has been released which fixes this.
Indeed, this broke all of my heroku apps that are on the heroku-20
stack...
@gxespino I'm sorry, I don't understand. If 2.0.32 broke something please open a new issue.
PR https://github.com/rails/tailwindcss-rails/pull/280 replaces
Gem::Platform#match
toGem::Platform#match_gem?
This fixes deprecation warnings but breaks on ruby 2.7.? because match_gem? does not exist there (at least not on 2.7.3).This causes errors like these:
and
when running
bin/rails s
Work around
Update your gemfile to fix tailwindcss-rails to version 2.0.30 and run bundle update.