Skip to content

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Oct 7, 2018

This is some initial work to fix #5502. Something I've noticed is that this effectively drops support for sass-rails, so we might as well reintroduce the sassc-rails runtime dependency since we originally switched from sass-rails to plain sass in order to support sassc-rails, but now sassc-rails will be the only supported implementation 🤷‍♂️.

Closes #5502.
Closes #5226.

@DeeDeeG
Copy link

DeeDeeG commented Oct 11, 2018

By the way, I believe sass-rails wants to support sassc, but they haven't updated their progress on that since 2017:

rails/sass-rails#349 (comment)

@deivid-rodriguez
Copy link
Member Author

Thanks for that info @DeeDeeG! In that case, I guess it's better to leave things as they are now, leaving it opened for the application to choose just in case. 👍

@DeeDeeG
Copy link

DeeDeeG commented Oct 11, 2018

No problem, and thank you for responding to this situation so quickly!

@codecov
Copy link

codecov bot commented Oct 30, 2018

Codecov Report

Merging #5504 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5504      +/-   ##
==========================================
- Coverage   98.38%   98.38%   -0.01%     
==========================================
  Files         293      293              
  Lines       11078    11073       -5     
==========================================
- Hits        10899    10894       -5     
  Misses        179      179
Impacted Files Coverage Δ
spec/gemfiles_spec.lint.rb 100% <100%> (ø) ⬆️
features/step_definitions/comment_steps.rb 95% <0%> (-0.66%) ⬇️
...ive_record/comments/views/active_admin_comments.rb 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 334c85d...2c25ff5. Read the comment docs.

@deivid-rodriguez
Copy link
Member Author

sassc-rails is in the process of adding jruby support, and this is green when tested against the PR adding support 👍.

Thoughts on depending on sassc-rails vs depending on sassc?

@javierjulio
Copy link
Member

Awesome! I checked the PR there as well. That's great news! In regard to which dependency, I'm not really sure. I have followed what other libraries do. I think if we have been fine with just including sass (excluding the EOL part) then perhaps good to just stick with sassc for now. What do you think is best?

@deivid-rodriguez
Copy link
Member Author

I don't have a strong opinion, what you said makes sense, so I'll leave it as it is for now.

@javierjulio
Copy link
Member

Sounds good then, we’ll stick with this for now thanks! Should we wait for a sassc-rails before we merge this?

@deivid-rodriguez
Copy link
Member Author

Yeah, I think there's no rush 👍

@deivid-rodriguez
Copy link
Member Author

Some updates here. sassc-rails released a new version that dropped the sass dependency, but now we're waiting on a new release that fixes jruby support.

Also, I noticed #5226, due to the fact of depending on plain sass instead of sass-rails. So I'm tempted introduce sassc-rails as a runtime dependency as I suggested in the first message.

@deivid-rodriguez
Copy link
Member Author

deivid-rodriguez commented Jan 7, 2019

Some extra updates. Everything this was blocked in has been released, so this should be ready to go. I've also added sassc-rails as a runtime dependency and I'm waiting for confirmation that doing this fixes #5226.

timoschilling
timoschilling previously approved these changes Jan 23, 2019
@deivid-rodriguez
Copy link
Member Author

I'm holding this off a bit longer, because it's unclear to me whether the sassc-rails will be needed or not in the future.

I fixed sassc support in sprockets recently and now our specs pass against sprockets master without the sassc-rails dependency. This is because the main stuff provided by sassc-rails, a sprockets compresor and a sprockets processor are also builtin in sprockets.

So I think sassc-rails might end up being completely merged into sprockets. I propose to wait and see how rails handles this, and do the same.

@DeeDeeG
Copy link

DeeDeeG commented Mar 17, 2019

[Edit: Whoops, looks like this is just narrowly off-topic. Sorry about that, and feel free to ignore this comment.]

Hi again!

There is a PR to make sass-rails a lightweight wrapper for sassc-rails.

This is only as of a day ago, so I guess it might not happen exactly that way without some further comments/consensus or something, but you know. Looks like that's the plan so far.

[Edit 2: The PR I mentioned here is now merged. Should become part of sass-rails 6.0, whenever that comes out.]

With sprockets v4, we might be able to remove this dependency and depend
only on `sassc`. But at the moment, sprockets v3 autoloads `sass`, which
we no longer depend on so we need to pull `sassc-rails` to do the proper
modifications to sprockets to not do that and load `sassc` instead.
@timoschilling
Copy link
Member

good work 🎉 👍

@deivid-rodriguez
Copy link
Member Author

Thanks!! Let's do this!

@deivid-rodriguez deivid-rodriguez merged commit dfb55d2 into master May 28, 2019
@deivid-rodriguez deivid-rodriguez deleted the sassc branch May 28, 2019 11:29
@Calamari
Copy link

Woohoo 🎉

@javierjulio
Copy link
Member

Awesome thanks! Curious why didn’t we use sass-rails instead? From what I understood that would continue to get updated to avoid issues or perhaps the plan for that gem is to slowly get users to switch to sassc-rails instead?

@deivid-rodriguez
Copy link
Member Author

Yeah, I had the same doubt. I asked in the rails repo in a couple of related issues, but nobody answered.

The way I see it, sass-rails is getting abandoned. It's currently just a wrapper around sassc-rails.

jshow pushed a commit to LifeTales/activeadmin that referenced this pull request Jun 24, 2019
With sprockets v4, we might be able to remove this dependency and depend
only on `sassc`. But at the moment, sprockets v3 autoloads `sass`, which
we no longer depend on so we need to pull `sassc-rails` to do the proper
modifications to sprockets to not do that and load `sassc` instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants