pax_global_header00006660000000000000000000000064125721220740014514gustar00rootroot0000000000000052 comment=90c6dd104f4b0636993b14982e3e7ef6c87d258c sass-rails-5.0.4/000077500000000000000000000000001257212207400136035ustar00rootroot00000000000000sass-rails-5.0.4/.gitignore000066400000000000000000000001061257212207400155700ustar00rootroot00000000000000*.gem .bundle *.lock pkg/* .sass-cache .ruby-version gemfiles/vendor/*sass-rails-5.0.4/.travis.yml000066400000000000000000000020561257212207400157170ustar00rootroot00000000000000language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1 - 2.2 - rbx-2 gemfile: - gemfiles/Gemfile-rails-4-0 - gemfiles/Gemfile-rails-4-1 - gemfiles/Gemfile-rails-4-2 - gemfiles/Gemfile-sprockets-2-11 - gemfiles/Gemfile-sprockets-2-12 - gemfiles/Gemfile-sprockets-2-8 - gemfiles/Gemfile-sprockets-3-0 - gemfiles/Gemfile-sprockets-rails-2-2 - gemfiles/Gemfile-sprockets-rails-master - gemfiles/Gemfile-sass-3-1 - gemfiles/Gemfile-sass-3-2 - gemfiles/Gemfile-sass-3-3 - gemfiles/Gemfile-sass-3-4 sudo: false cache: bundler script: bundle exec rake test matrix: allow_failures: - rvm: rbx-2 include: - gemfile: Gemfile rvm: 2.2.2 notifications: email: false irc: on_success: change on_failure: always channels: - "irc.freenode.org#rails-contrib" campfire: on_success: change on_failure: always rooms: - secure: "CGWvthGkBKNnTnk9YSmf9AXKoiRI33fCl5D3jU4nx3cOPu6kv2R9nMjt9EAo\nOuS4Q85qNSf4VNQ2cUPNiNYSWQ+XiTfivKvDUw/QW9r1FejYyeWarMsSBWA+\n0fADjF1M2dkDIVLgYPfwoXEv7l+j654F1KLKB69F0F/netwP9CQ=" sass-rails-5.0.4/Gemfile000066400000000000000000000002441257212207400150760ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem's dependencies in sass-rails.gemspec gemspec gem "rails", github: "rails/rails" gem "arel", github: "rails/arel" sass-rails-5.0.4/MIT-LICENSE000066400000000000000000000020511257212207400152350ustar00rootroot00000000000000Copyright (c) 2011 Christopher Eppstein Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. sass-rails-5.0.4/README.md000066400000000000000000000103431257212207400150630ustar00rootroot00000000000000# Official Ruby-on-Rails Integration with Sass This gem provides official integration for Ruby on Rails projects with the Sass stylesheet language. ## Installing Since Rails 3.1, new Rails projects will be already configured to use Sass. If you are upgrading to Rails 3.1 you will need to add the following to your Gemfile: gem 'sass-rails' ## Configuration To configure Sass via Rails set use `config.sass` in your application and/or environment files to set configuration properties that will be passed to Sass. ### Options - `preferred_syntax` - This option determines the default Sass syntax and file extensions that will be used by Rails generators. Can be `:scss` (default CSS-compatible SCSS syntax) or `:sass` (indented Sass syntax). The [list of supported Sass options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options) can be found on the Sass Website with the following caveats: - `:style` - This option is not supported. This is determined by the Rails environment. It's `:expanded` only on development, otherwise it's `:compressed`. - `:never_update` - This option is not supported. Instead set `config.assets.enabled = false` - `:always_update` - This option is not supported. Sprockets uses a controller to access stylesheets in development mode instead of a full scan for changed files. - `:always_check` - This option is not supported. Sprockets always checks in development. - `:syntax` - This is determined by the file's extensions. - `:filename` - This is determined by the file's name. - `:line` - This is provided by the template handler. ### Example MyProject::Application.configure do config.sass.preferred_syntax = :sass config.sass.line_comments = false config.sass.cache = false end ## Important Note Sprockets provides some directives that are placed inside of comments called `require`, `require_tree`, and `require_self`. **DO NOT USE THEM IN YOUR SASS/SCSS FILES.** They are very primitive and do not work well with Sass files. Instead, use Sass's native `@import` directive which `sass-rails` has customized to integrate with the conventions of your Rails projects. ## Features ### Glob Imports When in Rails, there is a special import syntax that allows you to glob imports relative to the folder of the stylesheet that is doing the importing. * `@import "mixins/*"` will import all the files in the mixins folder * `@import "mixins/**/*"` will import all the files in the mixins tree Any valid ruby glob may be used. The imports are sorted alphabetically. **NOTE:** It is recommended that you only use this when importing pure library files (containing mixins and variables) because it is difficult to control the cascade ordering for imports that contain styles using this approach. ### Asset Helpers When using the asset pipeline, paths to assets must be rewritten. When referencing assets use the following asset helpers (underscored in Ruby, hyphenated in Sass): #### `asset-path($relative-asset-path)` Returns a string to the asset. * `asset-path("rails.png")` returns `"/assets/rails.png"` #### `asset-url($relative-asset-path)` Returns a url reference to the asset. * `asset-url("rails.png")` returns `url(/assets/rails.png)` As a convenience, for each of the following asset classes there are corresponding `-path` and `-url` helpers: image, font, video, audio, javascript, stylesheet. * `image-path("rails.png")` returns `"/assets/rails.png"` * `image-url("rails.png")` returns `url(/assets/rails.png)` #### `asset-data-url($relative-asset-path)` Returns a url reference to the Base64-encoded asset at the specified path. * `asset-data-url("rails.png")` returns `url(data:image/png;base64,iVBORw0K...)` ## Running Tests $ bundle install $ bundle exec rake test If you need to test against local gems, use Bundler's gem :path option in the Gemfile and also edit `test/support/test_helper.rb` and tell the tests where the gem is checked out. ## Code Status * [![Travis CI](https://api.travis-ci.org/rails/sass-rails.svg)](http://travis-ci.org/rails/sass-rails) * [![Gem Version](https://badge.fury.io/rb/sass-rails.svg)](http://badge.fury.io/rb/sass-rails) * [![Dependencies](https://gemnasium.com/rails/sass-rails.svg)](https://gemnasium.com/rails/sass-rails) sass-rails-5.0.4/Rakefile000066400000000000000000000004021257212207400152440ustar00rootroot00000000000000require 'bundler' Bundler::GemHelper.install_tasks require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end desc 'Default: run unit tests.' task default: :test sass-rails-5.0.4/gemfiles/000077500000000000000000000000001257212207400153765ustar00rootroot00000000000000sass-rails-5.0.4/gemfiles/Gemfile-rails-4-0000066400000000000000000000002031257212207400202720ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails", "~> 4.0.0" sass-rails-5.0.4/gemfiles/Gemfile-rails-4-1000066400000000000000000000002031257212207400202730ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails", "~> 4.1.0" sass-rails-5.0.4/gemfiles/Gemfile-rails-4-2000066400000000000000000000002031257212207400202740ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails", "~> 4.2.0" sass-rails-5.0.4/gemfiles/Gemfile-sass-3-1000066400000000000000000000002161257212207400201350ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sass", "~> 3.1.0" sass-rails-5.0.4/gemfiles/Gemfile-sass-3-2000066400000000000000000000002161257212207400201360ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sass", "~> 3.2.0" sass-rails-5.0.4/gemfiles/Gemfile-sass-3-3000066400000000000000000000002161257212207400201370ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sass", "~> 3.3.0" sass-rails-5.0.4/gemfiles/Gemfile-sass-3-4000066400000000000000000000002161257212207400201400ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sass", "~> 3.4.0" sass-rails-5.0.4/gemfiles/Gemfile-sprockets-2-11000066400000000000000000000002241257212207400212600ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sprockets", "~> 2.11.0" sass-rails-5.0.4/gemfiles/Gemfile-sprockets-2-12000066400000000000000000000002241257212207400212610ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sprockets", "~> 2.12.0" sass-rails-5.0.4/gemfiles/Gemfile-sprockets-2-8000066400000000000000000000002231257212207400212050ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sprockets", "~> 2.8.0" sass-rails-5.0.4/gemfiles/Gemfile-sprockets-3-0000066400000000000000000000002231257212207400211760ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sprockets", "~> 3.0.0" sass-rails-5.0.4/gemfiles/Gemfile-sprockets-rails-2-2000066400000000000000000000002311257212207400223060ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sprockets-rails", "~> 2.2.0" sass-rails-5.0.4/gemfiles/Gemfile-sprockets-rails-master000066400000000000000000000002561257212207400233100ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem"s dependencies in sass-rails.gemspec gemspec path: ".." gem "rails" gem "sprockets-rails", github: "rails/sprockets-rails" sass-rails-5.0.4/lib/000077500000000000000000000000001257212207400143515ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/000077500000000000000000000000001257212207400154635ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/000077500000000000000000000000001257212207400176345ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/sass/000077500000000000000000000000001257212207400206055ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/sass/assets/000077500000000000000000000000001257212207400221075ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/sass/assets/assets_generator.rb000066400000000000000000000005311257212207400260030ustar00rootroot00000000000000require "rails/generators/named_base" module Sass module Generators class AssetsGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) def copy_sass template "stylesheet.sass", File.join('app/assets/stylesheets', class_path, "#{file_name}.sass") end end end end sass-rails-5.0.4/lib/rails/generators/sass/assets/templates/000077500000000000000000000000001257212207400241055ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/sass/assets/templates/stylesheet.sass000066400000000000000000000002571257212207400271750ustar00rootroot00000000000000// Place all the styles related to the <%= name %> controller here. // They will automatically be included in application.css. // You can use Sass here: http://sass-lang.com/ sass-rails-5.0.4/lib/rails/generators/sass/scaffold/000077500000000000000000000000001257212207400223665ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/sass/scaffold/scaffold_generator.rb000066400000000000000000000002701257212207400265410ustar00rootroot00000000000000require "rails/generators/sass_scaffold" module Sass module Generators class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase def syntax() :sass end end end end sass-rails-5.0.4/lib/rails/generators/sass_scaffold.rb000066400000000000000000000007311257212207400227740ustar00rootroot00000000000000require "sass/css" require "rails/generators/named_base" module Sass module Generators class ScaffoldBase < ::Rails::Generators::NamedBase def copy_stylesheet dir = ::Rails::Generators::ScaffoldGenerator.source_root file = File.join(dir, "scaffold.css") converted_contents = ::Sass::CSS.new(File.read(file)).render(syntax) create_file "app/assets/stylesheets/scaffolds.#{syntax}", converted_contents end end end end sass-rails-5.0.4/lib/rails/generators/scss/000077500000000000000000000000001257212207400206075ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/scss/assets/000077500000000000000000000000001257212207400221115ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/scss/assets/assets_generator.rb000066400000000000000000000005311257212207400260050ustar00rootroot00000000000000require "rails/generators/named_base" module Scss module Generators class AssetsGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) def copy_scss template "stylesheet.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.scss") end end end end sass-rails-5.0.4/lib/rails/generators/scss/assets/templates/000077500000000000000000000000001257212207400241075ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/scss/assets/templates/stylesheet.scss000066400000000000000000000002661257212207400272010ustar00rootroot00000000000000// Place all the styles related to the <%= name %> controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ sass-rails-5.0.4/lib/rails/generators/scss/scaffold/000077500000000000000000000000001257212207400223705ustar00rootroot00000000000000sass-rails-5.0.4/lib/rails/generators/scss/scaffold/scaffold_generator.rb000066400000000000000000000002711257212207400265440ustar00rootroot00000000000000require "rails/generators/sass_scaffold" module Scss module Generators class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase def syntax() :scss end end end end sass-rails-5.0.4/lib/sass-rails.rb000066400000000000000000000000251257212207400167540ustar00rootroot00000000000000require 'sass/rails' sass-rails-5.0.4/lib/sass/000077500000000000000000000000001257212207400153225ustar00rootroot00000000000000sass-rails-5.0.4/lib/sass/rails.rb000066400000000000000000000003431257212207400167610ustar00rootroot00000000000000module Sass module Rails autoload :Logger, 'sass/rails/logger' end end require 'sass/rails/version' require 'sass/rails/helpers' require 'sass/rails/importer' require 'sass/rails/template' require 'sass/rails/railtie' sass-rails-5.0.4/lib/sass/rails/000077500000000000000000000000001257212207400164345ustar00rootroot00000000000000sass-rails-5.0.4/lib/sass/rails/cache_store.rb000066400000000000000000000012561257212207400212440ustar00rootroot00000000000000require 'sass' module Sass module Rails class CacheStore < ::Sass::CacheStores::Base attr_reader :environment def initialize(environment) @environment = environment end def _store(key, version, sha, contents) environment.cache_set("sass/#{key}", {:version => version, :sha => sha, :contents => contents}) end def _retrieve(key, version, sha) if obj = environment.cache_get("sass/#{key}") return unless obj[:version] == version return unless obj[:sha] == sha obj[:contents] else nil end end def path_to(key) key end end end end sass-rails-5.0.4/lib/sass/rails/helpers.rb000066400000000000000000000004511257212207400204230ustar00rootroot00000000000000require 'sass' require 'sprockets/sass_functions' module Sprockets module SassFunctions def asset_data_url(path) Sass::Script::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")") end end end ::Sass::Script::Functions.send :include, Sprockets::SassFunctions sass-rails-5.0.4/lib/sass/rails/importer.rb000066400000000000000000000104541257212207400206260ustar00rootroot00000000000000require 'active_support/deprecation/reporting' require 'sass' require 'sprockets/sass_importer' require 'tilt' module Sass module Rails class SassImporter < Sass::Importers::Filesystem module Globbing GLOB = /(\A|\/)(\*|\*\*\/\*)\z/ def find_relative(name, base, options) if options[:sprockets] && m = name.match(GLOB) path = name.sub(m[0], "") base = File.expand_path(path, File.dirname(base)) glob_imports(base, m[2], options) else super end end def find(name, options) # globs must be relative return if name =~ GLOB super end private def glob_imports(base, glob, options) contents = "" context = options[:sprockets][:context] each_globbed_file(base, glob, context) do |filename| next if filename == options[:filename] contents << "@import #{filename.inspect};\n" end return nil if contents == "" Sass::Engine.new(contents, options.merge( :filename => base, :importer => self, :syntax => :scss )) end def each_globbed_file(base, glob, context) raise ArgumentError unless glob == "*" || glob == "**/*" exts = extensions.keys.map { |ext| Regexp.escape(".#{ext}") }.join("|") sass_re = Regexp.compile("(#{exts})$") context.depend_on(base) Dir["#{base}/#{glob}"].sort.each do |path| if File.directory?(path) context.depend_on(path) elsif sass_re =~ path yield path end end end end module ERB def extensions { 'css.erb' => :scss_erb, 'scss.erb' => :scss_erb, 'sass.erb' => :sass_erb }.merge(super) end def erb_extensions { :scss_erb => :scss, :sass_erb => :sass } end def find_relative(*args) process_erb_engine(super) end def find(*args) process_erb_engine(super) end private def process_erb_engine(engine) if engine && engine.options[:sprockets] && syntax = erb_extensions[engine.options[:syntax]] template = Tilt::ERBTemplate.new(engine.options[:filename]) contents = template.render(engine.options[:sprockets][:context], {}) Sass::Engine.new(contents, engine.options.merge(:syntax => syntax)) else engine end end end module Deprecated def extensions { 'css.scss' => :scss, 'css.sass' => :sass, 'css.scss.erb' => :scss_erb, 'css.sass.erb' => :sass_erb }.merge(super) end def find_relative(*args) deprecate_extra_css_extension(super) end def find(*args) deprecate_extra_css_extension(super) end private def deprecate_extra_css_extension(engine) if engine && filename = engine.options[:filename] if filename.end_with?('.css.scss') msg = "Extra .css in SCSS file is unnecessary. Rename #{filename} to #{filename.sub('.css.scss', '.scss')}." elsif filename.end_with?('.css.sass') msg = "Extra .css in SASS file is unnecessary. Rename #{filename} to #{filename.sub('.css.sass', '.sass')}." elsif filename.end_with?('.css.scss.erb') msg = "Extra .css in SCSS/ERB file is unnecessary. Rename #{filename} to #{filename.sub('.css.scss.erb', '.scss.erb')}." elsif filename.end_with?('.css.sass.erb') msg = "Extra .css in SASS/ERB file is unnecessary. Rename #{filename} to #{filename.sub('.css.sass.erb', '.sass.erb')}." end ActiveSupport::Deprecation.warn(msg) if msg end engine end end include Deprecated include ERB include Globbing # Allow .css files to be @import'd def extensions { 'css' => :scss }.merge(super) end end end end sass-rails-5.0.4/lib/sass/rails/logger.rb000066400000000000000000000007021257212207400202370ustar00rootroot00000000000000require 'sass' require 'sass/logger' module Sass module Rails class Logger < Sass::Logger::Base def _log(level, message) case level when :trace, :debug ::Rails.logger.debug message when :warn ::Rails.logger.warn message when :error ::Rails.logger.error message when :info ::Rails.logger.info message end end end end end sass-rails-5.0.4/lib/sass/rails/railtie.rb000066400000000000000000000060361257212207400204170ustar00rootroot00000000000000require 'sass' require 'active_support/core_ext/class/attribute' require 'sprockets/railtie' module Sass::Rails class Railtie < ::Rails::Railtie config.sass = ActiveSupport::OrderedOptions.new # Establish static configuration defaults # Emit scss files during stylesheet generation of scaffold config.sass.preferred_syntax = :scss # Write sass cache files for performance config.sass.cache = true # Read sass cache files for performance config.sass.read_cache = true # Display line comments above each selector as a debugging aid config.sass.line_comments = true # Initialize the load paths to an empty array config.sass.load_paths = [] # Send Sass logs to Rails.logger config.sass.logger = Sass::Rails::Logger.new # Set the default stylesheet engine # It can be overridden by passing: # --stylesheet_engine=sass # to the rails generate command config.app_generators.stylesheet_engine config.sass.preferred_syntax if config.respond_to?(:annotations) config.annotations.register_extensions("scss", "sass") { |annotation| /\/\/\s*(#{annotation}):?\s*(.*)$/ } end # Remove the sass middleware if it gets inadvertently enabled by applications. config.after_initialize do |app| app.config.middleware.delete(Sass::Plugin::Rack) if defined?(Sass::Plugin::Rack) end initializer :setup_sass, group: :all do |app| # Only emit one kind of syntax because though we have registered two kinds of generators syntax = app.config.sass.preferred_syntax.to_sym alt_syntax = syntax == :sass ? "scss" : "sass" app.config.generators.hide_namespace alt_syntax # Override stylesheet engine to the preferred syntax config.app_generators.stylesheet_engine syntax # Set the sass cache location config.sass.cache_location = File.join(Rails.root, "tmp/cache/sass") # Establish configuration defaults that are evironmental in nature if config.sass.full_exception.nil? # Display a stack trace in the css output when in development-like environments. config.sass.full_exception = app.config.consider_all_requests_local end config.assets.configure do |env| env.register_engine '.sass', Sass::Rails::SassTemplate env.register_engine '.scss', Sass::Rails::ScssTemplate env.context_class.class_eval do class_attribute :sass_config self.sass_config = app.config.sass end end Sass.logger = app.config.sass.logger end initializer :setup_compression, group: :all do |app| if Rails.env.development? # Use expanded output instead of the sass default of :nested unless specified app.config.sass.style ||= :expanded else # config.assets.css_compressor may be set to nil in non-dev environments. # otherwise, the default is sass compression. app.config.assets.css_compressor = :sass unless app.config.assets.has_key?(:css_compressor) end end end end sass-rails-5.0.4/lib/sass/rails/template.rb000066400000000000000000000030071257212207400205740ustar00rootroot00000000000000require 'sass' require 'sass/rails/cache_store' require 'sass/rails/helpers' require 'sprockets/sass_functions' require 'tilt' module Sass module Rails class SassTemplate < Tilt::Template def self.default_mime_type 'text/css' end def self.engine_initialized? true end def initialize_engine end def prepare end def syntax :sass end def evaluate(context, locals, &block) cache_store = CacheStore.new(context.environment) options = { :filename => eval_file, :line => line, :syntax => syntax, :cache_store => cache_store, :importer => importer_class.new(context.pathname.to_s), :load_paths => context.environment.paths.map { |path| importer_class.new(path.to_s) }, :sprockets => { :context => context, :environment => context.environment } } sass_config = context.sass_config.merge(options) engine = ::Sass::Engine.new(data, sass_config) css = engine.render engine.dependencies.map do |dependency| context.depend_on(dependency.options[:filename]) end css rescue ::Sass::SyntaxError => e context.__LINE__ = e.sass_backtrace.first[:line] raise e end private def importer_class SassImporter end end class ScssTemplate < SassTemplate def syntax :scss end end end end sass-rails-5.0.4/lib/sass/rails/version.rb000066400000000000000000000000731257212207400204460ustar00rootroot00000000000000module Sass module Rails VERSION = "5.0.4" end end sass-rails-5.0.4/sass-rails.gemspec000066400000000000000000000017121257212207400172320ustar00rootroot00000000000000# -*- encoding: utf-8 -*- $:.push File.expand_path("../lib", __FILE__) require "sass/rails/version" Gem::Specification.new do |s| s.name = "sass-rails" s.version = Sass::Rails::VERSION s.platform = Gem::Platform::RUBY s.authors = ["wycats", "chriseppstein"] s.email = ["wycats@gmail.com", "chris@eppsteins.net"] s.homepage = "https://github.com/rails/sass-rails" s.summary = %q{Sass adapter for the Rails asset pipeline.} s.description = %q{Sass adapter for the Rails asset pipeline.} s.license = %q{MIT} s.add_dependency 'railties', '>= 4.0.0', '< 5.0' s.add_dependency 'sass', '~> 3.1' s.add_dependency 'sprockets-rails', '>= 2.0', '< 4.0' s.add_dependency 'sprockets', '>= 2.8', '< 4.0' s.add_dependency 'tilt', '>= 1.1', '< 3' s.add_development_dependency 'sqlite3' s.files = Dir["MIT-LICENSE", "README.md", "lib/**/*"] s.require_paths = ["lib"] end sass-rails-5.0.4/test/000077500000000000000000000000001257212207400145625ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/000077500000000000000000000000001257212207400164335ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/000077500000000000000000000000001257212207400234655ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/.gitignore000066400000000000000000000000611257212207400254520ustar00rootroot00000000000000.bundle db/*.sqlite3 log/*.log tmp/ .sass-cache/ sass-rails-5.0.4/test/fixtures/alternate_config_project/Gemfile000066400000000000000000000002571257212207400247640ustar00rootroot00000000000000source 'https://rubygems.org' gem 'rails', '>= 4.0.0.beta', '< 5.0' gem 'sqlite3' # Asset template engines gem 'sass-rails', path: File.expand_path('../../../..', __FILE__) sass-rails-5.0.4/test/fixtures/alternate_config_project/README000066400000000000000000000217701257212207400243540ustar00rootroot00000000000000== Welcome to Rails Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Control pattern. This pattern splits the view (also called the presentation) into "dumb" templates that are primarily responsible for inserting pre-built data in between HTML tags. The model contains the "smart" domain objects (such as Account, Product, Person, Post) that holds all the business logic and knows how to persist themselves to a database. The controller handles the incoming requests (such as Save New Account, Update Product, Show Post) by manipulating the model and directing data to the view. In Rails, the model is handled by what's called an object-relational mapping layer entitled Active Record. This layer allows you to present the data from database rows as objects and embellish these data objects with business logic methods. You can read more about Active Record in link:files/vendor/rails/activerecord/README.html. The controller and view are handled by the Action Pack, which handles both layers by its two parts: Action View and Action Controller. These two layers are bundled in a single package due to their heavy interdependence. This is unlike the relationship between the Active Record and Action Pack that is much more separate. Each of these packages can be used independently outside of Rails. You can read more about Action Pack in link:files/vendor/rails/actionpack/README.html. == Getting Started 1. At the command prompt, create a new Rails application: rails new myapp (where myapp is the application name) 2. Change directory to myapp and start the web server: cd myapp; rails server (run with --help for options) 3. Go to http://localhost:3000/ and you'll see: "Welcome aboard: You're riding Ruby on Rails!" 4. Follow the guidelines to start developing your application. You can find the following resources handy: * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html * Ruby on Rails Tutorial Book: http://www.railstutorial.org/ == Debugging Rails Sometimes your application goes wrong. Fortunately there are a lot of tools that will help you debug it and get it back on the rails. First area to check is the application log files. Have "tail -f" commands running on the server.log and development.log. Rails will automatically display debugging and runtime information to these files. Debugging info will also be shown in the browser on requests from 127.0.0.1. You can also log your own messages directly into the log file from your code using the Ruby logger class from inside your controllers. Example: class WeblogController < ActionController::Base def destroy @weblog = Weblog.find(params[:id]) @weblog.destroy logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!") end end The result will be a message in your log file along the lines of: Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1! More information on how to use the logger is at http://www.ruby-doc.org/core/ Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are several books available online as well: * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe) * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide) These two books will bring you up to speed on the Ruby language and also on programming in general. == Debugger Debugger support is available through the debugger command when you start your Mongrel or WEBrick server with --debugger. This means that you can break out of execution at any point in the code, investigate and change the model, and then, resume execution! You need to install ruby-debug to run the server in debugging mode. With gems, use sudo gem install ruby-debug. Example: class WeblogController < ActionController::Base def index @posts = Post.all debugger end end So the controller will accept the action, run the first line, then present you with a IRB prompt in the server window. Here you can do things like: >> @posts.inspect => "[#nil, "body"=>nil, "id"=>"1"}>, #"Rails", "body"=>"Only ten..", "id"=>"2"}>]" >> @posts.first.title = "hello from a debugger" => "hello from a debugger" ...and even better, you can examine how your runtime objects actually work: >> f = @posts.first => #nil, "body"=>nil, "id"=>"1"}> >> f. Display all 152 possibilities? (y or n) Finally, when you're ready to resume execution, you can enter "cont". == Console The console is a Ruby shell, which allows you to interact with your application's domain model. Here you'll have all parts of the application configured, just like it is when the application is running. You can inspect domain models, change values, and save to the database. Starting the script without arguments will launch it in the development environment. To start the console, run rails console from the application directory. Options: * Passing the -s, --sandbox argument will rollback any modifications made to the database. * Passing an environment name as an argument will load the corresponding environment. Example: rails console production. To reload your controllers and models after launching the console run reload! More information about irb can be found at: link:http://www.rubycentral.org/pickaxe/irb.html == dbconsole You can go to the command line of your database directly through rails dbconsole. You would be connected to the database with the credentials defined in database.yml. Starting the script without arguments will connect you to the development database. Passing an argument will connect you to a different database, like rails dbconsole production. Currently works for MySQL, PostgreSQL and SQLite 3. == Description of Contents The default directory structure of a generated Ruby on Rails application: |-- app | |-- assets | |-- images | |-- javascripts | `-- stylesheets | |-- controllers | |-- helpers | |-- mailers | |-- models | `-- views | `-- layouts |-- config | |-- environments | |-- initializers | `-- locales |-- db |-- doc |-- lib | `-- tasks |-- log |-- public |-- script |-- test | |-- fixtures | |-- functional | |-- integration | |-- performance | `-- unit |-- tmp | |-- cache | |-- pids | |-- sessions | `-- sockets `-- vendor |-- assets `-- stylesheets `-- plugins app Holds all the code that's specific to this particular application. app/assets Contains subdirectories for images, stylesheets, and JavaScript files. app/controllers Holds controllers that should be named like weblogs_controller.rb for automated URL mapping. All controllers should descend from ApplicationController which itself descends from ActionController::Base. app/models Holds models that should be named like post.rb. Models descend from ActiveRecord::Base by default. app/views Holds the template files for the view that should be named like weblogs/index.html.erb for the WeblogsController#index action. All views use eRuby syntax by default. app/views/layouts Holds the template files for layouts to be used with views. This models the common header/footer method of wrapping views. In your views, define a layout using the layout :default and create a file named default.html.erb. Inside default.html.erb, call <% yield %> to render the view using this layout. app/helpers Holds view helpers that should be named like weblogs_helper.rb. These are generated for you automatically when using generators for controllers. Helpers can be used to wrap functionality for your views into methods. config Configuration files for the Rails environment, the routing map, the database, and other dependencies. db Contains the database schema in schema.rb. db/migrate contains all the sequence of Migrations for your schema. doc This directory is where your application documentation will be stored when generated using rake doc:app lib Application specific libraries. Basically, any kind of custom code that doesn't belong under controllers, models, or helpers. This directory is in the load path. public The directory available for the web server. Also contains the dispatchers and the default HTML files. This should be set as the DOCUMENT_ROOT of your web server. script Helper scripts for automation and generation. test Unit and functional tests along with fixtures. When using the rails generate command, template test files will be generated for you and placed in this directory. vendor External libraries that the application depends on. Also includes the plugins subdirectory. If the app has frozen rails, those gems also go here, under vendor/rails/. This directory is in the load path. sass-rails-5.0.4/test/fixtures/alternate_config_project/Rakefile000066400000000000000000000004371257212207400251360ustar00rootroot00000000000000#!/usr/bin/env rake # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) AlternateConfigProject::Application.load_tasks sass-rails-5.0.4/test/fixtures/alternate_config_project/app/000077500000000000000000000000001257212207400242455ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/000077500000000000000000000000001257212207400255475ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/images/000077500000000000000000000000001257212207400270145ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/images/1x1.png000066400000000000000000000016361257212207400301410ustar00rootroot00000000000000‰PNG  IHDRĉtEXtSoftwareAdobe ImageReadyqÉe<$iTXtXML:com.adobe.xmp ÐxIôIDATxÚbøÿÿ?@€üþÛ¢MIEND®B`‚sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/images/rails.png000066400000000000000000000147661257212207400306520ustar00rootroot00000000000000‰PNG  IHDR2@XÕ${tEXtSoftwareAdobe ImageReadyqÉe<˜IDATxÚ¬[ ”\e•þÞR¯Ö®®^ª;IwgßÂa×È@`ÄñÈÉÇíè¨gÆãœGgDgtÜqDFqFñ ¢DÄqFÈ’@ÒéNºÓûRU]Ë«÷Þ|÷ÿ_-Q˜Çyéª÷^ýïÞÿÞïÞïÞÿǸ.Ý‹ð0‚WÀ_6€Íkšùbðf̻ܸù‡£6À«<4 Æw5ÿæ~*rŽÛá—?À¿9–ñîöˆm´Ø&"¦ØãMß÷ù7@vm'Ú· {¼_¿S)Vû¬ÿi\“ÃWôG?¨Ë¸Õ«jM‹dÜ@ lDLX鸺W-TàÍUá+@ÞEPào\&*R޹¢§áûnn‰˜¹,á fšðDÀWrX|¸Ê3žM£=Û§\‚ÝƒŠ«÷Eç³JˆºB–[döµ6A¨¨º'Ÿ=‘t¬x^©„ÊÔ$Çòa86̈¥®ò{, ϱPµ©ŒepNøž*_ìW©ˆ_3¢oóŸ·;†ñÞ¥ñ(•0àòE¾:¡¬àñƒÏÙiïËÒ6ªeÎÌXn¡ŒhGf"ƒÂúL|S+(+.gФ¾–­g=¨Y‡c—Êh=m#V_û·¬Š#ÿû}èñ‚ǪòÝÎ|±ŒÀâtR ñŸÞD8VÙÕ„‰M~xg!ni%DyŸ(¡”¡‰î âé…õ•ÛB,{(äàNÎÁ´ãpÒˆ$3°ãiر$ìh›.@ße[a'ãœeºJÔ‚³yš¼Åì‹Ï 4>ŒH*ƒöMçÂéHQ(Jgt-ƒÖ¢»QI ^·‚ðž©dЄ@áçsÓÔÒ-¡'-´ 51¤{³'Ò0õ ÕÙ|În4Û‰h{V½@Ü©çâw"»éB¾ËTŠ =rŸzqP­pBè‘Hãȃ?¢Åˆƒâ ]-ÃqópgsPiŠSÓª®…ög`j×n¸ù)˜‰šÊõжm 御B2L†.¥ûx!¸j¦ÔúJ¡À÷P! Kˆ/\¤ Ê®RBŽŽ[0µç9TrÓˆu. Þ¢uå©Hö®$´ …Á™DDQÒ+ä:ˆÜÁݘٻ 3/¾ŒçnÁò«Þÿú%äöõSjŽm‰2Ðå!&D/ü[¥EÚHw·Wþ ‘ßA-RR!ê•æP eŠu„•HÁimÇè“"µtÚ6lF²g¹²Ð«-ËO.¸å™1Œ?÷ÆžúÒksX~õVìúêtmZJðR1êŠÔ1èé¦N÷ÌôuÁ&Ð<Ïõ â½©,T™šbÈ,`ðçw¢óÌ °ðWP¥x-G´5‹ž ¯ä—ãèÃ`ø±•Õ´/5pbêðÔÁ­¬Aà©öt¨ÄIVJç_«]§›0/´²‰¾½‰DiòH=¿–ô#è»ø*œö77 ç-3‚Ññ þVuQØ0ê.…¨ÍpÛÝ”ŽÓ%ÐyÀw Ú ÂhÑ™Wðâ¹0ã),ºô2$—ôbúà6&²¼ÄI/@báj$²ËöøI®–‹(Žfx'¨ æJ…nËÉOµ"±`©ÂØŸø<-¼/ßúŸLŽ®Ñ®%^ÏÈ«œÍ¶ÞnÄ2½ªwÒ—ùå2}}Xüö­úսȼL€'Qž£Ù-,¿ümˆ/ꤋÂ4#0“­´Š‹òôQ”&0›È0¤¯à¹NK—r¯<‡éýÏböð^¢kN#_wzU7hg'C{ -½k=ç"¬y÷‡Q"÷Þ~šjë¼húï[#V\\Í€“t¯êÓ®Ì'K„3ÌJQ…Î5¹ž¾{ÚOۄ±~ŒýþEä Xö®+ÑuÖTÂ3ˆ/Ád}j¤¬"ÉQ„.M 8öÜâæŽ #wh/ïÛŒfg0çTàp’ü9-cÉïƒC«ìûÞ8öأʋ&Ÿ{³ƒÃÊ•K6Âä'fñi•Ìâ.D˜ O°F¨X•¥÷’+°à¼KPš"…0ÐuþE8pǯ±ê=W¡÷Ò‹àås¤Nt7_¶©Ât˜ê»q;* eªØõíÛ0üÈdÖ.Æêk¶¢óŒ éŠÓ¨LލI°¢qÅ*ÿô{t· Z%‚¹á~ìþæcÆ%š²HÊ6â>sA,›Aײ…Ú׿)¡£ƒaIäE¹C(ÒERK{8‚çÿé«È¬[޵y?iI5$¬†%ê·fø{}Šu¬¨ƒ—îú úïÞF äûÇ1¶ãÌ~ã;v1l'‰¦˜@åç¤F…桌 'IF'mñ!K¤7ã…Ð"Œ&­]ÒÍw 1ó5¨#4V§iò‘žnÇÔö[Ô—ávã Ç8Äš…Ø)>Cá=L´B´ˆ“Àào~‹é½/ø¸3%º w´‚·ÿFý4Ö“ÁÊ¿8™Þ>bWX@‡bÆÉb@¼ÙIzP9ÐI±vÁFfQÉL‹Ê!2c£EP(se4~¦5RhƒAÂŽ90‚‘_?‡ æcóMŸE¢§teV¹”OaOr ÝÓ÷B¦ª]ËpȱÆØ“»±ñ“"EyïxˆÏ:ü­ ÇŠ)‹–ŽÌbl׋hYâÀu…ÖÄT´™dâÔ«æÈíwš=Ø¢¥M€gw“VPè™OFÎ’â2¶æ5-TD—[ŠåZ2Ã>–]ýV,xÓ›IOŠ²Æ…)œJ”ñͺ[)?cn28pÿ#(çmkÇÒ+.Âè£/ phœÊ®×Q6?³wå7‘îÇHãIoÄSj)“ÅÉ1<±¤ÙÈ#í¬-œ£¨Næ9ûO1ͰØÑéÞkÂIäòK´¬éÁÊ÷¿—r:¼Ç(Å—‹;rº“R&<9€ª3¦v¿@Áw(w:ø“Ð~æ:T¦óÊFSޒ"¦ö £ç¼ÕŠ’Tád®Ì¬T‚ã9ˆæýPIb“3•…˜JØzæóT’Qׄ¥BÕP23´Æµï¢éW’­Î*|@^¤¬¡)Q³ŒüwåÃ?I¬éžq ÞûŽ=ü,¼™Š<@Ð B8)“;Ž¢û¬50ù¼éHˆ-=ýTÁ í”SAº@Œ”Œ@¹„f‚5Þ¨r”é[ƒÊT%#c|…õÃZ&Äw(B)tD¹•Q%Êvø™yCþš‘(â,ÆŸ|ï‰ÁƒŠÊ°¶ÆÉi‰‰¹ä&å—<#u:Íëª3E­HkÍzÕд)nd¶ØF>1Vä2À²k®F¼½GYL KáMQÀlR&TBþÚ,igv¿ˆòè8]Cœ8S±f#Ä…4æQ¡ŠÚ¬Õ'ž?Ìç¢,ÈÊ= ¥ËaVÕ9WEX³ö³Yr§rà‡ª*Ô!âcÍõÄÆ¯~­×)Ðú,=ÛøyÑŸ]ªj–lGeíšE̺5´r_2ñÔŽ}d×"½a‰ª]Œ0ßM9·¦PˆZ¶…ÙÝG17ž‡ÍÌnE"ÊR¢ˆÇrÛó\ñY‡Q‰)!|5U(d¬·=—^‰Å—¿o¼ãÇ8õ³×+Ðö¼õ2ÀNU“6jB[¡àëˆB5ÅèV.]šŲ­Wãô/^¯”‘䩬Ðôßñ ´Š;Y"Vúi‘$±’¤2¶ŠœÕÙ²º_§ñµc‚‰Æ«(F^Eçùg“qö©{–C°ñŒ÷P¹‹/ #K8ã–ÝôY+QÈ ÝMð1>ÜžAÌìß®Íç¢ëÂÍ,gÝy®t²Þ•n,˜˜z¾ŸÅE$‘VÀ÷Š.ñÉävßÌæÌâ.†ŽPyLaèpóâÈÏîGç9TnÑÒ:uiàÀšçRZ! z‹I0?ÐÒá1<ÿ‰/`àû˜7ÈÓ$)XÆqøhئvšt¯¹Ã“,}‡˜ÓäjITòeuÓ°Ìù¢r0šë³h§%” ‰£ÿýKŒüîQ’ ˜3V£0<ˆ%W¿ëÄ&¢„V‚< ÎÄ5%ÔJ2”Sø™IE ÃJÒÊX;>u#­$¬6ªÉ±¯óGM™ÀhØF…d˜td|Û~dÏ\O9Ijç**záDØb)PBÌÒ½¦h•…-qø qîl‘%ë/€{ïGzÍ*d7ŸóŠ=QS]:‡ˆRº©QbÂUàMPá’¯‚†ò$%½æ¨ du] õˆXefïQzÈ$Ÿ«(¾¥'И‘Z‹HŠ«#äÇAÜRÂX¬íDB Ø~öÈÿ`‹×0.F|XŒXKì)æêé™w¬FoÊlzyÈhÔßš»ÕÜKz³Œ>±“‚.&n EjÍ„™U,2'•ƒ÷ &iwö¬óþè[’d­À[ ™ÓV)ö*¦Q§a†v¦†›úl …êQÌDitž[VŠIžQ‰ÚhRÄ@½$)Éy~mÆ|ÒøäŠ>ºÖú?­cJ+V²H'6þË?ã 7 iÖ.ûX‹H8ÌFÞ¨)d†AYøUÂBjE»"—Š.ñ4w-?lÍÚÔ2ÃYœ™.Á•úÎRj¤W¬D¢«÷µö@BÜØ¬.߆sþã[H-gA—S™F¨3ÿÚFýj™ÅÒ]úØ¢œŽ„ÊèBPë–¬…_—>M%bt —©?_rÕ¬ -h]·öµ·rœ_ž[nÂȶ‡˜›Q‘ªã¢+GÔ­_û\Ê ±þžZÙ¦fÜeÑÖÐÏótŒ(|ºU(‡Ü'.g ®VFÃENÇë9’½½üé}Ll»4ÎTÅ&nto¨Ӓ œX ÉFß éˆ"º€…_‰ÕfYzÇF˜~y& Gu]$›§æO[Èöv#ž]ðº‰.è@$VA`â±§T°¢Ñ°õZ[2šº–µuÝ+ˆ/mUÁCò‡_ T½n‡y¤Ñ  —|l\ «³ ¹þÌMÌ"G[¼¸±ŽìëR$µd™Š|:—Ä›º“F½Ii„reÚ"Ùµ³át· Êä“ú,¼+ÛŒ­1ÜìZ1Ú1ÉÈÒuÑ‘dt*çK¨2é ÜsŒd; [êõ)²x¥²€W.¡¹z2jåTh#D®VŒß\NO &eó…_±v’U2Ÿ×ÝBè^µ¨%ã¶0FÛÓHöô²(/Ô˜I§2>‰’•Àë=œLñÅ]ºÑdv UUëpk"ìijBœ®$’,O-0y<}~®Ã*Tºö£5LÄùErE4ÝBß³XŠÆX‚N£:<†9š²¼>Eìd -ËV*‹øž®«»êu¥B…LÍÝÒs»µN*Š*­á…JxåªRÈÍUÁôÄè¾–,ôÈìTÊ(ìÛ ƒ•ÈûËGuÔ ÿŸ@÷âůYƒ{ëÚu|ùCïJF¯(OL°bœÔ±–Ñín‚Õ´iKhp‹ðÒ×·’F»tx8³#µ¸ª9Fs±FŸÚ‹è³û½®DT‘¨A”n1vðeF¯^M ^kfÐÈ.ĆݠV¨Ê“ǰý3ŸÄøãÏÀJÆËaãY@n&»ªjµ‚Llø:ФMô¬‰cÓšðêÂ…Æà—<ÿNðÁ#Å ŽNä062KkYˆµ¤QÆ,yÎë9Ú6lBþp?r‡(ÚëX„eW_.KuJR'‚-Ž^x¢"^ž‘j’n5RE0&¦`iÎP\¬”4^º'j-!õæ’*´¨`4†£ü]Ô-"ñâ>´vu×ËË?9—´w!–íÂÎ/~­ë×#ÚÚÉh…“í ›MªÄÛÈò”ƒ Ú› °ó®Ì´nMA}m W,)(ìî….µ¦N ¬yÛ%$æÇà³*ËóÞþ={P9Šîõ§¢cé D“zHî>ÿBlÿäu˜Þ¾K78˜x-Ö>V,¢ó‰'µJU»× \L¯¹]Èl¥é>W*ªr¡žÙ-h«Xóªf~oI† “Z3f玱î>v‰öN´3 u¯Z‡Tgg}÷ÕŽö363:.g /-ÒH¸+"P‰ÎÏKÛ‰SZô4´„òZÕ_×ò¦GlXM¾c7¶é"§Ê;Ò¿ ‹£òÐ(ŽÝ÷5f‚MÄðUC¯¶OF6Ü ±ÎßCNf³t¹>$S1V†aéêëR·&œ4)æŽ ¡ÊÈâÍéÙ—†a y]‘ä%íW ·AÍ*|g©XÐ{Q¤Ÿc>iTX1‚F‡‰ ® M`|à!Ó[$‚±¦PŠ4šªÊŠ¢Ð$ý¶Ÿ#,d«ÉŒƒ(?KT¬JR¥Û¸SŒû%C7ôjûHšÖb浃j+ÊáN$©,³[.@˹›ÐѾÿþ_ ÈÏà?™.3ëÖúĵÂH"U$âÐZ¶^ª ñX0É2!KÚc© ²ù¥8Åqè.N«¬‰ˆMI6–N&3µŠ÷n8´¤eë¤ëöÁx¥oéÈW¦fP˜™Ä²ËÞB<pð—¿R·ÿ±EA쮤dѨo$*ÎäÈm³)e9¥D© «5‚X[…·T$©LΠ:]†C$n#m›±C±ëÖ[P~ˆYØtè*dÏ?§\÷q´®^WÇÁôýØùõ›XsìÄ!ÓEæü-øø­·2#—°ûË_Æàmw£å¼õ8û;·2!váàwà…ü:™D²¾”á›Uôn½Ëßó$)GàiG–nÎ3_ÿÆoþ¼ñ EÕZE3Øk½-™™–îEHv.œOûzÐEŠòø>€™ç"Ö›Á¦Ï}í§lž÷\¼³‰/-À·nÅØ±QôÄãH¦ÛÔ½aâb*â#K׋¶eIÊÆ³d#G¨ et\¸§æóêþ ,:•‚MëێÜÇIC³}òm úÙ½ƒO?¶e«°bË%¤øËÙ°SÛö²tíB|Aznôéßazÿ*µÏFlQ/¬Kà ƒøu¿uý*1’wËDÖvÖ¿E„×ÛÖ¯SJTK¸ý;(¼4 k–Æ£;v2P9º—`Ìk‰Œ©ê»{ï¿?~ß_ã‰[¾Ùh¬Ê¢Ž^9×фǡ;„m|îðÝ]oÒ9<#Òjz…\“èwÄD½,8éVÐ]ä]©%K9e­êr懇0ñônº¶©Û^FcIÂ>é`¡U–¾ùb¼í+²kÖ…O1|NO©šæ]‘t+,Èl©_³Ë®6« Ä’D½¼b§rzß^•pe7^ßåï¨ß[ñÞaûŸÃ¾oÜÎ確 jNˆÆ+x×Òs·¨áNÓC÷ß…ÉÇwÐÌμç7|üz¬þà‡a2õ,•¤ô omîµrb©ÆZˆ‰~ž¥›,pN>¶;?÷Y,ÝzÚï²™¡[uâ—¿ãjüî̾ªq 4aÄýôúqîæ±Ú¶Nu6Z£‰»iŽd‡÷êàîè@âÜõh!•åçâÁ!µF9òð#˜Üþ,#UŒØr±áºOaÑ—0=DÃ¥„ ,,›,b¡±E·#ÏÿôÇÈ®Xƒ¾3Ϊ‹ÿ÷Þê¶=ÌaÖ<Ó =ÿ&_~ Ùµëѽacj˜Áñ«’†ÂLsÎXuéX¾åB è(wzò£EÀ»ék_QIÙ*4'Ñ£«SÙl£–Êç{’.,¬pÛµÒÐ2ë¡`jpÜð¨Ìå^؇‹núZÎX¡öPÉò—ź^Ž]wÞ‰Ÿ]ûaìÿÅÏÃQ-µàoIÆ5íº’O“3a–]¨ _¬wb Å­L¬]êº$ÁÖ§"½|sԩȬ= ÝVˆÑïÞLIUªbYY‘æ®­Í¢I¢$˜Òt¿½ùf$2í|r;ÿ~'îúèG°òôˆSøXk©á‡¦ðÔ­ßF4Áôž—‘b‘4úì xúßo[,¢04Fž•Àì¡~<}Û­ªßÃRš%mybš×¾Å\mlO—‚Ž.4}t”E\€½7}M)¯êtÕ‰ô1þì3˜x”îF÷ [¾-»2Æ6ãºtï䢄Ý&ü¨èEÑ"9Œ€;ÂÙœ±rq âe)ÍßK!Ç:bŠæwY¡ }¥g;Jר”Õ)5D$!Kɤ9®Êß«-Kñ˜Ú$ë$¢ì »óè±h–l™…ÞDÚØÖUFF ª¡J{s2®R‰Ë6rC÷Õ&ð¼&æ0;ûá@>›ç]›/¤Z’3±E,k;( 2^‹®å0ÚÔ9<µjCE“õíSõ{Ð}àéŒ6NF´â)ü6/”ª}.‚KZâ%Ùð|Ÿ×ïSÐðš6W6ïëmR=ŽÒ* íð¿'MO‡R…Û8P«Áë«5~ÓçF£¡þ]w„0êXhq©H°…u89c´Ä¤« øðúÇjQkª¿P±Pß üʇ,Éáø?'þ?ŽàäËÕRƒI!ÿ4#ßm¼÷³Ú£ÿ'À¾˜œ-볞IEND®B`‚sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/javascripts/000077500000000000000000000000001257212207400301005ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/javascripts/application.js000066400000000000000000000007171257212207400327460ustar00rootroot00000000000000// This is a manifest file that'll be compiled into including all the files listed below. // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically // be included in the compiled file accessible from http://example.com/assets/application.js // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // //= require jquery //= require jquery_ujs //= require_tree . sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/000077500000000000000000000000001257212207400301235ustar00rootroot00000000000000_top_level_partial.scss000066400000000000000000000000421257212207400346010ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets.top-level { font-color: bold; }sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/application.scss000066400000000000000000000017021257212207400333230ustar00rootroot00000000000000@import "partials/sass_import"; @import "partials/scss_import"; @import "globbed/**/*"; @import "subfolder/plain"; @import "subfolder/second_level"; @import "partials/without_css_ext"; .main { color: yellow; @include background-from-partial(red); } .rails { asset-path: asset-path("rails.png"); asset-url: asset-url("rails.png"); image-path: image-path("rails.png"); image-url: image-url("rails.png"); video-path: video-path("rails.mp4"); video-url: video-url("rails.mp4"); audio-path: audio-path("rails.mp3"); audio-url: audio-url("rails.mp3"); font-path: font-path("rails.ttf"); font-url: font-url("rails.ttf"); font-url-with-query-hash: font-url("rails.ttf?#iefix"); javascript-path: javascript-path("rails.js"); javascript-url: javascript-url("rails.js"); stylesheet-path: stylesheet-path("rails.css"); stylesheet-url: stylesheet-url("rails.css"); asset-data-url: asset-data-url("1x1.png"); } @include without-css-ext; sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/css_application.css000066400000000000000000000003171257212207400340110ustar00rootroot00000000000000/* *= require partials/_sass_import *= require partials/_scss_import *= require_tree ./globbed *= require subfolder/plain *= require subfolder/second_level */ .css-application { background: #fff; } sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/000077500000000000000000000000001257212207400315215ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/globbed.scss000066400000000000000000000000351257212207400340120ustar00rootroot00000000000000.globbed { color: green; } sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/nested/000077500000000000000000000000001257212207400330035ustar00rootroot00000000000000nested_glob.scss000066400000000000000000000000371257212207400361060ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/nested.nested-glob { color: blue; }sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/000077500000000000000000000000001257212207400317425ustar00rootroot00000000000000_sass_import.sass000066400000000000000000000001341257212207400352560ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials.partial-sass color: green @import "top_level_partial" @import "subfolder/relative_scss" _scss_import.scss000066400000000000000000000002671257212207400352710ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials.partial-scss { color: blue; } @mixin background-from-partial($color) { background-color: $color } @import "subfolder/relative_sass"; @import "subfolder/relative_not_a_partial";_without_css_ext.scss000066400000000000000000000000771257212207400361560ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials@mixin without-css-ext { .without-css-ext { should: work; } }sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/000077500000000000000000000000001257212207400337275ustar00rootroot00000000000000_relative_sass.sass000066400000000000000000000000471257212207400375470ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder.sub-folder-relative-sass width: 50px_relative_scss.scss000066400000000000000000000000611257212207400375470ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder.sub-folder-relative-scss { width: 50px * 5; } relative_not_a_partial.scss000066400000000000000000000000541257212207400412530ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder.not-a-partial { border: 1px solid blue; }sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/000077500000000000000000000000001257212207400321105ustar00rootroot00000000000000another_plain.css000066400000000000000000000000611257212207400353630ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder.another-plain-old-css { font-style: italic; } sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/plain.css000066400000000000000000000000501257212207400337200ustar00rootroot00000000000000.plain-old-css { font-style: italic; }second_level.scss000066400000000000000000000001261257212207400353670ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder@import "another_plain"; /* tests whether relative lookups of non-sass files works. */sass-rails-5.0.4/test/fixtures/alternate_config_project/app/controllers/000077500000000000000000000000001257212207400266135ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/controllers/application_controller.rb000066400000000000000000000001201257212207400336770ustar00rootroot00000000000000class ApplicationController < ActionController::Base protect_from_forgery end sass-rails-5.0.4/test/fixtures/alternate_config_project/app/helpers/000077500000000000000000000000001257212207400257075ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/helpers/application_helper.rb000066400000000000000000000000351257212207400320740ustar00rootroot00000000000000module ApplicationHelper end sass-rails-5.0.4/test/fixtures/alternate_config_project/app/mailers/000077500000000000000000000000001257212207400257015ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/mailers/.gitkeep000066400000000000000000000000001257212207400273200ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/models/000077500000000000000000000000001257212207400255305ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/models/.gitkeep000066400000000000000000000000001257212207400271470ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/views/000077500000000000000000000000001257212207400254025ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/views/layouts/000077500000000000000000000000001257212207400271025ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/app/views/layouts/application.html.erb000066400000000000000000000003501257212207400330400ustar00rootroot00000000000000 AlternateConfigProject <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-5.0.4/test/fixtures/alternate_config_project/config.ru000066400000000000000000000002541257212207400253030ustar00rootroot00000000000000# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run AlternateConfigProject::Application sass-rails-5.0.4/test/fixtures/alternate_config_project/config/000077500000000000000000000000001257212207400247325ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/config/application.rb000066400000000000000000000043061257212207400275650ustar00rootroot00000000000000require File.expand_path('../boot', __FILE__) require 'rails/all' # If you have a Gemfile, require the gems listed there, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) if defined?(Bundler) module AlternateConfigProject class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ] # Activate observers that should always be running. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de # Please note that JavaScript expansions are *ignored altogether* if the asset # pipeline is enabled (see config.assets.enabled below). Put your defaults in # app/assets/javascripts/application.js in that case. # # JavaScript files you want as :defaults (application.js is always included). # config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs) # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] # Enable the asset pipeline config.assets.enabled = true end end sass-rails-5.0.4/test/fixtures/alternate_config_project/config/boot.rb000066400000000000000000000002771257212207400262300ustar00rootroot00000000000000require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) sass-rails-5.0.4/test/fixtures/alternate_config_project/config/database.yml000066400000000000000000000011001257212207400272110ustar00rootroot00000000000000# SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: sqlite3 database: db/production.sqlite3 pool: 5 timeout: 5000 sass-rails-5.0.4/test/fixtures/alternate_config_project/config/environment.rb000066400000000000000000000002461257212207400276250ustar00rootroot00000000000000# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application AlternateConfigProject::Application.initialize! sass-rails-5.0.4/test/fixtures/alternate_config_project/config/environments/000077500000000000000000000000001257212207400274615ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/config/environments/development.rb000066400000000000000000000020411257212207400323250ustar00rootroot00000000000000AlternateConfigProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false config.eager_load = false # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Don't care if the mailer can't send config.action_mailer.raise_delivery_errors = false # Print deprecation notices to the Rails logger config.active_support.deprecation = :log # Only use best-standards-support built into browsers config.action_dispatch.best_standards_support = :builtin # While not common in development, we are just using this to test alternate configs # Specifically, does it honor the style attribute config.sass.style = :compact end sass-rails-5.0.4/test/fixtures/alternate_config_project/config/environments/production.rb000066400000000000000000000041261257212207400321770ustar00rootroot00000000000000AlternateConfigProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true config.eager_load = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) if config.respond_to?(:serve_static_files) config.serve_static_files = false else config.serve_static_assets = false end # Compress JavaScripts and CSS config.assets.css_compressor = :yui # Specify the default JavaScript compressor config.assets.js_compressor = :uglifier # Specifies the header that your server uses for sending files # (comment out if your front-end server doesn't support this) config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true # See everything in the log (default is :info) config.log_level = :info # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Use a different cache store in production # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # config.assets.precompile += %w( search.js ) # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false # Enable threaded mode # config.threadsafe! # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation can not be found) config.i18n.fallbacks = true # Send deprecation notices to registered listeners config.active_support.deprecation = :notify end sass-rails-5.0.4/test/fixtures/alternate_config_project/config/environments/test.rb000066400000000000000000000034161257212207400307710ustar00rootroot00000000000000AlternateConfigProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true # Configure static asset server for tests with Cache-Control for performance if config.respond_to?(:serve_static_files) config.serve_static_files = true else config.serve_static_assets = true end config.static_cache_control = "public, max-age=3600" config.eager_load = false # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Raise exceptions instead of rendering exception templates config.action_dispatch.show_exceptions = false # Disable request forgery protection in test environment config.action_controller.allow_forgery_protection = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test # Use SQL instead of Active Record's schema dumper when creating the test database. # This is necessary if your schema can't be completely dumped by the schema dumper, # like if you have constraints or database-specific column types # config.active_record.schema_format = :sql # Print deprecation notices to the stderr config.active_support.deprecation = :stderr # Decide not to use sass compression config.assets.css_compressor = nil end sass-rails-5.0.4/test/fixtures/alternate_config_project/config/initializers/000077500000000000000000000000001257212207400274405ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/config/initializers/backtrace_silencers.rb000066400000000000000000000006241257212207400337550ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. # Rails.backtrace_cleaner.remove_silencers! sass-rails-5.0.4/test/fixtures/alternate_config_project/config/initializers/inflections.rb000066400000000000000000000005701257212207400323040ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # ActiveSupport::Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', 'people' # inflect.uncountable %w( fish sheep ) # end sass-rails-5.0.4/test/fixtures/alternate_config_project/config/initializers/mime_types.rb000066400000000000000000000003151257212207400321370ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone sass-rails-5.0.4/test/fixtures/alternate_config_project/config/initializers/secret_token.rb000066400000000000000000000010011257212207400324420ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. AlternateConfigProject::Application.config.secret_token = 'aad80c771c1b2b13b67b0b2d03ee3fa8a1d5a8e8dce2e8bc8b382f197927b789afdc9355f8bc7256faf650015d75d8eb541e9ab96a88f0bd63c4bd7552174849' sass-rails-5.0.4/test/fixtures/alternate_config_project/config/initializers/session_store.rb000066400000000000000000000007031257212207400326640ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. AlternateConfigProject::Application.config.session_store :cookie_store, :key => '_scss_project_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails generate session_migration") # AlternateConfigProject::Application.config.session_store :active_record_store sass-rails-5.0.4/test/fixtures/alternate_config_project/config/initializers/wrap_parameters.rb000066400000000000000000000007551257212207400331700ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # # This file contains the settings for ActionController::ParametersWrapper # which will be enabled by default in the upcoming version of Ruby on Rails. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActionController::Base.wrap_parameters :format => [:json] # Disable root element in JSON by default. if defined?(ActiveRecord) ActiveRecord::Base.include_root_in_json = false end sass-rails-5.0.4/test/fixtures/alternate_config_project/config/locales/000077500000000000000000000000001257212207400263545ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/config/locales/en.yml000066400000000000000000000003261257212207400275020ustar00rootroot00000000000000# Sample localization file for English. Add more files in this directory for other locales. # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. en: hello: "Hello world" sass-rails-5.0.4/test/fixtures/alternate_config_project/config/routes.rb000066400000000000000000000034151257212207400266030ustar00rootroot00000000000000AlternateConfigProject::Application.routes.draw do # The priority is based upon order of creation: # first created -> highest priority. # Sample of regular route: # match 'products/:id' => 'catalog#view' # Keep in mind you can assign values other than :controller and :action # Sample of named route: # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase # This route can be invoked with purchase_url(:id => product.id) # Sample resource route (maps HTTP verbs to controller actions automatically): # resources :products # Sample resource route with options: # resources :products do # member do # get 'short' # post 'toggle' # end # # collection do # get 'sold' # end # end # Sample resource route with sub-resources: # resources :products do # resources :comments, :sales # resource :seller # end # Sample resource route with more complex sub-resources # resources :products do # resources :comments # resources :sales do # get 'recent', :on => :collection # end # end # Sample resource route within a namespace: # namespace :admin do # # Directs /admin/products/* to Admin::ProductsController # # (app/controllers/admin/products_controller.rb) # resources :products # end # You can have the root of your site routed with "root" # just remember to delete public/index.html. # root :to => 'welcome#index' # See how all your routes lay out with "rake routes" # This is a legacy wild controller route that's not recommended for RESTful applications. # Note: This route will make all actions in every controller accessible via GET requests. # match ':controller(/:action(/:id(.:format)))' end sass-rails-5.0.4/test/fixtures/alternate_config_project/db/000077500000000000000000000000001257212207400240525ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/db/seeds.rb000066400000000000000000000005271257212207400255060ustar00rootroot00000000000000# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) sass-rails-5.0.4/test/fixtures/alternate_config_project/doc/000077500000000000000000000000001257212207400242325ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/doc/README_FOR_APP000066400000000000000000000003231257212207400263160ustar00rootroot00000000000000Use this README file to introduce your application and point to useful places in the API for learning more. Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. sass-rails-5.0.4/test/fixtures/alternate_config_project/lib/000077500000000000000000000000001257212207400242335ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/lib/tasks/000077500000000000000000000000001257212207400253605ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/lib/tasks/.gitkeep000066400000000000000000000000001257212207400267770ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/log/000077500000000000000000000000001257212207400242465ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/log/.gitkeep000066400000000000000000000000001257212207400256650ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/public/000077500000000000000000000000001257212207400247435ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/public/404.html000066400000000000000000000013301257212207400261350ustar00rootroot00000000000000 The page you were looking for doesn't exist (404)

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

