Sha256: c7337cf8da1de5c9ea39dcb013e50f9653fa0ecd5cc5606647ef1bb7efb9fc6b

Contents?: true

Size: 615 Bytes

Versions: 245

Compression:

Stored size: 615 Bytes

Contents

dir = File.dirname(__FILE__)
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)

require "smock/generator"

unless defined?(Sass)
  require 'sass'
end

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

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

Version data entries

245 entries across 245 versions & 1 rubygems

Version Path
smock-0.1.268 lib/smock.rb
smock-0.1.267 lib/smock.rb
smock-0.1.266 lib/smock.rb
smock-0.1.265 lib/smock.rb
smock-0.1.264 lib/smock.rb
smock-0.1.263 lib/smock.rb
smock-0.1.262 lib/smock.rb
smock-0.1.261 lib/smock.rb
smock-0.1.260 lib/smock.rb
smock-0.1.259 lib/smock.rb
smock-0.1.258 lib/smock.rb
smock-0.1.256 lib/smock.rb
smock-0.1.255 lib/smock.rb
smock-0.1.254 lib/smock.rb
smock-0.1.253 lib/smock.rb
smock-0.1.252 lib/smock.rb
smock-0.1.251 lib/smock.rb
smock-0.1.250 lib/smock.rb
smock-0.1.249 lib/smock.rb
smock-0.1.247 lib/smock.rb