sass-rails3 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.travis.yml +22 -0
- data/CHANGELOG.md +40 -0
- data/Gemfile +8 -0
- data/MIT-LICENSE +21 -0
- data/README.md +98 -0
- data/Rakefile +29 -0
- data/lib/rails/generators/sass/assets/assets_generator.rb +13 -0
- data/lib/rails/generators/sass/assets/templates/stylesheet.css.sass +3 -0
- data/lib/rails/generators/sass/scaffold/scaffold_generator.rb +9 -0
- data/lib/rails/generators/sass_scaffold.rb +16 -0
- data/lib/rails/generators/scss/assets/assets_generator.rb +13 -0
- data/lib/rails/generators/scss/assets/templates/stylesheet.css.scss +3 -0
- data/lib/rails/generators/scss/scaffold/scaffold_generator.rb +10 -0
- data/lib/sass-rails3.rb +1 -0
- data/lib/sass/rails.rb +10 -0
- data/lib/sass/rails/helpers.rb +30 -0
- data/lib/sass/rails/importer.rb +91 -0
- data/lib/sass/rails/logger.rb +21 -0
- data/lib/sass/rails/railtie.rb +62 -0
- data/lib/sass/rails/version.rb +5 -0
- data/sass-rails3.gemspec +26 -0
- data/sass-rails3.gemspec.erb +26 -0
- data/test/fixtures/alternate_config_project/.gitignore +5 -0
- data/test/fixtures/alternate_config_project/Gemfile +7 -0
- data/test/fixtures/alternate_config_project/README +261 -0
- data/test/fixtures/alternate_config_project/Rakefile +7 -0
- data/test/fixtures/alternate_config_project/app/assets/images/1x1.png +0 -0
- data/test/fixtures/alternate_config_project/app/assets/images/rails.png +0 -0
- data/test/fixtures/alternate_config_project/app/assets/javascripts/application.js +9 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/_top_level_partial.css.scss +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/application.css.scss +32 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/css_application.css +7 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/globbed.css.scss +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_sass_import.css.sass +5 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_scss_import.css.scss +9 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_without_css_ext.scss +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass +2 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/another_plain.css +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/plain.css +3 -0
- data/test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/second_level.css.scss +1 -0
- data/test/fixtures/alternate_config_project/app/controllers/application_controller.rb +3 -0
- data/test/fixtures/alternate_config_project/app/helpers/application_helper.rb +2 -0
- data/test/fixtures/alternate_config_project/app/mailers/.gitkeep +0 -0
- data/test/fixtures/alternate_config_project/app/models/.gitkeep +0 -0
- data/test/fixtures/alternate_config_project/app/views/layouts/application.html.erb +14 -0
- data/test/fixtures/alternate_config_project/config.ru +4 -0
- data/test/fixtures/alternate_config_project/config/application.rb +49 -0
- data/test/fixtures/alternate_config_project/config/boot.rb +6 -0
- data/test/fixtures/alternate_config_project/config/database.yml +25 -0
- data/test/fixtures/alternate_config_project/config/environment.rb +5 -0
- data/test/fixtures/alternate_config_project/config/environments/development.rb +27 -0
- data/test/fixtures/alternate_config_project/config/environments/production.rb +56 -0
- data/test/fixtures/alternate_config_project/config/environments/test.rb +38 -0
- data/test/fixtures/alternate_config_project/config/initializers/backtrace_silencers.rb +7 -0
- data/test/fixtures/alternate_config_project/config/initializers/inflections.rb +10 -0
- data/test/fixtures/alternate_config_project/config/initializers/mime_types.rb +5 -0
- data/test/fixtures/alternate_config_project/config/initializers/secret_token.rb +7 -0
- data/test/fixtures/alternate_config_project/config/initializers/session_store.rb +8 -0
- data/test/fixtures/alternate_config_project/config/initializers/wrap_parameters.rb +12 -0
- data/test/fixtures/alternate_config_project/config/locales/en.yml +5 -0
- data/test/fixtures/alternate_config_project/config/routes.rb +58 -0
- data/test/fixtures/alternate_config_project/db/seeds.rb +7 -0
- data/test/fixtures/alternate_config_project/doc/README_FOR_APP +2 -0
- data/test/fixtures/alternate_config_project/lib/tasks/.gitkeep +0 -0
- data/test/fixtures/alternate_config_project/log/.gitkeep +0 -0
- data/test/fixtures/alternate_config_project/public/404.html +26 -0
- data/test/fixtures/alternate_config_project/public/422.html +26 -0
- data/test/fixtures/alternate_config_project/public/500.html +26 -0
- data/test/fixtures/alternate_config_project/public/favicon.ico +0 -0
- data/test/fixtures/alternate_config_project/public/index.html +241 -0
- data/test/fixtures/alternate_config_project/public/robots.txt +5 -0
- data/test/fixtures/alternate_config_project/script/rails +6 -0
- data/test/fixtures/alternate_config_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/fixtures/alternate_config_project/vendor/plugins/.gitkeep +0 -0
- data/test/fixtures/engine_project/.gitignore +8 -0
- data/test/fixtures/engine_project/Gemfile +14 -0
- data/test/fixtures/engine_project/MIT-LICENSE +20 -0
- data/test/fixtures/engine_project/README.rdoc +3 -0
- data/test/fixtures/engine_project/Rakefile +34 -0
- data/test/fixtures/engine_project/app/assets/images/engine_project/.keep +0 -0
- data/test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js +16 -0
- data/test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css +13 -0
- data/test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb +4 -0
- data/test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb +4 -0
- data/test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb +14 -0
- data/test/fixtures/engine_project/config/routes.rb +2 -0
- data/test/fixtures/engine_project/engine_project.gemspec +23 -0
- data/test/fixtures/engine_project/lib/engine_project.rb +4 -0
- data/test/fixtures/engine_project/lib/engine_project/engine.rb +5 -0
- data/test/fixtures/engine_project/lib/engine_project/version.rb +3 -0
- data/test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake +4 -0
- data/test/fixtures/engine_project/script/rails +8 -0
- data/test/fixtures/engine_project/test/dummy/README.rdoc +28 -0
- data/test/fixtures/engine_project/test/dummy/Rakefile +6 -0
- data/test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js +16 -0
- data/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/fixtures/engine_project/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/fixtures/engine_project/test/dummy/app/mailers/.keep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/models/.keep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/models/concerns/.keep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/fixtures/engine_project/test/dummy/bin/bundle +3 -0
- data/test/fixtures/engine_project/test/dummy/bin/rails +4 -0
- data/test/fixtures/engine_project/test/dummy/bin/rake +4 -0
- data/test/fixtures/engine_project/test/dummy/config.ru +4 -0
- data/test/fixtures/engine_project/test/dummy/config/application.rb +23 -0
- data/test/fixtures/engine_project/test/dummy/config/boot.rb +9 -0
- data/test/fixtures/engine_project/test/dummy/config/database.yml +25 -0
- data/test/fixtures/engine_project/test/dummy/config/environment.rb +5 -0
- data/test/fixtures/engine_project/test/dummy/config/environments/development.rb +27 -0
- data/test/fixtures/engine_project/test/dummy/config/environments/production.rb +80 -0
- data/test/fixtures/engine_project/test/dummy/config/environments/test.rb +36 -0
- data/test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/fixtures/engine_project/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/fixtures/engine_project/test/dummy/config/locales/en.yml +23 -0
- data/test/fixtures/engine_project/test/dummy/config/routes.rb +4 -0
- data/test/fixtures/engine_project/test/dummy/lib/assets/.keep +0 -0
- data/test/fixtures/engine_project/test/dummy/log/.keep +0 -0
- data/test/fixtures/engine_project/test/dummy/public/404.html +27 -0
- data/test/fixtures/engine_project/test/dummy/public/422.html +26 -0
- data/test/fixtures/engine_project/test/dummy/public/500.html +26 -0
- data/test/fixtures/engine_project/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/sass_project/.gitignore +5 -0
- data/test/fixtures/sass_project/Gemfile +7 -0
- data/test/fixtures/sass_project/README +261 -0
- data/test/fixtures/sass_project/Rakefile +7 -0
- data/test/fixtures/sass_project/app/assets/images/rails.png +0 -0
- data/test/fixtures/sass_project/app/assets/javascripts/application.js +9 -0
- data/test/fixtures/sass_project/app/assets/stylesheets/application.css +7 -0
- data/test/fixtures/sass_project/app/controllers/application_controller.rb +3 -0
- data/test/fixtures/sass_project/app/helpers/application_helper.rb +2 -0
- data/test/fixtures/sass_project/app/mailers/.gitkeep +0 -0
- data/test/fixtures/sass_project/app/models/.gitkeep +0 -0
- data/test/fixtures/sass_project/app/views/layouts/application.html.erb +14 -0
- data/test/fixtures/sass_project/config.ru +4 -0
- data/test/fixtures/sass_project/config/application.rb +52 -0
- data/test/fixtures/sass_project/config/boot.rb +6 -0
- data/test/fixtures/sass_project/config/database.yml +25 -0
- data/test/fixtures/sass_project/config/environment.rb +5 -0
- data/test/fixtures/sass_project/config/environments/development.rb +21 -0
- data/test/fixtures/sass_project/config/environments/production.rb +51 -0
- data/test/fixtures/sass_project/config/environments/test.rb +36 -0
- data/test/fixtures/sass_project/config/initializers/backtrace_silencers.rb +7 -0
- data/test/fixtures/sass_project/config/initializers/inflections.rb +10 -0
- data/test/fixtures/sass_project/config/initializers/mime_types.rb +5 -0
- data/test/fixtures/sass_project/config/initializers/secret_token.rb +7 -0
- data/test/fixtures/sass_project/config/initializers/session_store.rb +8 -0
- data/test/fixtures/sass_project/config/initializers/wrap_parameters.rb +12 -0
- data/test/fixtures/sass_project/config/locales/en.yml +5 -0
- data/test/fixtures/sass_project/config/routes.rb +58 -0
- data/test/fixtures/sass_project/db/seeds.rb +7 -0
- data/test/fixtures/sass_project/doc/README_FOR_APP +2 -0
- data/test/fixtures/sass_project/lib/tasks/.gitkeep +0 -0
- data/test/fixtures/sass_project/log/.gitkeep +0 -0
- data/test/fixtures/sass_project/public/404.html +26 -0
- data/test/fixtures/sass_project/public/422.html +26 -0
- data/test/fixtures/sass_project/public/500.html +26 -0
- data/test/fixtures/sass_project/public/favicon.ico +0 -0
- data/test/fixtures/sass_project/public/index.html +241 -0
- data/test/fixtures/sass_project/public/robots.txt +5 -0
- data/test/fixtures/sass_project/script/rails +6 -0
- data/test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/fixtures/sass_project/vendor/plugins/.gitkeep +0 -0
- data/test/fixtures/scss_project/.gitignore +5 -0
- data/test/fixtures/scss_project/Gemfile +7 -0
- data/test/fixtures/scss_project/README +261 -0
- data/test/fixtures/scss_project/Rakefile +7 -0
- data/test/fixtures/scss_project/app/assets/images/1x1.png +0 -0
- data/test/fixtures/scss_project/app/assets/images/rails.png +0 -0
- data/test/fixtures/scss_project/app/assets/javascripts/application.js +9 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/application.css.scss +37 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/css_application.css +7 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/css_erb_handler.css.erb +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/css_sass_erb_handler.css.sass.erb +2 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/css_scss_erb_handler.css.scss.erb +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass +5 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss +9 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass +2 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/sass_erb_handler.sass.erb +2 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/scss_erb_handler.scss.erb +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/_defaults.css.scss +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css +3 -0
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss +2 -0
- data/test/fixtures/scss_project/app/controllers/application_controller.rb +3 -0
- data/test/fixtures/scss_project/app/helpers/application_helper.rb +2 -0
- data/test/fixtures/scss_project/app/mailers/.gitkeep +0 -0
- data/test/fixtures/scss_project/app/models/.gitkeep +0 -0
- data/test/fixtures/scss_project/app/views/layouts/application.html.erb +14 -0
- data/test/fixtures/scss_project/config.ru +4 -0
- data/test/fixtures/scss_project/config/application.rb +49 -0
- data/test/fixtures/scss_project/config/boot.rb +6 -0
- data/test/fixtures/scss_project/config/database.yml +25 -0
- data/test/fixtures/scss_project/config/environment.rb +5 -0
- data/test/fixtures/scss_project/config/environments/development.rb +23 -0
- data/test/fixtures/scss_project/config/environments/production.rb +53 -0
- data/test/fixtures/scss_project/config/environments/test.rb +38 -0
- data/test/fixtures/scss_project/config/initializers/backtrace_silencers.rb +7 -0
- data/test/fixtures/scss_project/config/initializers/inflections.rb +10 -0
- data/test/fixtures/scss_project/config/initializers/mime_types.rb +5 -0
- data/test/fixtures/scss_project/config/initializers/postprocessor.rb +3 -0
- data/test/fixtures/scss_project/config/initializers/secret_token.rb +7 -0
- data/test/fixtures/scss_project/config/initializers/session_store.rb +8 -0
- data/test/fixtures/scss_project/config/initializers/wrap_parameters.rb +12 -0
- data/test/fixtures/scss_project/config/locales/en.yml +5 -0
- data/test/fixtures/scss_project/config/routes.rb +58 -0
- data/test/fixtures/scss_project/db/seeds.rb +7 -0
- data/test/fixtures/scss_project/doc/README_FOR_APP +2 -0
- data/test/fixtures/scss_project/lib/tasks/.gitkeep +0 -0
- data/test/fixtures/scss_project/log/.gitkeep +0 -0
- data/test/fixtures/scss_project/public/404.html +26 -0
- data/test/fixtures/scss_project/public/422.html +26 -0
- data/test/fixtures/scss_project/public/500.html +26 -0
- data/test/fixtures/scss_project/public/favicon.ico +0 -0
- data/test/fixtures/scss_project/public/index.html +241 -0
- data/test/fixtures/scss_project/public/robots.txt +5 -0
- data/test/fixtures/scss_project/script/rails +6 -0
- data/test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/fixtures/scss_project/vendor/plugins/.gitkeep +0 -0
- data/test/sass_rails_generators_test.rb +62 -0
- data/test/sass_rails_logger_test.rb +24 -0
- data/test/sass_rails_test.rb +116 -0
- data/test/support/sass_rails_test_case.rb +162 -0
- data/test/test_helper.rb +25 -0
- metadata +581 -0
File without changes
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ScaffoldGeneratorTest < Sass::Rails::TestCase
|
4
|
+
test "scss files are generated during scaffold generation of scss projects" do
|
5
|
+
within_rails_app "scss_project" do
|
6
|
+
generate_scaffold
|
7
|
+
assert_file_exists "app/assets/stylesheets/foos.css.scss"
|
8
|
+
assert_file_exists "app/assets/stylesheets/scaffolds.css.scss"
|
9
|
+
assert_not_output /conflict/
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
test "sass files are generated during scaffold generation of sass projects" do
|
14
|
+
within_rails_app "sass_project" do
|
15
|
+
generate_scaffold
|
16
|
+
assert_file_exists "app/assets/stylesheets/foos.css.sass"
|
17
|
+
assert_file_exists "app/assets/stylesheets/scaffolds.css.sass"
|
18
|
+
assert_not_output /conflict/
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
test "scss files are generated during scaffold generation of a engine project, if is called with --stylesheet-engine=scss" do
|
23
|
+
within_rails_app "engine_project" do
|
24
|
+
generate_scaffold "--stylesheet-engine=scss"
|
25
|
+
assert_file_exists "app/assets/stylesheets/engine_project/foos.css.scss"
|
26
|
+
assert_file_exists "app/assets/stylesheets/scaffolds.css.scss"
|
27
|
+
assert_not_output /conflict/
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
test "sass files are generated during scaffold generation of a engine project, if is called with --stylesheet-engine=sass" do
|
32
|
+
within_rails_app "engine_project" do
|
33
|
+
generate_scaffold "--stylesheet-engine=sass"
|
34
|
+
assert_file_exists "app/assets/stylesheets/engine_project/foos.css.sass"
|
35
|
+
assert_file_exists "app/assets/stylesheets/scaffolds.css.sass"
|
36
|
+
assert_not_output /conflict/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# DISABLED because we've removed the feature for now.
|
41
|
+
# test "scss template has correct dasherized css class for namespaced controllers" do
|
42
|
+
# within_rails_app "scss_project" do
|
43
|
+
# runcmd "rails generate controller foo/bar"
|
44
|
+
# assert_file_exists "app/assets/stylesheets/foo/bar.css.scss"
|
45
|
+
# assert_match /\.foo-bar/, File.read("app/assets/stylesheets/foo/bar.css.scss")
|
46
|
+
# end
|
47
|
+
# end
|
48
|
+
#
|
49
|
+
# test "sass template has correct dasherized css class for namespaced controllers" do
|
50
|
+
# within_rails_app "sass_project" do
|
51
|
+
# runcmd "rails generate controller foo/bar"
|
52
|
+
# assert_file_exists "app/assets/stylesheets/foo/bar.css.sass"
|
53
|
+
# assert_match /\.foo-bar/, File.read("app/assets/stylesheets/foo/bar.css.sass")
|
54
|
+
# end
|
55
|
+
# end
|
56
|
+
|
57
|
+
private
|
58
|
+
|
59
|
+
def generate_scaffold(args = nil)
|
60
|
+
runcmd "bundle exec rails generate scaffold foo #{args}"
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SassRails3LoggerTest < Sass::Rails::TestCase
|
4
|
+
test "setting a sass-rails3 logger as the sass default logger" do
|
5
|
+
within_rails_app "scss_project" do
|
6
|
+
logger_class_name = runcmd 'ruby script/rails runner "print Sass::logger.class.name"'
|
7
|
+
assert logger_class_name =~ /#{Regexp.escape(Sass::Rails::Logger.name)}/
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
test "sending a log messages to the sass logger writes to the environment log file" do
|
12
|
+
within_rails_app "scss_project" do |app_root|
|
13
|
+
[:debug, :warn, :info, :error, :trace].each do |level|
|
14
|
+
message = "[#{level}]: sass message"
|
15
|
+
runcmd %{ruby script/rails runner "Sass::logger.log_level = :#{level}; Sass::logger.log(:#{level}, %Q|#{message}|)"}, Dir.pwd, true, 'Gemfile', { 'RAILS_ENV' => 'development' }
|
16
|
+
|
17
|
+
assert File.exists?("#{app_root}/log/development.log"), "log file was not created"
|
18
|
+
|
19
|
+
log_output = File.open("#{app_root}/log/development.log").read
|
20
|
+
assert log_output.include?(message), "the #{level} log message was not found in the log file"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SassRailsTest < Sass::Rails::TestCase
|
4
|
+
test 'classes are loaded' do
|
5
|
+
assert_kind_of Module, Sass::Rails
|
6
|
+
assert_kind_of Class, Sass::Rails::Railtie
|
7
|
+
end
|
8
|
+
|
9
|
+
test 'style config item is honored in development mode' do
|
10
|
+
within_rails_app 'alternate_config_project' do
|
11
|
+
runcmd "ruby script/rails runner 'puts Rails.application.config.sass.style'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'development'}
|
12
|
+
assert_output /compact/
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
test 'style config item is not honored if environment is not development' do
|
17
|
+
within_rails_app 'alternate_config_project' do
|
18
|
+
runcmd "ruby script/rails runner 'p Rails.application.config.sass.style'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'production'}
|
19
|
+
assert_equal 'nil', $last_ouput.chomp
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'css_compressor config item is not honored in development mode' do
|
24
|
+
within_rails_app 'alternate_config_project' do
|
25
|
+
runcmd "ruby script/rails runner 'p Rails.application.config.assets.css_compressor'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'development'}
|
26
|
+
assert_equal 'nil', $last_ouput.chomp
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
test 'css_compressor config item is honored if environment is not development' do
|
31
|
+
within_rails_app 'alternate_config_project' do
|
32
|
+
runcmd "ruby script/rails runner 'puts Rails.application.config.assets.css_compressor'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'production'}
|
33
|
+
assert_output /yui/
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
test 'sass uses expanded style by default in development mode' do
|
38
|
+
within_rails_app 'scss_project' do
|
39
|
+
runcmd "ruby script/rails runner 'puts Rails.application.config.sass.style'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'development'}
|
40
|
+
assert_output /expanded/
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
test 'sass not defines compressor in development mode' do
|
45
|
+
within_rails_app 'scss_project' do
|
46
|
+
runcmd "ruby script/rails runner 'p Rails.application.config.assets.css_compressor'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'development'}
|
47
|
+
assert_equal 'nil', $last_ouput.chomp
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
test 'sass defines compressor by default in test mode' do
|
52
|
+
within_rails_app 'scss_project' do
|
53
|
+
runcmd "ruby script/rails runner 'puts Rails.application.config.assets.css_compressor'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'test'}
|
54
|
+
assert_equal 'sass', $last_ouput.chomp
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
test 'sass defines compressor by default in production mode' do
|
59
|
+
within_rails_app 'scss_project' do
|
60
|
+
runcmd "ruby script/rails runner 'puts Rails.application.config.assets.css_compressor'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => 'production'}
|
61
|
+
assert_equal 'sass', $last_ouput.chomp
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
test 'sprockets require works correctly' do
|
66
|
+
css_output = sprockets_render('scss_project', 'css_application.css')
|
67
|
+
assert_match /globbed/, css_output
|
68
|
+
end
|
69
|
+
|
70
|
+
test 'sass imports work correctly' do
|
71
|
+
css_output = sprockets_render('scss_project', 'application.css.scss')
|
72
|
+
assert_match /main/, css_output
|
73
|
+
assert_match /top-level/, css_output
|
74
|
+
assert_match /partial-sass/, css_output
|
75
|
+
assert_match /partial-scss/, css_output
|
76
|
+
assert_match /sub-folder-relative-sass/, css_output
|
77
|
+
assert_match /sub-folder-relative-scss/, css_output
|
78
|
+
assert_match /not-a-partial/, css_output
|
79
|
+
assert_match /globbed/, css_output
|
80
|
+
assert_match /nested-glob/, css_output
|
81
|
+
assert_match /plain-old-css/, css_output
|
82
|
+
assert_match /another-plain-old-css/, css_output
|
83
|
+
assert_match /without-css-ext/, css_output
|
84
|
+
assert_match /css-erb-handler/, css_output
|
85
|
+
assert_match /scss-erb-handler/, css_output
|
86
|
+
assert_match /sass-erb-handler/, css_output
|
87
|
+
assert_match /css-sass-erb-handler/, css_output
|
88
|
+
assert_match /css-scss-erb-handler/, css_output
|
89
|
+
assert_match /default-old-css/, css_output
|
90
|
+
end
|
91
|
+
|
92
|
+
test 'sass asset paths work' do
|
93
|
+
css_output = sprockets_render('scss_project', 'application.css.scss')
|
94
|
+
assert_match %r{asset-path:\s*"/assets/rails.png"}, css_output, 'asset-path:\s*"/assets/rails.png"'
|
95
|
+
assert_match %r{asset-url:\s*url\(/assets/rails.png\)}, css_output, 'asset-url:\s*url\(/assets/rails.png\)'
|
96
|
+
assert_match %r{image-path:\s*"/assets/rails.png"}, css_output, 'image-path:\s*"/assets/rails.png"'
|
97
|
+
assert_match %r{image-url:\s*url\(/assets/rails.png\)}, css_output, 'image-url:\s*url\(/assets/rails.png\)'
|
98
|
+
assert_match %r{video-path:\s*"/videos/rails.mp4"}, css_output, 'video-path:\s*"/videos/rails.mp4"'
|
99
|
+
assert_match %r{video-url:\s*url\(/videos/rails.mp4\)}, css_output, 'video-url:\s*url\(/videos/rails.mp4\)'
|
100
|
+
assert_match %r{audio-path:\s*"/audios/rails.mp3"}, css_output, 'audio-path:\s*"/audios/rails.mp3"'
|
101
|
+
assert_match %r{audio-url:\s*url\(/audios/rails.mp3\)}, css_output, 'audio-url:\s*url\(/audios/rails.mp3\)'
|
102
|
+
assert_match %r{font-path:\s*"/fonts/rails.ttf"}, css_output, 'font-path:\s*"/fonts/rails.ttf"'
|
103
|
+
assert_match %r{font-url:\s*url\(/fonts/rails.ttf\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf\)'
|
104
|
+
assert_match %r{font-url-with-query-hash:\s*url\(/fonts/rails.ttf\?#iefix\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf?#iefix\)'
|
105
|
+
assert_match %r{javascript-path:\s*"/javascripts/rails.js"}, css_output, 'javascript-path:\s*"/javascripts/rails.js"'
|
106
|
+
assert_match %r{javascript-url:\s*url\(/javascripts/rails.js\)}, css_output, 'javascript-url:\s*url\(/javascripts/rails.js\)'
|
107
|
+
assert_match %r{stylesheet-path:\s*"/stylesheets/rails.css"}, css_output, 'stylesheet-path:\s*"/stylesheets/rails.css"'
|
108
|
+
assert_match %r{stylesheet-url:\s*url\(/stylesheets/rails.css\)}, css_output, 'stylesheet-url:\s*url\(/stylesheets/rails.css\)'
|
109
|
+
|
110
|
+
asset_data_url_regexp = %r{asset-data-url:\s*url\((.*?)\)}
|
111
|
+
assert_match asset_data_url_regexp, css_output, 'asset-data-url:\s*url\((.*?)\)'
|
112
|
+
asset_data_url_match = css_output.match(asset_data_url_regexp)[1]
|
113
|
+
asset_data_url_expected = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCNzY5NDE1QkQ2NkMxMUUwOUUzM0E5Q0E2RTgyQUExQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCNzY5NDE1Q0Q2NkMxMUUwOUUzM0E5Q0E2RTgyQUExQiI%2BIDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3MzcyNTQ2RDY2QjExRTA5RTMzQTlDQTZFODJBQTFCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkI3Njk0MTVBRDY2QzExRTA5RTMzQTlDQTZFODJBQTFCIi8%2BIDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY%2BIDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8%2B0HhJ9AAAABBJREFUeNpi%2BP%2F%2FPwNAgAEACPwC%2FtuiTRYAAAAASUVORK5CYII%3D'
|
114
|
+
assert_equal asset_data_url_expected, asset_data_url_match
|
115
|
+
end
|
116
|
+
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
unless defined?(Bundler)
|
2
|
+
$stderr.puts "You didn't run bundle exec did you? Try again: bundle exec rake test"
|
3
|
+
exit 1
|
4
|
+
end
|
5
|
+
require 'fileutils'
|
6
|
+
require 'tmpdir'
|
7
|
+
|
8
|
+
class Sass::Rails::TestCase < ActiveSupport::TestCase
|
9
|
+
|
10
|
+
class ExecutionError < StandardError
|
11
|
+
attr_accessor :output
|
12
|
+
def initialize(message, output = nil)
|
13
|
+
super(message)
|
14
|
+
self.output = output
|
15
|
+
end
|
16
|
+
def message
|
17
|
+
"#{super}\nOutput was:\n#{output}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module SilentError
|
22
|
+
attr_accessor :output
|
23
|
+
def message
|
24
|
+
"#{super}\nOutput was:\n#{output}"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
protected
|
29
|
+
|
30
|
+
def fixture_path(path)
|
31
|
+
File.expand_path("../../fixtures/#{path}", __FILE__)
|
32
|
+
end
|
33
|
+
|
34
|
+
module TestAssetPaths
|
35
|
+
attr_accessor :assets
|
36
|
+
end
|
37
|
+
|
38
|
+
def sprockets_render(project, filename)
|
39
|
+
within_rails_app(project) do
|
40
|
+
runcmd "ruby script/rails runner 'puts Rails.application.assets[#{filename.inspect}]'"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def assert_file_exists(filename)
|
45
|
+
assert File.exists?(filename), "could not find #{filename}. PWD=#{Dir.pwd}\nDid find: #{Dir.glob(File.dirname(filename)+"/*").join(", ")}"
|
46
|
+
end
|
47
|
+
|
48
|
+
def assert_not_output(match)
|
49
|
+
assert_no_match match, $last_ouput
|
50
|
+
end
|
51
|
+
|
52
|
+
def assert_output(match)
|
53
|
+
assert $last_ouput.to_s =~ match, "#{match} was not found in #{$last_ouput.inspect}"
|
54
|
+
end
|
55
|
+
|
56
|
+
def assert_line_count(count)
|
57
|
+
last_count = $last_ouput.lines.count
|
58
|
+
assert last_count == count, "Wrong line count, expected: #{count} but got: #{last_count}"
|
59
|
+
end
|
60
|
+
# Copies a rails app fixture to a temp directory
|
61
|
+
# and changes to that directory during the yield.
|
62
|
+
#
|
63
|
+
# Automatically changes back to the working directory
|
64
|
+
# and removes the temp directory when done.
|
65
|
+
def within_rails_app(name, without_gems = [], gem_options = $gem_options)
|
66
|
+
sourcedir = File.expand_path("../../fixtures/#{name}", __FILE__)
|
67
|
+
Dir.mktmpdir do |tmpdir|
|
68
|
+
FileUtils.cp_r "#{sourcedir}/.", tmpdir
|
69
|
+
Dir.chdir(tmpdir) do
|
70
|
+
gem_options.each { |gem_name, options| modify_gem_entry gem_name, options }
|
71
|
+
without_gems.each { |gem_name| remove_gem name }
|
72
|
+
FileUtils.rm("Gemfile.lock") if File.exist?("Gemfile.lock")
|
73
|
+
runcmd "bundle install --verbose"
|
74
|
+
runcmd "bundle exec rake db:create --trace"
|
75
|
+
yield tmpdir
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def process_gemfile(gemfile = "Gemfile", &blk)
|
81
|
+
gem_contents = File.readlines(gemfile)
|
82
|
+
gem_contents.map!(&blk)
|
83
|
+
gem_contents.compact!
|
84
|
+
File.open(gemfile, "w") do |f|
|
85
|
+
f.print(gem_contents.join(""))
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def modify_gem_entry(gemname, options, gemfile = "Gemfile")
|
90
|
+
found = false
|
91
|
+
process_gemfile(gemfile) do |line|
|
92
|
+
if line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/
|
93
|
+
found = true
|
94
|
+
gem_entry(gemname, options) + "\n"
|
95
|
+
else
|
96
|
+
line
|
97
|
+
end
|
98
|
+
end
|
99
|
+
unless found
|
100
|
+
File.open(gemfile, "a") do |f|
|
101
|
+
f.print("\n#{gem_entry(gemname, options)}\n")
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
def gem_entry(gemname, options)
|
107
|
+
entry = %Q{gem "#{gemname}", "~> #{options[:version]}"}
|
108
|
+
entry += ", :path => #{options[:path].inspect}" if options[:path]
|
109
|
+
entry
|
110
|
+
end
|
111
|
+
|
112
|
+
def remove_gem(gemname)
|
113
|
+
process_gemfile(gemfile) do |line|
|
114
|
+
line unless line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
def silently
|
119
|
+
output = StringIO.new
|
120
|
+
$stderr, old_stderr = output, $stderr
|
121
|
+
$stdout, old_stdout = output, $stdout
|
122
|
+
begin
|
123
|
+
yield
|
124
|
+
rescue ExecutionError => e
|
125
|
+
raise
|
126
|
+
rescue => e
|
127
|
+
e.extend(SilentError)
|
128
|
+
e.output = output.string
|
129
|
+
raise
|
130
|
+
end
|
131
|
+
ensure
|
132
|
+
$stderr = old_stderr
|
133
|
+
$stdout = old_stdout
|
134
|
+
end
|
135
|
+
|
136
|
+
# executes a system command
|
137
|
+
# raises an error if it does not complete successfully
|
138
|
+
# returns the output as a string if it does complete successfully
|
139
|
+
def runcmd(cmd, working_directory = Dir.pwd, clean_env = true, gemfile = "Gemfile", env = {})
|
140
|
+
# There's a bug in bundler where with_clean_env doesn't clear out the BUNDLE_GEMFILE environment setting
|
141
|
+
# https://github.com/carlhuda/bundler/issues/1133
|
142
|
+
env["BUNDLE_GEMFILE"] = "#{working_directory}/#{gemfile}" if clean_env
|
143
|
+
todo = Proc.new do
|
144
|
+
r, w = IO.pipe
|
145
|
+
Kernel.spawn(env, cmd, :out => w , :err => w, :chdir => working_directory)
|
146
|
+
w.close
|
147
|
+
Process.wait
|
148
|
+
output = r.read
|
149
|
+
r.close
|
150
|
+
unless $?.exitstatus == 0
|
151
|
+
raise ExecutionError, "Command failed with exit status #{$?.exitstatus}: #{cmd}", output
|
152
|
+
end
|
153
|
+
$last_ouput = output
|
154
|
+
end
|
155
|
+
if clean_env
|
156
|
+
Bundler.with_clean_env(&todo)
|
157
|
+
else
|
158
|
+
todo.call
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'rails'
|
6
|
+
require 'rails/test_help'
|
7
|
+
require 'sass/rails'
|
8
|
+
|
9
|
+
Rails.backtrace_cleaner.remove_silencers!
|
10
|
+
|
11
|
+
# If developing against local dependencies, this code will ensure they get picked up
|
12
|
+
# in the project fixtures that have their own bundle environment
|
13
|
+
$gem_options = {}
|
14
|
+
possible_dev_dependencies = %w(sass-rails3 sass rails actionpack railties sprockets journey sprockets-rails activerecord-deprecated_finders)
|
15
|
+
Bundler.load.specs.each do |s|
|
16
|
+
if possible_dev_dependencies.include?(s.name)
|
17
|
+
gem_path = s.full_gem_path
|
18
|
+
gem_options = { version: s.version}
|
19
|
+
gem_options[:path] = gem_path if File.exists?("#{gem_path}/#{s.name}.gemspec")
|
20
|
+
$gem_options[s.name] = gem_options
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# Load support files
|
25
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
ADDED
@@ -0,0 +1,581 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sass-rails3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 61
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 4.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- wycats
|
14
|
+
- chriseppstein
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2014-06-18 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: sass
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 2
|
33
|
+
- 0
|
34
|
+
version: 3.2.0
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: railties
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 15
|
46
|
+
segments:
|
47
|
+
- 3
|
48
|
+
- 2
|
49
|
+
- 0
|
50
|
+
version: 3.2.0
|
51
|
+
- - <
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
hash: 31
|
54
|
+
segments:
|
55
|
+
- 5
|
56
|
+
- 0
|
57
|
+
version: "5.0"
|
58
|
+
type: :runtime
|
59
|
+
version_requirements: *id002
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: sprockets-rails
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 1864264643
|
69
|
+
segments:
|
70
|
+
- 2
|
71
|
+
- 0
|
72
|
+
- 0
|
73
|
+
- backport
|
74
|
+
- 1
|
75
|
+
version: 2.0.0.backport1
|
76
|
+
type: :runtime
|
77
|
+
version_requirements: *id003
|
78
|
+
description: Sass adapter for the Rails asset pipeline.
|
79
|
+
email:
|
80
|
+
- wycats@gmail.com
|
81
|
+
- chris@eppsteins.net
|
82
|
+
executables: []
|
83
|
+
|
84
|
+
extensions: []
|
85
|
+
|
86
|
+
extra_rdoc_files: []
|
87
|
+
|
88
|
+
files:
|
89
|
+
- .gitignore
|
90
|
+
- .travis.yml
|
91
|
+
- CHANGELOG.md
|
92
|
+
- Gemfile
|
93
|
+
- MIT-LICENSE
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- lib/rails/generators/sass/assets/assets_generator.rb
|
97
|
+
- lib/rails/generators/sass/assets/templates/stylesheet.css.sass
|
98
|
+
- lib/rails/generators/sass/scaffold/scaffold_generator.rb
|
99
|
+
- lib/rails/generators/sass_scaffold.rb
|
100
|
+
- lib/rails/generators/scss/assets/assets_generator.rb
|
101
|
+
- lib/rails/generators/scss/assets/templates/stylesheet.css.scss
|
102
|
+
- lib/rails/generators/scss/scaffold/scaffold_generator.rb
|
103
|
+
- lib/sass-rails3.rb
|
104
|
+
- lib/sass/rails.rb
|
105
|
+
- lib/sass/rails/helpers.rb
|
106
|
+
- lib/sass/rails/importer.rb
|
107
|
+
- lib/sass/rails/logger.rb
|
108
|
+
- lib/sass/rails/railtie.rb
|
109
|
+
- lib/sass/rails/version.rb
|
110
|
+
- sass-rails3.gemspec
|
111
|
+
- sass-rails3.gemspec.erb
|
112
|
+
- test/fixtures/alternate_config_project/.gitignore
|
113
|
+
- test/fixtures/alternate_config_project/Gemfile
|
114
|
+
- test/fixtures/alternate_config_project/README
|
115
|
+
- test/fixtures/alternate_config_project/Rakefile
|
116
|
+
- test/fixtures/alternate_config_project/app/assets/images/1x1.png
|
117
|
+
- test/fixtures/alternate_config_project/app/assets/images/rails.png
|
118
|
+
- test/fixtures/alternate_config_project/app/assets/javascripts/application.js
|
119
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/_top_level_partial.css.scss
|
120
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/application.css.scss
|
121
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/css_application.css
|
122
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/globbed.css.scss
|
123
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss
|
124
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_sass_import.css.sass
|
125
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_scss_import.css.scss
|
126
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
127
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass
|
128
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss
|
129
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss
|
130
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/another_plain.css
|
131
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/plain.css
|
132
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/second_level.css.scss
|
133
|
+
- test/fixtures/alternate_config_project/app/controllers/application_controller.rb
|
134
|
+
- test/fixtures/alternate_config_project/app/helpers/application_helper.rb
|
135
|
+
- test/fixtures/alternate_config_project/app/mailers/.gitkeep
|
136
|
+
- test/fixtures/alternate_config_project/app/models/.gitkeep
|
137
|
+
- test/fixtures/alternate_config_project/app/views/layouts/application.html.erb
|
138
|
+
- test/fixtures/alternate_config_project/config.ru
|
139
|
+
- test/fixtures/alternate_config_project/config/application.rb
|
140
|
+
- test/fixtures/alternate_config_project/config/boot.rb
|
141
|
+
- test/fixtures/alternate_config_project/config/database.yml
|
142
|
+
- test/fixtures/alternate_config_project/config/environment.rb
|
143
|
+
- test/fixtures/alternate_config_project/config/environments/development.rb
|
144
|
+
- test/fixtures/alternate_config_project/config/environments/production.rb
|
145
|
+
- test/fixtures/alternate_config_project/config/environments/test.rb
|
146
|
+
- test/fixtures/alternate_config_project/config/initializers/backtrace_silencers.rb
|
147
|
+
- test/fixtures/alternate_config_project/config/initializers/inflections.rb
|
148
|
+
- test/fixtures/alternate_config_project/config/initializers/mime_types.rb
|
149
|
+
- test/fixtures/alternate_config_project/config/initializers/secret_token.rb
|
150
|
+
- test/fixtures/alternate_config_project/config/initializers/session_store.rb
|
151
|
+
- test/fixtures/alternate_config_project/config/initializers/wrap_parameters.rb
|
152
|
+
- test/fixtures/alternate_config_project/config/locales/en.yml
|
153
|
+
- test/fixtures/alternate_config_project/config/routes.rb
|
154
|
+
- test/fixtures/alternate_config_project/db/seeds.rb
|
155
|
+
- test/fixtures/alternate_config_project/doc/README_FOR_APP
|
156
|
+
- test/fixtures/alternate_config_project/lib/tasks/.gitkeep
|
157
|
+
- test/fixtures/alternate_config_project/log/.gitkeep
|
158
|
+
- test/fixtures/alternate_config_project/public/404.html
|
159
|
+
- test/fixtures/alternate_config_project/public/422.html
|
160
|
+
- test/fixtures/alternate_config_project/public/500.html
|
161
|
+
- test/fixtures/alternate_config_project/public/favicon.ico
|
162
|
+
- test/fixtures/alternate_config_project/public/index.html
|
163
|
+
- test/fixtures/alternate_config_project/public/robots.txt
|
164
|
+
- test/fixtures/alternate_config_project/script/rails
|
165
|
+
- test/fixtures/alternate_config_project/vendor/assets/stylesheets/.gitkeep
|
166
|
+
- test/fixtures/alternate_config_project/vendor/plugins/.gitkeep
|
167
|
+
- test/fixtures/engine_project/.gitignore
|
168
|
+
- test/fixtures/engine_project/Gemfile
|
169
|
+
- test/fixtures/engine_project/MIT-LICENSE
|
170
|
+
- test/fixtures/engine_project/README.rdoc
|
171
|
+
- test/fixtures/engine_project/Rakefile
|
172
|
+
- test/fixtures/engine_project/app/assets/images/engine_project/.keep
|
173
|
+
- test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js
|
174
|
+
- test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css
|
175
|
+
- test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb
|
176
|
+
- test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb
|
177
|
+
- test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb
|
178
|
+
- test/fixtures/engine_project/config/routes.rb
|
179
|
+
- test/fixtures/engine_project/engine_project.gemspec
|
180
|
+
- test/fixtures/engine_project/lib/engine_project.rb
|
181
|
+
- test/fixtures/engine_project/lib/engine_project/engine.rb
|
182
|
+
- test/fixtures/engine_project/lib/engine_project/version.rb
|
183
|
+
- test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake
|
184
|
+
- test/fixtures/engine_project/script/rails
|
185
|
+
- test/fixtures/engine_project/test/dummy/README.rdoc
|
186
|
+
- test/fixtures/engine_project/test/dummy/Rakefile
|
187
|
+
- test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js
|
188
|
+
- test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css
|
189
|
+
- test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb
|
190
|
+
- test/fixtures/engine_project/test/dummy/app/controllers/concerns/.keep
|
191
|
+
- test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb
|
192
|
+
- test/fixtures/engine_project/test/dummy/app/mailers/.keep
|
193
|
+
- test/fixtures/engine_project/test/dummy/app/models/.keep
|
194
|
+
- test/fixtures/engine_project/test/dummy/app/models/concerns/.keep
|
195
|
+
- test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb
|
196
|
+
- test/fixtures/engine_project/test/dummy/bin/bundle
|
197
|
+
- test/fixtures/engine_project/test/dummy/bin/rails
|
198
|
+
- test/fixtures/engine_project/test/dummy/bin/rake
|
199
|
+
- test/fixtures/engine_project/test/dummy/config.ru
|
200
|
+
- test/fixtures/engine_project/test/dummy/config/application.rb
|
201
|
+
- test/fixtures/engine_project/test/dummy/config/boot.rb
|
202
|
+
- test/fixtures/engine_project/test/dummy/config/database.yml
|
203
|
+
- test/fixtures/engine_project/test/dummy/config/environment.rb
|
204
|
+
- test/fixtures/engine_project/test/dummy/config/environments/development.rb
|
205
|
+
- test/fixtures/engine_project/test/dummy/config/environments/production.rb
|
206
|
+
- test/fixtures/engine_project/test/dummy/config/environments/test.rb
|
207
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb
|
208
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/filter_parameter_logging.rb
|
209
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb
|
210
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb
|
211
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb
|
212
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb
|
213
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb
|
214
|
+
- test/fixtures/engine_project/test/dummy/config/locales/en.yml
|
215
|
+
- test/fixtures/engine_project/test/dummy/config/routes.rb
|
216
|
+
- test/fixtures/engine_project/test/dummy/lib/assets/.keep
|
217
|
+
- test/fixtures/engine_project/test/dummy/log/.keep
|
218
|
+
- test/fixtures/engine_project/test/dummy/public/404.html
|
219
|
+
- test/fixtures/engine_project/test/dummy/public/422.html
|
220
|
+
- test/fixtures/engine_project/test/dummy/public/500.html
|
221
|
+
- test/fixtures/engine_project/test/dummy/public/favicon.ico
|
222
|
+
- test/fixtures/sass_project/.gitignore
|
223
|
+
- test/fixtures/sass_project/Gemfile
|
224
|
+
- test/fixtures/sass_project/README
|
225
|
+
- test/fixtures/sass_project/Rakefile
|
226
|
+
- test/fixtures/sass_project/app/assets/images/rails.png
|
227
|
+
- test/fixtures/sass_project/app/assets/javascripts/application.js
|
228
|
+
- test/fixtures/sass_project/app/assets/stylesheets/application.css
|
229
|
+
- test/fixtures/sass_project/app/controllers/application_controller.rb
|
230
|
+
- test/fixtures/sass_project/app/helpers/application_helper.rb
|
231
|
+
- test/fixtures/sass_project/app/mailers/.gitkeep
|
232
|
+
- test/fixtures/sass_project/app/models/.gitkeep
|
233
|
+
- test/fixtures/sass_project/app/views/layouts/application.html.erb
|
234
|
+
- test/fixtures/sass_project/config.ru
|
235
|
+
- test/fixtures/sass_project/config/application.rb
|
236
|
+
- test/fixtures/sass_project/config/boot.rb
|
237
|
+
- test/fixtures/sass_project/config/database.yml
|
238
|
+
- test/fixtures/sass_project/config/environment.rb
|
239
|
+
- test/fixtures/sass_project/config/environments/development.rb
|
240
|
+
- test/fixtures/sass_project/config/environments/production.rb
|
241
|
+
- test/fixtures/sass_project/config/environments/test.rb
|
242
|
+
- test/fixtures/sass_project/config/initializers/backtrace_silencers.rb
|
243
|
+
- test/fixtures/sass_project/config/initializers/inflections.rb
|
244
|
+
- test/fixtures/sass_project/config/initializers/mime_types.rb
|
245
|
+
- test/fixtures/sass_project/config/initializers/secret_token.rb
|
246
|
+
- test/fixtures/sass_project/config/initializers/session_store.rb
|
247
|
+
- test/fixtures/sass_project/config/initializers/wrap_parameters.rb
|
248
|
+
- test/fixtures/sass_project/config/locales/en.yml
|
249
|
+
- test/fixtures/sass_project/config/routes.rb
|
250
|
+
- test/fixtures/sass_project/db/seeds.rb
|
251
|
+
- test/fixtures/sass_project/doc/README_FOR_APP
|
252
|
+
- test/fixtures/sass_project/lib/tasks/.gitkeep
|
253
|
+
- test/fixtures/sass_project/log/.gitkeep
|
254
|
+
- test/fixtures/sass_project/public/404.html
|
255
|
+
- test/fixtures/sass_project/public/422.html
|
256
|
+
- test/fixtures/sass_project/public/500.html
|
257
|
+
- test/fixtures/sass_project/public/favicon.ico
|
258
|
+
- test/fixtures/sass_project/public/index.html
|
259
|
+
- test/fixtures/sass_project/public/robots.txt
|
260
|
+
- test/fixtures/sass_project/script/rails
|
261
|
+
- test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep
|
262
|
+
- test/fixtures/sass_project/vendor/plugins/.gitkeep
|
263
|
+
- test/fixtures/scss_project/.gitignore
|
264
|
+
- test/fixtures/scss_project/Gemfile
|
265
|
+
- test/fixtures/scss_project/README
|
266
|
+
- test/fixtures/scss_project/Rakefile
|
267
|
+
- test/fixtures/scss_project/app/assets/images/1x1.png
|
268
|
+
- test/fixtures/scss_project/app/assets/images/rails.png
|
269
|
+
- test/fixtures/scss_project/app/assets/javascripts/application.js
|
270
|
+
- test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss
|
271
|
+
- test/fixtures/scss_project/app/assets/stylesheets/application.css.scss
|
272
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_application.css
|
273
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_erb_handler.css.erb
|
274
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_sass_erb_handler.css.sass.erb
|
275
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_scss_erb_handler.css.scss.erb
|
276
|
+
- test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss
|
277
|
+
- test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss
|
278
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass
|
279
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss
|
280
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
281
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass
|
282
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss
|
283
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss
|
284
|
+
- test/fixtures/scss_project/app/assets/stylesheets/sass_erb_handler.sass.erb
|
285
|
+
- test/fixtures/scss_project/app/assets/stylesheets/scss_erb_handler.scss.erb
|
286
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/_defaults.css.scss
|
287
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css
|
288
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css
|
289
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss
|
290
|
+
- test/fixtures/scss_project/app/controllers/application_controller.rb
|
291
|
+
- test/fixtures/scss_project/app/helpers/application_helper.rb
|
292
|
+
- test/fixtures/scss_project/app/mailers/.gitkeep
|
293
|
+
- test/fixtures/scss_project/app/models/.gitkeep
|
294
|
+
- test/fixtures/scss_project/app/views/layouts/application.html.erb
|
295
|
+
- test/fixtures/scss_project/config.ru
|
296
|
+
- test/fixtures/scss_project/config/application.rb
|
297
|
+
- test/fixtures/scss_project/config/boot.rb
|
298
|
+
- test/fixtures/scss_project/config/database.yml
|
299
|
+
- test/fixtures/scss_project/config/environment.rb
|
300
|
+
- test/fixtures/scss_project/config/environments/development.rb
|
301
|
+
- test/fixtures/scss_project/config/environments/production.rb
|
302
|
+
- test/fixtures/scss_project/config/environments/test.rb
|
303
|
+
- test/fixtures/scss_project/config/initializers/backtrace_silencers.rb
|
304
|
+
- test/fixtures/scss_project/config/initializers/inflections.rb
|
305
|
+
- test/fixtures/scss_project/config/initializers/mime_types.rb
|
306
|
+
- test/fixtures/scss_project/config/initializers/postprocessor.rb
|
307
|
+
- test/fixtures/scss_project/config/initializers/secret_token.rb
|
308
|
+
- test/fixtures/scss_project/config/initializers/session_store.rb
|
309
|
+
- test/fixtures/scss_project/config/initializers/wrap_parameters.rb
|
310
|
+
- test/fixtures/scss_project/config/locales/en.yml
|
311
|
+
- test/fixtures/scss_project/config/routes.rb
|
312
|
+
- test/fixtures/scss_project/db/seeds.rb
|
313
|
+
- test/fixtures/scss_project/doc/README_FOR_APP
|
314
|
+
- test/fixtures/scss_project/lib/tasks/.gitkeep
|
315
|
+
- test/fixtures/scss_project/log/.gitkeep
|
316
|
+
- test/fixtures/scss_project/public/404.html
|
317
|
+
- test/fixtures/scss_project/public/422.html
|
318
|
+
- test/fixtures/scss_project/public/500.html
|
319
|
+
- test/fixtures/scss_project/public/favicon.ico
|
320
|
+
- test/fixtures/scss_project/public/index.html
|
321
|
+
- test/fixtures/scss_project/public/robots.txt
|
322
|
+
- test/fixtures/scss_project/script/rails
|
323
|
+
- test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep
|
324
|
+
- test/fixtures/scss_project/vendor/plugins/.gitkeep
|
325
|
+
- test/sass_rails_generators_test.rb
|
326
|
+
- test/sass_rails_logger_test.rb
|
327
|
+
- test/sass_rails_test.rb
|
328
|
+
- test/support/sass_rails_test_case.rb
|
329
|
+
- test/test_helper.rb
|
330
|
+
homepage: https://github.com/pgharts/sass-rails3
|
331
|
+
licenses:
|
332
|
+
- MIT
|
333
|
+
post_install_message:
|
334
|
+
rdoc_options: []
|
335
|
+
|
336
|
+
require_paths:
|
337
|
+
- lib
|
338
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
339
|
+
none: false
|
340
|
+
requirements:
|
341
|
+
- - ">="
|
342
|
+
- !ruby/object:Gem::Version
|
343
|
+
hash: 3
|
344
|
+
segments:
|
345
|
+
- 0
|
346
|
+
version: "0"
|
347
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
348
|
+
none: false
|
349
|
+
requirements:
|
350
|
+
- - ">="
|
351
|
+
- !ruby/object:Gem::Version
|
352
|
+
hash: 3
|
353
|
+
segments:
|
354
|
+
- 0
|
355
|
+
version: "0"
|
356
|
+
requirements: []
|
357
|
+
|
358
|
+
rubyforge_project: sass-rails3
|
359
|
+
rubygems_version: 1.8.25
|
360
|
+
signing_key:
|
361
|
+
specification_version: 3
|
362
|
+
summary: Sass adapter for the Rails asset pipeline.
|
363
|
+
test_files:
|
364
|
+
- test/fixtures/alternate_config_project/.gitignore
|
365
|
+
- test/fixtures/alternate_config_project/Gemfile
|
366
|
+
- test/fixtures/alternate_config_project/README
|
367
|
+
- test/fixtures/alternate_config_project/Rakefile
|
368
|
+
- test/fixtures/alternate_config_project/app/assets/images/1x1.png
|
369
|
+
- test/fixtures/alternate_config_project/app/assets/images/rails.png
|
370
|
+
- test/fixtures/alternate_config_project/app/assets/javascripts/application.js
|
371
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/_top_level_partial.css.scss
|
372
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/application.css.scss
|
373
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/css_application.css
|
374
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/globbed.css.scss
|
375
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss
|
376
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_sass_import.css.sass
|
377
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_scss_import.css.scss
|
378
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
379
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass
|
380
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss
|
381
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss
|
382
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/another_plain.css
|
383
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/plain.css
|
384
|
+
- test/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/second_level.css.scss
|
385
|
+
- test/fixtures/alternate_config_project/app/controllers/application_controller.rb
|
386
|
+
- test/fixtures/alternate_config_project/app/helpers/application_helper.rb
|
387
|
+
- test/fixtures/alternate_config_project/app/mailers/.gitkeep
|
388
|
+
- test/fixtures/alternate_config_project/app/models/.gitkeep
|
389
|
+
- test/fixtures/alternate_config_project/app/views/layouts/application.html.erb
|
390
|
+
- test/fixtures/alternate_config_project/config.ru
|
391
|
+
- test/fixtures/alternate_config_project/config/application.rb
|
392
|
+
- test/fixtures/alternate_config_project/config/boot.rb
|
393
|
+
- test/fixtures/alternate_config_project/config/database.yml
|
394
|
+
- test/fixtures/alternate_config_project/config/environment.rb
|
395
|
+
- test/fixtures/alternate_config_project/config/environments/development.rb
|
396
|
+
- test/fixtures/alternate_config_project/config/environments/production.rb
|
397
|
+
- test/fixtures/alternate_config_project/config/environments/test.rb
|
398
|
+
- test/fixtures/alternate_config_project/config/initializers/backtrace_silencers.rb
|
399
|
+
- test/fixtures/alternate_config_project/config/initializers/inflections.rb
|
400
|
+
- test/fixtures/alternate_config_project/config/initializers/mime_types.rb
|
401
|
+
- test/fixtures/alternate_config_project/config/initializers/secret_token.rb
|
402
|
+
- test/fixtures/alternate_config_project/config/initializers/session_store.rb
|
403
|
+
- test/fixtures/alternate_config_project/config/initializers/wrap_parameters.rb
|
404
|
+
- test/fixtures/alternate_config_project/config/locales/en.yml
|
405
|
+
- test/fixtures/alternate_config_project/config/routes.rb
|
406
|
+
- test/fixtures/alternate_config_project/db/seeds.rb
|
407
|
+
- test/fixtures/alternate_config_project/doc/README_FOR_APP
|
408
|
+
- test/fixtures/alternate_config_project/lib/tasks/.gitkeep
|
409
|
+
- test/fixtures/alternate_config_project/log/.gitkeep
|
410
|
+
- test/fixtures/alternate_config_project/public/404.html
|
411
|
+
- test/fixtures/alternate_config_project/public/422.html
|
412
|
+
- test/fixtures/alternate_config_project/public/500.html
|
413
|
+
- test/fixtures/alternate_config_project/public/favicon.ico
|
414
|
+
- test/fixtures/alternate_config_project/public/index.html
|
415
|
+
- test/fixtures/alternate_config_project/public/robots.txt
|
416
|
+
- test/fixtures/alternate_config_project/script/rails
|
417
|
+
- test/fixtures/alternate_config_project/vendor/assets/stylesheets/.gitkeep
|
418
|
+
- test/fixtures/alternate_config_project/vendor/plugins/.gitkeep
|
419
|
+
- test/fixtures/engine_project/.gitignore
|
420
|
+
- test/fixtures/engine_project/Gemfile
|
421
|
+
- test/fixtures/engine_project/MIT-LICENSE
|
422
|
+
- test/fixtures/engine_project/README.rdoc
|
423
|
+
- test/fixtures/engine_project/Rakefile
|
424
|
+
- test/fixtures/engine_project/app/assets/images/engine_project/.keep
|
425
|
+
- test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js
|
426
|
+
- test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css
|
427
|
+
- test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb
|
428
|
+
- test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb
|
429
|
+
- test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb
|
430
|
+
- test/fixtures/engine_project/config/routes.rb
|
431
|
+
- test/fixtures/engine_project/engine_project.gemspec
|
432
|
+
- test/fixtures/engine_project/lib/engine_project.rb
|
433
|
+
- test/fixtures/engine_project/lib/engine_project/engine.rb
|
434
|
+
- test/fixtures/engine_project/lib/engine_project/version.rb
|
435
|
+
- test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake
|
436
|
+
- test/fixtures/engine_project/script/rails
|
437
|
+
- test/fixtures/engine_project/test/dummy/README.rdoc
|
438
|
+
- test/fixtures/engine_project/test/dummy/Rakefile
|
439
|
+
- test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js
|
440
|
+
- test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css
|
441
|
+
- test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb
|
442
|
+
- test/fixtures/engine_project/test/dummy/app/controllers/concerns/.keep
|
443
|
+
- test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb
|
444
|
+
- test/fixtures/engine_project/test/dummy/app/mailers/.keep
|
445
|
+
- test/fixtures/engine_project/test/dummy/app/models/.keep
|
446
|
+
- test/fixtures/engine_project/test/dummy/app/models/concerns/.keep
|
447
|
+
- test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb
|
448
|
+
- test/fixtures/engine_project/test/dummy/bin/bundle
|
449
|
+
- test/fixtures/engine_project/test/dummy/bin/rails
|
450
|
+
- test/fixtures/engine_project/test/dummy/bin/rake
|
451
|
+
- test/fixtures/engine_project/test/dummy/config.ru
|
452
|
+
- test/fixtures/engine_project/test/dummy/config/application.rb
|
453
|
+
- test/fixtures/engine_project/test/dummy/config/boot.rb
|
454
|
+
- test/fixtures/engine_project/test/dummy/config/database.yml
|
455
|
+
- test/fixtures/engine_project/test/dummy/config/environment.rb
|
456
|
+
- test/fixtures/engine_project/test/dummy/config/environments/development.rb
|
457
|
+
- test/fixtures/engine_project/test/dummy/config/environments/production.rb
|
458
|
+
- test/fixtures/engine_project/test/dummy/config/environments/test.rb
|
459
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb
|
460
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/filter_parameter_logging.rb
|
461
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb
|
462
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb
|
463
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb
|
464
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb
|
465
|
+
- test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb
|
466
|
+
- test/fixtures/engine_project/test/dummy/config/locales/en.yml
|
467
|
+
- test/fixtures/engine_project/test/dummy/config/routes.rb
|
468
|
+
- test/fixtures/engine_project/test/dummy/lib/assets/.keep
|
469
|
+
- test/fixtures/engine_project/test/dummy/log/.keep
|
470
|
+
- test/fixtures/engine_project/test/dummy/public/404.html
|
471
|
+
- test/fixtures/engine_project/test/dummy/public/422.html
|
472
|
+
- test/fixtures/engine_project/test/dummy/public/500.html
|
473
|
+
- test/fixtures/engine_project/test/dummy/public/favicon.ico
|
474
|
+
- test/fixtures/sass_project/.gitignore
|
475
|
+
- test/fixtures/sass_project/Gemfile
|
476
|
+
- test/fixtures/sass_project/README
|
477
|
+
- test/fixtures/sass_project/Rakefile
|
478
|
+
- test/fixtures/sass_project/app/assets/images/rails.png
|
479
|
+
- test/fixtures/sass_project/app/assets/javascripts/application.js
|
480
|
+
- test/fixtures/sass_project/app/assets/stylesheets/application.css
|
481
|
+
- test/fixtures/sass_project/app/controllers/application_controller.rb
|
482
|
+
- test/fixtures/sass_project/app/helpers/application_helper.rb
|
483
|
+
- test/fixtures/sass_project/app/mailers/.gitkeep
|
484
|
+
- test/fixtures/sass_project/app/models/.gitkeep
|
485
|
+
- test/fixtures/sass_project/app/views/layouts/application.html.erb
|
486
|
+
- test/fixtures/sass_project/config.ru
|
487
|
+
- test/fixtures/sass_project/config/application.rb
|
488
|
+
- test/fixtures/sass_project/config/boot.rb
|
489
|
+
- test/fixtures/sass_project/config/database.yml
|
490
|
+
- test/fixtures/sass_project/config/environment.rb
|
491
|
+
- test/fixtures/sass_project/config/environments/development.rb
|
492
|
+
- test/fixtures/sass_project/config/environments/production.rb
|
493
|
+
- test/fixtures/sass_project/config/environments/test.rb
|
494
|
+
- test/fixtures/sass_project/config/initializers/backtrace_silencers.rb
|
495
|
+
- test/fixtures/sass_project/config/initializers/inflections.rb
|
496
|
+
- test/fixtures/sass_project/config/initializers/mime_types.rb
|
497
|
+
- test/fixtures/sass_project/config/initializers/secret_token.rb
|
498
|
+
- test/fixtures/sass_project/config/initializers/session_store.rb
|
499
|
+
- test/fixtures/sass_project/config/initializers/wrap_parameters.rb
|
500
|
+
- test/fixtures/sass_project/config/locales/en.yml
|
501
|
+
- test/fixtures/sass_project/config/routes.rb
|
502
|
+
- test/fixtures/sass_project/db/seeds.rb
|
503
|
+
- test/fixtures/sass_project/doc/README_FOR_APP
|
504
|
+
- test/fixtures/sass_project/lib/tasks/.gitkeep
|
505
|
+
- test/fixtures/sass_project/log/.gitkeep
|
506
|
+
- test/fixtures/sass_project/public/404.html
|
507
|
+
- test/fixtures/sass_project/public/422.html
|
508
|
+
- test/fixtures/sass_project/public/500.html
|
509
|
+
- test/fixtures/sass_project/public/favicon.ico
|
510
|
+
- test/fixtures/sass_project/public/index.html
|
511
|
+
- test/fixtures/sass_project/public/robots.txt
|
512
|
+
- test/fixtures/sass_project/script/rails
|
513
|
+
- test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep
|
514
|
+
- test/fixtures/sass_project/vendor/plugins/.gitkeep
|
515
|
+
- test/fixtures/scss_project/.gitignore
|
516
|
+
- test/fixtures/scss_project/Gemfile
|
517
|
+
- test/fixtures/scss_project/README
|
518
|
+
- test/fixtures/scss_project/Rakefile
|
519
|
+
- test/fixtures/scss_project/app/assets/images/1x1.png
|
520
|
+
- test/fixtures/scss_project/app/assets/images/rails.png
|
521
|
+
- test/fixtures/scss_project/app/assets/javascripts/application.js
|
522
|
+
- test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss
|
523
|
+
- test/fixtures/scss_project/app/assets/stylesheets/application.css.scss
|
524
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_application.css
|
525
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_erb_handler.css.erb
|
526
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_sass_erb_handler.css.sass.erb
|
527
|
+
- test/fixtures/scss_project/app/assets/stylesheets/css_scss_erb_handler.css.scss.erb
|
528
|
+
- test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss
|
529
|
+
- test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss
|
530
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass
|
531
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss
|
532
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
533
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass
|
534
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss
|
535
|
+
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss
|
536
|
+
- test/fixtures/scss_project/app/assets/stylesheets/sass_erb_handler.sass.erb
|
537
|
+
- test/fixtures/scss_project/app/assets/stylesheets/scss_erb_handler.scss.erb
|
538
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/_defaults.css.scss
|
539
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css
|
540
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css
|
541
|
+
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss
|
542
|
+
- test/fixtures/scss_project/app/controllers/application_controller.rb
|
543
|
+
- test/fixtures/scss_project/app/helpers/application_helper.rb
|
544
|
+
- test/fixtures/scss_project/app/mailers/.gitkeep
|
545
|
+
- test/fixtures/scss_project/app/models/.gitkeep
|
546
|
+
- test/fixtures/scss_project/app/views/layouts/application.html.erb
|
547
|
+
- test/fixtures/scss_project/config.ru
|
548
|
+
- test/fixtures/scss_project/config/application.rb
|
549
|
+
- test/fixtures/scss_project/config/boot.rb
|
550
|
+
- test/fixtures/scss_project/config/database.yml
|
551
|
+
- test/fixtures/scss_project/config/environment.rb
|
552
|
+
- test/fixtures/scss_project/config/environments/development.rb
|
553
|
+
- test/fixtures/scss_project/config/environments/production.rb
|
554
|
+
- test/fixtures/scss_project/config/environments/test.rb
|
555
|
+
- test/fixtures/scss_project/config/initializers/backtrace_silencers.rb
|
556
|
+
- test/fixtures/scss_project/config/initializers/inflections.rb
|
557
|
+
- test/fixtures/scss_project/config/initializers/mime_types.rb
|
558
|
+
- test/fixtures/scss_project/config/initializers/postprocessor.rb
|
559
|
+
- test/fixtures/scss_project/config/initializers/secret_token.rb
|
560
|
+
- test/fixtures/scss_project/config/initializers/session_store.rb
|
561
|
+
- test/fixtures/scss_project/config/initializers/wrap_parameters.rb
|
562
|
+
- test/fixtures/scss_project/config/locales/en.yml
|
563
|
+
- test/fixtures/scss_project/config/routes.rb
|
564
|
+
- test/fixtures/scss_project/db/seeds.rb
|
565
|
+
- test/fixtures/scss_project/doc/README_FOR_APP
|
566
|
+
- test/fixtures/scss_project/lib/tasks/.gitkeep
|
567
|
+
- test/fixtures/scss_project/log/.gitkeep
|
568
|
+
- test/fixtures/scss_project/public/404.html
|
569
|
+
- test/fixtures/scss_project/public/422.html
|
570
|
+
- test/fixtures/scss_project/public/500.html
|
571
|
+
- test/fixtures/scss_project/public/favicon.ico
|
572
|
+
- test/fixtures/scss_project/public/index.html
|
573
|
+
- test/fixtures/scss_project/public/robots.txt
|
574
|
+
- test/fixtures/scss_project/script/rails
|
575
|
+
- test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep
|
576
|
+
- test/fixtures/scss_project/vendor/plugins/.gitkeep
|
577
|
+
- test/sass_rails_generators_test.rb
|
578
|
+
- test/sass_rails_logger_test.rb
|
579
|
+
- test/sass_rails_test.rb
|
580
|
+
- test/support/sass_rails_test_case.rb
|
581
|
+
- test/test_helper.rb
|