diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-08-26 04:59:48 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-08-26 04:59:48 +0300 |
commit | 72a53828fac5f025848b62594c257fadcf24fb0c (patch) | |
tree | b4cffd4b97c20a940275c745f29ce07a625f0497 /lib | |
parent | 5091bc672da48b7f45b6daa0270752844ddd5da7 (diff) |
Remove obsolete files, s/bootstrap-sass/bootstrap
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bootstrap.rb (renamed from lib/bootstrap-sass.rb) | 7 | ||||
-rw-r--r-- | lib/bootstrap/engine.rb (renamed from lib/bootstrap-sass/engine.rb) | 4 | ||||
-rw-r--r-- | lib/bootstrap/version.rb (renamed from lib/bootstrap-sass/version.rb) | 0 |
3 files changed, 4 insertions, 7 deletions
diff --git a/lib/bootstrap-sass.rb b/lib/bootstrap.rb index 4a7163e..3f49538 100644 --- a/lib/bootstrap-sass.rb +++ b/lib/bootstrap.rb @@ -1,4 +1,4 @@ -require 'bootstrap-sass/version' +require 'bootstrap/version' module Bootstrap class << self # Inspired by Kaminari @@ -50,9 +50,6 @@ module Bootstrap require 'sass' ::Sass.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 end def register_compass_extension @@ -66,7 +63,7 @@ module Bootstrap end def register_rails_engine - require 'bootstrap-sass/engine' + require 'bootstrap/engine' end def register_sprockets diff --git a/lib/bootstrap-sass/engine.rb b/lib/bootstrap/engine.rb index 4e7a4a1..321d626 100644 --- a/lib/bootstrap-sass/engine.rb +++ b/lib/bootstrap/engine.rb @@ -1,8 +1,8 @@ module Bootstrap module Rails class Engine < ::Rails::Engine - initializer 'bootstrap-sass.assets.precompile' do |app| - %w(stylesheets javascripts images).each do |sub| + initializer 'bootstrap.assets.precompile' do |app| + %w(stylesheets javascripts).each do |sub| app.config.assets.paths << root.join('assets', sub).to_s end end diff --git a/lib/bootstrap-sass/version.rb b/lib/bootstrap/version.rb index 0b27ed3..0b27ed3 100644 --- a/lib/bootstrap-sass/version.rb +++ b/lib/bootstrap/version.rb |