Sha256: 0d92f0d87afdc1ab234ccfc1c52bbaad0d1c6025ae18893b8f9d8000647bc5b3

Contents?: true

Size: 657 Bytes

Versions: 22

Compression:

Stored size: 657 Bytes

Contents

# CodeKit needs relative paths
dir = File.dirname(__FILE__)
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)

require "bourbon/generator"

unless defined?(Sass)
  require 'sass'
end

module Bourbon
  if defined?(Rails) && defined?(Rails::Engine)
    class Engine < ::Rails::Engine
      require 'bourbon/engine'
    end

    module Rails
      class Railtie < ::Rails::Railtie
        rake_tasks do
          load "tasks/install.rake"
        end
      end
    end
  else
    bourbon_path = File.expand_path("../../app/assets/stylesheets", __FILE__)
    ENV["SASS_PATH"] = [ENV["SASS_PATH"], bourbon_path].compact.join(File::PATH_SEPARATOR)
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
bourbon-4.3.4 lib/bourbon.rb
bourbon-4.3.3 lib/bourbon.rb
bourbon-4.3.2 lib/bourbon.rb
bourbon-4.3.1 lib/bourbon.rb
bourbon-4.3.0 lib/bourbon.rb
bourbon-4.2.7 lib/bourbon.rb
bourbon-4.2.6 lib/bourbon.rb
bourbon-4.2.5 lib/bourbon.rb
bourbon-5.0.0.alpha.0 lib/bourbon.rb
bourbon-4.2.4 lib/bourbon.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/bourbon-4.2.3/lib/bourbon.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/lib/bourbon.rb
bourbon-4.2.3 lib/bourbon.rb
bourbon-4.2.2 lib/bourbon.rb
bourbon-4.2.1 lib/bourbon.rb
bourbon-4.2.0 lib/bourbon.rb
bourbon-4.2.0.beta lib/bourbon.rb
bourbon-4.2.0.pre lib/bourbon.rb
bourbon-4.1.1 lib/bourbon.rb
bourbon-4.1.0 lib/bourbon.rb