Skip to content

Commit

Permalink
Set min precision to 6 as per upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Aug 21, 2018
1 parent 7c6056e commit 2277fb3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/bootstrap.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'bootstrap/version'
require 'popper_js'

Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/bootstrap/engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'autoprefixer-rails'

module Bootstrap
Expand Down
2 changes: 2 additions & 0 deletions lib/bootstrap/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Bootstrap
VERSION = '4.1.3'
BOOTSTRAP_SHA = '3b558734382ce58b51e5fc676453bfd53bba9201'
Expand Down

0 comments on commit 2277fb3

Please sign in to comment.