sass-rails-5.0.4/test/fixtures/alternate_config_project/public/422.html000066400000000000000000000013071257212207400261410ustar00rootroot00000000000000 The change you wanted was rejected (422)

The change you wanted was rejected.

Maybe you tried to change something you didn't have access to.

sass-rails-5.0.4/test/fixtures/alternate_config_project/public/500.html000066400000000000000000000013301257212207400261320ustar00rootroot00000000000000 We're sorry, but something went wrong (500)

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.

sass-rails-5.0.4/test/fixtures/alternate_config_project/public/favicon.ico000066400000000000000000000000001257212207400270520ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/public/index.html000066400000000000000000000134231257212207400267430ustar00rootroot00000000000000 Ruby on Rails: Welcome aboard

Getting started

Here’s how to get rolling:

  1. Use rails generate to create your models and controllers

    To see all available options, run it without parameters.

  2. Set up a default route and remove public/index.html

    Routes are set up in config/routes.rb.

  3. Create your database

    Run rake db:create to create your database. If you're not using SQLite (the default), edit config/database.yml with your username and password.

sass-rails-5.0.4/test/fixtures/alternate_config_project/public/robots.txt000066400000000000000000000003141257212207400270120ustar00rootroot00000000000000# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file # # To ban all spiders from the entire site uncomment the next two lines: # User-Agent: * # Disallow: / sass-rails-5.0.4/test/fixtures/alternate_config_project/script/000077500000000000000000000000001257212207400247715ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/script/rails000077500000000000000000000004471257212207400260360ustar00rootroot00000000000000#!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. APP_PATH = File.expand_path('../../config/application', __FILE__) require File.expand_path('../../config/boot', __FILE__) require 'rails/commands' sass-rails-5.0.4/test/fixtures/alternate_config_project/vendor/000077500000000000000000000000001257212207400247625ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/vendor/assets/000077500000000000000000000000001257212207400262645ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/vendor/assets/stylesheets/000077500000000000000000000000001257212207400306405ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/vendor/assets/stylesheets/.gitkeep000066400000000000000000000000001257212207400322570ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/vendor/plugins/000077500000000000000000000000001257212207400264435ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/alternate_config_project/vendor/plugins/.gitkeep000066400000000000000000000000001257212207400300620ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/000077500000000000000000000000001257212207400214265ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/.gitignore000066400000000000000000000002141257212207400234130ustar00rootroot00000000000000.bundle/ log/*.log pkg/ test/dummy/db/*.sqlite3 test/dummy/db/*.sqlite3-journal test/dummy/log/*.log test/dummy/tmp/ test/dummy/.sass-cache sass-rails-5.0.4/test/fixtures/engine_project/Gemfile000066400000000000000000000010331257212207400227160ustar00rootroot00000000000000source "https://rubygems.org" # Declare your gem's dependencies in engine_project.gemspec. # Bundler will treat runtime dependencies like base dependencies, and # development dependencies will be added by default to the :development group. gemspec # Declare any dependencies that are still in development here instead of in # your gemspec. These might include edge Rails or gems from your path or # Git. Remember to move these dependencies to your gemspec before releasing # your gem to rubygems.org. # To use debugger # gem 'debugger' sass-rails-5.0.4/test/fixtures/engine_project/MIT-LICENSE000066400000000000000000000020301257212207400230550ustar00rootroot00000000000000Copyright 2013 YOURNAME Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. sass-rails-5.0.4/test/fixtures/engine_project/README.rdoc000066400000000000000000000000711257212207400232320ustar00rootroot00000000000000= EngineProject This project rocks and uses MIT-LICENSE.sass-rails-5.0.4/test/fixtures/engine_project/Rakefile000066400000000000000000000012461257212207400230760ustar00rootroot00000000000000begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'EngineProject' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' Bundler::GemHelper.install_tasks require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end task default: :test sass-rails-5.0.4/test/fixtures/engine_project/app/000077500000000000000000000000001257212207400222065ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/000077500000000000000000000000001257212207400235105ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/images/000077500000000000000000000000001257212207400247555ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/images/engine_project/000077500000000000000000000000001257212207400277505ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/images/engine_project/.keep000066400000000000000000000000001257212207400306630ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/javascripts/000077500000000000000000000000001257212207400260415ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/javascripts/engine_project/000077500000000000000000000000001257212207400310345ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js000066400000000000000000000012241257212207400336740ustar00rootroot00000000000000// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // //= require jquery //= require jquery_ujs //= require turbolinks //= require_tree . sass-rails-5.0.4/test/fixtures/engine_project/app/assets/stylesheets/000077500000000000000000000000001257212207400260645ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/stylesheets/engine_project/000077500000000000000000000000001257212207400310575ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css000066400000000000000000000010421257212207400340710ustar00rootroot00000000000000/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the top of the * compiled file, but it's generally better to create a new file per style scope. * *= require_self *= require_tree . */ sass-rails-5.0.4/test/fixtures/engine_project/app/controllers/000077500000000000000000000000001257212207400245545ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/controllers/engine_project/000077500000000000000000000000001257212207400275475ustar00rootroot00000000000000application_controller.rb000066400000000000000000000001261257212207400345620ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/controllers/engine_projectmodule EngineProject class ApplicationController < ActionController::Base end end sass-rails-5.0.4/test/fixtures/engine_project/app/helpers/000077500000000000000000000000001257212207400236505ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/helpers/engine_project/000077500000000000000000000000001257212207400266435ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb000066400000000000000000000000721257212207400330310ustar00rootroot00000000000000module EngineProject module ApplicationHelper end end sass-rails-5.0.4/test/fixtures/engine_project/app/views/000077500000000000000000000000001257212207400233435ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/views/layouts/000077500000000000000000000000001257212207400250435ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/views/layouts/engine_project/000077500000000000000000000000001257212207400300365ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb000066400000000000000000000004131257212207400337740ustar00rootroot00000000000000 EngineProject <%= stylesheet_link_tag "engine_project/application", media: "all" %> <%= javascript_include_tag "engine_project/application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-5.0.4/test/fixtures/engine_project/config/000077500000000000000000000000001257212207400226735ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/config/routes.rb000066400000000000000000000000511257212207400245350ustar00rootroot00000000000000EngineProject::Engine.routes.draw do end sass-rails-5.0.4/test/fixtures/engine_project/engine_project.gemspec000066400000000000000000000013361257212207400257710ustar00rootroot00000000000000$:.push File.expand_path("../lib", __FILE__) # Maintain your gem's version: require "engine_project/version" # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = "engine_project" s.version = EngineProject::VERSION s.authors = ["TODO: Your name"] s.email = ["TODO: Your email"] s.homepage = "TODO" s.summary = "TODO: Summary of EngineProject." s.description = "TODO: Description of EngineProject." s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] s.test_files = Dir["test/**/*"] s.add_dependency "rails", ">= 4.0.0.beta", "< 5.0" # s.add_dependency "jquery-rails" s.add_development_dependency "sqlite3" end sass-rails-5.0.4/test/fixtures/engine_project/lib/000077500000000000000000000000001257212207400221745ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/lib/engine_project.rb000066400000000000000000000000721257212207400255130ustar00rootroot00000000000000require "engine_project/engine" module EngineProject end sass-rails-5.0.4/test/fixtures/engine_project/lib/engine_project/000077500000000000000000000000001257212207400251675ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/lib/engine_project/engine.rb000066400000000000000000000001441257212207400267600ustar00rootroot00000000000000module EngineProject class Engine < ::Rails::Engine isolate_namespace EngineProject end end sass-rails-5.0.4/test/fixtures/engine_project/lib/engine_project/version.rb000066400000000000000000000000551257212207400272010ustar00rootroot00000000000000module EngineProject VERSION = "0.0.1" end sass-rails-5.0.4/test/fixtures/engine_project/lib/tasks/000077500000000000000000000000001257212207400233215ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake000066400000000000000000000001341257212207400303630ustar00rootroot00000000000000# desc "Explaining what the task does" # task :engine_project do # # Task goes here # end sass-rails-5.0.4/test/fixtures/engine_project/script/000077500000000000000000000000001257212207400227325ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/script/rails000077500000000000000000000005051257212207400237720ustar00rootroot00000000000000#!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. ENGINE_ROOT = File.expand_path('../..', __FILE__) ENGINE_PATH = File.expand_path('../../lib/engine_project/engine', __FILE__) require 'rails/all' require 'rails/engine/commands' sass-rails-5.0.4/test/fixtures/engine_project/test/000077500000000000000000000000001257212207400224055ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/000077500000000000000000000000001257212207400235405ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/README.rdoc000066400000000000000000000007361257212207400253540ustar00rootroot00000000000000== README This README would normally document whatever steps are necessary to get the application up and running. Things you may want to cover: * Ruby version * System dependencies * Configuration * Database creation * Database initialization * How to run the test suite * Services (job queues, cache servers, search engines, etc.) * Deployment instructions * ... Please feel free to use a different markup language if you do not plan to run rake doc:app. sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/Rakefile000066400000000000000000000003721257212207400252070ustar00rootroot00000000000000# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) Dummy::Application.load_tasks sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/000077500000000000000000000000001257212207400243205ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/assets/000077500000000000000000000000001257212207400256225ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/assets/javascripts/000077500000000000000000000000001257212207400301535ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js000066400000000000000000000012241257212207400330130ustar00rootroot00000000000000// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // //= require jquery //= require jquery_ujs //= require turbolinks //= require_tree . sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/000077500000000000000000000000001257212207400301765ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css000066400000000000000000000010421257212207400332100ustar00rootroot00000000000000/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the top of the * compiled file, but it's generally better to create a new file per style scope. * *= require_self *= require_tree . */ sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/controllers/000077500000000000000000000000001257212207400266665ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb000066400000000000000000000003141257212207400337570ustar00rootroot00000000000000class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/controllers/concerns/000077500000000000000000000000001257212207400305005ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/controllers/concerns/.keep000066400000000000000000000000001257212207400314130ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/helpers/000077500000000000000000000000001257212207400257625ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb000066400000000000000000000000351257212207400321470ustar00rootroot00000000000000module ApplicationHelper end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/mailers/000077500000000000000000000000001257212207400257545ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/mailers/.keep000066400000000000000000000000001257212207400266670ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/models/000077500000000000000000000000001257212207400256035ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/models/.keep000066400000000000000000000000001257212207400265160ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/models/concerns/000077500000000000000000000000001257212207400274155ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/models/concerns/.keep000066400000000000000000000000001257212207400303300ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/views/000077500000000000000000000000001257212207400254555ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/views/layouts/000077500000000000000000000000001257212207400271555ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb000066400000000000000000000004471257212207400331220ustar00rootroot00000000000000 Dummy <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> <%= yield %> sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/bin/000077500000000000000000000000001257212207400243105ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/bin/bundle000077500000000000000000000002011257212207400255000ustar00rootroot00000000000000#!/usr/bin/env ruby ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) load Gem.bin_path('bundler', 'bundle') sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/bin/rails000077500000000000000000000002221257212207400253440ustar00rootroot00000000000000#!/usr/bin/env ruby APP_PATH = File.expand_path('../../config/application', __FILE__) require_relative '../config/boot' require 'rails/commands' sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/bin/rake000077500000000000000000000001321257212207400251540ustar00rootroot00000000000000#!/usr/bin/env ruby require_relative '../config/boot' require 'rake' Rake.application.run sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config.ru000066400000000000000000000002331257212207400253530ustar00rootroot00000000000000# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run Dummy::Application sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/000077500000000000000000000000001257212207400250055ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/application.rb000066400000000000000000000015701257212207400276400ustar00rootroot00000000000000require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) require "engine_project" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de end end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/boot.rb000066400000000000000000000003301257212207400262710ustar00rootroot00000000000000gemfile = File.expand_path('../../../../Gemfile', __FILE__) if File.exist?(gemfile) ENV['BUNDLE_GEMFILE'] = gemfile require 'bundler' Bundler.setup end $:.unshift File.expand_path('../../../../lib', __FILE__)sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/database.yml000066400000000000000000000011001257212207400272640ustar00rootroot00000000000000# SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: sqlite3 database: db/production.sqlite3 pool: 5 timeout: 5000 sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/environment.rb000066400000000000000000000002271257212207400276770ustar00rootroot00000000000000# Load the rails application. require File.expand_path('../application', __FILE__) # Initialize the rails application. Dummy::Application.initialize! sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/environments/000077500000000000000000000000001257212207400275345ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/environments/development.rb000066400000000000000000000017571257212207400324150ustar00rootroot00000000000000Dummy::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false # Do not eager load code on boot. config.eager_load = false # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log # Raise an error on page load if there are pending migrations config.active_record.migration_error = :page_load # Debug mode disables concatenation and preprocessing of assets. config.assets.debug = true end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/environments/production.rb000066400000000000000000000064301257212207400322520ustar00rootroot00000000000000Dummy::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both thread web servers # and those relying on copy on write to perform better. # Rake tasks automatically ignore this option for performance. config.eager_load = true # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false config.action_controller.perform_caching = true # Enable Rack::Cache to put a simple HTTP cache in front of your application # Add `rack-cache` to your Gemfile before enabling this. # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid. # config.action_dispatch.rack_cache = true # Disable Rails's static asset server (Apache or nginx will already do this). if config.respond_to?(:serve_static_files) config.serve_static_files = false else config.serve_static_assets = false end # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass # Whether to fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false # Generate digests for assets URLs. config.assets.digest = true # Version of your assets, change this if you want to expire all your assets. config.assets.version = '1.0' # Specifies the header that your server uses for sending files. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true # Set to :debug to see everything in the log. config.log_level = :info # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ] # Use a different logger for distributed setups. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production. # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. # config.assets.precompile += %w( search.js ) # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation can not be found). config.i18n.fallbacks = true # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify # Disable automatic flushing of the log to improve performance. # config.autoflush_log = false # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/environments/test.rb000066400000000000000000000031671257212207400310470ustar00rootroot00000000000000Dummy::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true # Do not eager load code on boot. This avoids loading your whole application # just for the purpose of running a single test. If you are using a tool that # preloads Rails for running tests, you may have to set it to true. config.eager_load = false # Configure static asset server for tests with Cache-Control for performance. if config.respond_to?(:serve_static_files) config.serve_static_files = true else config.serve_static_assets = true end config.static_cache_control = "public, max-age=3600" # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false # Raise exceptions instead of rendering exception templates. config.action_dispatch.show_exceptions = false # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers/000077500000000000000000000000001257212207400275135ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb000066400000000000000000000006241257212207400340300ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. # Rails.backtrace_cleaner.remove_silencers! filter_parameter_logging.rb000066400000000000000000000003021257212207400350070ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password] sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb000066400000000000000000000012071257212207400323550ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', 'people' # inflect.uncountable %w( fish sheep ) # end # These inflection rules are supported but not enabled by default: # ActiveSupport::Inflector.inflections(:en) do |inflect| # inflect.acronym 'RESTful' # end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb000066400000000000000000000003151257212207400322120ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb000066400000000000000000000012131257212207400325220ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. # You can use `rake secret` to generate a secure secret key. # Make sure your secret_key_base is kept private # if you're sharing your code publicly. Dummy::Application.config.secret_key_base = '868d5f3233e4ffc2280b4ce3ba53cbe670ecefcca857cbf731795b8f2987f97d04b5175e2d014dd0d711203d2a45d1a52ed66bda51892f08eb828b0136a36437' sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb000066400000000000000000000002241257212207400327350ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. Dummy::Application.config.session_store :encrypted_cookie_store, key: '_dummy_session' sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb000066400000000000000000000010051257212207400332300ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] if respond_to?(:wrap_parameters) end # To enable root element in JSON for ActiveRecord objects. # ActiveSupport.on_load(:active_record) do # self.include_root_in_json = true # end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/locales/000077500000000000000000000000001257212207400264275ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/locales/en.yml000066400000000000000000000011721257212207400275550ustar00rootroot00000000000000# Files in the config/locales directory are used for internationalization # and are automatically loaded by Rails. If you want to use locales other # than English, add the necessary files in this directory. # # To use the locales, use `I18n.t`: # # I18n.t 'hello' # # In views, this is aliased to just `t`: # # <%= t('hello') %> # # To use a different locale, set it with `I18n.locale`: # # I18n.locale = :es # # This would use the information in config/locales/es.yml. # # To learn more, please read the Rails Internationalization guide # available at http://guides.rubyonrails.org/i18n.html. en: hello: "Hello world" sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/config/routes.rb000066400000000000000000000001311257212207400266460ustar00rootroot00000000000000Rails.application.routes.draw do mount EngineProject::Engine => "/engine_project" end sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/lib/000077500000000000000000000000001257212207400243065ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/lib/assets/000077500000000000000000000000001257212207400256105ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/lib/assets/.keep000066400000000000000000000000001257212207400265230ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/log/000077500000000000000000000000001257212207400243215ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/log/.keep000066400000000000000000000000001257212207400252340ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/public/000077500000000000000000000000001257212207400250165ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/public/404.html000066400000000000000000000014271257212207400262170ustar00rootroot00000000000000 The page you were looking for doesn't exist (404)

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

If you are the application owner check the logs for more information.

sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/public/422.html000066400000000000000000000012671257212207400262210ustar00rootroot00000000000000 The change you wanted was rejected (422)

The change you wanted was rejected.

Maybe you tried to change something you didn't have access to.

sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/public/500.html000066400000000000000000000013021257212207400262040ustar00rootroot00000000000000 We're sorry, but something went wrong (500)

We're sorry, but something went wrong.

If you are the application owner check the logs for more information.

sass-rails-5.0.4/test/fixtures/engine_project/test/dummy/public/favicon.ico000066400000000000000000000000001257212207400271250ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/000077500000000000000000000000001257212207400211325ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/.gitignore000066400000000000000000000000611257212207400231170ustar00rootroot00000000000000.bundle db/*.sqlite3 log/*.log tmp/ .sass-cache/ sass-rails-5.0.4/test/fixtures/sass_project/Gemfile000066400000000000000000000002571257212207400224310ustar00rootroot00000000000000source 'https://rubygems.org' gem 'rails', '>= 4.0.0.beta', '< 5.0' gem 'sqlite3' # Asset template engines gem 'sass-rails', path: File.expand_path('../../../..', __FILE__) sass-rails-5.0.4/test/fixtures/sass_project/README000066400000000000000000000217701257212207400220210ustar00rootroot00000000000000== Welcome to Rails Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Control pattern. This pattern splits the view (also called the presentation) into "dumb" templates that are primarily responsible for inserting pre-built data in between HTML tags. The model contains the "smart" domain objects (such as Account, Product, Person, Post) that holds all the business logic and knows how to persist themselves to a database. The controller handles the incoming requests (such as Save New Account, Update Product, Show Post) by manipulating the model and directing data to the view. In Rails, the model is handled by what's called an object-relational mapping layer entitled Active Record. This layer allows you to present the data from database rows as objects and embellish these data objects with business logic methods. You can read more about Active Record in link:files/vendor/rails/activerecord/README.html. The controller and view are handled by the Action Pack, which handles both layers by its two parts: Action View and Action Controller. These two layers are bundled in a single package due to their heavy interdependence. This is unlike the relationship between the Active Record and Action Pack that is much more separate. Each of these packages can be used independently outside of Rails. You can read more about Action Pack in link:files/vendor/rails/actionpack/README.html. == Getting Started 1. At the command prompt, create a new Rails application: rails new myapp (where myapp is the application name) 2. Change directory to myapp and start the web server: cd myapp; rails server (run with --help for options) 3. Go to http://localhost:3000/ and you'll see: "Welcome aboard: You're riding Ruby on Rails!" 4. Follow the guidelines to start developing your application. You can find the following resources handy: * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html * Ruby on Rails Tutorial Book: http://www.railstutorial.org/ == Debugging Rails Sometimes your application goes wrong. Fortunately there are a lot of tools that will help you debug it and get it back on the rails. First area to check is the application log files. Have "tail -f" commands running on the server.log and development.log. Rails will automatically display debugging and runtime information to these files. Debugging info will also be shown in the browser on requests from 127.0.0.1. You can also log your own messages directly into the log file from your code using the Ruby logger class from inside your controllers. Example: class WeblogController < ActionController::Base def destroy @weblog = Weblog.find(params[:id]) @weblog.destroy logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!") end end The result will be a message in your log file along the lines of: Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1! More information on how to use the logger is at http://www.ruby-doc.org/core/ Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are several books available online as well: * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe) * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide) These two books will bring you up to speed on the Ruby language and also on programming in general. == Debugger Debugger support is available through the debugger command when you start your Mongrel or WEBrick server with --debugger. This means that you can break out of execution at any point in the code, investigate and change the model, and then, resume execution! You need to install ruby-debug to run the server in debugging mode. With gems, use sudo gem install ruby-debug. Example: class WeblogController < ActionController::Base def index @posts = Post.all debugger end end So the controller will accept the action, run the first line, then present you with a IRB prompt in the server window. Here you can do things like: >> @posts.inspect => "[#nil, "body"=>nil, "id"=>"1"}>, #"Rails", "body"=>"Only ten..", "id"=>"2"}>]" >> @posts.first.title = "hello from a debugger" => "hello from a debugger" ...and even better, you can examine how your runtime objects actually work: >> f = @posts.first => #nil, "body"=>nil, "id"=>"1"}> >> f. Display all 152 possibilities? (y or n) Finally, when you're ready to resume execution, you can enter "cont". == Console The console is a Ruby shell, which allows you to interact with your application's domain model. Here you'll have all parts of the application configured, just like it is when the application is running. You can inspect domain models, change values, and save to the database. Starting the script without arguments will launch it in the development environment. To start the console, run rails console from the application directory. Options: * Passing the -s, --sandbox argument will rollback any modifications made to the database. * Passing an environment name as an argument will load the corresponding environment. Example: rails console production. To reload your controllers and models after launching the console run reload! More information about irb can be found at: link:http://www.rubycentral.org/pickaxe/irb.html == dbconsole You can go to the command line of your database directly through rails dbconsole. You would be connected to the database with the credentials defined in database.yml. Starting the script without arguments will connect you to the development database. Passing an argument will connect you to a different database, like rails dbconsole production. Currently works for MySQL, PostgreSQL and SQLite 3. == Description of Contents The default directory structure of a generated Ruby on Rails application: |-- app | |-- assets | |-- images | |-- javascripts | `-- stylesheets | |-- controllers | |-- helpers | |-- mailers | |-- models | `-- views | `-- layouts |-- config | |-- environments | |-- initializers | `-- locales |-- db |-- doc |-- lib | `-- tasks |-- log |-- public |-- script |-- test | |-- fixtures | |-- functional | |-- integration | |-- performance | `-- unit |-- tmp | |-- cache | |-- pids | |-- sessions | `-- sockets `-- vendor |-- assets `-- stylesheets `-- plugins app Holds all the code that's specific to this particular application. app/assets Contains subdirectories for images, stylesheets, and JavaScript files. app/controllers Holds controllers that should be named like weblogs_controller.rb for automated URL mapping. All controllers should descend from ApplicationController which itself descends from ActionController::Base. app/models Holds models that should be named like post.rb. Models descend from ActiveRecord::Base by default. app/views Holds the template files for the view that should be named like weblogs/index.html.erb for the WeblogsController#index action. All views use eRuby syntax by default. app/views/layouts Holds the template files for layouts to be used with views. This models the common header/footer method of wrapping views. In your views, define a layout using the layout :default and create a file named default.html.erb. Inside default.html.erb, call <% yield %> to render the view using this layout. app/helpers Holds view helpers that should be named like weblogs_helper.rb. These are generated for you automatically when using generators for controllers. Helpers can be used to wrap functionality for your views into methods. config Configuration files for the Rails environment, the routing map, the database, and other dependencies. db Contains the database schema in schema.rb. db/migrate contains all the sequence of Migrations for your schema. doc This directory is where your application documentation will be stored when generated using rake doc:app lib Application specific libraries. Basically, any kind of custom code that doesn't belong under controllers, models, or helpers. This directory is in the load path. public The directory available for the web server. Also contains the dispatchers and the default HTML files. This should be set as the DOCUMENT_ROOT of your web server. script Helper scripts for automation and generation. test Unit and functional tests along with fixtures. When using the rails generate command, template test files will be generated for you and placed in this directory. vendor External libraries that the application depends on. Also includes the plugins subdirectory. If the app has frozen rails, those gems also go here, under vendor/rails/. This directory is in the load path. sass-rails-5.0.4/test/fixtures/sass_project/Rakefile000066400000000000000000000004241257212207400225770ustar00rootroot00000000000000#!/usr/bin/env rake # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) ScssProject::Application.load_tasks sass-rails-5.0.4/test/fixtures/sass_project/app/000077500000000000000000000000001257212207400217125ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/assets/000077500000000000000000000000001257212207400232145ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/assets/images/000077500000000000000000000000001257212207400244615ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/assets/images/rails.png000066400000000000000000000147661257212207400263170ustar00rootroot00000000000000‰PNG  IHDR2@XÕ${tEXtSoftwareAdobe ImageReadyqÉe<˜IDATxÚ¬[ ”\e•þÞR¯Ö®®^ª;IwgßÂa×È@`ÄñÈÉÇíè¨gÆãœGgDgtÜqDFqFñ ¢DÄqFÈ’@ÒéNºÓûRU]Ë«÷Þ|÷ÿ_-Q˜Çyéª÷^ýïÞÿÞïÞïÞÿǸ.Ý‹ð0‚WÀ_6€Íkšùbðf̻ܸù‡£6À«<4 Æw5ÿæ~*rŽÛá—?À¿9–ñîöˆm´Ø&"¦ØãMß÷ù7@vm'Ú· {¼_¿S)Vû¬ÿi\“ÃWôG?¨Ë¸Õ«jM‹dÜ@ lDLX鸺W-TàÍUá+@ÞEPào\&*R޹¢§áûnn‰˜¹,á fšðDÀWrX|¸Ê3žM£=Û§\‚ÝƒŠ«÷Eç³JˆºB–[döµ6A¨¨º'Ÿ=‘t¬x^©„ÊÔ$Çòa86̈¥®ò{, ϱPµ©ŒepNøž*_ìW©ˆ_3¢oóŸ·;†ñÞ¥ñ(•0àòE¾:¡¬àñƒÏÙiïËÒ6ªeÎÌXn¡ŒhGf"ƒÂúL|S+(+.gФ¾–­g=¨Y‡c—Êh=m#V_û·¬Š#ÿû}èñ‚ǪòÝÎ|±ŒÀâtR ñŸÞD8VÙÕ„‰M~xg!ni%DyŸ(¡”¡‰î âé…õ•ÛB,{(äàNÎÁ´ãpÒˆ$3°ãiر$ìh›.@ße[a'ãœeºJÔ‚³yš¼Åì‹Ï 4>ŒH*ƒöMçÂéHQ(Jgt-ƒÖ¢»QI ^·‚ðž©dЄ@áçsÓÔÒ-¡'-´ 51¤{³'Ò0õ ÕÙ|În4Û‰h{V½@Ü©çâw"»éB¾ËTŠ =rŸzqP­pBè‘Hãȃ?¢Åˆƒâ ]-ÃqópgsPiŠSÓª®…ög`j×n¸ù)˜‰šÊõжm 御B2L†.¥ûx!¸j¦ÔúJ¡À÷P! Kˆ/\¤ Ê®RBŽŽ[0µç9TrÓˆu. Þ¢uå©Hö®$´ …Á™DDQÒ+ä:ˆÜÁݘٻ 3/¾ŒçnÁò«Þÿú%äöõSjŽm‰2Ðå!&D/ü[¥EÚHw·Wþ ‘ßA-RR!ê•æP eŠu„•HÁimÇè“"µtÚ6lF²g¹²Ð«-ËO.¸å™1Œ?÷ÆžúÒksX~õVìúêtmZJðR1êŠÔ1èé¦N÷ÌôuÁ&Ð<Ïõ â½©,T™šbÈ,`ðçw¢óÌ °ðWP¥x-G´5‹ž ¯ä—ãèÃ`ø±•Õ´/5pbêðÔÁ­¬Aà©öt¨ÄIVJç_«]§›0/´²‰¾½‰DiòH=¿–ô#è»ø*œö77 ç-3‚Ññ þVuQØ0ê.…¨ÍpÛÝ”ŽÓ%ÐyÀw Ú ÂhÑ™Wðâ¹0ã),ºô2$—ôbúà6&²¼ÄI/@báj$²ËöøI®–‹(Žfx'¨ æJ…nËÉOµ"±`©ÂØŸø<-¼/ßúŸLŽ®Ñ®%^ÏÈ«œÍ¶ÞnÄ2½ªwÒ—ùå2}}Xüö­úսȼL€'Qž£Ù-,¿ümˆ/ꤋÂ4#0“­´Š‹òôQ”&0›È0¤¯à¹NK—r¯<‡éýÏböð^¢kN#_wzU7hg'C{ -½k=ç"¬y÷‡Q"÷Þ~šjë¼húï[#V\\Í€“t¯êÓ®Ì'K„3ÌJQ…Î5¹ž¾{ÚOۄ±~ŒýþEä Xö®+ÑuÖTÂ3ˆ/Ád}j¤¬"ÉQ„.M 8öÜâæŽ #wh/ïÛŒfg0çTàp’ü9-cÉïƒC«ìûÞ8öأʋ&Ÿ{³ƒÃÊ•K6Âä'fñi•Ìâ.D˜ O°F¨X•¥÷’+°à¼KPš"…0ÐuþE8pǯ±ê=W¡÷Ò‹àås¤Nt7_¶©Ât˜ê»q;* eªØõíÛ0üÈdÖ.Æêk¶¢óŒ éŠÓ¨LލI°¢qÅ*ÿô{t· Z%‚¹á~ìþæcÆ%š²HÊ6â>sA,›Aײ…Ú׿)¡£ƒaIäE¹C(ÒERK{8‚çÿé«È¬[޵y?iI5$¬†%ê·fø{}Šu¬¨ƒ—îú úïÞF äûÇ1¶ãÌ~ã;v1l'‰¦˜@åç¤F…桌 'IF'mñ!K¤7ã…Ð"Œ&­]ÒÍw 1ó5¨#4V§iò‘žnÇÔö[Ô—ávã Ç8Äš…Ø)>Cá=L´B´ˆ“Àào~‹é½/ø¸3%º w´‚·ÿFý4Ö“ÁÊ¿8™Þ>bWX@‡bÆÉb@¼ÙIzP9ÐI±vÁFfQÉL‹Ê!2c£EP(se4~¦5RhƒAÂŽ90‚‘_?‡ æcóMŸE¢§teV¹”OaOr ÝÓ÷B¦ª]ËpȱÆØ“»±ñ“"EyïxˆÏ:ü­ ÇŠ)‹–ŽÌbl׋hYâÀu…ÖÄT´™dâÔ«æÈíwš=Ø¢¥M€gw“VPè™OFÎ’â2¶æ5-TD—[ŠåZ2Ã>–]ýV,xÓ›IOŠ²Æ…)œJ”ñͺ[)?cn28pÿ#(çmkÇÒ+.Âè£/ phœÊ®×Q6?³wå7‘îÇHãIoÄSj)“ÅÉ1<±¤ÙÈ#í¬-œ£¨Næ9ûO1ͰØÑéÞkÂIäòK´¬éÁÊ÷¿—r:¼Ç(Å—‹;rº“R&<9€ª3¦v¿@Áw(w:ø“Ð~æ:T¦óÊFSޒ"¦ö £ç¼ÕŠ’Tád®Ì¬T‚ã9ˆæýPIb“3•…˜JØzæóT’Qׄ¥BÕP23´Æµï¢éW’­Î*|@^¤¬¡)Q³ŒüwåÃ?I¬éžq ÞûŽ=ü,¼™Š<@Ð B8)“;Ž¢û¬50ù¼éHˆ-=ýTÁ í”SAº@Œ”Œ@¹„f‚5Þ¨r”é[ƒÊT%#c|…õÃZ&Äw(B)tD¹•Q%Êvø™yCþš‘(â,ÆŸ|ï‰ÁƒŠÊ°¶ÆÉi‰‰¹ä&å—<#u:Íëª3E­HkÍzÕд)nd¶ØF>1Vä2À²k®F¼½GYL KáMQÀlR&TBþÚ,igv¿ˆòè8]Cœ8S±f#Ä…4æQ¡ŠÚ¬Õ'ž?Ìç¢,ÈÊ= ¥ËaVÕ9WEX³ö³Yr§rà‡ª*Ô!âcÍõÄÆ¯~­×)Ðú,=ÛøyÑŸ]ªj–lGeíšE̺5´r_2ñÔŽ}d×"½a‰ª]Œ0ßM9·¦PˆZ¶…ÙÝG17ž‡ÍÌnE"ÊR¢ˆÇrÛó\ñY‡Q‰)!|5U(d¬·=—^‰Å—¿o¼ãÇ8õ³×+Ðö¼õ2ÀNU“6jB[¡àëˆB5ÅèV.]šŲ­Wãô/^¯”‘䩬Ðôßñ ´Š;Y"Vúi‘$±’¤2¶ŠœÕÙ²º_§ñµc‚‰Æ«(F^Eçùg“qö©{–C°ñŒ÷P¹‹/ #K8ã–ÝôY+QÈ ÝMð1>ÜžAÌìß®Íç¢ëÂÍ,gÝy®t²Þ•n,˜˜z¾ŸÅE$‘VÀ÷Š.ñÉävßÌæÌâ.†ŽPyLaèpóâÈÏîGç9TnÑÒ:uiàÀšçRZ! z‹I0?ÐÒá1<ÿ‰/`àû˜7ÈÓ$)XÆqøhئvšt¯¹Ã“,}‡˜ÓäjITòeuÓ°Ìù¢r0šë³h§%” ‰£ÿýKŒüîQ’ ˜3V£0<ˆ%W¿ëÄ&¢„V‚< ÎÄ5%ÔJ2”Sø™IE ÃJÒÊX;>u#­$¬6ªÉ±¯óGM™ÀhØF…d˜td|Û~dÏ\O9Ijç**záDØb)PBÌÒ½¦h•…-qø qîl‘%ë/€{ïGzÍ*d7ŸóŠ=QS]:‡ˆRº©QbÂUàMPá’¯‚†ò$%½æ¨ du] õˆXefïQzÈ$Ÿ«(¾¥'И‘Z‹HŠ«#äÇAÜRÂX¬íDB Ø~öÈÿ`‹×0.F|XŒXKì)æêé™w¬FoÊlzyÈhÔßš»ÕÜKz³Œ>±“‚.&n EjÍ„™U,2'•ƒ÷ &iwö¬óþè[’d­À[ ™ÓV)ö*¦Q§a†v¦†›úl …êQÌDitž[VŠIžQ‰ÚhRÄ@½$)Éy~mÆ|ÒøäŠ>ºÖú?­cJ+V²H'6þË?ã 7 iÖ.ûX‹H8ÌFÞ¨)d†AYøUÂBjE»"—Š.ñ4w-?lÍÚÔ2ÃYœ™.Á•úÎRj¤W¬D¢«÷µö@BÜØ¬.߆sþã[H-gA—S™F¨3ÿÚFýj™ÅÒ]úØ¢œŽ„ÊèBPë–¬…_—>M%bt —©?_rÕ¬ -h]·öµ·rœ_ž[nÂȶ‡˜›Q‘ªã¢+GÔ­_û\Ê ±þžZÙ¦fÜeÑÖÐÏótŒ(|ºU(‡Ü'.g ®VFÃENÇë9’½½üé}Ll»4ÎTÅ&nto¨Ӓ œX ÉFß éˆ"º€…_‰ÕfYzÇF˜~y& Gu]$›§æO[Èöv#ž]ðº‰.è@$VA`â±§T°¢Ñ°õZ[2šº–µuÝ+ˆ/mUÁCò‡_ T½n‡y¤Ñ  —|l\ «³ ¹þÌMÌ"G[¼¸±ŽìëR$µd™Š|:—Ä›º“F½Ii„reÚ"Ùµ³át· Êä“ú,¼+ÛŒ­1ÜìZ1Ú1ÉÈÒuÑ‘dt*çK¨2é ÜsŒd; [êõ)²x¥²€W.¡¹z2jåTh#D®VŒß\NO &eó…_±v’U2Ÿ×ÝBè^µ¨%ã¶0FÛÓHöô²(/Ô˜I§2>‰’•Àë=œLñÅ]ºÑdv UUëpk"ìijBœ®$’,O-0y<}~®Ã*Tºö£5LÄùErE4ÝBß³XŠÆX‚N£:<†9š²¼>Eìd -ËV*‹øž®«»êu¥B…LÍÝÒs»µN*Š*­á…JxåªRÈÍUÁôÄè¾–,ôÈìTÊ(ìÛ ƒ•ÈûËGuÔ ÿŸ@÷âůYƒ{ëÚu|ùCïJF¯(OL°bœÔ±–Ñín‚Õ´iKhp‹ðÒ×·’F»tx8³#µ¸ª9Fs±FŸÚ‹è³û½®DT‘¨A”n1vðeF¯^M ^kfÐÈ.ĆݠV¨Ê“ǰý3ŸÄøãÏÀJÆËaãY@n&»ªjµ‚Llø:ФMô¬‰cÓšðêÂ…Æà—<ÿNðÁ#Å ŽNä062KkYˆµ¤QÆ,yÎë9Ú6lBþp?r‡(ÚëX„eW_.KuJR'‚-Ž^x¢"^ž‘j’n5RE0&¦`iÎP\¬”4^º'j-!õæ’*´¨`4†£ü]Ô-"ñâ>´vu×ËË?9—´w!–íÂÎ/~­ë×#ÚÚÉh…“í ›MªÄÛÈò”ƒ Ú› °ó®Ì´nMA}m W,)(ìî….µ¦N ¬yÛ%$æÇà³*ËóÞþ={P9Šîõ§¢cé D“zHî>ÿBlÿäu˜Þ¾K78˜x-Ö>V,¢ó‰'µJU»× \L¯¹]Èl¥é>W*ªr¡žÙ-h«Xóªf~oI† “Z3f玱î>v‰öN´3 u¯Z‡Tgg}÷ÕŽö363:.g /-ÒH¸+"P‰ÎÏKÛ‰SZô4´„òZÕ_×ò¦GlXM¾c7¶é"§Ê;Ò¿ ‹£òÐ(ŽÝ÷5f‚MÄðUC¯¶OF6Ü ±ÎßCNf³t¹>$S1V†aéêëR·&œ4)æŽ ¡ÊÈâÍéÙ—†a y]‘ä%íW ·AÍ*|g©XÐ{Q¤Ÿc>iTX1‚F‡‰ ® M`|à!Ó[$‚±¦PŠ4šªÊŠ¢Ð$ý¶Ÿ#,d«ÉŒƒ(?KT¬JR¥Û¸SŒû%C7ôjûHšÖb浃j+ÊáN$©,³[.@˹›ÐѾÿþ_ ÈÏà?™.3ëÖúĵÂH"U$âÐZ¶^ª ñX0É2!KÚc© ²ù¥8Åqè.N«¬‰ˆMI6–N&3µŠ÷n8´¤eë¤ëöÁx¥oéÈW¦fP˜™Ä²ËÞB<pð—¿R·ÿ±EA쮤dѨo$*ÎäÈm³)e9¥D© «5‚X[…·T$©LΠ:]†C$n#m›±C±ëÖ[P~ˆYØtè*dÏ?§\÷q´®^WÇÁôýØùõ›XsìÄ!ÓEæü-øø­·2#—°ûË_Æàmw£å¼õ8û;·2!váàwà…ü:™D²¾”á›Uôn½Ëßó$)GàiG–nÎ3_ÿÆoþ¼ñ EÕZE3Øk½-™™–îEHv.œOûzÐEŠòø>€™ç"Ö›Á¦Ï}í§lž÷\¼³‰/-À·nÅØ±QôÄãH¦ÛÔ½aâb*â#K׋¶eIÊÆ³d#G¨ et\¸§æóêþ ,:•‚MëێÜÇIC³}òm úÙ½ƒO?¶e«°bË%¤øËÙ°SÛö²tíB|Aznôéßazÿ*µÏFlQ/¬Kà ƒøu¿uý*1’wËDÖvÖ¿E„×ÛÖ¯SJTK¸ý;(¼4 k–Æ£;v2P9º—`Ìk‰Œ©ê»{ï¿?~ß_ã‰[¾Ùh¬Ê¢Ž^9×фǡ;„m|îðÝ]oÒ9<#Òjz…\“èwÄD½,8éVÐ]ä]©%K9e­êr懇0ñônº¶©Û^FcIÂ>é`¡U–¾ùb¼í+²kÖ…O1|NO©šæ]‘t+,Èl©_³Ë®6« Ä’D½¼b§rzß^•pe7^ßåï¨ß[ñÞaûŸÃ¾oÜÎ確 jNˆÆ+x×Òs·¨áNÓC÷ß…ÉÇwÐÌμç7|üz¬þà‡a2õ,•¤ô omîµrb©ÆZˆ‰~ž¥›,pN>¶;?÷Y,ÝzÚï²™¡[uâ—¿ãjüî̾ªq 4aÄýôúqîæ±Ú¶Nu6Z£‰»iŽd‡÷êàîè@âÜõh!•åçâÁ!µF9òð#˜Üþ,#UŒØr±áºOaÑ—0=DÃ¥„ ,,›,b¡±E·#ÏÿôÇÈ®Xƒ¾3Ϊ‹ÿ÷Þê¶=ÌaÖ<Ó =ÿ&_~ Ùµëѽacj˜Áñ«’†ÂLsÎXuéX¾åB è(wzò£EÀ»ék_QIÙ*4'Ñ£«SÙl£–Êç{’.,¬pÛµÒÐ2ë¡`jpÜð¨Ìå^؇‹núZÎX¡öPÉò—ź^Ž]wÞ‰Ÿ]ûaìÿÅÏÃQ-µàoIÆ5íº’O“3a–]¨ _¬wb Å­L¬]êº$ÁÖ§"½|sԩȬ= ÝVˆÑïÞLIUªbYY‘æ®­Í¢I¢$˜Òt¿½ùf$2í|r;ÿ~'îúèG°òôˆSøXk©á‡¦ðÔ­ßF4Áôž—‘b‘4úì xúßo[,¢04Fž•Àì¡~<}Û­ªßÃRš%mybš×¾Å\mlO—‚Ž.4}t”E\€½7}M)¯êtÕ‰ô1þì3˜x”îF÷ [¾-»2Æ6ãºtï䢄Ý&ü¨èEÑ"9Œ€;ÂÙœ±rq âe)ÍßK!Ç:bŠæwY¡ }¥g;Jר”Õ)5D$!Kɤ9®Êß«-Kñ˜Ú$ë$¢ì »óè±h–l™…ÞDÚØÖUFF ª¡J{s2®R‰Ë6rC÷Õ&ð¼&æ0;ûá@>›ç]›/¤Z’3±E,k;( 2^‹®å0ÚÔ9<µjCE“õíSõ{Ð}àéŒ6NF´â)ü6/”ª}.‚KZâ%Ùð|Ÿ×ïSÐðš6W6ïëmR=ŽÒ* íð¿'MO‡R…Û8P«Áë«5~ÓçF£¡þ]w„0êXhq©H°…u89c´Ä¤« øðúÇjQkª¿P±Pß üʇ,Éáø?'þ?ŽàäËÕRƒI!ÿ4#ßm¼÷³Ú£ÿ'À¾˜œ-볞IEND®B`‚sass-rails-5.0.4/test/fixtures/sass_project/app/assets/javascripts/000077500000000000000000000000001257212207400255455ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/assets/javascripts/application.js000066400000000000000000000007171257212207400304130ustar00rootroot00000000000000// This is a manifest file that'll be compiled into including all the files listed below. // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically // be included in the compiled file accessible from http://example.com/assets/application.js // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // //= require jquery //= require jquery_ujs //= require_tree . sass-rails-5.0.4/test/fixtures/sass_project/app/assets/stylesheets/000077500000000000000000000000001257212207400255705ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/assets/stylesheets/application.css000066400000000000000000000005361257212207400306110ustar00rootroot00000000000000/* * This is a manifest file that'll automatically include all the stylesheets available in this directory * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at * the top of the compiled file, but it's generally better to create a new file per style scope. *= require_self *= require_tree . */sass-rails-5.0.4/test/fixtures/sass_project/app/controllers/000077500000000000000000000000001257212207400242605ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/controllers/application_controller.rb000066400000000000000000000001201257212207400313440ustar00rootroot00000000000000class ApplicationController < ActionController::Base protect_from_forgery end sass-rails-5.0.4/test/fixtures/sass_project/app/helpers/000077500000000000000000000000001257212207400233545ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/helpers/application_helper.rb000066400000000000000000000000351257212207400275410ustar00rootroot00000000000000module ApplicationHelper end sass-rails-5.0.4/test/fixtures/sass_project/app/mailers/000077500000000000000000000000001257212207400233465ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/mailers/.gitkeep000066400000000000000000000000001257212207400247650ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/models/000077500000000000000000000000001257212207400231755ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/models/.gitkeep000066400000000000000000000000001257212207400246140ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/views/000077500000000000000000000000001257212207400230475ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/views/layouts/000077500000000000000000000000001257212207400245475ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/app/views/layouts/application.html.erb000066400000000000000000000003351257212207400305100ustar00rootroot00000000000000 ScssProject <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-5.0.4/test/fixtures/sass_project/config.ru000066400000000000000000000002411257212207400227440ustar00rootroot00000000000000# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run ScssProject::Application sass-rails-5.0.4/test/fixtures/sass_project/config/000077500000000000000000000000001257212207400223775ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/config/application.rb000066400000000000000000000044151257212207400252330ustar00rootroot00000000000000require File.expand_path('../boot', __FILE__) require 'rails/all' # If you have a Gemfile, require the gems listed there, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) if defined?(Bundler) module ScssProject class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ] # Activate observers that should always be running. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de # Please note that JavaScript expansions are *ignored altogether* if the asset # pipeline is enabled (see config.assets.enabled below). Put your defaults in # app/assets/javascripts/application.js in that case. # # JavaScript files you want as :defaults (application.js is always included). # config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs) # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] # Enable the asset pipeline config.assets.enabled = true # Prefer sass for generated assets. config.sass.preferred_syntax = :sass end end sass-rails-5.0.4/test/fixtures/sass_project/config/boot.rb000066400000000000000000000002771257212207400236750ustar00rootroot00000000000000require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) sass-rails-5.0.4/test/fixtures/sass_project/config/database.yml000066400000000000000000000011001257212207400246560ustar00rootroot00000000000000# SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: sqlite3 database: db/production.sqlite3 pool: 5 timeout: 5000 sass-rails-5.0.4/test/fixtures/sass_project/config/environment.rb000066400000000000000000000002331257212207400252660ustar00rootroot00000000000000# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application ScssProject::Application.initialize! sass-rails-5.0.4/test/fixtures/sass_project/config/environments/000077500000000000000000000000001257212207400251265ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/config/environments/development.rb000066400000000000000000000016201257212207400277740ustar00rootroot00000000000000ScssProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false # Do not eager load code on boot. config.eager_load = false # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Don't care if the mailer can't send config.action_mailer.raise_delivery_errors = false # Print deprecation notices to the Rails logger config.active_support.deprecation = :log # Only use best-standards-support built into browsers config.action_dispatch.best_standards_support = :builtin end sass-rails-5.0.4/test/fixtures/sass_project/config/environments/production.rb000066400000000000000000000040401257212207400276370ustar00rootroot00000000000000ScssProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true # Eager load code on boot. config.eager_load = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) if config.respond_to?(:serve_static_files) config.serve_static_files = false else config.serve_static_assets = false end # Specify the default JavaScript compressor config.assets.js_compressor = :uglifier # Specifies the header that your server uses for sending files # (comment out if your front-end server doesn't support this) config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true # See everything in the log (default is :info) config.log_level = :info # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Use a different cache store in production # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # config.assets.precompile += %w( search.js ) # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false # Enable threaded mode # config.threadsafe! # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation can not be found) config.i18n.fallbacks = true # Send deprecation notices to registered listeners config.active_support.deprecation = :notify end sass-rails-5.0.4/test/fixtures/sass_project/config/environments/test.rb000066400000000000000000000033321257212207400264330ustar00rootroot00000000000000ScssProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true # Do not eager load code on boot. config.eager_load = false # Configure static asset server for tests with Cache-Control for performance if config.respond_to?(:serve_static_files) config.serve_static_files = true else config.serve_static_assets = true end config.static_cache_control = "public, max-age=3600" # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Raise exceptions instead of rendering exception templates config.action_dispatch.show_exceptions = false # Disable request forgery protection in test environment config.action_controller.allow_forgery_protection = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test # Use SQL instead of Active Record's schema dumper when creating the test database. # This is necessary if your schema can't be completely dumped by the schema dumper, # like if you have constraints or database-specific column types # config.active_record.schema_format = :sql # Print deprecation notices to the stderr config.active_support.deprecation = :stderr end sass-rails-5.0.4/test/fixtures/sass_project/config/initializers/000077500000000000000000000000001257212207400251055ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/config/initializers/backtrace_silencers.rb000066400000000000000000000006241257212207400314220ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. # Rails.backtrace_cleaner.remove_silencers! sass-rails-5.0.4/test/fixtures/sass_project/config/initializers/inflections.rb000066400000000000000000000005701257212207400277510ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # ActiveSupport::Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', 'people' # inflect.uncountable %w( fish sheep ) # end sass-rails-5.0.4/test/fixtures/sass_project/config/initializers/mime_types.rb000066400000000000000000000003151257212207400276040ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone sass-rails-5.0.4/test/fixtures/sass_project/config/initializers/secret_token.rb000066400000000000000000000007661257212207400301300ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. ScssProject::Application.config.secret_token = 'aad80c771c1b2b13b67b0b2d03ee3fa8a1d5a8e8dce2e8bc8b382f197927b789afdc9355f8bc7256faf650015d75d8eb541e9ab96a88f0bd63c4bd7552174849' sass-rails-5.0.4/test/fixtures/sass_project/config/initializers/session_store.rb000066400000000000000000000006551257212207400303370ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. ScssProject::Application.config.session_store :cookie_store, :key => '_scss_project_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails generate session_migration") # ScssProject::Application.config.session_store :active_record_store sass-rails-5.0.4/test/fixtures/sass_project/config/initializers/wrap_parameters.rb000066400000000000000000000007551257212207400306350ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # # This file contains the settings for ActionController::ParametersWrapper # which will be enabled by default in the upcoming version of Ruby on Rails. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActionController::Base.wrap_parameters :format => [:json] # Disable root element in JSON by default. if defined?(ActiveRecord) ActiveRecord::Base.include_root_in_json = false end sass-rails-5.0.4/test/fixtures/sass_project/config/locales/000077500000000000000000000000001257212207400240215ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/config/locales/en.yml000066400000000000000000000003261257212207400251470ustar00rootroot00000000000000# Sample localization file for English. Add more files in this directory for other locales. # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. en: hello: "Hello world" sass-rails-5.0.4/test/fixtures/sass_project/config/routes.rb000066400000000000000000000034021257212207400242440ustar00rootroot00000000000000ScssProject::Application.routes.draw do # The priority is based upon order of creation: # first created -> highest priority. # Sample of regular route: # match 'products/:id' => 'catalog#view' # Keep in mind you can assign values other than :controller and :action # Sample of named route: # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase # This route can be invoked with purchase_url(:id => product.id) # Sample resource route (maps HTTP verbs to controller actions automatically): # resources :products # Sample resource route with options: # resources :products do # member do # get 'short' # post 'toggle' # end # # collection do # get 'sold' # end # end # Sample resource route with sub-resources: # resources :products do # resources :comments, :sales # resource :seller # end # Sample resource route with more complex sub-resources # resources :products do # resources :comments # resources :sales do # get 'recent', :on => :collection # end # end # Sample resource route within a namespace: # namespace :admin do # # Directs /admin/products/* to Admin::ProductsController # # (app/controllers/admin/products_controller.rb) # resources :products # end # You can have the root of your site routed with "root" # just remember to delete public/index.html. # root :to => 'welcome#index' # See how all your routes lay out with "rake routes" # This is a legacy wild controller route that's not recommended for RESTful applications. # Note: This route will make all actions in every controller accessible via GET requests. # match ':controller(/:action(/:id(.:format)))' end sass-rails-5.0.4/test/fixtures/sass_project/db/000077500000000000000000000000001257212207400215175ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/db/seeds.rb000066400000000000000000000005271257212207400231530ustar00rootroot00000000000000# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) sass-rails-5.0.4/test/fixtures/sass_project/doc/000077500000000000000000000000001257212207400216775ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/doc/README_FOR_APP000066400000000000000000000003231257212207400237630ustar00rootroot00000000000000Use this README file to introduce your application and point to useful places in the API for learning more. Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. sass-rails-5.0.4/test/fixtures/sass_project/lib/000077500000000000000000000000001257212207400217005ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/lib/tasks/000077500000000000000000000000001257212207400230255ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/lib/tasks/.gitkeep000066400000000000000000000000001257212207400244440ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/log/000077500000000000000000000000001257212207400217135ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/log/.gitkeep000066400000000000000000000000001257212207400233320ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/public/000077500000000000000000000000001257212207400224105ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/public/404.html000066400000000000000000000013301257212207400236020ustar00rootroot00000000000000 The page you were looking for doesn't exist (404)

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

sass-rails-5.0.4/test/fixtures/sass_project/public/422.html000066400000000000000000000013071257212207400236060ustar00rootroot00000000000000 The change you wanted was rejected (422)

The change you wanted was rejected.

Maybe you tried to change something you didn't have access to.

sass-rails-5.0.4/test/fixtures/sass_project/public/500.html000066400000000000000000000013301257212207400235770ustar00rootroot00000000000000 We're sorry, but something went wrong (500)

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.

sass-rails-5.0.4/test/fixtures/sass_project/public/favicon.ico000066400000000000000000000000001257212207400245170ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/public/index.html000066400000000000000000000134231257212207400244100ustar00rootroot00000000000000 Ruby on Rails: Welcome aboard

Getting started

Here’s how to get rolling:

  1. Use rails generate to create your models and controllers

    To see all available options, run it without parameters.

  2. Set up a default route and remove public/index.html

    Routes are set up in config/routes.rb.

  3. Create your database

    Run rake db:create to create your database. If you're not using SQLite (the default), edit config/database.yml with your username and password.

sass-rails-5.0.4/test/fixtures/sass_project/public/robots.txt000066400000000000000000000003141257212207400244570ustar00rootroot00000000000000# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file # # To ban all spiders from the entire site uncomment the next two lines: # User-Agent: * # Disallow: / sass-rails-5.0.4/test/fixtures/sass_project/script/000077500000000000000000000000001257212207400224365ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/script/rails000077500000000000000000000004471257212207400235030ustar00rootroot00000000000000#!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. APP_PATH = File.expand_path('../../config/application', __FILE__) require File.expand_path('../../config/boot', __FILE__) require 'rails/commands' sass-rails-5.0.4/test/fixtures/sass_project/vendor/000077500000000000000000000000001257212207400224275ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/vendor/assets/000077500000000000000000000000001257212207400237315ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/vendor/assets/stylesheets/000077500000000000000000000000001257212207400263055ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep000066400000000000000000000000001257212207400277240ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/vendor/plugins/000077500000000000000000000000001257212207400241105ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/sass_project/vendor/plugins/.gitkeep000066400000000000000000000000001257212207400255270ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/000077500000000000000000000000001257212207400211345ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/.gitignore000066400000000000000000000000611257212207400231210ustar00rootroot00000000000000.bundle db/*.sqlite3 log/*.log tmp/ .sass-cache/ sass-rails-5.0.4/test/fixtures/scss_project/Gemfile000066400000000000000000000002571257212207400224330ustar00rootroot00000000000000source 'https://rubygems.org' gem 'rails', '>= 4.0.0.beta', '< 5.0' gem 'sqlite3' # Asset template engines gem 'sass-rails', path: File.expand_path('../../../..', __FILE__) sass-rails-5.0.4/test/fixtures/scss_project/README000066400000000000000000000217701257212207400220230ustar00rootroot00000000000000== Welcome to Rails Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Control pattern. This pattern splits the view (also called the presentation) into "dumb" templates that are primarily responsible for inserting pre-built data in between HTML tags. The model contains the "smart" domain objects (such as Account, Product, Person, Post) that holds all the business logic and knows how to persist themselves to a database. The controller handles the incoming requests (such as Save New Account, Update Product, Show Post) by manipulating the model and directing data to the view. In Rails, the model is handled by what's called an object-relational mapping layer entitled Active Record. This layer allows you to present the data from database rows as objects and embellish these data objects with business logic methods. You can read more about Active Record in link:files/vendor/rails/activerecord/README.html. The controller and view are handled by the Action Pack, which handles both layers by its two parts: Action View and Action Controller. These two layers are bundled in a single package due to their heavy interdependence. This is unlike the relationship between the Active Record and Action Pack that is much more separate. Each of these packages can be used independently outside of Rails. You can read more about Action Pack in link:files/vendor/rails/actionpack/README.html. == Getting Started 1. At the command prompt, create a new Rails application: rails new myapp (where myapp is the application name) 2. Change directory to myapp and start the web server: cd myapp; rails server (run with --help for options) 3. Go to http://localhost:3000/ and you'll see: "Welcome aboard: You're riding Ruby on Rails!" 4. Follow the guidelines to start developing your application. You can find the following resources handy: * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html * Ruby on Rails Tutorial Book: http://www.railstutorial.org/ == Debugging Rails Sometimes your application goes wrong. Fortunately there are a lot of tools that will help you debug it and get it back on the rails. First area to check is the application log files. Have "tail -f" commands running on the server.log and development.log. Rails will automatically display debugging and runtime information to these files. Debugging info will also be shown in the browser on requests from 127.0.0.1. You can also log your own messages directly into the log file from your code using the Ruby logger class from inside your controllers. Example: class WeblogController < ActionController::Base def destroy @weblog = Weblog.find(params[:id]) @weblog.destroy logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!") end end The result will be a message in your log file along the lines of: Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1! More information on how to use the logger is at http://www.ruby-doc.org/core/ Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are several books available online as well: * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe) * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide) These two books will bring you up to speed on the Ruby language and also on programming in general. == Debugger Debugger support is available through the debugger command when you start your Mongrel or WEBrick server with --debugger. This means that you can break out of execution at any point in the code, investigate and change the model, and then, resume execution! You need to install ruby-debug to run the server in debugging mode. With gems, use sudo gem install ruby-debug. Example: class WeblogController < ActionController::Base def index @posts = Post.all debugger end end So the controller will accept the action, run the first line, then present you with a IRB prompt in the server window. Here you can do things like: >> @posts.inspect => "[#nil, "body"=>nil, "id"=>"1"}>, #"Rails", "body"=>"Only ten..", "id"=>"2"}>]" >> @posts.first.title = "hello from a debugger" => "hello from a debugger" ...and even better, you can examine how your runtime objects actually work: >> f = @posts.first => #nil, "body"=>nil, "id"=>"1"}> >> f. Display all 152 possibilities? (y or n) Finally, when you're ready to resume execution, you can enter "cont". == Console The console is a Ruby shell, which allows you to interact with your application's domain model. Here you'll have all parts of the application configured, just like it is when the application is running. You can inspect domain models, change values, and save to the database. Starting the script without arguments will launch it in the development environment. To start the console, run rails console from the application directory. Options: * Passing the -s, --sandbox argument will rollback any modifications made to the database. * Passing an environment name as an argument will load the corresponding environment. Example: rails console production. To reload your controllers and models after launching the console run reload! More information about irb can be found at: link:http://www.rubycentral.org/pickaxe/irb.html == dbconsole You can go to the command line of your database directly through rails dbconsole. You would be connected to the database with the credentials defined in database.yml. Starting the script without arguments will connect you to the development database. Passing an argument will connect you to a different database, like rails dbconsole production. Currently works for MySQL, PostgreSQL and SQLite 3. == Description of Contents The default directory structure of a generated Ruby on Rails application: |-- app | |-- assets | |-- images | |-- javascripts | `-- stylesheets | |-- controllers | |-- helpers | |-- mailers | |-- models | `-- views | `-- layouts |-- config | |-- environments | |-- initializers | `-- locales |-- db |-- doc |-- lib | `-- tasks |-- log |-- public |-- script |-- test | |-- fixtures | |-- functional | |-- integration | |-- performance | `-- unit |-- tmp | |-- cache | |-- pids | |-- sessions | `-- sockets `-- vendor |-- assets `-- stylesheets `-- plugins app Holds all the code that's specific to this particular application. app/assets Contains subdirectories for images, stylesheets, and JavaScript files. app/controllers Holds controllers that should be named like weblogs_controller.rb for automated URL mapping. All controllers should descend from ApplicationController which itself descends from ActionController::Base. app/models Holds models that should be named like post.rb. Models descend from ActiveRecord::Base by default. app/views Holds the template files for the view that should be named like weblogs/index.html.erb for the WeblogsController#index action. All views use eRuby syntax by default. app/views/layouts Holds the template files for layouts to be used with views. This models the common header/footer method of wrapping views. In your views, define a layout using the layout :default and create a file named default.html.erb. Inside default.html.erb, call <% yield %> to render the view using this layout. app/helpers Holds view helpers that should be named like weblogs_helper.rb. These are generated for you automatically when using generators for controllers. Helpers can be used to wrap functionality for your views into methods. config Configuration files for the Rails environment, the routing map, the database, and other dependencies. db Contains the database schema in schema.rb. db/migrate contains all the sequence of Migrations for your schema. doc This directory is where your application documentation will be stored when generated using rake doc:app lib Application specific libraries. Basically, any kind of custom code that doesn't belong under controllers, models, or helpers. This directory is in the load path. public The directory available for the web server. Also contains the dispatchers and the default HTML files. This should be set as the DOCUMENT_ROOT of your web server. script Helper scripts for automation and generation. test Unit and functional tests along with fixtures. When using the rails generate command, template test files will be generated for you and placed in this directory. vendor External libraries that the application depends on. Also includes the plugins subdirectory. If the app has frozen rails, those gems also go here, under vendor/rails/. This directory is in the load path. sass-rails-5.0.4/test/fixtures/scss_project/Rakefile000066400000000000000000000004241257212207400226010ustar00rootroot00000000000000#!/usr/bin/env rake # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) ScssProject::Application.load_tasks sass-rails-5.0.4/test/fixtures/scss_project/app/000077500000000000000000000000001257212207400217145ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/000077500000000000000000000000001257212207400232165ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/images/000077500000000000000000000000001257212207400244635ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/images/1x1.png000066400000000000000000000016361257212207400256100ustar00rootroot00000000000000‰PNG  IHDRĉtEXtSoftwareAdobe ImageReadyqÉe<$iTXtXML:com.adobe.xmp ÐxIôIDATxÚbøÿÿ?@€üþÛ¢MIEND®B`‚sass-rails-5.0.4/test/fixtures/scss_project/app/assets/images/rails.png000066400000000000000000000147661257212207400263210ustar00rootroot00000000000000‰PNG  IHDR2@XÕ${tEXtSoftwareAdobe ImageReadyqÉe<˜IDATxÚ¬[ ”\e•þÞR¯Ö®®^ª;IwgßÂa×È@`ÄñÈÉÇíè¨gÆãœGgDgtÜqDFqFñ ¢DÄqFÈ’@ÒéNºÓûRU]Ë«÷Þ|÷ÿ_-Q˜Çyéª÷^ýïÞÿÞïÞïÞÿǸ.Ý‹ð0‚WÀ_6€Íkšùbðf̻ܸù‡£6À«<4 Æw5ÿæ~*rŽÛá—?À¿9–ñîöˆm´Ø&"¦ØãMß÷ù7@vm'Ú· {¼_¿S)Vû¬ÿi\“ÃWôG?¨Ë¸Õ«jM‹dÜ@ lDLX鸺W-TàÍUá+@ÞEPào\&*R޹¢§áûnn‰˜¹,á fšðDÀWrX|¸Ê3žM£=Û§\‚ÝƒŠ«÷Eç³JˆºB–[döµ6A¨¨º'Ÿ=‘t¬x^©„ÊÔ$Çòa86̈¥®ò{, ϱPµ©ŒepNøž*_ìW©ˆ_3¢oóŸ·;†ñÞ¥ñ(•0àòE¾:¡¬àñƒÏÙiïËÒ6ªeÎÌXn¡ŒhGf"ƒÂúL|S+(+.gФ¾–­g=¨Y‡c—Êh=m#V_û·¬Š#ÿû}èñ‚ǪòÝÎ|±ŒÀâtR ñŸÞD8VÙÕ„‰M~xg!ni%DyŸ(¡”¡‰î âé…õ•ÛB,{(äàNÎÁ´ãpÒˆ$3°ãiر$ìh›.@ße[a'ãœeºJÔ‚³yš¼Åì‹Ï 4>ŒH*ƒöMçÂéHQ(Jgt-ƒÖ¢»QI ^·‚ðž©dЄ@áçsÓÔÒ-¡'-´ 51¤{³'Ò0õ ÕÙ|În4Û‰h{V½@Ü©çâw"»éB¾ËTŠ =rŸzqP­pBè‘Hãȃ?¢Åˆƒâ ]-ÃqópgsPiŠSÓª®…ög`j×n¸ù)˜‰šÊõжm 御B2L†.¥ûx!¸j¦ÔúJ¡À÷P! Kˆ/\¤ Ê®RBŽŽ[0µç9TrÓˆu. Þ¢uå©Hö®$´ …Á™DDQÒ+ä:ˆÜÁݘٻ 3/¾ŒçnÁò«Þÿú%äöõSjŽm‰2Ðå!&D/ü[¥EÚHw·Wþ ‘ßA-RR!ê•æP eŠu„•HÁimÇè“"µtÚ6lF²g¹²Ð«-ËO.¸å™1Œ?÷ÆžúÒksX~õVìúêtmZJðR1êŠÔ1èé¦N÷ÌôuÁ&Ð<Ïõ â½©,T™šbÈ,`ðçw¢óÌ °ðWP¥x-G´5‹ž ¯ä—ãèÃ`ø±•Õ´/5pbêðÔÁ­¬Aà©öt¨ÄIVJç_«]§›0/´²‰¾½‰DiòH=¿–ô#è»ø*œö77 ç-3‚Ññ þVuQØ0ê.…¨ÍpÛÝ”ŽÓ%ÐyÀw Ú ÂhÑ™Wðâ¹0ã),ºô2$—ôbúà6&²¼ÄI/@báj$²ËöøI®–‹(Žfx'¨ æJ…nËÉOµ"±`©ÂØŸø<-¼/ßúŸLŽ®Ñ®%^ÏÈ«œÍ¶ÞnÄ2½ªwÒ—ùå2}}Xüö­úսȼL€'Qž£Ù-,¿ümˆ/ꤋÂ4#0“­´Š‹òôQ”&0›È0¤¯à¹NK—r¯<‡éýÏböð^¢kN#_wzU7hg'C{ -½k=ç"¬y÷‡Q"÷Þ~šjë¼húï[#V\\Í€“t¯êÓ®Ì'K„3ÌJQ…Î5¹ž¾{ÚOۄ±~ŒýþEä Xö®+ÑuÖTÂ3ˆ/Ád}j¤¬"ÉQ„.M 8öÜâæŽ #wh/ïÛŒfg0çTàp’ü9-cÉïƒC«ìûÞ8öأʋ&Ÿ{³ƒÃÊ•K6Âä'fñi•Ìâ.D˜ O°F¨X•¥÷’+°à¼KPš"…0ÐuþE8pǯ±ê=W¡÷Ò‹àås¤Nt7_¶©Ât˜ê»q;* eªØõíÛ0üÈdÖ.Æêk¶¢óŒ éŠÓ¨LލI°¢qÅ*ÿô{t· Z%‚¹á~ìþæcÆ%š²HÊ6â>sA,›Aײ…Ú׿)¡£ƒaIäE¹C(ÒERK{8‚çÿé«È¬[޵y?iI5$¬†%ê·fø{}Šu¬¨ƒ—îú úïÞF äûÇ1¶ãÌ~ã;v1l'‰¦˜@åç¤F…桌 'IF'mñ!K¤7ã…Ð"Œ&­]ÒÍw 1ó5¨#4V§iò‘žnÇÔö[Ô—ávã Ç8Äš…Ø)>Cá=L´B´ˆ“Àào~‹é½/ø¸3%º w´‚·ÿFý4Ö“ÁÊ¿8™Þ>bWX@‡bÆÉb@¼ÙIzP9ÐI±vÁFfQÉL‹Ê!2c£EP(se4~¦5RhƒAÂŽ90‚‘_?‡ æcóMŸE¢§teV¹”OaOr ÝÓ÷B¦ª]ËpȱÆØ“»±ñ“"EyïxˆÏ:ü­ ÇŠ)‹–ŽÌbl׋hYâÀu…ÖÄT´™dâÔ«æÈíwš=Ø¢¥M€gw“VPè™OFÎ’â2¶æ5-TD—[ŠåZ2Ã>–]ýV,xÓ›IOŠ²Æ…)œJ”ñͺ[)?cn28pÿ#(çmkÇÒ+.Âè£/ phœÊ®×Q6?³wå7‘îÇHãIoÄSj)“ÅÉ1<±¤ÙÈ#í¬-œ£¨Næ9ûO1ͰØÑéÞkÂIäòK´¬éÁÊ÷¿—r:¼Ç(Å—‹;rº“R&<9€ª3¦v¿@Áw(w:ø“Ð~æ:T¦óÊFSޒ"¦ö £ç¼ÕŠ’Tád®Ì¬T‚ã9ˆæýPIb“3•…˜JØzæóT’Qׄ¥BÕP23´Æµï¢éW’­Î*|@^¤¬¡)Q³ŒüwåÃ?I¬éžq ÞûŽ=ü,¼™Š<@Ð B8)“;Ž¢û¬50ù¼éHˆ-=ýTÁ í”SAº@Œ”Œ@¹„f‚5Þ¨r”é[ƒÊT%#c|…õÃZ&Äw(B)tD¹•Q%Êvø™yCþš‘(â,ÆŸ|ï‰ÁƒŠÊ°¶ÆÉi‰‰¹ä&å—<#u:Íëª3E­HkÍzÕд)nd¶ØF>1Vä2À²k®F¼½GYL KáMQÀlR&TBþÚ,igv¿ˆòè8]Cœ8S±f#Ä…4æQ¡ŠÚ¬Õ'ž?Ìç¢,ÈÊ= ¥ËaVÕ9WEX³ö³Yr§rà‡ª*Ô!âcÍõÄÆ¯~­×)Ðú,=ÛøyÑŸ]ªj–lGeíšE̺5´r_2ñÔŽ}d×"½a‰ª]Œ0ßM9·¦PˆZ¶…ÙÝG17ž‡ÍÌnE"ÊR¢ˆÇrÛó\ñY‡Q‰)!|5U(d¬·=—^‰Å—¿o¼ãÇ8õ³×+Ðö¼õ2ÀNU“6jB[¡àëˆB5ÅèV.]šŲ­Wãô/^¯”‘䩬Ðôßñ ´Š;Y"Vúi‘$±’¤2¶ŠœÕÙ²º_§ñµc‚‰Æ«(F^Eçùg“qö©{–C°ñŒ÷P¹‹/ #K8ã–ÝôY+QÈ ÝMð1>ÜžAÌìß®Íç¢ëÂÍ,gÝy®t²Þ•n,˜˜z¾ŸÅE$‘VÀ÷Š.ñÉävßÌæÌâ.†ŽPyLaèpóâÈÏîGç9TnÑÒ:uiàÀšçRZ! z‹I0?ÐÒá1<ÿ‰/`àû˜7ÈÓ$)XÆqøhئvšt¯¹Ã“,}‡˜ÓäjITòeuÓ°Ìù¢r0šë³h§%” ‰£ÿýKŒüîQ’ ˜3V£0<ˆ%W¿ëÄ&¢„V‚< ÎÄ5%ÔJ2”Sø™IE ÃJÒÊX;>u#­$¬6ªÉ±¯óGM™ÀhØF…d˜td|Û~dÏ\O9Ijç**záDØb)PBÌÒ½¦h•…-qø qîl‘%ë/€{ïGzÍ*d7ŸóŠ=QS]:‡ˆRº©QbÂUàMPá’¯‚†ò$%½æ¨ du] õˆXefïQzÈ$Ÿ«(¾¥'И‘Z‹HŠ«#äÇAÜRÂX¬íDB Ø~öÈÿ`‹×0.F|XŒXKì)æêé™w¬FoÊlzyÈhÔßš»ÕÜKz³Œ>±“‚.&n EjÍ„™U,2'•ƒ÷ &iwö¬óþè[’d­À[ ™ÓV)ö*¦Q§a†v¦†›úl …êQÌDitž[VŠIžQ‰ÚhRÄ@½$)Éy~mÆ|ÒøäŠ>ºÖú?­cJ+V²H'6þË?ã 7 iÖ.ûX‹H8ÌFÞ¨)d†AYøUÂBjE»"—Š.ñ4w-?lÍÚÔ2ÃYœ™.Á•úÎRj¤W¬D¢«÷µö@BÜØ¬.߆sþã[H-gA—S™F¨3ÿÚFýj™ÅÒ]úØ¢œŽ„ÊèBPë–¬…_—>M%bt —©?_rÕ¬ -h]·öµ·rœ_ž[nÂȶ‡˜›Q‘ªã¢+GÔ­_û\Ê ±þžZÙ¦fÜeÑÖÐÏótŒ(|ºU(‡Ü'.g ®VFÃENÇë9’½½üé}Ll»4ÎTÅ&nto¨Ӓ œX ÉFß éˆ"º€…_‰ÕfYzÇF˜~y& Gu]$›§æO[Èöv#ž]ðº‰.è@$VA`â±§T°¢Ñ°õZ[2šº–µuÝ+ˆ/mUÁCò‡_ T½n‡y¤Ñ  —|l\ «³ ¹þÌMÌ"G[¼¸±ŽìëR$µd™Š|:—Ä›º“F½Ii„reÚ"Ùµ³át· Êä“ú,¼+ÛŒ­1ÜìZ1Ú1ÉÈÒuÑ‘dt*çK¨2é ÜsŒd; [êõ)²x¥²€W.¡¹z2jåTh#D®VŒß\NO &eó…_±v’U2Ÿ×ÝBè^µ¨%ã¶0FÛÓHöô²(/Ô˜I§2>‰’•Àë=œLñÅ]ºÑdv UUëpk"ìijBœ®$’,O-0y<}~®Ã*Tºö£5LÄùErE4ÝBß³XŠÆX‚N£:<†9š²¼>Eìd -ËV*‹øž®«»êu¥B…LÍÝÒs»µN*Š*­á…JxåªRÈÍUÁôÄè¾–,ôÈìTÊ(ìÛ ƒ•ÈûËGuÔ ÿŸ@÷âůYƒ{ëÚu|ùCïJF¯(OL°bœÔ±–Ñín‚Õ´iKhp‹ðÒ×·’F»tx8³#µ¸ª9Fs±FŸÚ‹è³û½®DT‘¨A”n1vðeF¯^M ^kfÐÈ.ĆݠV¨Ê“ǰý3ŸÄøãÏÀJÆËaãY@n&»ªjµ‚Llø:ФMô¬‰cÓšðêÂ…Æà—<ÿNðÁ#Å ŽNä062KkYˆµ¤QÆ,yÎë9Ú6lBþp?r‡(ÚëX„eW_.KuJR'‚-Ž^x¢"^ž‘j’n5RE0&¦`iÎP\¬”4^º'j-!õæ’*´¨`4†£ü]Ô-"ñâ>´vu×ËË?9—´w!–íÂÎ/~­ë×#ÚÚÉh…“í ›MªÄÛÈò”ƒ Ú› °ó®Ì´nMA}m W,)(ìî….µ¦N ¬yÛ%$æÇà³*ËóÞþ={P9Šîõ§¢cé D“zHî>ÿBlÿäu˜Þ¾K78˜x-Ö>V,¢ó‰'µJU»× \L¯¹]Èl¥é>W*ªr¡žÙ-h«Xóªf~oI† “Z3f玱î>v‰öN´3 u¯Z‡Tgg}÷ÕŽö363:.g /-ÒH¸+"P‰ÎÏKÛ‰SZô4´„òZÕ_×ò¦GlXM¾c7¶é"§Ê;Ò¿ ‹£òÐ(ŽÝ÷5f‚MÄðUC¯¶OF6Ü ±ÎßCNf³t¹>$S1V†aéêëR·&œ4)æŽ ¡ÊÈâÍéÙ—†a y]‘ä%íW ·AÍ*|g©XÐ{Q¤Ÿc>iTX1‚F‡‰ ® M`|à!Ó[$‚±¦PŠ4šªÊŠ¢Ð$ý¶Ÿ#,d«ÉŒƒ(?KT¬JR¥Û¸SŒû%C7ôjûHšÖb浃j+ÊáN$©,³[.@˹›ÐѾÿþ_ ÈÏà?™.3ëÖúĵÂH"U$âÐZ¶^ª ñX0É2!KÚc© ²ù¥8Åqè.N«¬‰ˆMI6–N&3µŠ÷n8´¤eë¤ëöÁx¥oéÈW¦fP˜™Ä²ËÞB<pð—¿R·ÿ±EA쮤dѨo$*ÎäÈm³)e9¥D© «5‚X[…·T$©LΠ:]†C$n#m›±C±ëÖ[P~ˆYØtè*dÏ?§\÷q´®^WÇÁôýØùõ›XsìÄ!ÓEæü-øø­·2#—°ûË_Æàmw£å¼õ8û;·2!váàwà…ü:™D²¾”á›Uôn½Ëßó$)GàiG–nÎ3_ÿÆoþ¼ñ EÕZE3Øk½-™™–îEHv.œOûzÐEŠòø>€™ç"Ö›Á¦Ï}í§lž÷\¼³‰/-À·nÅØ±QôÄãH¦ÛÔ½aâb*â#K׋¶eIÊÆ³d#G¨ et\¸§æóêþ ,:•‚MëێÜÇIC³}òm úÙ½ƒO?¶e«°bË%¤øËÙ°SÛö²tíB|Aznôéßazÿ*µÏFlQ/¬Kà ƒøu¿uý*1’wËDÖvÖ¿E„×ÛÖ¯SJTK¸ý;(¼4 k–Æ£;v2P9º—`Ìk‰Œ©ê»{ï¿?~ß_ã‰[¾Ùh¬Ê¢Ž^9×фǡ;„m|îðÝ]oÒ9<#Òjz…\“èwÄD½,8éVÐ]ä]©%K9e­êr懇0ñônº¶©Û^FcIÂ>é`¡U–¾ùb¼í+²kÖ…O1|NO©šæ]‘t+,Èl©_³Ë®6« Ä’D½¼b§rzß^•pe7^ßåï¨ß[ñÞaûŸÃ¾oÜÎ確 jNˆÆ+x×Òs·¨áNÓC÷ß…ÉÇwÐÌμç7|üz¬þà‡a2õ,•¤ô omîµrb©ÆZˆ‰~ž¥›,pN>¶;?÷Y,ÝzÚï²™¡[uâ—¿ãjüî̾ªq 4aÄýôúqîæ±Ú¶Nu6Z£‰»iŽd‡÷êàîè@âÜõh!•åçâÁ!µF9òð#˜Üþ,#UŒØr±áºOaÑ—0=DÃ¥„ ,,›,b¡±E·#ÏÿôÇÈ®Xƒ¾3Ϊ‹ÿ÷Þê¶=ÌaÖ<Ó =ÿ&_~ Ùµëѽacj˜Áñ«’†ÂLsÎXuéX¾åB è(wzò£EÀ»ék_QIÙ*4'Ñ£«SÙl£–Êç{’.,¬pÛµÒÐ2ë¡`jpÜð¨Ìå^؇‹núZÎX¡öPÉò—ź^Ž]wÞ‰Ÿ]ûaìÿÅÏÃQ-µàoIÆ5íº’O“3a–]¨ _¬wb Å­L¬]êº$ÁÖ§"½|sԩȬ= ÝVˆÑïÞLIUªbYY‘æ®­Í¢I¢$˜Òt¿½ùf$2í|r;ÿ~'îúèG°òôˆSøXk©á‡¦ðÔ­ßF4Áôž—‘b‘4úì xúßo[,¢04Fž•Àì¡~<}Û­ªßÃRš%mybš×¾Å\mlO—‚Ž.4}t”E\€½7}M)¯êtÕ‰ô1þì3˜x”îF÷ [¾-»2Æ6ãºtï䢄Ý&ü¨èEÑ"9Œ€;ÂÙœ±rq âe)ÍßK!Ç:bŠæwY¡ }¥g;Jר”Õ)5D$!Kɤ9®Êß«-Kñ˜Ú$ë$¢ì »óè±h–l™…ÞDÚØÖUFF ª¡J{s2®R‰Ë6rC÷Õ&ð¼&æ0;ûá@>›ç]›/¤Z’3±E,k;( 2^‹®å0ÚÔ9<µjCE“õíSõ{Ð}àéŒ6NF´â)ü6/”ª}.‚KZâ%Ùð|Ÿ×ïSÐðš6W6ïëmR=ŽÒ* íð¿'MO‡R…Û8P«Áë«5~ÓçF£¡þ]w„0êXhq©H°…u89c´Ä¤« øðúÇjQkª¿P±Pß üʇ,Éáø?'þ?ŽàäËÕRƒI!ÿ4#ßm¼÷³Ú£ÿ'À¾˜œ-볞IEND®B`‚sass-rails-5.0.4/test/fixtures/scss_project/app/assets/javascripts/000077500000000000000000000000001257212207400255475ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/javascripts/application.js000066400000000000000000000007171257212207400304150ustar00rootroot00000000000000// This is a manifest file that'll be compiled into including all the files listed below. // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically // be included in the compiled file accessible from http://example.com/assets/application.js // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // //= require jquery //= require jquery_ujs //= require_tree . sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/000077500000000000000000000000001257212207400255725ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.scss000066400000000000000000000000421257212207400323270ustar00rootroot00000000000000.top-level { font-color: bold; }sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/application.scss000066400000000000000000000021711257212207400307730ustar00rootroot00000000000000@import "partials/css_sass_import"; @import "partials/sass_import"; @import "partials/scss_import"; @import "globbed/**/*"; @import "subfolder/plain"; @import "subfolder/second_level"; @import "partials/without_css_ext"; @import "css_erb_handler"; @import "scss_erb_handler"; @import "sass_erb_handler"; @import "css_scss_erb_handler"; @import "css_sass_erb_handler"; .main { color: yellow; @include background-from-partial(red); } .rails { asset-path: asset-path("rails.png"); asset-url: asset-url("rails.png"); image-path: image-path("rails.png"); image-url: image-url("rails.png"); video-path: video-path("rails.mp4"); video-url: video-url("rails.mp4"); audio-path: audio-path("rails.mp3"); audio-url: audio-url("rails.mp3"); font-path: font-path("rails.ttf"); font-url: font-url("rails.ttf"); font-url-with-query-hash: font-url("rails.ttf?#iefix"); javascript-path: javascript-path("rails.js"); javascript-url: javascript-url("rails.js"); stylesheet-path: stylesheet-path("rails.css"); stylesheet-url: stylesheet-url("rails.css"); asset-data-url: asset-data-url("1x1.png"); } @include without-css-ext; sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/css_application.css000066400000000000000000000003221257212207400314540ustar00rootroot00000000000000/* *= require partials/_sass_import *= require partials/_scss_import *= require_tree ./globbed *= require subfolder/plain *= require subfolder/second_level */ .css-application { background: #fff; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/css_erb_handler.css.erb000066400000000000000000000000511257212207400321640ustar00rootroot00000000000000.css-erb-handler { margin: <%= 0 %>; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/css_sass_erb_handler.sass.erb000066400000000000000000000000511257212207400333760ustar00rootroot00000000000000.css-sass-erb-handler margin: <%= 0 %> sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/css_scss_erb_handler.scss.erb000066400000000000000000000000561257212207400334070ustar00rootroot00000000000000.css-scss-erb-handler { margin: <%= 0 %>; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/globbed/000077500000000000000000000000001257212207400271705ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.scss000066400000000000000000000000351257212207400314610ustar00rootroot00000000000000.globbed { color: green; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/000077500000000000000000000000001257212207400304525ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.scss000066400000000000000000000000371257212207400336340ustar00rootroot00000000000000.nested-glob { color: blue; }sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/import_css_application.scss000066400000000000000000000001141257212207400332300ustar00rootroot00000000000000@import "css_application"; .import-css-application { background: #000; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/000077500000000000000000000000001257212207400274115ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/_css_sass_import.sass000066400000000000000000000001401257212207400336510ustar00rootroot00000000000000.partial-css-sass color: green @import "top_level_partial" @import "subfolder/relative_scss" sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.sass000066400000000000000000000000351257212207400330040ustar00rootroot00000000000000.partial-sass color: green sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.scss000066400000000000000000000002671257212207400330170ustar00rootroot00000000000000.partial-scss { color: blue; } @mixin background-from-partial($color) { background-color: $color } @import "subfolder/relative_sass"; @import "subfolder/relative_not_a_partial";sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss000066400000000000000000000000771257212207400337040ustar00rootroot00000000000000@mixin without-css-ext { .without-css-ext { should: work; } }sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/000077500000000000000000000000001257212207400313765ustar00rootroot00000000000000_relative_sass.sass000066400000000000000000000000471257212207400352160ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder.sub-folder-relative-sass width: 50px_relative_scss.scss000066400000000000000000000000611257212207400352160ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder.sub-folder-relative-scss { width: 50px * 5; } relative_not_a_partial.scss000066400000000000000000000000541257212207400367220ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder.not-a-partial { border: 1px solid blue; }sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/sass_erb_handler.sass.erb000066400000000000000000000000451257212207400325310ustar00rootroot00000000000000.sass-erb-handler margin: <%= 0 %> sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/scss_erb_handler.scss.erb000066400000000000000000000000521257212207400325330ustar00rootroot00000000000000.scss-erb-handler { margin: <%= 0 %>; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/subfolder/000077500000000000000000000000001257212207400275575ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/subfolder/_defaults.scss000066400000000000000000000000441257212207400324200ustar00rootroot00000000000000.default-old-css { margin: 0px; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css000066400000000000000000000000611257212207400331110ustar00rootroot00000000000000.another-plain-old-css { font-style: italic; } sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css000066400000000000000000000000501257212207400313670ustar00rootroot00000000000000.plain-old-css { font-style: italic; }sass-rails-5.0.4/test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.scss000066400000000000000000000002571257212207400331220ustar00rootroot00000000000000@import "another_plain"; /* tests whether relative lookups of non-sass files works. */ @import "defaults"; /* tests wheter relative lookups partials in the same directory. */ sass-rails-5.0.4/test/fixtures/scss_project/app/controllers/000077500000000000000000000000001257212207400242625ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/controllers/application_controller.rb000066400000000000000000000001201257212207400313460ustar00rootroot00000000000000class ApplicationController < ActionController::Base protect_from_forgery end sass-rails-5.0.4/test/fixtures/scss_project/app/helpers/000077500000000000000000000000001257212207400233565ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/helpers/application_helper.rb000066400000000000000000000000351257212207400275430ustar00rootroot00000000000000module ApplicationHelper end sass-rails-5.0.4/test/fixtures/scss_project/app/mailers/000077500000000000000000000000001257212207400233505ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/mailers/.gitkeep000066400000000000000000000000001257212207400247670ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/models/000077500000000000000000000000001257212207400231775ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/models/.gitkeep000066400000000000000000000000001257212207400246160ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/views/000077500000000000000000000000001257212207400230515ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/views/layouts/000077500000000000000000000000001257212207400245515ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/app/views/layouts/application.html.erb000066400000000000000000000003351257212207400305120ustar00rootroot00000000000000 ScssProject <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-5.0.4/test/fixtures/scss_project/config.ru000066400000000000000000000002411257212207400227460ustar00rootroot00000000000000# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run ScssProject::Application sass-rails-5.0.4/test/fixtures/scss_project/config/000077500000000000000000000000001257212207400224015ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/config/application.rb000066400000000000000000000042731257212207400252370ustar00rootroot00000000000000require File.expand_path('../boot', __FILE__) require 'rails/all' # If you have a Gemfile, require the gems listed there, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) if defined?(Bundler) module ScssProject class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ] # Activate observers that should always be running. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de # Please note that JavaScript expansions are *ignored altogether* if the asset # pipeline is enabled (see config.assets.enabled below). Put your defaults in # app/assets/javascripts/application.js in that case. # # JavaScript files you want as :defaults (application.js is always included). # config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs) # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] # Enable the asset pipeline config.assets.enabled = true end end sass-rails-5.0.4/test/fixtures/scss_project/config/boot.rb000066400000000000000000000002771257212207400236770ustar00rootroot00000000000000require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) sass-rails-5.0.4/test/fixtures/scss_project/config/database.yml000066400000000000000000000011001257212207400246600ustar00rootroot00000000000000# SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: sqlite3 database: db/production.sqlite3 pool: 5 timeout: 5000 sass-rails-5.0.4/test/fixtures/scss_project/config/environment.rb000066400000000000000000000002331257212207400252700ustar00rootroot00000000000000# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application ScssProject::Application.initialize! sass-rails-5.0.4/test/fixtures/scss_project/config/environments/000077500000000000000000000000001257212207400251305ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/config/environments/development.rb000066400000000000000000000015541257212207400300040ustar00rootroot00000000000000ScssProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false config.eager_load = false # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Don't care if the mailer can't send config.action_mailer.raise_delivery_errors = false # Print deprecation notices to the Rails logger config.active_support.deprecation = :log # Only use best-standards-support built into browsers config.action_dispatch.best_standards_support = :builtin end sass-rails-5.0.4/test/fixtures/scss_project/config/environments/production.rb000066400000000000000000000040031257212207400276400ustar00rootroot00000000000000ScssProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true config.eager_load = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) if config.respond_to?(:serve_static_files) config.serve_static_files = false else config.serve_static_assets = false end # Specify the default JavaScript compressor config.assets.js_compressor = :uglifier # Specifies the header that your server uses for sending files # (comment out if your front-end server doesn't support this) config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true # See everything in the log (default is :info) config.log_level = :info # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Use a different cache store in production # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # config.assets.precompile += %w( search.js ) # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false # Enable threaded mode # config.threadsafe! # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation can not be found) config.i18n.fallbacks = true # Send deprecation notices to registered listeners config.active_support.deprecation = :notify end sass-rails-5.0.4/test/fixtures/scss_project/config/environments/test.rb000066400000000000000000000032661257212207400264430ustar00rootroot00000000000000ScssProject::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true config.eager_load = false # Configure static asset server for tests with Cache-Control for performance if config.respond_to?(:serve_static_files) config.serve_static_files = true else config.serve_static_assets = true end config.static_cache_control = "public, max-age=3600" # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Raise exceptions instead of rendering exception templates config.action_dispatch.show_exceptions = false # Disable request forgery protection in test environment config.action_controller.allow_forgery_protection = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test # Use SQL instead of Active Record's schema dumper when creating the test database. # This is necessary if your schema can't be completely dumped by the schema dumper, # like if you have constraints or database-specific column types # config.active_record.schema_format = :sql # Print deprecation notices to the stderr config.active_support.deprecation = :stderr end sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/000077500000000000000000000000001257212207400251075ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/backtrace_silencers.rb000066400000000000000000000006241257212207400314240ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. # Rails.backtrace_cleaner.remove_silencers! sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/inflections.rb000066400000000000000000000005701257212207400277530ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # ActiveSupport::Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', 'people' # inflect.uncountable %w( fish sheep ) # end sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/mime_types.rb000066400000000000000000000003151257212207400276060ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/postprocessor.rb000066400000000000000000000002551257212207400303630ustar00rootroot00000000000000Rails.application.config.assets.configure do |env| env.register_postprocessor 'text/css', :postprocessor do |context, css| css.gsub /@import/, 'fail engine' end end sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/secret_token.rb000066400000000000000000000007661257212207400301320ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. ScssProject::Application.config.secret_token = 'aad80c771c1b2b13b67b0b2d03ee3fa8a1d5a8e8dce2e8bc8b382f197927b789afdc9355f8bc7256faf650015d75d8eb541e9ab96a88f0bd63c4bd7552174849' sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/session_store.rb000066400000000000000000000006551257212207400303410ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. ScssProject::Application.config.session_store :cookie_store, :key => '_scss_project_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails generate session_migration") # ScssProject::Application.config.session_store :active_record_store sass-rails-5.0.4/test/fixtures/scss_project/config/initializers/wrap_parameters.rb000066400000000000000000000007551257212207400306370ustar00rootroot00000000000000# Be sure to restart your server when you modify this file. # # This file contains the settings for ActionController::ParametersWrapper # which will be enabled by default in the upcoming version of Ruby on Rails. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActionController::Base.wrap_parameters :format => [:json] # Disable root element in JSON by default. if defined?(ActiveRecord) ActiveRecord::Base.include_root_in_json = false end sass-rails-5.0.4/test/fixtures/scss_project/config/locales/000077500000000000000000000000001257212207400240235ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/config/locales/en.yml000066400000000000000000000003261257212207400251510ustar00rootroot00000000000000# Sample localization file for English. Add more files in this directory for other locales. # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. en: hello: "Hello world" sass-rails-5.0.4/test/fixtures/scss_project/config/routes.rb000066400000000000000000000034021257212207400242460ustar00rootroot00000000000000ScssProject::Application.routes.draw do # The priority is based upon order of creation: # first created -> highest priority. # Sample of regular route: # match 'products/:id' => 'catalog#view' # Keep in mind you can assign values other than :controller and :action # Sample of named route: # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase # This route can be invoked with purchase_url(:id => product.id) # Sample resource route (maps HTTP verbs to controller actions automatically): # resources :products # Sample resource route with options: # resources :products do # member do # get 'short' # post 'toggle' # end # # collection do # get 'sold' # end # end # Sample resource route with sub-resources: # resources :products do # resources :comments, :sales # resource :seller # end # Sample resource route with more complex sub-resources # resources :products do # resources :comments # resources :sales do # get 'recent', :on => :collection # end # end # Sample resource route within a namespace: # namespace :admin do # # Directs /admin/products/* to Admin::ProductsController # # (app/controllers/admin/products_controller.rb) # resources :products # end # You can have the root of your site routed with "root" # just remember to delete public/index.html. # root :to => 'welcome#index' # See how all your routes lay out with "rake routes" # This is a legacy wild controller route that's not recommended for RESTful applications. # Note: This route will make all actions in every controller accessible via GET requests. # match ':controller(/:action(/:id(.:format)))' end sass-rails-5.0.4/test/fixtures/scss_project/db/000077500000000000000000000000001257212207400215215ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/db/seeds.rb000066400000000000000000000005271257212207400231550ustar00rootroot00000000000000# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) sass-rails-5.0.4/test/fixtures/scss_project/doc/000077500000000000000000000000001257212207400217015ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/doc/README_FOR_APP000066400000000000000000000003231257212207400237650ustar00rootroot00000000000000Use this README file to introduce your application and point to useful places in the API for learning more. Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. sass-rails-5.0.4/test/fixtures/scss_project/lib/000077500000000000000000000000001257212207400217025ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/lib/tasks/000077500000000000000000000000001257212207400230275ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/lib/tasks/.gitkeep000066400000000000000000000000001257212207400244460ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/log/000077500000000000000000000000001257212207400217155ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/log/.gitkeep000066400000000000000000000000001257212207400233340ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/public/000077500000000000000000000000001257212207400224125ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/public/404.html000066400000000000000000000013301257212207400236040ustar00rootroot00000000000000 The page you were looking for doesn't exist (404)

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

