rails / tailwindcss-rails

MIT License
1.43k stars 174 forks source link

Supporting for JRuby? #396

Open ryudoawaru opened 3 months ago

ryudoawaru commented 3 months ago

It seems this gem does not support JRuby now because Gem::Platform.local.cpu&os only respond java & universal.

I would like to commit a PR to support JRuby by using RbConfig::CONFIG instead of Gem::Platform and I want to make sure if this project would like to add support of JRuby?

Thanks,

flavorjones commented 3 months ago

I'm open to adding support to JRuby, but I am hesitant to add much complexity for that support. Let's discuss what approach you have in mind!

I see that I can find the architecture, at least on some platforms, in RbConfig::CONFIG["target_cpu"] when running JRuby. But what will you do with that information? This project currently ships separate gem files for each architecture, is your intention to ship all the executables in the JRuby gem package (and then choose the executable at runtime or install time)?

Would it be simpler to improve the documentation on how to install the appropriate binary outside of Rubygems and then leverage the existing docs at https://github.com/rails/tailwindcss-rails?tab=readme-ov-file#using-a-local-installation-of-tailwindcss ?