sass-rails-3.2.5/0000755000175000017500000000000011771756530013160 5ustar gramosgramossass-rails-3.2.5/metadata.yml0000644000175000017500000004757011771756530015500 0ustar gramosgramos--- !ruby/object:Gem::Specification name: sass-rails version: !ruby/object:Gem::Version version: 3.2.5 prerelease: platform: ruby authors: - wycats - chriseppstein autorequire: bindir: bin cert_chain: [] date: 2012-03-19 00:00:00.000000000Z dependencies: - !ruby/object:Gem::Dependency name: sass requirement: &70125567856900 !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: 3.1.10 type: :runtime prerelease: false version_requirements: *70125567856900 - !ruby/object:Gem::Dependency name: railties requirement: &70125567855740 !ruby/object:Gem::Requirement none: false requirements: - - ~> - !ruby/object:Gem::Version version: 3.2.0 type: :runtime prerelease: false version_requirements: *70125567855740 - !ruby/object:Gem::Dependency name: tilt requirement: &70125567854800 !ruby/object:Gem::Requirement none: false requirements: - - ~> - !ruby/object:Gem::Version version: '1.3' type: :runtime prerelease: false version_requirements: *70125567854800 description: Sass adapter for the Rails asset pipeline. email: - wycats@gmail.com - chris@eppsteins.net executables: [] extensions: [] extra_rdoc_files: [] files: - .gitignore - .travis.yml - CHANGELOG.md - Gemfile - MIT-LICENSE - README.markdown - Rakefile - lib/rails/generators/sass/assets/assets_generator.rb - lib/rails/generators/sass/assets/templates/stylesheet.css.sass - lib/rails/generators/sass/scaffold/scaffold_generator.rb - lib/rails/generators/sass_scaffold.rb - lib/rails/generators/scss/assets/assets_generator.rb - lib/rails/generators/scss/assets/templates/stylesheet.css.scss - lib/rails/generators/scss/scaffold/scaffold_generator.rb - lib/sass-rails.rb - lib/sass/rails.rb - lib/sass/rails/compressor.rb - lib/sass/rails/helpers.rb - lib/sass/rails/importer.rb - lib/sass/rails/logger.rb - lib/sass/rails/railtie.rb - lib/sass/rails/template_handlers.rb - lib/sass/rails/version.rb - sass-rails.gemspec - test/fixtures/engine_project/.gitignore - test/fixtures/engine_project/Gemfile - test/fixtures/engine_project/README.rdoc - test/fixtures/engine_project/Rakefile - test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep - test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js - test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css - test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb - test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb - test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb - test/fixtures/engine_project/config/routes.rb - test/fixtures/engine_project/db/seeds.rb - test/fixtures/engine_project/engine_project.gemspec - test/fixtures/engine_project/lib/engine_project.rb - test/fixtures/engine_project/lib/engine_project/engine.rb - test/fixtures/engine_project/lib/engine_project/version.rb - test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake - test/fixtures/engine_project/script/rails - test/fixtures/engine_project/test/dummy/Rakefile - test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js - test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css - test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb - test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb - test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep - test/fixtures/engine_project/test/dummy/app/models/.gitkeep - test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb - test/fixtures/engine_project/test/dummy/config.ru - test/fixtures/engine_project/test/dummy/config/application.rb - test/fixtures/engine_project/test/dummy/config/boot.rb - test/fixtures/engine_project/test/dummy/config/database.yml - test/fixtures/engine_project/test/dummy/config/environment.rb - test/fixtures/engine_project/test/dummy/config/environments/development.rb - test/fixtures/engine_project/test/dummy/config/environments/production.rb - test/fixtures/engine_project/test/dummy/config/environments/test.rb - test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb - test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb - test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb - test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb - test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb - test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb - test/fixtures/engine_project/test/dummy/config/locales/en.yml - test/fixtures/engine_project/test/dummy/config/routes.rb - test/fixtures/engine_project/test/dummy/db/seeds.rb - test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep - test/fixtures/engine_project/test/dummy/log/.gitkeep - test/fixtures/engine_project/test/dummy/public/404.html - test/fixtures/engine_project/test/dummy/public/422.html - test/fixtures/engine_project/test/dummy/public/500.html - test/fixtures/engine_project/test/dummy/public/favicon.ico - test/fixtures/engine_project/test/dummy/script/rails - test/fixtures/sass_project/.gitignore - test/fixtures/sass_project/Gemfile - test/fixtures/sass_project/README - test/fixtures/sass_project/Rakefile - test/fixtures/sass_project/app/assets/images/rails.png - test/fixtures/sass_project/app/assets/javascripts/application.js - test/fixtures/sass_project/app/assets/stylesheets/application.css - test/fixtures/sass_project/app/controllers/application_controller.rb - test/fixtures/sass_project/app/helpers/application_helper.rb - test/fixtures/sass_project/app/mailers/.gitkeep - test/fixtures/sass_project/app/models/.gitkeep - test/fixtures/sass_project/app/views/layouts/application.html.erb - test/fixtures/sass_project/config.ru - test/fixtures/sass_project/config/application.rb - test/fixtures/sass_project/config/boot.rb - test/fixtures/sass_project/config/database.yml - test/fixtures/sass_project/config/environment.rb - test/fixtures/sass_project/config/environments/development.rb - test/fixtures/sass_project/config/environments/production.rb - test/fixtures/sass_project/config/environments/test.rb - test/fixtures/sass_project/config/initializers/backtrace_silencers.rb - test/fixtures/sass_project/config/initializers/inflections.rb - test/fixtures/sass_project/config/initializers/mime_types.rb - test/fixtures/sass_project/config/initializers/secret_token.rb - test/fixtures/sass_project/config/initializers/session_store.rb - test/fixtures/sass_project/config/initializers/wrap_parameters.rb - test/fixtures/sass_project/config/locales/en.yml - test/fixtures/sass_project/config/routes.rb - test/fixtures/sass_project/db/seeds.rb - test/fixtures/sass_project/doc/README_FOR_APP - test/fixtures/sass_project/lib/tasks/.gitkeep - test/fixtures/sass_project/log/.gitkeep - test/fixtures/sass_project/public/404.html - test/fixtures/sass_project/public/422.html - test/fixtures/sass_project/public/500.html - test/fixtures/sass_project/public/favicon.ico - test/fixtures/sass_project/public/index.html - test/fixtures/sass_project/public/robots.txt - test/fixtures/sass_project/script/rails - test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep - test/fixtures/sass_project/vendor/plugins/.gitkeep - test/fixtures/scss_project/.gitignore - test/fixtures/scss_project/Gemfile - test/fixtures/scss_project/README - test/fixtures/scss_project/Rakefile - test/fixtures/scss_project/app/assets/images/1x1.png - test/fixtures/scss_project/app/assets/images/rails.png - test/fixtures/scss_project/app/assets/javascripts/application.js - test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss - test/fixtures/scss_project/app/assets/stylesheets/application.css.scss - test/fixtures/scss_project/app/assets/stylesheets/css_application.css - test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss - test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass - test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass - test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss - test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css - test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css - test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss - test/fixtures/scss_project/app/controllers/application_controller.rb - test/fixtures/scss_project/app/helpers/application_helper.rb - test/fixtures/scss_project/app/mailers/.gitkeep - test/fixtures/scss_project/app/models/.gitkeep - test/fixtures/scss_project/app/views/layouts/application.html.erb - test/fixtures/scss_project/config.ru - test/fixtures/scss_project/config/application.rb - test/fixtures/scss_project/config/boot.rb - test/fixtures/scss_project/config/database.yml - test/fixtures/scss_project/config/environment.rb - test/fixtures/scss_project/config/environments/development.rb - test/fixtures/scss_project/config/environments/production.rb - test/fixtures/scss_project/config/environments/test.rb - test/fixtures/scss_project/config/initializers/backtrace_silencers.rb - test/fixtures/scss_project/config/initializers/inflections.rb - test/fixtures/scss_project/config/initializers/mime_types.rb - test/fixtures/scss_project/config/initializers/secret_token.rb - test/fixtures/scss_project/config/initializers/session_store.rb - test/fixtures/scss_project/config/initializers/wrap_parameters.rb - test/fixtures/scss_project/config/locales/en.yml - test/fixtures/scss_project/config/routes.rb - test/fixtures/scss_project/db/seeds.rb - test/fixtures/scss_project/doc/README_FOR_APP - test/fixtures/scss_project/lib/tasks/.gitkeep - test/fixtures/scss_project/log/.gitkeep - test/fixtures/scss_project/public/404.html - test/fixtures/scss_project/public/422.html - test/fixtures/scss_project/public/500.html - test/fixtures/scss_project/public/favicon.ico - test/fixtures/scss_project/public/index.html - test/fixtures/scss_project/public/robots.txt - test/fixtures/scss_project/script/rails - test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep - test/fixtures/scss_project/vendor/plugins/.gitkeep - test/sass_rails_logger_test.rb - test/sass_rails_test.rb - test/support/sass_rails_test_case.rb - test/test_helper.rb homepage: '' licenses: [] post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: sass-rails rubygems_version: 1.8.10 signing_key: specification_version: 3 summary: Sass adapter for the Rails asset pipeline. test_files: - test/fixtures/engine_project/.gitignore - test/fixtures/engine_project/Gemfile - test/fixtures/engine_project/README.rdoc - test/fixtures/engine_project/Rakefile - test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep - test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js - test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css - test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb - test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb - test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb - test/fixtures/engine_project/config/routes.rb - test/fixtures/engine_project/db/seeds.rb - test/fixtures/engine_project/engine_project.gemspec - test/fixtures/engine_project/lib/engine_project.rb - test/fixtures/engine_project/lib/engine_project/engine.rb - test/fixtures/engine_project/lib/engine_project/version.rb - test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake - test/fixtures/engine_project/script/rails - test/fixtures/engine_project/test/dummy/Rakefile - test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js - test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css - test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb - test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb - test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep - test/fixtures/engine_project/test/dummy/app/models/.gitkeep - test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb - test/fixtures/engine_project/test/dummy/config.ru - test/fixtures/engine_project/test/dummy/config/application.rb - test/fixtures/engine_project/test/dummy/config/boot.rb - test/fixtures/engine_project/test/dummy/config/database.yml - test/fixtures/engine_project/test/dummy/config/environment.rb - test/fixtures/engine_project/test/dummy/config/environments/development.rb - test/fixtures/engine_project/test/dummy/config/environments/production.rb - test/fixtures/engine_project/test/dummy/config/environments/test.rb - test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb - test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb - test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb - test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb - test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb - test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb - test/fixtures/engine_project/test/dummy/config/locales/en.yml - test/fixtures/engine_project/test/dummy/config/routes.rb - test/fixtures/engine_project/test/dummy/db/seeds.rb - test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep - test/fixtures/engine_project/test/dummy/log/.gitkeep - test/fixtures/engine_project/test/dummy/public/404.html - test/fixtures/engine_project/test/dummy/public/422.html - test/fixtures/engine_project/test/dummy/public/500.html - test/fixtures/engine_project/test/dummy/public/favicon.ico - test/fixtures/engine_project/test/dummy/script/rails - test/fixtures/sass_project/.gitignore - test/fixtures/sass_project/Gemfile - test/fixtures/sass_project/README - test/fixtures/sass_project/Rakefile - test/fixtures/sass_project/app/assets/images/rails.png - test/fixtures/sass_project/app/assets/javascripts/application.js - test/fixtures/sass_project/app/assets/stylesheets/application.css - test/fixtures/sass_project/app/controllers/application_controller.rb - test/fixtures/sass_project/app/helpers/application_helper.rb - test/fixtures/sass_project/app/mailers/.gitkeep - test/fixtures/sass_project/app/models/.gitkeep - test/fixtures/sass_project/app/views/layouts/application.html.erb - test/fixtures/sass_project/config.ru - test/fixtures/sass_project/config/application.rb - test/fixtures/sass_project/config/boot.rb - test/fixtures/sass_project/config/database.yml - test/fixtures/sass_project/config/environment.rb - test/fixtures/sass_project/config/environments/development.rb - test/fixtures/sass_project/config/environments/production.rb - test/fixtures/sass_project/config/environments/test.rb - test/fixtures/sass_project/config/initializers/backtrace_silencers.rb - test/fixtures/sass_project/config/initializers/inflections.rb - test/fixtures/sass_project/config/initializers/mime_types.rb - test/fixtures/sass_project/config/initializers/secret_token.rb - test/fixtures/sass_project/config/initializers/session_store.rb - test/fixtures/sass_project/config/initializers/wrap_parameters.rb - test/fixtures/sass_project/config/locales/en.yml - test/fixtures/sass_project/config/routes.rb - test/fixtures/sass_project/db/seeds.rb - test/fixtures/sass_project/doc/README_FOR_APP - test/fixtures/sass_project/lib/tasks/.gitkeep - test/fixtures/sass_project/log/.gitkeep - test/fixtures/sass_project/public/404.html - test/fixtures/sass_project/public/422.html - test/fixtures/sass_project/public/500.html - test/fixtures/sass_project/public/favicon.ico - test/fixtures/sass_project/public/index.html - test/fixtures/sass_project/public/robots.txt - test/fixtures/sass_project/script/rails - test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep - test/fixtures/sass_project/vendor/plugins/.gitkeep - test/fixtures/scss_project/.gitignore - test/fixtures/scss_project/Gemfile - test/fixtures/scss_project/README - test/fixtures/scss_project/Rakefile - test/fixtures/scss_project/app/assets/images/1x1.png - test/fixtures/scss_project/app/assets/images/rails.png - test/fixtures/scss_project/app/assets/javascripts/application.js - test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss - test/fixtures/scss_project/app/assets/stylesheets/application.css.scss - test/fixtures/scss_project/app/assets/stylesheets/css_application.css - test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss - test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass - test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass - test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss - test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss - test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css - test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css - test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss - test/fixtures/scss_project/app/controllers/application_controller.rb - test/fixtures/scss_project/app/helpers/application_helper.rb - test/fixtures/scss_project/app/mailers/.gitkeep - test/fixtures/scss_project/app/models/.gitkeep - test/fixtures/scss_project/app/views/layouts/application.html.erb - test/fixtures/scss_project/config.ru - test/fixtures/scss_project/config/application.rb - test/fixtures/scss_project/config/boot.rb - test/fixtures/scss_project/config/database.yml - test/fixtures/scss_project/config/environment.rb - test/fixtures/scss_project/config/environments/development.rb - test/fixtures/scss_project/config/environments/production.rb - test/fixtures/scss_project/config/environments/test.rb - test/fixtures/scss_project/config/initializers/backtrace_silencers.rb - test/fixtures/scss_project/config/initializers/inflections.rb - test/fixtures/scss_project/config/initializers/mime_types.rb - test/fixtures/scss_project/config/initializers/secret_token.rb - test/fixtures/scss_project/config/initializers/session_store.rb - test/fixtures/scss_project/config/initializers/wrap_parameters.rb - test/fixtures/scss_project/config/locales/en.yml - test/fixtures/scss_project/config/routes.rb - test/fixtures/scss_project/db/seeds.rb - test/fixtures/scss_project/doc/README_FOR_APP - test/fixtures/scss_project/lib/tasks/.gitkeep - test/fixtures/scss_project/log/.gitkeep - test/fixtures/scss_project/public/404.html - test/fixtures/scss_project/public/422.html - test/fixtures/scss_project/public/500.html - test/fixtures/scss_project/public/favicon.ico - test/fixtures/scss_project/public/index.html - test/fixtures/scss_project/public/robots.txt - test/fixtures/scss_project/script/rails - test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep - test/fixtures/scss_project/vendor/plugins/.gitkeep - test/sass_rails_logger_test.rb - test/sass_rails_test.rb - test/support/sass_rails_test_case.rb - test/test_helper.rb sass-rails-3.2.5/test/0000755000175000017500000000000011771756530014137 5ustar gramosgramossass-rails-3.2.5/test/test_helper.rb0000644000175000017500000000155211771756530017005 0ustar gramosgramos# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require 'rubygems' require 'bundler/setup' require 'rails' require "rails/test_help" require 'sass/rails' require 'sfl' require 'mocha' 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 actionpack railties sprockets) 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 } sass-rails-3.2.5/test/support/0000755000175000017500000000000011771756530015653 5ustar gramosgramossass-rails-3.2.5/test/support/sass_rails_test_case.rb0000644000175000017500000001047711771756530022406 0ustar gramosgramosunless 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' require 'sprockets/helpers/rails_helper' 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 runcmd "ruby script/rails runner 'puts Rails.application.assets[#{filename.inspect}]'" end 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_ouput end def assert_output(match) assert $last_ouput.to_s =~ match, "#{match} was not found in #{$last_ouput.inspect}" 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 {|name, options| modify_gem_entry name, options} without_gems.each {|name| remove_gem name} FileUtils.rm("Gemfile.lock") if File.exist?("Gemfile.lock") runcmd "bundle install --verbose" runcmd "bundle exec rake db:create --trace" 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 pid = 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_ouput = output end if clean_env Bundler.with_clean_env(&todo) else todo.call end end end sass-rails-3.2.5/test/sass_rails_test.rb0000644000175000017500000001540511771756530017673 0ustar gramosgramosrequire 'test_helper' class SassRailsTest < Sass::Rails::TestCase test "classes are loaded" do assert_kind_of Module, Sass::Rails assert_kind_of Class, Sass::Rails::CssCompressor assert_kind_of Class, Sass::Rails::Railtie end 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.css.scss" assert_file_exists "app/assets/stylesheets/scaffolds.css.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.css.sass" assert_file_exists "app/assets/stylesheets/scaffolds.css.sass" assert_not_output(/conflict/) end end test "scss files are generated during scaffold generation of a engine project" do within_rails_app "engine_project" do generate_scaffold assert_file_exists "app/assets/stylesheets/engine_project/foos.css.scss" assert_file_exists "app/assets/stylesheets/scaffolds.css.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.css.sass" assert_file_exists "app/assets/stylesheets/scaffolds.css.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.css.scss" # assert_match /\.foo-bar/, File.read("app/assets/stylesheets/foo/bar.css.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.css.sass" # assert_match /\.foo-bar/, File.read("app/assets/stylesheets/foo/bar.css.sass") # end # end test "sprockets require works correctly" do css_output = sprockets_render("scss_project", "css_application.css") assert_match /globbed/, css_output end test "sass imports work correctly" do css_output = sprockets_render("scss_project", "application.css.scss") assert_match css_output, /main/ assert_match css_output, /top-level/ assert_match css_output, /partial-sass/ assert_match css_output, /partial-scss/ assert_match css_output, /sub-folder-relative-sass/ assert_match css_output, /sub-folder-relative-scss/ assert_match css_output, /not-a-partial/ assert_match css_output, /globbed/ assert_match css_output, /nested-glob/ assert_match css_output, /plain-old-css/ assert_match css_output, /another-plain-old-css/ assert_match css_output, /without-css-ext/ end test "sass asset paths work" do css_output = sprockets_render("scss_project", "application.css.scss") assert_match css_output, %r{asset-path:\s*"/assets/rails.png"}, 'asset-path:\s*"/assets/rails.png"' assert_match css_output, %r{asset-url:\s*url\(/assets/rails.png\)}, 'asset-url:\s*url\(/assets/rails.png\)' assert_match css_output, %r{image-path:\s*"/assets/rails.png"}, 'image-path:\s*"/assets/rails.png"' assert_match css_output, %r{image-url:\s*url\(/assets/rails.png\)}, 'image-url:\s*url\(/assets/rails.png\)' assert_match css_output, %r{video-path:\s*"/videos/rails.mp4"}, 'video-path:\s*"/videos/rails.mp4"' assert_match css_output, %r{video-url:\s*url\(/videos/rails.mp4\)}, 'video-url:\s*url\(/videos/rails.mp4\)' assert_match css_output, %r{audio-path:\s*"/audios/rails.mp3"}, 'audio-path:\s*"/audios/rails.mp3"' assert_match css_output, %r{audio-url:\s*url\(/audios/rails.mp3\)}, 'audio-url:\s*url\(/audios/rails.mp3\)' assert_match css_output, %r{font-path:\s*"/assets/rails.ttf"}, 'font-path:\s*"/assets/rails.ttf"' assert_match css_output, %r{font-url:\s*url\(/assets/rails.ttf\)}, 'font-url:\s*url\(/assets/rails.ttf\)' assert_match css_output, %r{font-url-with-query-hash:\s*url\(/assets/rails.ttf\?#iefix\)}, 'font-url:\s*url\(/assets/rails.ttf?#iefix\)' assert_match css_output, %r{javascript-path:\s*"/assets/rails.js"}, 'javascript-path:\s*"/assets/rails.js"' assert_match css_output, %r{javascript-url:\s*url\(/assets/rails.js\)}, 'javascript-url:\s*url\(/assets/rails.js\)' assert_match css_output, %r{stylesheet-path:\s*"/assets/rails.css"}, 'stylesheet-path:\s*"/assets/rails.css"' assert_match css_output, %r{stylesheet-url:\s*url\(/assets/rails.css\)}, 'stylesheet-url:\s*url\(/assets/rails.css\)' asset_data_url_regexp = %r{asset-data-url:\s*url\((.*?)\)} assert_match css_output, asset_data_url_regexp, '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 test "css compressor compresses" do assert_equal "div{color:red}\n", Sass::Rails::CssCompressor.new.compress(< 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-3.2.5/test/fixtures/scss_project/public/favicon.ico0000644000175000017500000000000011771756530024076 0ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/public/500.html0000644000175000017500000000133011771756530023156 0ustar gramosgramos 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-3.2.5/test/fixtures/scss_project/public/422.html0000644000175000017500000000130711771756530023165 0ustar gramosgramos 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-3.2.5/test/fixtures/scss_project/public/404.html0000644000175000017500000000133011771756530023161 0ustar gramosgramos 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-3.2.5/test/fixtures/scss_project/log/0000755000175000017500000000000011771756530021272 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/log/.gitkeep0000644000175000017500000000000011771756530022711 0ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/lib/0000755000175000017500000000000011771756530021257 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/lib/tasks/0000755000175000017500000000000011771756530022404 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/lib/tasks/.gitkeep0000644000175000017500000000000011771756530024023 0ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/doc/0000755000175000017500000000000011771756530021256 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/doc/README_FOR_APP0000644000175000017500000000032311771756530023342 0ustar gramosgramosUse 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-3.2.5/test/fixtures/scss_project/db/0000755000175000017500000000000011771756530021076 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/db/seeds.rb0000644000175000017500000000052711771756530022532 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/0000755000175000017500000000000011771756530021756 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/config/routes.rb0000644000175000017500000000340211771756530023623 0ustar gramosgramosScssProject::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-3.2.5/test/fixtures/scss_project/config/locales/0000755000175000017500000000000011771756530023400 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/config/locales/en.yml0000644000175000017500000000032611771756530024526 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/initializers/0000755000175000017500000000000011771756530024464 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/config/initializers/wrap_parameters.rb0000644000175000017500000000075511771756530030214 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/initializers/session_store.rb0000644000175000017500000000065511771756530027716 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/initializers/secret_token.rb0000644000175000017500000000076611771756530027507 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/initializers/mime_types.rb0000644000175000017500000000031511771756530027163 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/initializers/inflections.rb0000644000175000017500000000057011771756530027330 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/initializers/backtrace_silencers.rb0000644000175000017500000000062411771756530031001 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/environments/0000755000175000017500000000000011771756530024505 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/config/environments/test.rb0000644000175000017500000000322511771756530026013 0ustar gramosgramosScssProject::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 config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" # Log error messages when you accidentally call methods on nil config.whiny_nils = true # 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-3.2.5/test/fixtures/scss_project/config/environments/production.rb0000644000175000017500000000371211771756530027223 0ustar gramosgramosScssProject::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 # 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) config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true # 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 = :debug # 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-3.2.5/test/fixtures/scss_project/config/environments/development.rb0000644000175000017500000000175211771756530027361 0ustar gramosgramosScssProject::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 # Log error messages when you accidentally call methods on nil. config.whiny_nils = true # 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 # Do not compress assets config.assets.compress = false end sass-rails-3.2.5/test/fixtures/scss_project/config/environment.rb0000644000175000017500000000023311771756530024645 0ustar gramosgramos# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application ScssProject::Application.initialize! sass-rails-3.2.5/test/fixtures/scss_project/config/database.yml0000644000175000017500000000110011771756530024235 0ustar gramosgramos# 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-3.2.5/test/fixtures/scss_project/config/boot.rb0000644000175000017500000000027711771756530023254 0ustar gramosgramosrequire '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-3.2.5/test/fixtures/scss_project/config/application.rb0000644000175000017500000000427311771756530024614 0ustar gramosgramosrequire 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-3.2.5/test/fixtures/scss_project/config.ru0000644000175000017500000000024111771756530022323 0ustar gramosgramos# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run ScssProject::Application sass-rails-3.2.5/test/fixtures/scss_project/app/0000755000175000017500000000000011771756530021271 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/views/0000755000175000017500000000000011771756530022426 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/views/layouts/0000755000175000017500000000000011771756530024126 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/views/layouts/application.html.erb0000644000175000017500000000033511771756530030067 0ustar gramosgramos ScssProject <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-3.2.5/test/fixtures/scss_project/app/models/0000755000175000017500000000000011771756530022554 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/models/.gitkeep0000644000175000017500000000000011771756530024173 0ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/mailers/0000755000175000017500000000000011771756530022725 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/mailers/.gitkeep0000644000175000017500000000000011771756530024344 0ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/helpers/0000755000175000017500000000000011771756530022733 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/helpers/application_helper.rb0000644000175000017500000000003511771756530027120 0ustar gramosgramosmodule ApplicationHelper end sass-rails-3.2.5/test/fixtures/scss_project/app/controllers/0000755000175000017500000000000011771756530023637 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/controllers/application_controller.rb0000644000175000017500000000012011771756530030723 0ustar gramosgramosclass ApplicationController < ActionController::Base protect_from_forgery end sass-rails-3.2.5/test/fixtures/scss_project/app/assets/0000755000175000017500000000000011771756530022573 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/0000755000175000017500000000000011771756530025147 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/subfolder/0000755000175000017500000000000011771756530027134 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss0000644000175000017500000000012611771756530033261 0ustar gramosgramos@import "another_plain"; /* tests whether relative lookups of non-sass files works. */sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css0000644000175000017500000000005011771756530030744 0ustar gramosgramos.plain-old-css { font-style: italic; }sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css0000644000175000017500000000006111771756530032466 0ustar gramosgramos.another-plain-old-css { font-style: italic; } sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/0000755000175000017500000000000011771756530026766 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/0000755000175000017500000000000011771756530030753 5ustar gramosgramos././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootsass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scsssass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a0000644000175000017500000000005411771756530033670 0ustar gramosgramos.not-a-partial { border: 1px solid blue; }././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootsass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scsssass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss0000644000175000017500000000006111771756530033700 0ustar gramosgramos.sub-folder-relative-scss { width: 50px * 5; } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootsass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sasssass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass0000644000175000017500000000004711771756530033702 0ustar gramosgramos.sub-folder-relative-sass width: 50pxsass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss0000644000175000017500000000007711771756530033261 0ustar gramosgramos@mixin without-css-ext { .without-css-ext { should: work; } }sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss0000644000175000017500000000026711771756530033163 0ustar gramosgramos.partial-scss { color: blue; } @mixin background-from-partial($color) { background-color: $color } @import "subfolder/relative_sass"; @import "subfolder/relative_not_a_partial";sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass0000644000175000017500000000013411771756530033150 0ustar gramosgramos.partial-sass color: green @import "top_level_partial" @import "subfolder/relative_scss" sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/globbed/0000755000175000017500000000000011771756530026545 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/0000755000175000017500000000000011771756530030027 5ustar gramosgramos././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootsass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scsssass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.sc0000644000175000017500000000003711771756530033432 0ustar gramosgramos.nested-glob { color: blue; }sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss0000644000175000017500000000003511771756530031625 0ustar gramosgramos.globbed { color: green; } sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/css_application.css0000644000175000017500000000024511771756530031035 0ustar gramosgramos/* *= require partials/_sass_import *= require partials/_scss_import *= require_tree ./globbed *= require subfolder/plain *= require subfolder/second_level */ sass-rails-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/application.css.scss0000644000175000017500000000172011771756530031136 0ustar gramosgramos@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", image); asset-url: asset-url("rails.png", image); 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-3.2.5/test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss0000644000175000017500000000004211771756530032473 0ustar gramosgramos.top-level { font-color: bold; }sass-rails-3.2.5/test/fixtures/scss_project/app/assets/javascripts/0000755000175000017500000000000011771756530025124 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/assets/javascripts/application.js0000644000175000017500000000071711771756530027772 0ustar gramosgramos// 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-3.2.5/test/fixtures/scss_project/app/assets/images/0000755000175000017500000000000011771756530024040 5ustar gramosgramossass-rails-3.2.5/test/fixtures/scss_project/app/assets/images/rails.png0000644000175000017500000001476611771756530025676 0ustar gramosgramos‰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-3.2.5/test/fixtures/scss_project/app/assets/images/1x1.png0000644000175000017500000000163611771756530025165 0ustar gramosgramos‰PNG  IHDRĉtEXtSoftwareAdobe ImageReadyqÉe<$iTXtXML:com.adobe.xmp ÐxIôIDATxÚbøÿÿ?@€üþÛ¢MIEND®B`‚sass-rails-3.2.5/test/fixtures/scss_project/Rakefile0000644000175000017500000000042411771756530022156 0ustar gramosgramos#!/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-3.2.5/test/fixtures/scss_project/README0000644000175000017500000002177011771756530021400 0ustar gramosgramos== 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-3.2.5/test/fixtures/scss_project/Gemfile0000644000175000017500000000024711771756530022007 0ustar gramosgramossource 'http://rubygems.org' gem 'rails', "~> 3.2.0.rc1" gem 'sqlite3' # Asset template engines gem 'sass-rails', :path => File.expand_path('../../../..', __FILE__) sass-rails-3.2.5/test/fixtures/scss_project/.gitignore0000644000175000017500000000006111771756530022476 0ustar gramosgramos.bundle db/*.sqlite3 log/*.log tmp/ .sass-cache/ sass-rails-3.2.5/test/fixtures/sass_project/0000755000175000017500000000000011771756530020507 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/vendor/0000755000175000017500000000000011771756530022004 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/vendor/plugins/0000755000175000017500000000000011771756530023465 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/vendor/plugins/.gitkeep0000644000175000017500000000000011771756530025104 0ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/vendor/assets/0000755000175000017500000000000011771756530023306 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/vendor/assets/stylesheets/0000755000175000017500000000000011771756530025662 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep0000644000175000017500000000000011771756530027301 0ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/script/0000755000175000017500000000000011771756530022013 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/script/rails0000755000175000017500000000044711771756530023060 0ustar gramosgramos#!/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-3.2.5/test/fixtures/sass_project/public/0000755000175000017500000000000011771756530021765 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/public/robots.txt0000644000175000017500000000031411771756530024034 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/public/index.html0000644000175000017500000001342311771756530023765 0ustar gramosgramos 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-3.2.5/test/fixtures/sass_project/public/favicon.ico0000644000175000017500000000000011771756530024074 0ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/public/500.html0000644000175000017500000000133011771756530023154 0ustar gramosgramos 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-3.2.5/test/fixtures/sass_project/public/422.html0000644000175000017500000000130711771756530023163 0ustar gramosgramos 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-3.2.5/test/fixtures/sass_project/public/404.html0000644000175000017500000000133011771756530023157 0ustar gramosgramos 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-3.2.5/test/fixtures/sass_project/log/0000755000175000017500000000000011771756530021270 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/log/.gitkeep0000644000175000017500000000000011771756530022707 0ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/lib/0000755000175000017500000000000011771756530021255 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/lib/tasks/0000755000175000017500000000000011771756530022402 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/lib/tasks/.gitkeep0000644000175000017500000000000011771756530024021 0ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/doc/0000755000175000017500000000000011771756530021254 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/doc/README_FOR_APP0000644000175000017500000000032311771756530023340 0ustar gramosgramosUse 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-3.2.5/test/fixtures/sass_project/db/0000755000175000017500000000000011771756530021074 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/db/seeds.rb0000644000175000017500000000052711771756530022530 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/0000755000175000017500000000000011771756530021754 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/config/routes.rb0000644000175000017500000000340211771756530023621 0ustar gramosgramosScssProject::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-3.2.5/test/fixtures/sass_project/config/locales/0000755000175000017500000000000011771756530023376 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/config/locales/en.yml0000644000175000017500000000032611771756530024524 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/initializers/0000755000175000017500000000000011771756530024462 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/config/initializers/wrap_parameters.rb0000644000175000017500000000075511771756530030212 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/initializers/session_store.rb0000644000175000017500000000065511771756530027714 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/initializers/secret_token.rb0000644000175000017500000000076611771756530027505 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/initializers/mime_types.rb0000644000175000017500000000031511771756530027161 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/initializers/inflections.rb0000644000175000017500000000057011771756530027326 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/initializers/backtrace_silencers.rb0000644000175000017500000000062411771756530030777 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/environments/0000755000175000017500000000000011771756530024503 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/config/environments/test.rb0000644000175000017500000000322511771756530026011 0ustar gramosgramosScssProject::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 config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" # Log error messages when you accidentally call methods on nil config.whiny_nils = true # 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-3.2.5/test/fixtures/sass_project/config/environments/production.rb0000644000175000017500000000371211771756530027221 0ustar gramosgramosScssProject::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 # 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) config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true # 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 = :debug # 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-3.2.5/test/fixtures/sass_project/config/environments/development.rb0000644000175000017500000000175211771756530027357 0ustar gramosgramosScssProject::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 # Log error messages when you accidentally call methods on nil. config.whiny_nils = true # 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 # Do not compress assets config.assets.compress = false end sass-rails-3.2.5/test/fixtures/sass_project/config/environment.rb0000644000175000017500000000023311771756530024643 0ustar gramosgramos# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application ScssProject::Application.initialize! sass-rails-3.2.5/test/fixtures/sass_project/config/database.yml0000644000175000017500000000110011771756530024233 0ustar gramosgramos# 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-3.2.5/test/fixtures/sass_project/config/boot.rb0000644000175000017500000000027711771756530023252 0ustar gramosgramosrequire '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-3.2.5/test/fixtures/sass_project/config/application.rb0000644000175000017500000000441511771756530024610 0ustar gramosgramosrequire 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-3.2.5/test/fixtures/sass_project/config.ru0000644000175000017500000000024111771756530022321 0ustar gramosgramos# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run ScssProject::Application sass-rails-3.2.5/test/fixtures/sass_project/app/0000755000175000017500000000000011771756530021267 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/views/0000755000175000017500000000000011771756530022424 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/views/layouts/0000755000175000017500000000000011771756530024124 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/views/layouts/application.html.erb0000644000175000017500000000033511771756530030065 0ustar gramosgramos ScssProject <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-3.2.5/test/fixtures/sass_project/app/models/0000755000175000017500000000000011771756530022552 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/models/.gitkeep0000644000175000017500000000000011771756530024171 0ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/mailers/0000755000175000017500000000000011771756530022723 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/mailers/.gitkeep0000644000175000017500000000000011771756530024342 0ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/helpers/0000755000175000017500000000000011771756530022731 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/helpers/application_helper.rb0000644000175000017500000000003511771756530027116 0ustar gramosgramosmodule ApplicationHelper end sass-rails-3.2.5/test/fixtures/sass_project/app/controllers/0000755000175000017500000000000011771756530023635 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/controllers/application_controller.rb0000644000175000017500000000012011771756530030721 0ustar gramosgramosclass ApplicationController < ActionController::Base protect_from_forgery end sass-rails-3.2.5/test/fixtures/sass_project/app/assets/0000755000175000017500000000000011771756530022571 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/assets/stylesheets/0000755000175000017500000000000011771756530025145 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/assets/stylesheets/application.css0000644000175000017500000000053611771756530030166 0ustar gramosgramos/* * 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-3.2.5/test/fixtures/sass_project/app/assets/javascripts/0000755000175000017500000000000011771756530025122 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/assets/javascripts/application.js0000644000175000017500000000071711771756530027770 0ustar gramosgramos// 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-3.2.5/test/fixtures/sass_project/app/assets/images/0000755000175000017500000000000011771756530024036 5ustar gramosgramossass-rails-3.2.5/test/fixtures/sass_project/app/assets/images/rails.png0000644000175000017500000001476611771756530025674 0ustar gramosgramos‰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-3.2.5/test/fixtures/sass_project/Rakefile0000644000175000017500000000042411771756530022154 0ustar gramosgramos#!/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-3.2.5/test/fixtures/sass_project/README0000644000175000017500000002177011771756530021376 0ustar gramosgramos== 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-3.2.5/test/fixtures/sass_project/Gemfile0000644000175000017500000000024711771756530022005 0ustar gramosgramossource 'http://rubygems.org' gem 'rails', "~> 3.2.0.rc1" gem 'sqlite3' # Asset template engines gem 'sass-rails', :path => File.expand_path('../../../..', __FILE__) sass-rails-3.2.5/test/fixtures/sass_project/.gitignore0000644000175000017500000000006111771756530022474 0ustar gramosgramos.bundle db/*.sqlite3 log/*.log tmp/ .sass-cache/ sass-rails-3.2.5/test/fixtures/engine_project/0000755000175000017500000000000011771756530021003 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/0000755000175000017500000000000011771756530021762 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/0000755000175000017500000000000011771756530023115 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/script/0000755000175000017500000000000011771756530024421 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/script/rails0000755000175000017500000000044711771756530025466 0ustar gramosgramos#!/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-3.2.5/test/fixtures/engine_project/test/dummy/public/0000755000175000017500000000000011771756530024373 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/public/favicon.ico0000644000175000017500000000000011771756530026502 0ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/public/500.html0000644000175000017500000000133011771756530025562 0ustar gramosgramos 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-3.2.5/test/fixtures/engine_project/test/dummy/public/422.html0000644000175000017500000000130711771756530025571 0ustar gramosgramos 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-3.2.5/test/fixtures/engine_project/test/dummy/public/404.html0000644000175000017500000000133011771756530025565 0ustar gramosgramos 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-3.2.5/test/fixtures/engine_project/test/dummy/log/0000755000175000017500000000000011771756530023676 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/log/.gitkeep0000644000175000017500000000000011771756530025315 0ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/lib/0000755000175000017500000000000011771756530023663 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/lib/assets/0000755000175000017500000000000011771756530025165 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep0000644000175000017500000000000011771756530026604 0ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/db/0000755000175000017500000000000011771756530023502 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/db/seeds.rb0000644000175000017500000000052711771756530025136 0ustar gramosgramos# 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-3.2.5/test/fixtures/engine_project/test/dummy/config/0000755000175000017500000000000011771756530024362 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/routes.rb0000644000175000017500000000013111771756530026223 0ustar gramosgramosRails.application.routes.draw do mount EngineProject::Engine => "/engine_project" end sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/locales/0000755000175000017500000000000011771756530026004 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/locales/en.yml0000644000175000017500000000032611771756530027132 0ustar gramosgramos# 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-3.2.5/test/fixtures/engine_project/test/dummy/config/initializers/0000755000175000017500000000000011771756530027070 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb0000644000175000017500000000066711771756530032622 0ustar gramosgramos# 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. 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-3.2.5/test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb0000644000175000017500000000063211771756530032315 0ustar gramosgramos# Be sure to restart your server when you modify this file. Dummy::Application.config.session_store :cookie_store, :key => '_dummy_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") # Dummy::Application.config.session_store :active_record_store sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb0000644000175000017500000000076011771756530032105 0ustar gramosgramos# 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. Dummy::Application.config.secret_token = 'd6e88517fac324a6d3fa410aa3a90b74b625b0805b4a56377f183909840ec2e55cc7d14e3a6d422fc33e10d25aa658d2a340dd344126b6e8a7321a3e43e688e4' sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb0000644000175000017500000000031511771756530031567 0ustar gramosgramos# 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-3.2.5/test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb0000644000175000017500000000057011771756530031734 0ustar gramosgramos# 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-3.2.5/test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb0000644000175000017500000000062411771756530033405 0ustar gramosgramos# 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-3.2.5/test/fixtures/engine_project/test/dummy/config/environments/0000755000175000017500000000000011771756530027111 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/environments/test.rb0000644000175000017500000000321711771756530030420 0ustar gramosgramosDummy::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 config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" # Log error messages when you accidentally call methods on nil config.whiny_nils = true # 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-3.2.5/test/fixtures/engine_project/test/dummy/config/environments/production.rb0000644000175000017500000000354411771756530031632 0ustar gramosgramosDummy::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 # 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) config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true # 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 # See everything in the log (default is :info) # config.log_level = :debug # 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-3.2.5/test/fixtures/engine_project/test/dummy/config/environments/development.rb0000644000175000017500000000174411771756530031766 0ustar gramosgramosDummy::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 # Log error messages when you accidentally call methods on nil. config.whiny_nils = true # 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 # Do not compress assets config.assets.compress = false end sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/environment.rb0000644000175000017500000000022511771756530027252 0ustar gramosgramos# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Dummy::Application.initialize! sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/config/database.yml0000644000175000017500000000110011771756530026641 0ustar gramosgramos# 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-3.2.5/test/fixtures/engine_project/test/dummy/config/boot.rb0000644000175000017500000000035311771756530025653 0ustar gramosgramosrequire 'rubygems' gemfile = 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-3.2.5/test/fixtures/engine_project/test/dummy/config/application.rb0000644000175000017500000000322111771756530027210 0ustar gramosgramosrequire File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require 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. # 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 # 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-3.2.5/test/fixtures/engine_project/test/dummy/config.ru0000644000175000017500000000023311771756530024730 0ustar gramosgramos# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) run Dummy::Application sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/0000755000175000017500000000000011771756530023675 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/views/0000755000175000017500000000000011771756530025032 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/views/layouts/0000755000175000017500000000000011771756530026532 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb0000644000175000017500000000032711771756530032474 0ustar gramosgramos Dummy <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/models/0000755000175000017500000000000011771756530025160 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/models/.gitkeep0000644000175000017500000000000011771756530026577 0ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/mailers/0000755000175000017500000000000011771756530025331 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep0000644000175000017500000000000011771756530026750 0ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/helpers/0000755000175000017500000000000011771756530025337 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb0000644000175000017500000000003511771756530031524 0ustar gramosgramosmodule ApplicationHelper end sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/controllers/0000755000175000017500000000000011771756530026243 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb0000644000175000017500000000012011771756530033327 0ustar gramosgramosclass ApplicationController < ActionController::Base protect_from_forgery end sass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/assets/0000755000175000017500000000000011771756530025177 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/0000755000175000017500000000000011771756530027553 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css0000644000175000017500000000053611771756530032574 0ustar gramosgramos/* * 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-3.2.5/test/fixtures/engine_project/test/dummy/app/assets/javascripts/0000755000175000017500000000000011771756530027530 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js0000644000175000017500000000071711771756530032376 0ustar gramosgramos// 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-3.2.5/test/fixtures/engine_project/test/dummy/Rakefile0000644000175000017500000000041611771756530024563 0ustar gramosgramos#!/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__) Dummy::Application.load_tasks sass-rails-3.2.5/test/fixtures/engine_project/script/0000755000175000017500000000000011771756530022307 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/script/rails0000755000175000017500000000043311771756530023347 0ustar gramosgramos#!/usr/bin/env ruby #!/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_PATH = File.expand_path('../..', __FILE__) load File.expand_path('../../test/dummy/script/rails', __FILE__) sass-rails-3.2.5/test/fixtures/engine_project/lib/0000755000175000017500000000000011771756530021551 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/lib/tasks/0000755000175000017500000000000011771756530022676 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake0000644000175000017500000000013411771756530027740 0ustar gramosgramos# desc "Explaining what the task does" # task :engine_project do # # Task goes here # end sass-rails-3.2.5/test/fixtures/engine_project/lib/engine_project/0000755000175000017500000000000011771756530024544 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/lib/engine_project/version.rb0000644000175000017500000000005511771756530026556 0ustar gramosgramosmodule EngineProject VERSION = "0.0.1" end sass-rails-3.2.5/test/fixtures/engine_project/lib/engine_project/engine.rb0000644000175000017500000000014211771756530026333 0ustar gramosgramosmodule EngineProject class Engine < Rails::Engine isolate_namespace EngineProject end end sass-rails-3.2.5/test/fixtures/engine_project/lib/engine_project.rb0000644000175000017500000000007211771756530025070 0ustar gramosgramosrequire "engine_project/engine" module EngineProject end sass-rails-3.2.5/test/fixtures/engine_project/engine_project.gemspec0000644000175000017500000000031111771756530025336 0ustar gramosgramosGem::Specification.new do |s| s.name = 'engine_project' s.version = '0.0.0' s.add_dependency "rails", "~> 3.2.0.rc1" s.add_dependency "sqlite3" s.add_dependency "sass-rails", "~> 3.2.0" end sass-rails-3.2.5/test/fixtures/engine_project/db/0000755000175000017500000000000011771756530021370 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/db/seeds.rb0000644000175000017500000000052711771756530023024 0ustar gramosgramos# 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-3.2.5/test/fixtures/engine_project/config/0000755000175000017500000000000011771756530022250 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/config/routes.rb0000644000175000017500000000005111771756530024112 0ustar gramosgramosEngineProject::Engine.routes.draw do end sass-rails-3.2.5/test/fixtures/engine_project/app/0000755000175000017500000000000011771756530021563 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/views/0000755000175000017500000000000011771756530022720 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/views/layouts/0000755000175000017500000000000011771756530024420 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/views/layouts/engine_project/0000755000175000017500000000000011771756530027413 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb0000644000175000017500000000037511771756530033360 0ustar gramosgramos EngineProject <%= stylesheet_link_tag "engine_project/application" %> <%= javascript_include_tag "engine_project/application" %> <%= csrf_meta_tags %> <%= yield %> sass-rails-3.2.5/test/fixtures/engine_project/app/helpers/0000755000175000017500000000000011771756530023225 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/helpers/engine_project/0000755000175000017500000000000011771756530026220 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb0000644000175000017500000000007211771756530032406 0ustar gramosgramosmodule EngineProject module ApplicationHelper end end sass-rails-3.2.5/test/fixtures/engine_project/app/controllers/0000755000175000017500000000000011771756530024131 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/controllers/engine_project/0000755000175000017500000000000011771756530027124 5ustar gramosgramos././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootsass-rails-3.2.5/test/fixtures/engine_project/app/controllers/engine_project/application_controller.rbsass-rails-3.2.5/test/fixtures/engine_project/app/controllers/engine_project/application_controller.0000644000175000017500000000012611771756530033672 0ustar gramosgramosmodule EngineProject class ApplicationController < ActionController::Base end end sass-rails-3.2.5/test/fixtures/engine_project/app/assets/0000755000175000017500000000000011771756530023065 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/assets/stylesheets/0000755000175000017500000000000011771756530025441 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/assets/stylesheets/engine_project/0000755000175000017500000000000011771756530030434 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css0000644000175000017500000000053611771756530033455 0ustar gramosgramos/* * 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-3.2.5/test/fixtures/engine_project/app/assets/javascripts/0000755000175000017500000000000011771756530025416 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/assets/javascripts/engine_project/0000755000175000017500000000000011771756530030411 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js0000644000175000017500000000071711771756530033257 0ustar gramosgramos// 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-3.2.5/test/fixtures/engine_project/app/assets/images/0000755000175000017500000000000011771756530024332 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/assets/images/engine_project/0000755000175000017500000000000011771756530027325 5ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep0000644000175000017500000000000011771756530030744 0ustar gramosgramossass-rails-3.2.5/test/fixtures/engine_project/Rakefile0000644000175000017500000000150011771756530022444 0ustar gramosgramos#!/usr/bin/env rake begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end begin require 'rdoc/task' rescue LoadError require 'rdoc/rdoc' require 'rake/rdoctask' RDoc::Task = Rake::RDocTask end 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 :name => 'engine_project' 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-3.2.5/test/fixtures/engine_project/README.rdoc0000644000175000017500000000007111771756530022607 0ustar gramosgramos= EngineProject This project rocks and uses MIT-LICENSE.sass-rails-3.2.5/test/fixtures/engine_project/Gemfile0000644000175000017500000000015411771756530022276 0ustar gramosgramossource 'http://rubygems.org' gemspec gem 'sass-rails', :path => File.expand_path('../../../..', __FILE__) sass-rails-3.2.5/test/fixtures/engine_project/.gitignore0000644000175000017500000000012411771756530022770 0ustar gramosgramos.bundle/ log/*.log pkg/ test/dummy/db/*.sqlite3 test/dummy/log/*.log test/dummy/tmp/sass-rails-3.2.5/sass-rails.gemspec0000644000175000017500000000164111771756530016610 0ustar gramosgramos# -*- 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 = "" s.summary = %q{Sass adapter for the Rails asset pipeline.} s.description = %q{Sass adapter for the Rails asset pipeline.} s.rubyforge_project = "sass-rails" s.add_runtime_dependency 'sass', '>= 3.1.10' s.add_runtime_dependency 'railties', '~> 3.2.0' s.add_runtime_dependency 'tilt', '~> 1.3' s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] end sass-rails-3.2.5/lib/0000755000175000017500000000000011771756530013726 5ustar gramosgramossass-rails-3.2.5/lib/sass/0000755000175000017500000000000011771756530014677 5ustar gramosgramossass-rails-3.2.5/lib/sass/rails/0000755000175000017500000000000011771756530016011 5ustar gramosgramossass-rails-3.2.5/lib/sass/rails/version.rb0000644000175000017500000000007311771756530020023 0ustar gramosgramosmodule Sass module Rails VERSION = "3.2.5" end end sass-rails-3.2.5/lib/sass/rails/template_handlers.rb0000644000175000017500000000472711771756530022043 0ustar gramosgramosrequire 'tilt' require 'sprockets' module Sass::Rails class Resolver attr_accessor :context def initialize(context) @context = context end def resolve(path, content_type = :self) options = {} options[:content_type] = content_type unless content_type.nil? context.resolve(path, options) rescue Sprockets::FileNotFound, Sprockets::ContentTypeMismatch nil end def source_path(path, ext) context.asset_paths.compute_source_path(path, ::Rails.application.config.assets.prefix, ext) end def public_path(path, scope = nil, options = {}) context.asset_paths.compute_public_path(path, ::Rails.application.config.assets.prefix, options) end def process(path) context.environment[path].to_s end def image_path(img) context.image_path(img) end def video_path(video) context.video_path(video) end def audio_path(audio) context.audio_path(audio) end def javascript_path(javascript) context.javascript_path(javascript) end def stylesheet_path(stylesheet) context.stylesheet_path(stylesheet) end def font_path(font) context.font_path(font) end end class SassTemplate < Tilt::SassTemplate self.default_mime_type = 'text/css' def self.engine_initialized? defined?(::Sass::Engine) end def initialize_engine require_template_library 'sass' end def syntax :sass end def sass_options_from_rails(scope) scope.environment.context_class.sass_config end def sass_options(scope) importer = self.importer(scope) options = sass_options_from_rails(scope) load_paths = (options[:load_paths] || []).dup load_paths.unshift(importer) resolver = Resolver.new(scope) css_filename = resolver.source_path(scope.logical_path, 'css') options.merge( :filename => eval_file, :css_filename => css_filename, :line => line, :syntax => syntax, :importer => importer, :load_paths => load_paths, :custom => { :resolver => resolver } ) end def importer(scope) Sass::Rails::Importer.new(scope) end def prepare end def evaluate(scope, locals, &block) Sass::Engine.new(data, sass_options(scope)).render end end class ScssTemplate < SassTemplate self.default_mime_type = 'text/css' def syntax :scss end end end sass-rails-3.2.5/lib/sass/rails/railtie.rb0000644000175000017500000000560611771756530017776 0ustar gramosgramosrequire 'sprockets/railtie' module Sass::Rails class Railtie < ::Rails::Railtie module SassContext attr_accessor :sass_config end config.sass = ActiveSupport::OrderedOptions.new # Establish static configuration defaults # Emit scss files during stylesheet generation of scaffold config.sass.preferred_syntax = :scss # Use expanded output instead of the sass default of :nested config.sass.style = :expanded # 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 overridedden by passing: # --stylesheet_engine=sass # to the rails generate command config.app_generators.stylesheet_engine config.sass.preferred_syntax config.before_initialize do |app| require 'sass' if app.config.assets.enabled require 'sprockets' Sprockets::Engines #force autoloading Sprockets.register_engine '.sass', Sass::Rails::SassTemplate Sprockets.register_engine '.scss', Sass::Rails::ScssTemplate end 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 if app.assets app.assets.context_class.extend(SassContext) app.assets.context_class.sass_config = app.config.sass end Sass.logger = app.config.sass.logger end initializer :setup_compression, :group => :all do |app| if app.config.assets.compress app.config.sass.style = :compressed app.config.assets.css_compressor = CssCompressor.new end end end end sass-rails-3.2.5/lib/sass/rails/logger.rb0000644000175000017500000000066311771756530017622 0ustar gramosgramosrequire '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-3.2.5/lib/sass/rails/importer.rb0000644000175000017500000000717511771756530020211 0ustar gramosgramosrequire 'sprockets' module Sass::Rails class Importer GLOB = /\*|\[.+\]/ PARTIAL = /^_/ HAS_EXTENSION = /\.css(.s[ac]ss)?$/ SASS_EXTENSIONS = { ".css.sass" => :sass, ".css.scss" => :scss, ".sass" => :sass, ".scss" => :scss } attr_reader :context def initialize(context) @context = context @resolver = Resolver.new(context) end def sass_file?(filename) filename = filename.to_s SASS_EXTENSIONS.keys.any?{|ext| filename[ext]} end def syntax(filename) filename = filename.to_s SASS_EXTENSIONS.each {|ext, syntax| return syntax if filename[(ext.size+2)..-1][ext]} nil end def resolve(name, base_pathname = nil) name = Pathname.new(name) if base_pathname && base_pathname.to_s.size > 0 root = Pathname.new(context.root_path) name = base_pathname.relative_path_from(root).join(name) end partial_name = name.dirname.join("_#{name.basename}") @resolver.resolve(name) || @resolver.resolve(partial_name) end def find_relative(name, base, options) base_pathname = Pathname.new(base) if name =~ GLOB glob_imports(name, base_pathname, options) elsif pathname = resolve(name, base_pathname.dirname) context.depend_on(pathname) if sass_file?(pathname) Sass::Engine.new(pathname.read, options.merge(:filename => pathname.to_s, :importer => self, :syntax => syntax(pathname))) else Sass::Engine.new(@resolver.process(pathname), options.merge(:filename => pathname.to_s, :importer => self, :syntax => :scss)) end else nil end end def find(name, options) if name =~ GLOB nil # globs must be relative elsif pathname = resolve(name) context.depend_on(pathname) if sass_file?(pathname) Sass::Engine.new(pathname.read, options.merge(:filename => pathname.to_s, :importer => self, :syntax => syntax(pathname))) else Sass::Engine.new(@resolver.process(pathname), options.merge(:filename => pathname.to_s, :importer => self, :syntax => :scss)) end else nil end end def each_globbed_file(glob, base_pathname, options) Dir["#{base_pathname}/#{glob}"].sort.each do |filename| next if filename == options[:filename] yield filename if File.directory?(filename) || context.asset_requirable?(filename) end end def glob_imports(glob, base_pathname, options) contents = "" each_globbed_file(glob, base_pathname.dirname, options) do |filename| if File.directory?(filename) context.depend_on(filename) elsif context.asset_requirable?(filename) context.depend_on(filename) contents << "@import #{Pathname.new(filename).relative_path_from(base_pathname.dirname).to_s.inspect};\n" end end return nil if contents.empty? Sass::Engine.new(contents, options.merge( :filename => base_pathname.to_s, :importer => self, :syntax => :scss )) end def mtime(name, options) if name =~ GLOB && options[:filename] mtime = nil each_globbed_file(name, Pathname.new(options[:filename]).dirname, options) do |p| mtime ||= File.mtime(p) mtime = [mtime, File.mtime(p)].max end mtime elsif pathname = resolve(name) pathname.mtime end end def key(name, options) ["Sprockets:" + File.dirname(File.expand_path(name)), File.basename(name)] end def to_s "Sass::Rails::Importer(#{context.pathname})" end end endsass-rails-3.2.5/lib/sass/rails/helpers.rb0000644000175000017500000000235411771756530020004 0ustar gramosgramosmodule Sass module Rails module Helpers def asset_data_url(path) data = context_asset_data_uri(path.value) Sass::Script::String.new(%Q{url(#{data})}) end def asset_path(asset, kind) Sass::Script::String.new(public_path(asset.value, kind.value), true) end def asset_url(asset, kind) Sass::Script::String.new(%Q{url(#{public_path(asset.value, kind.value)})}) end [:image, :video, :audio, :javascript, :stylesheet, :font].each do |asset_class| class_eval %Q{ def #{asset_class}_path(asset) Sass::Script::String.new(resolver.#{asset_class}_path(asset.value), true) end def #{asset_class}_url(asset) Sass::Script::String.new("url(" + resolver.#{asset_class}_path(asset.value) + ")") end }, __FILE__, __LINE__ - 6 end protected def resolver options[:custom][:resolver] end def public_path(asset, kind) resolver.public_path(asset, kind.pluralize) end def context_asset_data_uri(path) resolver.context.asset_data_uri(path) end end end end module Sass module Script module Functions include Sass::Rails::Helpers end end end sass-rails-3.2.5/lib/sass/rails/compressor.rb0000644000175000017500000000064011771756530020532 0ustar gramosgramosrequire 'sass' module Sass module Rails class CssCompressor def compress(css) if css.count("\n") > 2 Sass::Engine.new(css, :syntax => :scss, :cache => false, :read_cache => false, :style => :compressed).render else css end end end end end sass-rails-3.2.5/lib/sass/rails.rb0000644000175000017500000000076411771756530016345 0ustar gramosgramosmodule Sass autoload :Script, 'sass/rails/helpers' module Rails autoload :CssCompressor, 'sass/rails/compressor' autoload :Importer, 'sass/rails/importer' autoload :Logger, 'sass/rails/logger' autoload :Resolver, 'sass/rails/template_handlers' autoload :SassTemplate, 'sass/rails/template_handlers' autoload :ScssTemplate, 'sass/rails/template_handlers' end end require 'sass/rails/version' require 'sass/rails/helpers' require 'sass/rails/railtie' sass-rails-3.2.5/lib/sass-rails.rb0000644000175000017500000000002511771756530016331 0ustar gramosgramosrequire 'sass/rails' sass-rails-3.2.5/lib/rails/0000755000175000017500000000000011771756530015040 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/0000755000175000017500000000000011771756530017211 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/scss/0000755000175000017500000000000011771756530020164 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/scss/scaffold/0000755000175000017500000000000011771756530021745 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/scss/scaffold/scaffold_generator.rb0000644000175000017500000000027111771756530026121 0ustar gramosgramosrequire "rails/generators/sass_scaffold" module Scss module Generators class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase def syntax() :scss end end end end sass-rails-3.2.5/lib/rails/generators/scss/assets/0000755000175000017500000000000011771756530021466 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/scss/assets/templates/0000755000175000017500000000000011771756530023464 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/scss/assets/templates/stylesheet.css.scss0000644000175000017500000000026611771756530027345 0ustar gramosgramos// 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-3.2.5/lib/rails/generators/scss/assets/assets_generator.rb0000644000175000017500000000054111771756530025363 0ustar gramosgramosrequire "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.css.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.scss") end end end end sass-rails-3.2.5/lib/rails/generators/sass_scaffold.rb0000644000175000017500000000073611771756530022356 0ustar gramosgramosrequire "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.css.#{syntax}", converted_contents end end end end sass-rails-3.2.5/lib/rails/generators/sass/0000755000175000017500000000000011771756530020162 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/sass/scaffold/0000755000175000017500000000000011771756530021743 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/sass/scaffold/scaffold_generator.rb0000644000175000017500000000027011771756530026116 0ustar gramosgramosrequire "rails/generators/sass_scaffold" module Sass module Generators class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase def syntax() :sass end end end end sass-rails-3.2.5/lib/rails/generators/sass/assets/0000755000175000017500000000000011771756530021464 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/sass/assets/templates/0000755000175000017500000000000011771756530023462 5ustar gramosgramossass-rails-3.2.5/lib/rails/generators/sass/assets/templates/stylesheet.css.sass0000644000175000017500000000025711771756530027341 0ustar gramosgramos// 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-3.2.5/lib/rails/generators/sass/assets/assets_generator.rb0000644000175000017500000000054111771756530025361 0ustar gramosgramosrequire "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.css.sass", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.sass") end end end end sass-rails-3.2.5/Rakefile0000644000175000017500000000031611771756530014625 0ustar gramosgramosrequire '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 sass-rails-3.2.5/README.markdown0000644000175000017500000000742311771756530015667 0ustar gramosgramos# 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. ### Example MyProject::Application.configure do config.sass.line_comments = false config.sass.syntax = :nested 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. ### Options The [list of supported options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options) can be found on the Sass Website with the following caveats: 1. Output compression is now controlled via the `config.assets.compress` boolean option instead of through the `:style` option. 2. `:never_update` - This option is not supported. Instead set `config.assets.enabled = false` 3. `: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. 4. `:always_check` - This option is not supported. Sprockets always checks in development. 5. `:syntax` - This is determined by the file's extensions. 6. `:filename` - This is determined by the file's name. 7. `:line` - This is provided by the template handler. ## 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. E.g. `@import "mixins/*"` will import all the files in the mixins folder and `@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, $asset-class)` - Returns a string to the asset. For example: `asset-path("rails.png", image)` becomes `"/assets/rails.png"` * `asset-url($relative-asset-path, $asset-class)` - Returns url reference to the asset. For example: `asset-url("rails.png", image)` becomes `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. For example: `image-url("rails.png")` becomes `url(/assets/rails.png)` and `image-path("rails.png")` becomes `"/assets/rails.png"`. * `asset-data-url($relative-asset-path)` - Returns url reference to the Base64-encoded asset at the specified path. For example: `asset-data-url("rails.png")` becomes `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. sass-rails-3.2.5/MIT-LICENSE0000644000175000017500000000205111771756530014612 0ustar gramosgramosCopyright (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-3.2.5/Gemfile0000644000175000017500000000057011771756530014455 0ustar gramosgramossource "http://rubygems.org" # Specify your gem's dependencies in sass-rails.gemspec gemspec # Depend on the latest Rails 3.2 gem "rails", :git => 'git://github.com/rails/rails.git', :branch => '3-2-stable' gem "sqlite3" gem "sfl", "~> 2.0" gem "mocha" # To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+) # gem 'ruby-debug' # gem 'ruby-debug19' sass-rails-3.2.5/CHANGELOG.md0000644000175000017500000000075411771756530014777 0ustar gramosgramosCHANGELOG ========= 3.1.5.rc.1 (Oct 16, 2011) --------------------- * Several bug fixes * Performance and bug fixes when compressing stylesheets * Update dependency to latest sass stable release to fix caching issues. 3.1.2 (Sept 15, 2011) --------------------- * Add asset-data-url helper for base-64 encoding of assets within stylesheets. * Add explicit dependency on sprockets. 3.1.1 (Sept 13, 2011) --------------------- * Add explicit version dependency on tilt. * Add MIT License. sass-rails-3.2.5/.travis.yml0000644000175000017500000000047611771756530015300 0ustar gramosgramosrvm: - 1.8.7 - 1.9.2 - 1.9.3 - ree - jruby - rbx script: bundle exec rake test notifications: email: false campfire: secure: "CGWvthGkBKNnTnk9YSmf9AXKoiRI33fCl5D3jU4nx3cOPu6kv2R9nMjt9EAo\nOuS4Q85qNSf4VNQ2cUPNiNYSWQ+XiTfivKvDUw/QW9r1FejYyeWarMsSBWA+\n0fADjF1M2dkDIVLgYPfwoXEv7l+j654F1KLKB69F0F/netwP9CQ=" sass-rails-3.2.5/.gitignore0000644000175000017500000000005511771756530015150 0ustar gramosgramos*.gem .bundle Gemfile.lock pkg/* .sass-cache