sass-rails-5.0.4/test/fixtures/scss_project/public/422.html000066400000000000000000000013071257212207400236100ustar00rootroot00000000000000 The change you wanted was rejected (422)

The change you wanted was rejected.

Maybe you tried to change something you didn't have access to.

sass-rails-5.0.4/test/fixtures/scss_project/public/500.html000066400000000000000000000013301257212207400236010ustar00rootroot00000000000000 We're sorry, but something went wrong (500)

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.

sass-rails-5.0.4/test/fixtures/scss_project/public/favicon.ico000066400000000000000000000000001257212207400245210ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/public/index.html000066400000000000000000000134231257212207400244120ustar00rootroot00000000000000 Ruby on Rails: Welcome aboard

Getting started

Here’s how to get rolling:

  1. Use rails generate to create your models and controllers

    To see all available options, run it without parameters.

  2. Set up a default route and remove public/index.html

    Routes are set up in config/routes.rb.

  3. Create your database

    Run rake db:create to create your database. If you're not using SQLite (the default), edit config/database.yml with your username and password.

sass-rails-5.0.4/test/fixtures/scss_project/public/robots.txt000066400000000000000000000003141257212207400244610ustar00rootroot00000000000000# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file # # To ban all spiders from the entire site uncomment the next two lines: # User-Agent: * # Disallow: / sass-rails-5.0.4/test/fixtures/scss_project/script/000077500000000000000000000000001257212207400224405ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/script/rails000077500000000000000000000004471257212207400235050ustar00rootroot00000000000000#!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. APP_PATH = File.expand_path('../../config/application', __FILE__) require File.expand_path('../../config/boot', __FILE__) require 'rails/commands' sass-rails-5.0.4/test/fixtures/scss_project/vendor/000077500000000000000000000000001257212207400224315ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/vendor/assets/000077500000000000000000000000001257212207400237335ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/vendor/assets/stylesheets/000077500000000000000000000000001257212207400263075ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep000066400000000000000000000000001257212207400277260ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/vendor/plugins/000077500000000000000000000000001257212207400241125ustar00rootroot00000000000000sass-rails-5.0.4/test/fixtures/scss_project/vendor/plugins/.gitkeep000066400000000000000000000000001257212207400255310ustar00rootroot00000000000000sass-rails-5.0.4/test/sass_rails_generators_test.rb000066400000000000000000000045421257212207400225470ustar00rootroot00000000000000require 'test_helper' class ScaffoldGeneratorTest < Sass::Rails::TestCase test "scss files are generated during scaffold generation of scss projects" do within_rails_app "scss_project" do generate_scaffold assert_file_exists "app/assets/stylesheets/foos.scss" assert_file_exists "app/assets/stylesheets/scaffolds.scss" assert_not_output /conflict/ end end test "sass files are generated during scaffold generation of sass projects" do within_rails_app "sass_project" do generate_scaffold assert_file_exists "app/assets/stylesheets/foos.sass" assert_file_exists "app/assets/stylesheets/scaffolds.sass" assert_not_output /conflict/ end end test "scss files are generated during scaffold generation of a engine project, if is called with --stylesheet-engine=scss" do within_rails_app "engine_project" do generate_scaffold "--stylesheet-engine=scss" assert_file_exists "app/assets/stylesheets/engine_project/foos.scss" assert_file_exists "app/assets/stylesheets/scaffolds.scss" assert_not_output /conflict/ end end test "sass files are generated during scaffold generation of a engine project, if is called with --stylesheet-engine=sass" do within_rails_app "engine_project" do generate_scaffold "--stylesheet-engine=sass" assert_file_exists "app/assets/stylesheets/engine_project/foos.sass" assert_file_exists "app/assets/stylesheets/scaffolds.sass" assert_not_output /conflict/ end end # DISABLED because we've removed the feature for now. # test "scss template has correct dasherized css class for namespaced controllers" do # within_rails_app "scss_project" do # runcmd "rails generate controller foo/bar" # assert_file_exists "app/assets/stylesheets/foo/bar.scss" # assert_match /\.foo-bar/, File.read("app/assets/stylesheets/foo/bar.scss") # end # end # # test "sass template has correct dasherized css class for namespaced controllers" do # within_rails_app "sass_project" do # runcmd "rails generate controller foo/bar" # assert_file_exists "app/assets/stylesheets/foo/bar.sass" # assert_match /\.foo-bar/, File.read("app/assets/stylesheets/foo/bar.sass") # end # end private def generate_scaffold(args = nil) runcmd "bundle exec rails generate scaffold foo #{args}" end end sass-rails-5.0.4/test/sass_rails_logger_test.rb000066400000000000000000000020211257212207400216430ustar00rootroot00000000000000require 'test_helper' class SassRailsLoggerTest < Sass::Rails::TestCase test "setting a sass-rails logger as the sass default logger" do within_rails_app "scss_project" do logger_class_name = runcmd 'ruby script/rails runner "print Sass::logger.class.name"' assert logger_class_name =~ /#{Regexp.escape(Sass::Rails::Logger.name)}/ end end test "sending a log messages to the sass logger writes to the environment log file" do within_rails_app "scss_project" do |app_root| [:debug, :warn, :info, :error, :trace].each do |level| message = "[#{level}]: sass message" runner 'development' do "Sass::logger.log_level = :#{level}; Sass::logger.log(:#{level}, %Q|#{message}|)" end assert File.exists?("#{app_root}/log/development.log"), "log file was not created" log_output = File.open("#{app_root}/log/development.log").read assert log_output.include?(message), "the #{level} log message was not found in the log file" end end end end sass-rails-5.0.4/test/sass_rails_test.rb000066400000000000000000000223561257212207400203210ustar00rootroot00000000000000require 'test_helper' class SassRailsTest < Sass::Rails::TestCase test 'classes are loaded' do assert_kind_of Module, Sass::Rails assert_kind_of Class, Sass::Rails::Railtie end test 'style config item is honored in development mode' do within_rails_app 'alternate_config_project' do runner 'development' do "puts Rails.application.config.sass.style" end assert_output /compact/ end end test 'style config item is not honored if environment is not development' do within_rails_app 'alternate_config_project' do runner 'production' do "p Rails.application.config.sass.style" end assert_equal 'nil', $last_output.chomp end end test 'css_compressor config item is not honored in development mode' do within_rails_app 'alternate_config_project' do runner 'development' do "p Rails.application.config.assets.css_compressor" end assert_equal 'nil', $last_output.chomp end end test 'css_compressor config item is honored if environment is not development' do within_rails_app 'alternate_config_project' do runner 'production' do "puts Rails.application.config.assets.css_compressor" end assert_output /yui/ end end test 'sass uses expanded style by default in development mode' do within_rails_app 'scss_project' do runner 'development' do "puts Rails.application.config.sass.style" end assert_output /expanded/ end end test 'sass not defines compressor in development mode' do within_rails_app 'scss_project' do runner 'development' do "p Rails.application.config.assets.css_compressor" end assert_equal 'nil', $last_output.chomp end end test 'sass defines compressor by default in test mode' do within_rails_app 'scss_project' do runner 'test' do "puts Rails.application.config.assets.css_compressor" end assert_equal 'sass', $last_output.chomp end end test 'sass allows compressor override in test mode' do within_rails_app 'alternate_config_project' do runner 'test' do "puts Rails.application.config.assets.css_compressor.nil?" end assert_equal 'true', $last_output.chomp end end test 'sass defines compressor by default in production mode' do within_rails_app 'scss_project' do runner 'production' do "puts Rails.application.config.assets.css_compressor" end assert_equal 'sass', $last_output.chomp end end test 'sprockets require works correctly' do within_rails_app('scss_project') do |app_root| css_output = asset_output('css_application.css') assert_match /globbed/, css_output if File.exists?("#{app_root}/log/development.log") log_file = "#{app_root}/log/development.log" elsif File.exists?("#{app_root}/log/test.log") log_file = "#{app_root}/log/test.log" else flunk "log file was not created" end log_output = File.open(log_file).read refute_match /Warning/, log_output end end test 'sass imports work correctly' do css_output = sprockets_render('scss_project', 'application.css') assert_match /main/, css_output assert_match /top-level/, css_output assert_match /partial-sass/, css_output assert_match /partial-scss/, css_output assert_match /sub-folder-relative-sass/, css_output assert_match /sub-folder-relative-scss/, css_output assert_match /not-a-partial/, css_output assert_match /globbed/, css_output assert_match /nested-glob/, css_output assert_match /plain-old-css/, css_output assert_match /another-plain-old-css/, css_output assert_match /without-css-ext/, css_output assert_match /css-erb-handler/, css_output assert_match /scss-erb-handler/, css_output assert_match /sass-erb-handler/, css_output assert_match /css-sass-erb-handler/, css_output assert_match /css-scss-erb-handler/, css_output assert_match /default-old-css/, css_output end test 'sprockets directives are ignored within an import' do css_output = sprockets_render('scss_project', 'import_css_application.css') assert_match /\.css-application/, css_output assert_match /\.import-css-application/, css_output end test 'globbed imports work when new file is added' do project = 'scss_project' filename = 'application.scss' within_rails_app(project) do |tmpdir| asset_output(filename) new_file = File.join(tmpdir, 'app', 'assets', 'stylesheets', 'globbed', 'new.scss') File.open(new_file, 'w') do |file| file.puts '.new-file-test { color: #000; }' end css_output = asset_output(filename) assert_match /new-file-test/, css_output end end test 'globbed imports work when globbed file is changed' do project = 'scss_project' filename = 'application.scss' within_rails_app(project) do |tmpdir| asset_output(filename) new_file = File.join(tmpdir, 'app', 'assets', 'stylesheets', 'globbed', 'globbed.scss') File.open(new_file, 'w') do |file| file.puts '.changed-file-test { color: #000; }' end css_output = asset_output(filename) assert_match /changed-file-test/, css_output end end test 'sass asset paths work' do css_output = sprockets_render('scss_project', 'application.css') assert_match %r{asset-path:\s*"/assets/rails(-[0-9a-f]+)?.png"}, css_output, 'asset-path:\s*"/assets/rails.png"' assert_match %r{asset-url:\s*url\(/assets/rails(-[0-9a-f]+)?.png\)}, css_output, 'asset-url:\s*url\(/assets/rails.png\)' assert_match %r{image-path:\s*"/assets/rails(-[0-9a-f]+)?.png"}, css_output, 'image-path:\s*"/assets/rails.png"' assert_match %r{image-url:\s*url\(/assets/rails(-[0-9a-f]+)?.png\)}, css_output, 'image-url:\s*url\(/assets/rails.png\)' assert_match %r{video-path:\s*"/videos/rails(-[0-9a-f]+)?.mp4"}, css_output, 'video-path:\s*"/videos/rails.mp4"' assert_match %r{video-url:\s*url\(/videos/rails(-[0-9a-f]+)?.mp4\)}, css_output, 'video-url:\s*url\(/videos/rails.mp4\)' assert_match %r{audio-path:\s*"/audios/rails(-[0-9a-f]+)?.mp3"}, css_output, 'audio-path:\s*"/audios/rails.mp3"' assert_match %r{audio-url:\s*url\(/audios/rails(-[0-9a-f]+)?.mp3\)}, css_output, 'audio-url:\s*url\(/audios/rails.mp3\)' assert_match %r{font-path:\s*"/fonts/rails(-[0-9a-f]+)?.ttf"}, css_output, 'font-path:\s*"/fonts/rails.ttf"' assert_match %r{font-url:\s*url\(/fonts/rails(-[0-9a-f]+)?.ttf\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf\)' assert_match %r{font-url-with-query-hash:\s*url\(/fonts/rails(-[0-9a-f]+)?.ttf\?#iefix\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf?#iefix\)' assert_match %r{javascript-path:\s*"/javascripts/rails(-[0-9a-f]+)?.js"}, css_output, 'javascript-path:\s*"/javascripts/rails.js"' assert_match %r{javascript-url:\s*url\(/javascripts/rails(-[0-9a-f]+)?.js\)}, css_output, 'javascript-url:\s*url\(/javascripts/rails.js\)' assert_match %r{stylesheet-path:\s*"/stylesheets/rails(-[0-9a-f]+)?.css"}, css_output, 'stylesheet-path:\s*"/stylesheets/rails.css"' assert_match %r{stylesheet-url:\s*url\(/stylesheets/rails(-[0-9a-f]+)?.css\)}, css_output, 'stylesheet-url:\s*url\(/stylesheets/rails.css\)' asset_data_url_regexp = %r{asset-data-url:\s*url\((.*?)\)} assert_match asset_data_url_regexp, css_output, 'asset-data-url:\s*url\((.*?)\)' asset_data_url_match = css_output.match(asset_data_url_regexp)[1] asset_data_url_expected = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCNzY5NDE1QkQ2NkMxMUUwOUUzM0E5Q0E2RTgyQUExQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCNzY5NDE1Q0Q2NkMxMUUwOUUzM0E5Q0E2RTgyQUExQiI%2BIDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3MzcyNTQ2RDY2QjExRTA5RTMzQTlDQTZFODJBQTFCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkI3Njk0MTVBRDY2QzExRTA5RTMzQTlDQTZFODJBQTFCIi8%2BIDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY%2BIDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8%2B0HhJ9AAAABBJREFUeNpi%2BP%2F%2FPwNAgAEACPwC%2FtuiTRYAAAAASUVORK5CYII%3D' assert_equal asset_data_url_expected, asset_data_url_match end end sass-rails-5.0.4/test/support/000077500000000000000000000000001257212207400162765ustar00rootroot00000000000000sass-rails-5.0.4/test/support/sass_rails_test_case.rb000066400000000000000000000110721257212207400230210ustar00rootroot00000000000000unless defined?(Bundler) $stderr.puts "You didn't run bundle exec did you? Try again: bundle exec rake test" exit 1 end require 'fileutils' require 'tmpdir' class Sass::Rails::TestCase < ActiveSupport::TestCase class ExecutionError < StandardError attr_accessor :output def initialize(message, output = nil) super(message) self.output = output end def message "#{super}\nOutput was:\n#{output}" end end module SilentError attr_accessor :output def message "#{super}\nOutput was:\n#{output}" end end protected def fixture_path(path) File.expand_path("../../fixtures/#{path}", __FILE__) end module TestAssetPaths attr_accessor :assets end def sprockets_render(project, filename) within_rails_app(project) do asset_output(filename) end end def asset_output(filename) runcmd "ruby script/rails runner 'puts Rails.application.assets[#{filename.inspect}]'" end def assert_file_exists(filename) assert File.exists?(filename), "could not find #{filename}. PWD=#{Dir.pwd}\nDid find: #{Dir.glob(File.dirname(filename)+"/*").join(", ")}" end def assert_not_output(match) assert_no_match match, $last_output end def assert_output(match) assert $last_output.to_s =~ match, "#{match} was not found in #{$last_output.inspect}" end def assert_line_count(count) last_count = $last_output.lines.count assert last_count == count, "Wrong line count, expected: #{count} but got: #{last_count}" end # Copies a rails app fixture to a temp directory # and changes to that directory during the yield. # # Automatically changes back to the working directory # and removes the temp directory when done. def within_rails_app(name, without_gems = [], gem_options = $gem_options) sourcedir = File.expand_path("../../fixtures/#{name}", __FILE__) Dir.mktmpdir do |tmpdir| FileUtils.cp_r "#{sourcedir}/.", tmpdir Dir.chdir(tmpdir) do gem_options.each { |gem_name, options| modify_gem_entry gem_name, options } without_gems.each { |gem_name| remove_gem name } yield tmpdir end end end def process_gemfile(gemfile = "Gemfile", &blk) gem_contents = File.readlines(gemfile) gem_contents.map!(&blk) gem_contents.compact! File.open(gemfile, "w") do |f| f.print(gem_contents.join("")) end end def modify_gem_entry(gemname, options, gemfile = "Gemfile") found = false process_gemfile(gemfile) do |line| if line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/ found = true gem_entry(gemname, options) + "\n" else line end end unless found File.open(gemfile, "a") do |f| f.print("\n#{gem_entry(gemname, options)}\n") end end end def gem_entry(gemname, options) entry = %Q{gem "#{gemname}", "~> #{options[:version]}"} entry += ", :path => #{options[:path].inspect}" if options[:path] entry end def remove_gem(gemname) process_gemfile(gemfile) do |line| line unless line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/ end end def silently output = StringIO.new $stderr, old_stderr = output, $stderr $stdout, old_stdout = output, $stdout begin yield rescue ExecutionError => e raise rescue => e e.extend(SilentError) e.output = output.string raise end ensure $stderr = old_stderr $stdout = old_stdout end # executes a system command # raises an error if it does not complete successfully # returns the output as a string if it does complete successfully def runcmd(cmd, working_directory = Dir.pwd, clean_env = true, gemfile = "Gemfile", env = {}) # There's a bug in bundler where with_clean_env doesn't clear out the BUNDLE_GEMFILE environment setting # https://github.com/carlhuda/bundler/issues/1133 env["BUNDLE_GEMFILE"] = "#{working_directory}/#{gemfile}" if clean_env todo = Proc.new do r, w = IO.pipe Kernel.spawn(env, cmd, :out => w , :err => w, :chdir => working_directory) w.close Process.wait output = r.read r.close unless $?.exitstatus == 0 raise ExecutionError, "Command failed with exit status #{$?.exitstatus}: #{cmd}", output end $last_output = output end if clean_env Bundler.with_clean_env(&todo) else todo.call end end # A thin wrapper around runcmd to be DRY in tests def runner(environment) runcmd "ruby script/rails runner '#{yield}'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => environment} end end sass-rails-5.0.4/test/test_helper.rb000066400000000000000000000017261257212207400174330ustar00rootroot00000000000000# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require 'bundler/setup' require 'rails' require 'rails/test_help' require 'sass/rails' Rails.backtrace_cleaner.remove_silencers! # If developing against local dependencies, this code will ensure they get picked up # in the project fixtures that have their own bundle environment $gem_options = {} possible_dev_dependencies = %w(sass-rails sass rails arel actionpack railties sprockets journey sprockets-rails activerecord-deprecated_finders) Bundler.load.specs.each do |s| if possible_dev_dependencies.include?(s.name) gem_path = s.full_gem_path gem_options = { version: s.version } gem_options[:path] = gem_path if File.exists?("#{gem_path}/#{s.name}.gemspec") $gem_options[s.name] = gem_options end end # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } ActiveSupport::TestCase.test_order = :random if ActiveSupport::TestCase.respond_to?(:test_order=)