Skip to content

Commit

Permalink
Merge pull request #1199 from ezr-ondrej/migrate_sassc
Browse files Browse the repository at this point in the history
fix(deps): sass -> sassc switch
  • Loading branch information
redallen authored Apr 30, 2020
2 parents a8a3cfc + fb8bf61 commit 2b5857a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ before_install:
install: true

script:
- gem install bundler:1.15.4
- sh -x ./node_modules/patternfly-eng-release/scripts/_build.sh -p

after_success:
Expand Down
6 changes: 3 additions & 3 deletions lib/patternfly-sass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ def rails?
private

def configure_sass
require 'sass'
require 'sassc'

::Sass.load_paths << stylesheets_path
::SassC.load_paths << stylesheets_path

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

def register_compass_extension
Expand Down
2 changes: 1 addition & 1 deletion patternfly-sass.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/Patternfly/patternfly'
s.license = 'Apache-2.0'

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

Expand Down

0 comments on commit 2b5857a

Please sign in to comment.