lib/font-awesome-sass.rb in font-awesome-sass-5.15.1 vs lib/font-awesome-sass.rb in font-awesome-sass-6.0.0

- old
+ new

@@ -4,12 +4,10 @@ def load! if rails? register_rails_engine elsif sprockets? register_sprockets - elsif compass? - register_compass_extension elsif deprecated_sass? ::Sass.load_paths << stylesheets_path end end @@ -32,35 +30,19 @@ def sprockets? defined?(::Sprockets) end - def compass? - defined?(::Compass::Frameworks) - end - def rails? defined?(::Rails) end def deprecated_sass? # The deprecated `sass` gem: defined?(::Sass) && ::Sass.respond_to?(:load_paths) end private - - def register_compass_extension - require 'font_awesome/sass/version' - - ::Compass::Frameworks.register( - 'font-awesome', - version: FontAwesome::Sass::VERSION, - path: gem_path, - stylesheets_directory: stylesheets_path, - templates_directory: File.join(gem_path, 'templates') - ) - end def register_rails_engine require 'font_awesome/sass/rails/engine' require 'font_awesome/sass/rails/railtie' end