Skip to content

Commit

Permalink
refs #409 min number precision: 10
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Oct 26, 2013
1 parent 2b2defa commit 6fa8113
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lib/bootstrap-sass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ def self.load!
register_rails_engine
end

if !(rails? || compass?)
raise Bootstrap::FrameworkNotFound, "bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
unless rails? || compass?
raise Bootstrap::FrameworkNotFound,
'bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded'
end

bs_stylesheets = File.expand_path(File.join('..', 'vendor', 'assets', 'stylesheets'))
::Sass.load_paths << bs_stylesheets
if ::Sass::Script::Number.precision < 10
# see https://github.com/thomas-mcdonald/bootstrap-sass/issues/409
::Sass::Script::Number.precision = 10
end

stylesheets = File.expand_path(File.join("..", 'vendor', 'assets', 'stylesheets'))
::Sass.load_paths << stylesheets
end

private
Expand Down

0 comments on commit 6fa8113

Please sign in to comment.