diff --git a/lib/bootstrap.rb b/lib/bootstrap.rb index d1cf51e4..d44f7e54 100644 --- a/lib/bootstrap.rb +++ b/lib/bootstrap.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bootstrap/version' require 'popper_js' @@ -15,6 +17,12 @@ def load! # The deprecated `sass` gem: ::Sass.load_paths << stylesheets_path end + + if defined?(::Sass::Script::Value::Number) + # Set precision to 6 as per: + # https://github.com/twbs/bootstrap/blob/da717b03e6e72d7a61c007acb9223b9626ae5ee5/package.json#L28 + ::Sass::Script::Value::Number.precision = [6, ::Sass::Script::Value::Number.precision].max + end end # Paths diff --git a/lib/bootstrap/engine.rb b/lib/bootstrap/engine.rb index 888c764b..0ce84644 100644 --- a/lib/bootstrap/engine.rb +++ b/lib/bootstrap/engine.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'autoprefixer-rails' module Bootstrap diff --git a/lib/bootstrap/version.rb b/lib/bootstrap/version.rb index f4641cfb..1b9c7ac3 100644 --- a/lib/bootstrap/version.rb +++ b/lib/bootstrap/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Bootstrap VERSION = '4.1.3' BOOTSTRAP_SHA = '3b558734382ce58b51e5fc676453bfd53bba9201'