-
Notifications
You must be signed in to change notification settings - Fork 136
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
Migrate to sassc gem #75
Conversation
46a91b1
to
ce1fb3d
Compare
rescue ::Sass::SyntaxError => e | ||
raise SyntaxError, "#{e} on line #{e.sass_line}" | ||
rescue ::SassC::SyntaxError => e | ||
line = e.instance_variable_get(:@line) |
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.
Note the use of instance_variable_get
to maintain previous functionality 😕
@@ -50,7 +50,7 @@ def converter(overrides = {}) | |||
end | |||
|
|||
it "includes the syntax error line in the syntax error message" do | |||
error_message = "Invalid CSS after \"$font-stack\": expected expression (e.g. 1px, bold), was \";\" on line 1" | |||
error_message = %r!\AError: Invalid CSS after "f": expected 1 selector or at-rule. was "font-family: \$font-"\s+on line 1 of stdin! |
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.
Note that error messages have changed
@@ -119,7 +119,7 @@ def converter(overrides = {}) | |||
end | |||
|
|||
it "includes the syntax error line in the syntax error message" do | |||
error_message = 'Invalid CSS after "body ": expected selector or at-rule, was "{" on line 2' | |||
error_message = %r!\AError: Invalid CSS after "body": expected 1 selector or at-rule, was "{"\s+on line 2! |
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.
Note that error messages have changed
@jekyll/windows @ashmaroli Can any of you confirm that sassc works ok on windows? |
lib/jekyll-sass-converter/version.rb
Outdated
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
|
|||
module JekyllSassConverter | |||
VERSION = "1.5.2" | |||
VERSION = "1.6.0" |
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.
This will certainly require a major version bump, but Jekyll 3.x will not load jekyll-sass 2.x
This breaks uswds-jekyll, which I assume means it breaks any theme with Sass?
|
Very minor (~3%) improvement in build time (for the sites that actually build) |
@parkr I pulled this branch down to check:
|
This comment has been minimized.
This comment has been minimized.
@ashmaroli I don't get that failure on macOS 🤷♂️ It would seem to be related to the theme issue though. |
Running |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I added the project in AppVeyor! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5bcd126
to
6fe4f84
Compare
This comment has been minimized.
This comment has been minimized.
Remove dependency on Ruby Sass sass/sassc-ruby#85
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.
💚
Looks like |
@ashmaroli correct, appveyor is still chocking on the import:
|
probably not related to the RUBY_VERSION requirements. |
to match sassc minimum requirements
This comment has been minimized.
This comment has been minimized.
Is the windows issue related to sass/sassc-ruby#93? |
@tcyrus Yes. It is.. |
@jekyllbot: merge +major |
@DirtyF Are you planning to cut a release anytime soon..? 'coz as it stands, this is not compatible with theme-gems on Windows.. |
@ashmaroli No, we have 'til March. |
Fixes #74