g

丘海东

读书写字 热爱生活 ⌚️📖️🖋️🏀️🚲️🚉️🎼️🍵️🏞️📷️

You Can Use the Sass-convert Command to Automatically Fix Most cases---Ruby 不同版本

octopress-2.0,ruby-2.3.1,ubuntu20.04,可以运行(修改这里后)
octopress-2.0,ruby-2.5.9,ubuntu20.04,可以运行(修改这里后)
octopress-2.0,ruby-2.6.9,ubuntu20.04,可以运行(修改这里后)
octopress-3.0,ruby-2.5.9,ubuntu20.04,可以运行(無需修改)
octopress-3.0,ruby-2.6.9,ubuntu20.04,可以运行(無需修改)

換了版本要重新安裝octopress3.0:

1
gem install octopress

octopress-2.0-3.0,ruby-3.1.1,ubuntu20.04,都無法运行。

原网页
百度缓存网页

I just installed and Compass & Sass as described here.

I got the following warning when I ran compass watch for the first time. What exactly does it mean? What should I do to fix it, do I need to do anything?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ (master) compass watch
>>> Compass is watching for changes. Press Ctrl-C to Stop.
DEPRECATION WARNING on line 87 of /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote('"$moz-"#{$experimental-support-for-mozilla} "$webkit-"#{$experimental-support-for-webkit} "$opera-"#{$experimental-support-for-opera} "$microsoft-"#{$experimental-support-for-microsoft} "$khtml-"#{$experimental-support-for-khtml}')

You can use the sass-convert command to automatically fix most cases.

DEPRECATION WARNING on line 92 of /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote('"$ie6-"#{$legacy-support-for-ie6} "$ie7-"#{$legacy-support-for-ie7} "$ie8-"#{$legacy-support-for-ie8}')

You can use the sass-convert command to automatically fix most cases.

    write css/styles.css

1 Answer :

To fix the error message, just change the line 87 from your “_deprecated-support.scss” file to this:

1
2
3
4
5
6
7
8
9
10
11
// A debug tool for checking browser support
@mixin debug-support-matrix($experimental: true, $ie: true) {
@debug '#{"$moz-"}$experimental-support-for-mozilla'
             '#{"$webkit-"}$experimental-support-for-webkit'
             '#{"$opera-"}$experimental-support-for-opera'
             '#{"$microsoft-"}$experimental-support-for-microsoft'
             '#{"$khtml-"}$experimental-support-for-khtml';
@debug '#{"$ie6-"}$legacy-support-for-ie6'
             '#{"$ie7-"}$legacy-support-for-ie7'
             '#{"$ie8-"}$legacy-support-for-ie8';
}

The file can be found at your /home/dong/.rvm/gems/ruby-2.3.1/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss