diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2017-05-30 21:47:54 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2017-05-30 21:47:54 +0300 |
commit | d1e4e696b7fefcaec458aa6ab8f31411172011d6 (patch) | |
tree | ae0c54320923611a9b299b853947abeaf049f653 /tasks/updater | |
parent | b5baad25d6dcdf59feb558194edda59e813f89e0 (diff) |
Variables template: comment out mixins/functions
Fixes #70
Diffstat (limited to 'tasks/updater')
-rw-r--r-- | tasks/updater/scss.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tasks/updater/scss.rb b/tasks/updater/scss.rb index d92ff87..c747b9a 100644 --- a/tasks/updater/scss.rb +++ b/tasks/updater/scss.rb @@ -28,12 +28,9 @@ class Updater File.read("#{save_to}/_variables.scss"). # The instructions in the file header are replaced with the line above lines[4..-1]. - # Remove the _assert-ascending mixin definition and usages - reject { |line| line.start_with?('@include _assert-ascending') }. join. - gsub(/@mixin _assert-ascending.*?\n}\n/m, ''). # Comment out the assignments - gsub(/^(?=\$|\)|[ ]{2})/, '// '). + gsub(/^(?=[$@)}]|[ ]{2})/, '// '). # Remove the !default modifier gsub(/ !default/, '') end |