diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2018-08-22 00:59:20 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2018-08-22 00:59:20 +0300 |
commit | 2277fb3a199a800eca89ee48843cfb46f5b90cc6 (patch) | |
tree | 10cac4f30054465745b36488e7121001285b46a6 | |
parent | 7c6056eebb7a9fd8cac7845ca31bf62a81627df2 (diff) |
Set min precision to 6 as per upstream
-rw-r--r-- | lib/bootstrap.rb | 8 | ||||
-rw-r--r-- | lib/bootstrap/engine.rb | 2 | ||||
-rw-r--r-- | lib/bootstrap/version.rb | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/lib/bootstrap.rb b/lib/bootstrap.rb index d1cf51e..d44f7e5 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 @@ module Bootstrap # 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 888c764..0ce8464 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 f4641cf..1b9c7ac 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' |