Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit fb8bf61

Browse files
committed
fix(deps): sass -> sassc switch
1 parent a8a3cfc commit fb8bf61

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ before_install:
2525
install: true
2626

2727
script:
28+
- gem install bundler:1.15.4
2829
- sh -x ./node_modules/patternfly-eng-release/scripts/_build.sh -p
2930

3031
after_success:

lib/patternfly-sass.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ def rails?
5555
private
5656

5757
def configure_sass
58-
require 'sass'
58+
require 'sassc'
5959

60-
::Sass.load_paths << stylesheets_path
60+
::SassC.load_paths << stylesheets_path
6161

6262
# bootstrap requires minimum precision of 8, see https://github.com/twbs/bootstrap-sass/issues/409
63-
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
63+
::SassC::Script::Value::Number.precision = [8, ::SassC::Script::Value::Number.precision].max
6464
end
6565

6666
def register_compass_extension

patternfly-sass.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
1111
s.homepage = 'https://github.com/Patternfly/patternfly'
1212
s.license = 'Apache-2.0'
1313

14-
s.add_runtime_dependency 'sass', '~> 3.4.15'
14+
s.add_runtime_dependency 'sassc', "> 2.0.1", "< 3.0"
1515
s.add_runtime_dependency 'bootstrap-sass', '~> 3.4.0'
1616
s.add_runtime_dependency 'font-awesome-sass', '~> 4.6.2'
1717

0 commit comments

Comments
 (0)