-
Notifications
You must be signed in to change notification settings - Fork 72
Add support to Shakapacker #158
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
Add support to Shakapacker #158
Conversation
770434c
to
9c0ecc4
Compare
9c0ecc4
to
3aa0e48
Compare
@tagliala Looks good to me. Just need a maintainer to have a look and review. |
Thanks. I have two successful builds on Shakapacker 7 and 8 at:
A proper solution would be to create a new app with Shakapacker 8 and make an integration test here, as per #159, but this would require to fix the test apps repo |
I have a working build against Rails 7.1 / Shakapacker 8: https://github.com/tagliala/inline_svg/actions/runs/9549035858 I've removed the old test against webpacker because of python 2.7 and deprecations. Please let me know if you need some help or if I should fork |
Thanks for your work so far. Sorry for the delayed responses, I was away on vacation and then work trips. Let's get CI working properly and then get this merged. |
Hi,
I did not invest time in webpacker (it should have been upgraded from v4 to v5 in the rails 6 branch), so this is expected to fail against the CI like it is failing now #159 is based on this PR and should make the CI pass agains Rails 7.1 / Shakapacker 8 If you are interested, I can make a PR to drop compatibility with legacy Rails and Ruby versions |
Sounds good. Let's do that. 👍 |
Friendly bump. The first steps would be to merge:
Then this PR can be merged because it is not breaking (and it is tested in #159 against Shakapacker) Then, after a rebase and some changes to the target repo in actions, it will be possible to merge: To have a working CI. At that point, it would be possible to release a minor version with proper Shakapacker 7+ support. After the minor release, it would be possible to consider to drop old Ruby and Rails support and go for 2.0. I would entirely drop webpacker support for 2.0 |
Shakapacker is the official, actively maintained successor to Webpacker. Shakapacker v7 changed the spelling of `Webpacker` to `Shakapacker` in the entire project, but still provided backward compatibility for `Webpacker` spelling. v8 dropped the deprecated spelling This commit also: - Checks if `Shakapacker` is defined; if not, it falls back on `Webpacker`. - Uses the scope resolution operator to resolve at top-level scope - Checks `protocol` instead of `https?` because the former is available from Webpacker 3 and the latter is not available anymore in Shakapacker >= 8 Refs: - shakacode/shakapacker#414 - shakacode/shakapacker#429 - shakacode/shakapacker#486 Close jamesmartin#156
3aa0e48
to
a9ab1b0
Compare
Thanks, this is on my TODO list. |
Thanks, please let me know if you need help and what strategy you decide, everything works for me |
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.
looking good to me - we're using this gem on nzsl-share, and this change is working well with our Shakapacker v8 upgrade.
(also hi @tagliala! appreciate your work on this 😄)
Thanks for your patience, @tagliala. I'm pushing forward with the plan to properly support Shakapacker v8 moving forward and also to drop support for end-of-life Rails versions in an incoming v2.0 of this gem. |
Shakapacker is the official, actively maintained successor to Webpacker.
Shakapacker v7 changed the spelling of
Webpacker
toShakapacker
inthe entire project, but still provided backward compatibility for
Webpacker
spelling.v8 dropped the deprecated spelling
This commit also:
Shakapacker
is defined; if not, it falls back onWebpacker
.scope
protocol
instead ofhttps?
because the former is availablefrom Webpacker 3 and the latter is not available anymore in
Shakapacker >= 8
Refs:
https
option shakacode/shakapacker#414https?
predicate shakacode/shakapacker#486Close #156