sassc-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +28 -0
- data/Rakefile +6 -0
- data/lib/sassc-rails.rb +8 -0
- data/lib/sassc/rails.rb +5 -0
- data/lib/sassc/rails/functions.rb +12 -0
- data/lib/sassc/rails/importer.rb +147 -0
- data/lib/sassc/rails/logger.rb +21 -0
- data/lib/sassc/rails/railtie.rb +64 -0
- data/lib/sassc/rails/template.rb +42 -0
- data/lib/sassc/rails/version.rb +5 -0
- data/sassc-rails.gemspec +34 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/images/1x1.png +0 -0
- data/test/dummy/app/assets/images/rails.png +0 -0
- data/test/dummy/app/assets/stylesheets/application.scss +5 -0
- data/test/dummy/app/assets/stylesheets/helpers_test.scss +18 -0
- data/test/dummy/app/assets/stylesheets/syntax_error.scss +3 -0
- data/test/dummy/rails_app.rb +16 -0
- data/test/sassc_rails_test.rb +77 -0
- data/test/smoke_test.rb +20 -0
- data/test/test_helper.rb +12 -0
- data/test_old/fixtures/alternate_config_project/.gitignore +5 -0
- data/test_old/fixtures/alternate_config_project/Gemfile +7 -0
- data/test_old/fixtures/alternate_config_project/README +261 -0
- data/test_old/fixtures/alternate_config_project/Rakefile +7 -0
- data/test_old/fixtures/alternate_config_project/app/assets/images/1x1.png +0 -0
- data/test_old/fixtures/alternate_config_project/app/assets/images/rails.png +0 -0
- data/test_old/fixtures/alternate_config_project/app/assets/javascripts/application.js +9 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/_top_level_partial.scss +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/application.scss +32 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/css_application.css +11 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/globbed/globbed.scss +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/globbed/nested/nested_glob.scss +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/_sass_import.sass +5 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/_scss_import.scss +9 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/_without_css_ext.scss +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_sass.sass +2 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_scss.scss +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.scss +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/another_plain.css +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/plain.css +3 -0
- data/test_old/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/second_level.scss +1 -0
- data/test_old/fixtures/alternate_config_project/app/controllers/application_controller.rb +3 -0
- data/test_old/fixtures/alternate_config_project/app/helpers/application_helper.rb +2 -0
- data/test_old/fixtures/alternate_config_project/app/mailers/.gitkeep +0 -0
- data/test_old/fixtures/alternate_config_project/app/models/.gitkeep +0 -0
- data/test_old/fixtures/alternate_config_project/app/views/layouts/application.html.erb +14 -0
- data/test_old/fixtures/alternate_config_project/config.ru +4 -0
- data/test_old/fixtures/alternate_config_project/config/application.rb +49 -0
- data/test_old/fixtures/alternate_config_project/config/boot.rb +6 -0
- data/test_old/fixtures/alternate_config_project/config/database.yml +25 -0
- data/test_old/fixtures/alternate_config_project/config/environment.rb +5 -0
- data/test_old/fixtures/alternate_config_project/config/environments/development.rb +27 -0
- data/test_old/fixtures/alternate_config_project/config/environments/production.rb +60 -0
- data/test_old/fixtures/alternate_config_project/config/environments/test.rb +42 -0
- data/test_old/fixtures/alternate_config_project/config/initializers/backtrace_silencers.rb +7 -0
- data/test_old/fixtures/alternate_config_project/config/initializers/inflections.rb +10 -0
- data/test_old/fixtures/alternate_config_project/config/initializers/mime_types.rb +5 -0
- data/test_old/fixtures/alternate_config_project/config/initializers/secret_token.rb +7 -0
- data/test_old/fixtures/alternate_config_project/config/initializers/session_store.rb +8 -0
- data/test_old/fixtures/alternate_config_project/config/initializers/wrap_parameters.rb +12 -0
- data/test_old/fixtures/alternate_config_project/config/locales/en.yml +5 -0
- data/test_old/fixtures/alternate_config_project/config/routes.rb +58 -0
- data/test_old/fixtures/alternate_config_project/db/seeds.rb +7 -0
- data/test_old/fixtures/alternate_config_project/doc/README_FOR_APP +2 -0
- data/test_old/fixtures/alternate_config_project/lib/tasks/.gitkeep +0 -0
- data/test_old/fixtures/alternate_config_project/log/.gitkeep +0 -0
- data/test_old/fixtures/alternate_config_project/public/404.html +26 -0
- data/test_old/fixtures/alternate_config_project/public/422.html +26 -0
- data/test_old/fixtures/alternate_config_project/public/500.html +26 -0
- data/test_old/fixtures/alternate_config_project/public/favicon.ico +0 -0
- data/test_old/fixtures/alternate_config_project/public/index.html +241 -0
- data/test_old/fixtures/alternate_config_project/public/robots.txt +5 -0
- data/test_old/fixtures/alternate_config_project/script/rails +6 -0
- data/test_old/fixtures/engine_project/.gitignore +8 -0
- data/test_old/fixtures/engine_project/Gemfile +14 -0
- data/test_old/fixtures/engine_project/MIT-LICENSE +20 -0
- data/test_old/fixtures/engine_project/README.rdoc +3 -0
- data/test_old/fixtures/engine_project/Rakefile +34 -0
- data/test_old/fixtures/engine_project/app/assets/images/engine_project/.keep +0 -0
- data/test_old/fixtures/engine_project/app/assets/javascripts/engine_project/application.js +16 -0
- data/test_old/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css +13 -0
- data/test_old/fixtures/engine_project/app/controllers/engine_project/application_controller.rb +4 -0
- data/test_old/fixtures/engine_project/app/helpers/engine_project/application_helper.rb +4 -0
- data/test_old/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb +14 -0
- data/test_old/fixtures/engine_project/config/routes.rb +2 -0
- data/test_old/fixtures/engine_project/engine_project.gemspec +23 -0
- data/test_old/fixtures/engine_project/lib/engine_project.rb +4 -0
- data/test_old/fixtures/engine_project/lib/engine_project/engine.rb +5 -0
- data/test_old/fixtures/engine_project/lib/engine_project/version.rb +3 -0
- data/test_old/fixtures/engine_project/lib/tasks/engine_project_tasks.rake +4 -0
- data/test_old/fixtures/engine_project/script/rails +8 -0
- data/test_old/fixtures/engine_project/test/dummy/README.rdoc +28 -0
- data/test_old/fixtures/engine_project/test/dummy/Rakefile +6 -0
- data/test_old/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js +16 -0
- data/test_old/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test_old/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test_old/fixtures/engine_project/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test_old/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test_old/fixtures/engine_project/test/dummy/app/mailers/.keep +0 -0
- data/test_old/fixtures/engine_project/test/dummy/app/models/.keep +0 -0
- data/test_old/fixtures/engine_project/test/dummy/app/models/concerns/.keep +0 -0
- data/test_old/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test_old/fixtures/engine_project/test/dummy/bin/bundle +3 -0
- data/test_old/fixtures/engine_project/test/dummy/bin/rails +4 -0
- data/test_old/fixtures/engine_project/test/dummy/bin/rake +4 -0
- data/test_old/fixtures/engine_project/test/dummy/config.ru +4 -0
- data/test_old/fixtures/engine_project/test/dummy/config/application.rb +23 -0
- data/test_old/fixtures/engine_project/test/dummy/config/boot.rb +9 -0
- data/test_old/fixtures/engine_project/test/dummy/config/database.yml +25 -0
- data/test_old/fixtures/engine_project/test/dummy/config/environment.rb +5 -0
- data/test_old/fixtures/engine_project/test/dummy/config/environments/development.rb +27 -0
- data/test_old/fixtures/engine_project/test/dummy/config/environments/production.rb +84 -0
- data/test_old/fixtures/engine_project/test/dummy/config/environments/test.rb +40 -0
- data/test_old/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test_old/fixtures/engine_project/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test_old/fixtures/engine_project/test/dummy/config/initializers/inflections.rb +16 -0
- data/test_old/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test_old/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test_old/fixtures/engine_project/test/dummy/config/initializers/session_store.rb +3 -0
- data/test_old/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test_old/fixtures/engine_project/test/dummy/config/locales/en.yml +23 -0
- data/test_old/fixtures/engine_project/test/dummy/config/routes.rb +4 -0
- data/test_old/fixtures/engine_project/test/dummy/lib/assets/.keep +0 -0
- data/test_old/fixtures/engine_project/test/dummy/log/.keep +0 -0
- data/test_old/fixtures/engine_project/test/dummy/public/404.html +27 -0
- data/test_old/fixtures/engine_project/test/dummy/public/422.html +26 -0
- data/test_old/fixtures/engine_project/test/dummy/public/500.html +26 -0
- data/test_old/fixtures/engine_project/test/dummy/public/favicon.ico +0 -0
- data/test_old/fixtures/sass_project/.gitignore +5 -0
- data/test_old/fixtures/sass_project/Gemfile +7 -0
- data/test_old/fixtures/sass_project/README +261 -0
- data/test_old/fixtures/sass_project/Rakefile +7 -0
- data/test_old/fixtures/sass_project/app/assets/images/rails.png +0 -0
- data/test_old/fixtures/sass_project/app/assets/javascripts/application.js +9 -0
- data/test_old/fixtures/sass_project/app/assets/stylesheets/application.css +7 -0
- data/test_old/fixtures/sass_project/app/controllers/application_controller.rb +3 -0
- data/test_old/fixtures/sass_project/app/helpers/application_helper.rb +2 -0
- data/test_old/fixtures/sass_project/app/mailers/.gitkeep +0 -0
- data/test_old/fixtures/sass_project/app/models/.gitkeep +0 -0
- data/test_old/fixtures/sass_project/app/views/layouts/application.html.erb +14 -0
- data/test_old/fixtures/sass_project/config.ru +4 -0
- data/test_old/fixtures/sass_project/config/application.rb +52 -0
- data/test_old/fixtures/sass_project/config/boot.rb +6 -0
- data/test_old/fixtures/sass_project/config/database.yml +25 -0
- data/test_old/fixtures/sass_project/config/environment.rb +5 -0
- data/test_old/fixtures/sass_project/config/environments/development.rb +24 -0
- data/test_old/fixtures/sass_project/config/environments/production.rb +58 -0
- data/test_old/fixtures/sass_project/config/environments/test.rb +43 -0
- data/test_old/fixtures/sass_project/config/initializers/backtrace_silencers.rb +7 -0
- data/test_old/fixtures/sass_project/config/initializers/inflections.rb +10 -0
- data/test_old/fixtures/sass_project/config/initializers/mime_types.rb +5 -0
- data/test_old/fixtures/sass_project/config/initializers/secret_token.rb +7 -0
- data/test_old/fixtures/sass_project/config/initializers/session_store.rb +8 -0
- data/test_old/fixtures/sass_project/config/initializers/wrap_parameters.rb +12 -0
- data/test_old/fixtures/sass_project/config/locales/en.yml +5 -0
- data/test_old/fixtures/sass_project/config/routes.rb +58 -0
- data/test_old/fixtures/sass_project/db/seeds.rb +7 -0
- data/test_old/fixtures/sass_project/doc/README_FOR_APP +2 -0
- data/test_old/fixtures/sass_project/lib/tasks/.gitkeep +0 -0
- data/test_old/fixtures/sass_project/log/.gitkeep +0 -0
- data/test_old/fixtures/sass_project/public/404.html +26 -0
- data/test_old/fixtures/sass_project/public/422.html +26 -0
- data/test_old/fixtures/sass_project/public/500.html +26 -0
- data/test_old/fixtures/sass_project/public/favicon.ico +0 -0
- data/test_old/fixtures/sass_project/public/index.html +241 -0
- data/test_old/fixtures/sass_project/public/robots.txt +5 -0
- data/test_old/fixtures/sass_project/script/rails +6 -0
- data/test_old/fixtures/scss_project/.gitignore +5 -0
- data/test_old/fixtures/scss_project/Gemfile +7 -0
- data/test_old/fixtures/scss_project/README +261 -0
- data/test_old/fixtures/scss_project/Rakefile +7 -0
- data/test_old/fixtures/scss_project/app/assets/images/1x1.png +0 -0
- data/test_old/fixtures/scss_project/app/assets/images/rails.png +0 -0
- data/test_old/fixtures/scss_project/app/assets/javascripts/application.js +9 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.scss +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/application.scss +38 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/css_application.css +11 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/css_erb_handler.css.erb +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/css_sass_erb_handler.sass.erb +2 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/css_scss_erb_handler.scss.erb +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.scss +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.scss +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/import_css_application.scss +5 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/partials/_css_sass_import.sass +5 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.sass +2 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.scss +9 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.sass +2 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.scss +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.scss +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/sass_erb_handler.sass.erb +2 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/scss_erb_handler.scss.erb +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/_defaults.scss +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css +3 -0
- data/test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.scss +2 -0
- data/test_old/fixtures/scss_project/app/controllers/application_controller.rb +3 -0
- data/test_old/fixtures/scss_project/app/helpers/application_helper.rb +2 -0
- data/test_old/fixtures/scss_project/app/mailers/.gitkeep +0 -0
- data/test_old/fixtures/scss_project/app/models/.gitkeep +0 -0
- data/test_old/fixtures/scss_project/app/views/layouts/application.html.erb +14 -0
- data/test_old/fixtures/scss_project/config.ru +4 -0
- data/test_old/fixtures/scss_project/config/application.rb +49 -0
- data/test_old/fixtures/scss_project/config/boot.rb +6 -0
- data/test_old/fixtures/scss_project/config/database.yml +25 -0
- data/test_old/fixtures/scss_project/config/environment.rb +5 -0
- data/test_old/fixtures/scss_project/config/environments/development.rb +23 -0
- data/test_old/fixtures/scss_project/config/environments/production.rb +57 -0
- data/test_old/fixtures/scss_project/config/environments/test.rb +42 -0
- data/test_old/fixtures/scss_project/config/initializers/backtrace_silencers.rb +7 -0
- data/test_old/fixtures/scss_project/config/initializers/inflections.rb +10 -0
- data/test_old/fixtures/scss_project/config/initializers/mime_types.rb +5 -0
- data/test_old/fixtures/scss_project/config/initializers/postprocessor.rb +3 -0
- data/test_old/fixtures/scss_project/config/initializers/secret_token.rb +7 -0
- data/test_old/fixtures/scss_project/config/initializers/session_store.rb +8 -0
- data/test_old/fixtures/scss_project/config/initializers/wrap_parameters.rb +12 -0
- data/test_old/fixtures/scss_project/config/locales/en.yml +5 -0
- data/test_old/fixtures/scss_project/config/routes.rb +58 -0
- data/test_old/fixtures/scss_project/db/seeds.rb +7 -0
- data/test_old/fixtures/scss_project/doc/README_FOR_APP +2 -0
- data/test_old/fixtures/scss_project/lib/tasks/.gitkeep +0 -0
- data/test_old/fixtures/scss_project/log/.gitkeep +0 -0
- data/test_old/fixtures/scss_project/public/404.html +26 -0
- data/test_old/fixtures/scss_project/public/422.html +26 -0
- data/test_old/fixtures/scss_project/public/500.html +26 -0
- data/test_old/fixtures/scss_project/public/favicon.ico +0 -0
- data/test_old/fixtures/scss_project/public/index.html +241 -0
- data/test_old/fixtures/scss_project/public/robots.txt +5 -0
- data/test_old/fixtures/scss_project/script/rails +6 -0
- data/test_old/sass_rails_test.rb +203 -0
- data/test_old/support/sass_rails_test_case.rb +181 -0
- data/test_old/test_helper.rb +27 -0
- metadata +416 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,203 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SassCRailsTest < SassC::Rails::TestCase
|
4
|
+
test 'classes are loaded' do
|
5
|
+
assert_kind_of Module, SassC::Rails
|
6
|
+
assert_kind_of Class, SassC::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
|
+
runner 'development' do
|
12
|
+
"puts Rails.application.config.sass.style"
|
13
|
+
end
|
14
|
+
|
15
|
+
assert_output /compact/
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
test 'style config item is not honored if environment is not development' do
|
20
|
+
within_rails_app 'alternate_config_project' do
|
21
|
+
runner 'production' do
|
22
|
+
"p Rails.application.config.sass.style"
|
23
|
+
end
|
24
|
+
|
25
|
+
assert_equal 'nil', $last_output.chomp
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
test 'css_compressor config item is not honored in development mode' do
|
30
|
+
within_rails_app 'alternate_config_project' do
|
31
|
+
runner 'development' do
|
32
|
+
"p Rails.application.config.assets.css_compressor"
|
33
|
+
end
|
34
|
+
|
35
|
+
assert_equal 'nil', $last_output.chomp
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
test 'css_compressor config item is honored if environment is not development' do
|
40
|
+
within_rails_app 'alternate_config_project' do
|
41
|
+
runner 'production' do
|
42
|
+
"puts Rails.application.config.assets.css_compressor"
|
43
|
+
end
|
44
|
+
|
45
|
+
assert_output /yui/
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
test 'sass uses expanded style by default in development mode' do
|
50
|
+
within_rails_app 'scss_project' do
|
51
|
+
runner 'development' do
|
52
|
+
"puts Rails.application.config.sass.style"
|
53
|
+
end
|
54
|
+
|
55
|
+
assert_output /expanded/
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
test 'sass not defines compressor in development mode' do
|
60
|
+
within_rails_app 'scss_project' do
|
61
|
+
runner 'development' do
|
62
|
+
"p Rails.application.config.assets.css_compressor"
|
63
|
+
end
|
64
|
+
|
65
|
+
assert_equal 'nil', $last_output.chomp
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
test 'sass defines compressor by default in test mode' do
|
70
|
+
within_rails_app 'scss_project' do
|
71
|
+
runner 'test' do
|
72
|
+
"puts Rails.application.config.assets.css_compressor"
|
73
|
+
end
|
74
|
+
|
75
|
+
assert_equal 'sass', $last_output.chomp
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
test 'sass defines compressor by default in production mode' do
|
80
|
+
within_rails_app 'scss_project' do
|
81
|
+
runner 'production' do
|
82
|
+
"puts Rails.application.config.assets.css_compressor"
|
83
|
+
end
|
84
|
+
|
85
|
+
assert_equal 'sass', $last_output.chomp
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
test 'sprockets require works correctly' do
|
90
|
+
skip
|
91
|
+
|
92
|
+
within_rails_app('scss_project') do |app_root|
|
93
|
+
css_output = asset_output('css_application.css')
|
94
|
+
assert_match /globbed/, css_output
|
95
|
+
|
96
|
+
if File.exists?("#{app_root}/log/development.log")
|
97
|
+
log_file = "#{app_root}/log/development.log"
|
98
|
+
elsif File.exists?("#{app_root}/log/test.log")
|
99
|
+
log_file = "#{app_root}/log/test.log"
|
100
|
+
else
|
101
|
+
flunk "log file was not created"
|
102
|
+
end
|
103
|
+
|
104
|
+
log_output = File.open(log_file).read
|
105
|
+
refute_match /Warning/, log_output
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
test 'sass imports work correctly' do
|
110
|
+
skip
|
111
|
+
|
112
|
+
css_output = sprockets_render('scss_project', 'application.scss')
|
113
|
+
assert_match /main/, css_output
|
114
|
+
assert_match /top-level/, css_output
|
115
|
+
assert_match /partial-sass/, css_output
|
116
|
+
assert_match /partial-scss/, css_output
|
117
|
+
assert_match /sub-folder-relative-sass/, css_output
|
118
|
+
assert_match /sub-folder-relative-scss/, css_output
|
119
|
+
assert_match /not-a-partial/, css_output
|
120
|
+
assert_match /globbed/, css_output
|
121
|
+
assert_match /nested-glob/, css_output
|
122
|
+
assert_match /plain-old-css/, css_output
|
123
|
+
assert_match /another-plain-old-css/, css_output
|
124
|
+
assert_match /without-css-ext/, css_output
|
125
|
+
assert_match /css-erb-handler/, css_output
|
126
|
+
assert_match /scss-erb-handler/, css_output
|
127
|
+
assert_match /sass-erb-handler/, css_output
|
128
|
+
assert_match /css-sass-erb-handler/, css_output
|
129
|
+
assert_match /css-scss-erb-handler/, css_output
|
130
|
+
assert_match /default-old-css/, css_output
|
131
|
+
end
|
132
|
+
|
133
|
+
test 'sprockets directives are ignored within an import' do
|
134
|
+
skip
|
135
|
+
|
136
|
+
css_output = sprockets_render('scss_project', 'import_css_application.css')
|
137
|
+
assert_match /\.css-application/, css_output
|
138
|
+
assert_match /\.import-css-application/, css_output
|
139
|
+
end
|
140
|
+
|
141
|
+
test 'globbed imports work when new file is added' do
|
142
|
+
skip
|
143
|
+
|
144
|
+
project = 'scss_project'
|
145
|
+
filename = 'application.scss'
|
146
|
+
|
147
|
+
within_rails_app(project) do |tmpdir|
|
148
|
+
asset_output(filename)
|
149
|
+
|
150
|
+
new_file = File.join(tmpdir, 'app', 'assets', 'stylesheets', 'globbed', 'new.scss')
|
151
|
+
File.open(new_file, 'w') do |file|
|
152
|
+
file.puts '.new-file-test { color: #000; }'
|
153
|
+
end
|
154
|
+
|
155
|
+
css_output = asset_output(filename)
|
156
|
+
assert_match /new-file-test/, css_output
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
test 'globbed imports work when globbed file is changed' do
|
161
|
+
skip
|
162
|
+
|
163
|
+
project = 'scss_project'
|
164
|
+
filename = 'application.scss'
|
165
|
+
|
166
|
+
within_rails_app(project) do |tmpdir|
|
167
|
+
asset_output(filename)
|
168
|
+
|
169
|
+
new_file = File.join(tmpdir, 'app', 'assets', 'stylesheets', 'globbed', 'globbed.scss')
|
170
|
+
File.open(new_file, 'w') do |file|
|
171
|
+
file.puts '.changed-file-test { color: #000; }'
|
172
|
+
end
|
173
|
+
|
174
|
+
css_output = asset_output(filename)
|
175
|
+
assert_match /changed-file-test/, css_output
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
test 'sass asset paths work' do
|
180
|
+
css_output = sprockets_render('scss_project', 'application.scss')
|
181
|
+
assert_match %r{asset-path:\s*"/assets/rails.png"}, css_output, 'asset-path:\s*"/assets/rails.png"'
|
182
|
+
assert_match %r{asset-url:\s*url\(/assets/rails.png\)}, css_output, 'asset-url:\s*url\(/assets/rails.png\)'
|
183
|
+
assert_match %r{image-path:\s*"/assets/rails.png"}, css_output, 'image-path:\s*"/assets/rails.png"'
|
184
|
+
assert_match %r{image-url:\s*url\(/assets/rails.png\)}, css_output, 'image-url:\s*url\(/assets/rails.png\)'
|
185
|
+
assert_match %r{video-path:\s*"/videos/rails.mp4"}, css_output, 'video-path:\s*"/videos/rails.mp4"'
|
186
|
+
assert_match %r{video-url:\s*url\(/videos/rails.mp4\)}, css_output, 'video-url:\s*url\(/videos/rails.mp4\)'
|
187
|
+
assert_match %r{audio-path:\s*"/audios/rails.mp3"}, css_output, 'audio-path:\s*"/audios/rails.mp3"'
|
188
|
+
assert_match %r{audio-url:\s*url\(/audios/rails.mp3\)}, css_output, 'audio-url:\s*url\(/audios/rails.mp3\)'
|
189
|
+
assert_match %r{font-path:\s*"/fonts/rails.ttf"}, css_output, 'font-path:\s*"/fonts/rails.ttf"'
|
190
|
+
assert_match %r{font-url:\s*url\(/fonts/rails.ttf\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf\)'
|
191
|
+
assert_match %r{font-url-with-query-hash:\s*url\(/fonts/rails.ttf\?#iefix\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf?#iefix\)'
|
192
|
+
assert_match %r{javascript-path:\s*"/javascripts/rails.js"}, css_output, 'javascript-path:\s*"/javascripts/rails.js"'
|
193
|
+
assert_match %r{javascript-url:\s*url\(/javascripts/rails.js\)}, css_output, 'javascript-url:\s*url\(/javascripts/rails.js\)'
|
194
|
+
assert_match %r{stylesheet-path:\s*"/stylesheets/rails.css"}, css_output, 'stylesheet-path:\s*"/stylesheets/rails.css"'
|
195
|
+
assert_match %r{stylesheet-url:\s*url\(/stylesheets/rails.css\)}, css_output, 'stylesheet-url:\s*url\(/stylesheets/rails.css\)'
|
196
|
+
|
197
|
+
asset_data_url_regexp = %r{asset-data-url:\s*url\((.*?)\)}
|
198
|
+
assert_match asset_data_url_regexp, css_output, 'asset-data-url:\s*url\((.*?)\)'
|
199
|
+
asset_data_url_match = css_output.match(asset_data_url_regexp)[1]
|
200
|
+
asset_data_url_expected = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCNzY5NDE1QkQ2NkMxMUUwOUUzM0E5Q0E2RTgyQUExQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCNzY5NDE1Q0Q2NkMxMUUwOUUzM0E5Q0E2RTgyQUExQiI%2BIDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3MzcyNTQ2RDY2QjExRTA5RTMzQTlDQTZFODJBQTFCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkI3Njk0MTVBRDY2QzExRTA5RTMzQTlDQTZFODJBQTFCIi8%2BIDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY%2BIDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8%2B0HhJ9AAAABBJREFUeNpi%2BP%2F%2FPwNAgAEACPwC%2FtuiTRYAAAAASUVORK5CYII%3D'
|
201
|
+
assert_equal asset_data_url_expected, asset_data_url_match
|
202
|
+
end
|
203
|
+
end
|
@@ -0,0 +1,181 @@
|
|
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 SassC::Rails::TestCase < ActiveSupport::TestCase
|
9
|
+
|
10
|
+
class ExecutionError < StandardError
|
11
|
+
attr_accessor :output
|
12
|
+
|
13
|
+
def initialize(message, output = nil)
|
14
|
+
super(message)
|
15
|
+
self.output = output
|
16
|
+
end
|
17
|
+
|
18
|
+
def message
|
19
|
+
"#{super}\nOutput was:\n#{output}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module SilentError
|
24
|
+
attr_accessor :output
|
25
|
+
|
26
|
+
def message
|
27
|
+
"#{super}\nOutput was:\n#{output}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
protected
|
32
|
+
|
33
|
+
def fixture_path(path)
|
34
|
+
File.expand_path("../../fixtures/#{path}", __FILE__)
|
35
|
+
end
|
36
|
+
|
37
|
+
module TestAssetPaths
|
38
|
+
attr_accessor :assets
|
39
|
+
end
|
40
|
+
|
41
|
+
def sprockets_render(project, filename)
|
42
|
+
within_rails_app(project) do
|
43
|
+
asset_output(filename)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def asset_output(filename)
|
48
|
+
runcmd "ruby script/rails runner 'puts Rails.application.assets[#{filename.inspect}]'"
|
49
|
+
end
|
50
|
+
|
51
|
+
def assert_file_exists(filename)
|
52
|
+
assert File.exists?(filename), "could not find #{filename}. PWD=#{Dir.pwd}\nDid find: #{Dir.glob(File.dirname(filename)+"/*").join(", ")}"
|
53
|
+
end
|
54
|
+
|
55
|
+
def assert_not_output(match)
|
56
|
+
assert_no_match match, $last_output
|
57
|
+
end
|
58
|
+
|
59
|
+
def assert_output(match)
|
60
|
+
assert $last_output.to_s =~ match, "#{match} was not found in #{$last_output.inspect}"
|
61
|
+
end
|
62
|
+
|
63
|
+
def assert_line_count(count)
|
64
|
+
last_count = $last_output.lines.count
|
65
|
+
assert last_count == count, "Wrong line count, expected: #{count} but got: #{last_count}"
|
66
|
+
end
|
67
|
+
# Copies a rails app fixture to a temp directory
|
68
|
+
# and changes to that directory during the yield.
|
69
|
+
#
|
70
|
+
# Automatically changes back to the working directory
|
71
|
+
# and removes the temp directory when done.
|
72
|
+
def within_rails_app(name, without_gems = [], gem_options = $gem_options)
|
73
|
+
sourcedir = File.expand_path("../../fixtures/#{name}", __FILE__)
|
74
|
+
|
75
|
+
Dir.mktmpdir do |tmpdir|
|
76
|
+
FileUtils.cp_r "#{sourcedir}/.", tmpdir
|
77
|
+
|
78
|
+
Dir.chdir(tmpdir) do
|
79
|
+
gem_options.each { |gem_name, options| modify_gem_entry gem_name, options }
|
80
|
+
without_gems.each { |gem_name| remove_gem name }
|
81
|
+
|
82
|
+
yield tmpdir
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def process_gemfile(gemfile = "Gemfile", &blk)
|
88
|
+
gem_contents = File.readlines(gemfile)
|
89
|
+
gem_contents.map!(&blk)
|
90
|
+
gem_contents.compact!
|
91
|
+
|
92
|
+
File.open(gemfile, "w") do |f|
|
93
|
+
f.print(gem_contents.join(""))
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
def modify_gem_entry(gemname, options, gemfile = "Gemfile")
|
98
|
+
found = false
|
99
|
+
|
100
|
+
process_gemfile(gemfile) do |line|
|
101
|
+
if line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/
|
102
|
+
found = true
|
103
|
+
gem_entry(gemname, options) + "\n"
|
104
|
+
else
|
105
|
+
line
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
unless found
|
110
|
+
File.open(gemfile, "a") do |f|
|
111
|
+
f.print("\n#{gem_entry(gemname, options)}\n")
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
def gem_entry(gemname, options)
|
117
|
+
entry = %Q{gem "#{gemname}", "~> #{options[:version]}"}
|
118
|
+
entry += ", :path => #{options[:path].inspect}" if options[:path]
|
119
|
+
entry
|
120
|
+
end
|
121
|
+
|
122
|
+
def remove_gem(gemname)
|
123
|
+
process_gemfile(gemfile) do |line|
|
124
|
+
line unless line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
def silently
|
129
|
+
output = StringIO.new
|
130
|
+
$stderr, old_stderr = output, $stderr
|
131
|
+
$stdout, old_stdout = output, $stdout
|
132
|
+
|
133
|
+
begin
|
134
|
+
yield
|
135
|
+
rescue ExecutionError => e
|
136
|
+
raise
|
137
|
+
rescue => e
|
138
|
+
e.extend(SilentError)
|
139
|
+
e.output = output.string
|
140
|
+
raise
|
141
|
+
end
|
142
|
+
ensure
|
143
|
+
$stderr = old_stderr
|
144
|
+
$stdout = old_stdout
|
145
|
+
end
|
146
|
+
|
147
|
+
# executes a system command
|
148
|
+
# raises an error if it does not complete successfully
|
149
|
+
# returns the output as a string if it does complete successfully
|
150
|
+
def runcmd(cmd, working_directory = Dir.pwd, clean_env = true, gemfile = "Gemfile", env = {})
|
151
|
+
# There's a bug in bundler where with_clean_env doesn't clear out the BUNDLE_GEMFILE environment setting
|
152
|
+
# https://github.com/carlhuda/bundler/issues/1133
|
153
|
+
env["BUNDLE_GEMFILE"] = "#{working_directory}/#{gemfile}" if clean_env
|
154
|
+
|
155
|
+
todo = Proc.new do
|
156
|
+
r, w = IO.pipe
|
157
|
+
Kernel.spawn(env, cmd, :out => w , :err => w, :chdir => working_directory)
|
158
|
+
w.close
|
159
|
+
Process.wait
|
160
|
+
output = r.read
|
161
|
+
r.close
|
162
|
+
|
163
|
+
unless $?.exitstatus == 0
|
164
|
+
raise ExecutionError, "Command failed with exit status #{$?.exitstatus}: #{cmd}", output
|
165
|
+
end
|
166
|
+
|
167
|
+
$last_output = output
|
168
|
+
end
|
169
|
+
|
170
|
+
if clean_env
|
171
|
+
Bundler.with_clean_env(&todo)
|
172
|
+
else
|
173
|
+
todo.call
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
# A thin wrapper around runcmd to be DRY in tests
|
178
|
+
def runner(environment)
|
179
|
+
runcmd "ruby script/rails runner '#{yield}'", Dir.pwd, true, 'Gemfile', {'RAILS_ENV' => environment}
|
180
|
+
end
|
181
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'rails'
|
6
|
+
require 'rails/test_help'
|
7
|
+
require 'sassc/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(sassc-rails sassc rails actionpack railties sprockets journey sprockets-rails activerecord-deprecated_finders pry-rails)
|
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 }
|
26
|
+
|
27
|
+
ActiveSupport::TestCase.test_order = :random if ActiveSupport::TestCase.respond_to?(:test_order=)
|
metadata
ADDED
@@ -0,0 +1,416 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sassc-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ryan Boland
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: pry
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 5.5.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 5.5.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sass
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sassc
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.0.7
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.0.7
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: railties
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sprockets
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.0.0.beta.6
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.0.0.beta.6
|
139
|
+
description: Integrate SassC-Ruby into Rails.
|
140
|
+
email:
|
141
|
+
- bolandryanm@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- Gemfile
|
148
|
+
- LICENSE.txt
|
149
|
+
- README.md
|
150
|
+
- Rakefile
|
151
|
+
- lib/sassc-rails.rb
|
152
|
+
- lib/sassc/rails.rb
|
153
|
+
- lib/sassc/rails/functions.rb
|
154
|
+
- lib/sassc/rails/importer.rb
|
155
|
+
- lib/sassc/rails/logger.rb
|
156
|
+
- lib/sassc/rails/railtie.rb
|
157
|
+
- lib/sassc/rails/template.rb
|
158
|
+
- lib/sassc/rails/version.rb
|
159
|
+
- sassc-rails.gemspec
|
160
|
+
- test/dummy/app/assets/images/.keep
|
161
|
+
- test/dummy/app/assets/images/1x1.png
|
162
|
+
- test/dummy/app/assets/images/rails.png
|
163
|
+
- test/dummy/app/assets/stylesheets/application.scss
|
164
|
+
- test/dummy/app/assets/stylesheets/helpers_test.scss
|
165
|
+
- test/dummy/app/assets/stylesheets/syntax_error.scss
|
166
|
+
- test/dummy/rails_app.rb
|
167
|
+
- test/sassc_rails_test.rb
|
168
|
+
- test/smoke_test.rb
|
169
|
+
- test/test_helper.rb
|
170
|
+
- test_old/fixtures/alternate_config_project/.gitignore
|
171
|
+
- test_old/fixtures/alternate_config_project/Gemfile
|
172
|
+
- test_old/fixtures/alternate_config_project/README
|
173
|
+
- test_old/fixtures/alternate_config_project/Rakefile
|
174
|
+
- test_old/fixtures/alternate_config_project/app/assets/images/1x1.png
|
175
|
+
- test_old/fixtures/alternate_config_project/app/assets/images/rails.png
|
176
|
+
- test_old/fixtures/alternate_config_project/app/assets/javascripts/application.js
|
177
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/_top_level_partial.scss
|
178
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/application.scss
|
179
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/css_application.css
|
180
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/globbed/globbed.scss
|
181
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/globbed/nested/nested_glob.scss
|
182
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/_sass_import.sass
|
183
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/_scss_import.scss
|
184
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
185
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_sass.sass
|
186
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/_relative_scss.scss
|
187
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.scss
|
188
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/another_plain.css
|
189
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/plain.css
|
190
|
+
- test_old/fixtures/alternate_config_project/app/assets/stylesheets/subfolder/second_level.scss
|
191
|
+
- test_old/fixtures/alternate_config_project/app/controllers/application_controller.rb
|
192
|
+
- test_old/fixtures/alternate_config_project/app/helpers/application_helper.rb
|
193
|
+
- test_old/fixtures/alternate_config_project/app/mailers/.gitkeep
|
194
|
+
- test_old/fixtures/alternate_config_project/app/models/.gitkeep
|
195
|
+
- test_old/fixtures/alternate_config_project/app/views/layouts/application.html.erb
|
196
|
+
- test_old/fixtures/alternate_config_project/config.ru
|
197
|
+
- test_old/fixtures/alternate_config_project/config/application.rb
|
198
|
+
- test_old/fixtures/alternate_config_project/config/boot.rb
|
199
|
+
- test_old/fixtures/alternate_config_project/config/database.yml
|
200
|
+
- test_old/fixtures/alternate_config_project/config/environment.rb
|
201
|
+
- test_old/fixtures/alternate_config_project/config/environments/development.rb
|
202
|
+
- test_old/fixtures/alternate_config_project/config/environments/production.rb
|
203
|
+
- test_old/fixtures/alternate_config_project/config/environments/test.rb
|
204
|
+
- test_old/fixtures/alternate_config_project/config/initializers/backtrace_silencers.rb
|
205
|
+
- test_old/fixtures/alternate_config_project/config/initializers/inflections.rb
|
206
|
+
- test_old/fixtures/alternate_config_project/config/initializers/mime_types.rb
|
207
|
+
- test_old/fixtures/alternate_config_project/config/initializers/secret_token.rb
|
208
|
+
- test_old/fixtures/alternate_config_project/config/initializers/session_store.rb
|
209
|
+
- test_old/fixtures/alternate_config_project/config/initializers/wrap_parameters.rb
|
210
|
+
- test_old/fixtures/alternate_config_project/config/locales/en.yml
|
211
|
+
- test_old/fixtures/alternate_config_project/config/routes.rb
|
212
|
+
- test_old/fixtures/alternate_config_project/db/seeds.rb
|
213
|
+
- test_old/fixtures/alternate_config_project/doc/README_FOR_APP
|
214
|
+
- test_old/fixtures/alternate_config_project/lib/tasks/.gitkeep
|
215
|
+
- test_old/fixtures/alternate_config_project/log/.gitkeep
|
216
|
+
- test_old/fixtures/alternate_config_project/public/404.html
|
217
|
+
- test_old/fixtures/alternate_config_project/public/422.html
|
218
|
+
- test_old/fixtures/alternate_config_project/public/500.html
|
219
|
+
- test_old/fixtures/alternate_config_project/public/favicon.ico
|
220
|
+
- test_old/fixtures/alternate_config_project/public/index.html
|
221
|
+
- test_old/fixtures/alternate_config_project/public/robots.txt
|
222
|
+
- test_old/fixtures/alternate_config_project/script/rails
|
223
|
+
- test_old/fixtures/engine_project/.gitignore
|
224
|
+
- test_old/fixtures/engine_project/Gemfile
|
225
|
+
- test_old/fixtures/engine_project/MIT-LICENSE
|
226
|
+
- test_old/fixtures/engine_project/README.rdoc
|
227
|
+
- test_old/fixtures/engine_project/Rakefile
|
228
|
+
- test_old/fixtures/engine_project/app/assets/images/engine_project/.keep
|
229
|
+
- test_old/fixtures/engine_project/app/assets/javascripts/engine_project/application.js
|
230
|
+
- test_old/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css
|
231
|
+
- test_old/fixtures/engine_project/app/controllers/engine_project/application_controller.rb
|
232
|
+
- test_old/fixtures/engine_project/app/helpers/engine_project/application_helper.rb
|
233
|
+
- test_old/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb
|
234
|
+
- test_old/fixtures/engine_project/config/routes.rb
|
235
|
+
- test_old/fixtures/engine_project/engine_project.gemspec
|
236
|
+
- test_old/fixtures/engine_project/lib/engine_project.rb
|
237
|
+
- test_old/fixtures/engine_project/lib/engine_project/engine.rb
|
238
|
+
- test_old/fixtures/engine_project/lib/engine_project/version.rb
|
239
|
+
- test_old/fixtures/engine_project/lib/tasks/engine_project_tasks.rake
|
240
|
+
- test_old/fixtures/engine_project/script/rails
|
241
|
+
- test_old/fixtures/engine_project/test/dummy/README.rdoc
|
242
|
+
- test_old/fixtures/engine_project/test/dummy/Rakefile
|
243
|
+
- test_old/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js
|
244
|
+
- test_old/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css
|
245
|
+
- test_old/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb
|
246
|
+
- test_old/fixtures/engine_project/test/dummy/app/controllers/concerns/.keep
|
247
|
+
- test_old/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb
|
248
|
+
- test_old/fixtures/engine_project/test/dummy/app/mailers/.keep
|
249
|
+
- test_old/fixtures/engine_project/test/dummy/app/models/.keep
|
250
|
+
- test_old/fixtures/engine_project/test/dummy/app/models/concerns/.keep
|
251
|
+
- test_old/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb
|
252
|
+
- test_old/fixtures/engine_project/test/dummy/bin/bundle
|
253
|
+
- test_old/fixtures/engine_project/test/dummy/bin/rails
|
254
|
+
- test_old/fixtures/engine_project/test/dummy/bin/rake
|
255
|
+
- test_old/fixtures/engine_project/test/dummy/config.ru
|
256
|
+
- test_old/fixtures/engine_project/test/dummy/config/application.rb
|
257
|
+
- test_old/fixtures/engine_project/test/dummy/config/boot.rb
|
258
|
+
- test_old/fixtures/engine_project/test/dummy/config/database.yml
|
259
|
+
- test_old/fixtures/engine_project/test/dummy/config/environment.rb
|
260
|
+
- test_old/fixtures/engine_project/test/dummy/config/environments/development.rb
|
261
|
+
- test_old/fixtures/engine_project/test/dummy/config/environments/production.rb
|
262
|
+
- test_old/fixtures/engine_project/test/dummy/config/environments/test.rb
|
263
|
+
- test_old/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb
|
264
|
+
- test_old/fixtures/engine_project/test/dummy/config/initializers/filter_parameter_logging.rb
|
265
|
+
- test_old/fixtures/engine_project/test/dummy/config/initializers/inflections.rb
|
266
|
+
- test_old/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb
|
267
|
+
- test_old/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb
|
268
|
+
- test_old/fixtures/engine_project/test/dummy/config/initializers/session_store.rb
|
269
|
+
- test_old/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb
|
270
|
+
- test_old/fixtures/engine_project/test/dummy/config/locales/en.yml
|
271
|
+
- test_old/fixtures/engine_project/test/dummy/config/routes.rb
|
272
|
+
- test_old/fixtures/engine_project/test/dummy/lib/assets/.keep
|
273
|
+
- test_old/fixtures/engine_project/test/dummy/log/.keep
|
274
|
+
- test_old/fixtures/engine_project/test/dummy/public/404.html
|
275
|
+
- test_old/fixtures/engine_project/test/dummy/public/422.html
|
276
|
+
- test_old/fixtures/engine_project/test/dummy/public/500.html
|
277
|
+
- test_old/fixtures/engine_project/test/dummy/public/favicon.ico
|
278
|
+
- test_old/fixtures/sass_project/.gitignore
|
279
|
+
- test_old/fixtures/sass_project/Gemfile
|
280
|
+
- test_old/fixtures/sass_project/README
|
281
|
+
- test_old/fixtures/sass_project/Rakefile
|
282
|
+
- test_old/fixtures/sass_project/app/assets/images/rails.png
|
283
|
+
- test_old/fixtures/sass_project/app/assets/javascripts/application.js
|
284
|
+
- test_old/fixtures/sass_project/app/assets/stylesheets/application.css
|
285
|
+
- test_old/fixtures/sass_project/app/controllers/application_controller.rb
|
286
|
+
- test_old/fixtures/sass_project/app/helpers/application_helper.rb
|
287
|
+
- test_old/fixtures/sass_project/app/mailers/.gitkeep
|
288
|
+
- test_old/fixtures/sass_project/app/models/.gitkeep
|
289
|
+
- test_old/fixtures/sass_project/app/views/layouts/application.html.erb
|
290
|
+
- test_old/fixtures/sass_project/config.ru
|
291
|
+
- test_old/fixtures/sass_project/config/application.rb
|
292
|
+
- test_old/fixtures/sass_project/config/boot.rb
|
293
|
+
- test_old/fixtures/sass_project/config/database.yml
|
294
|
+
- test_old/fixtures/sass_project/config/environment.rb
|
295
|
+
- test_old/fixtures/sass_project/config/environments/development.rb
|
296
|
+
- test_old/fixtures/sass_project/config/environments/production.rb
|
297
|
+
- test_old/fixtures/sass_project/config/environments/test.rb
|
298
|
+
- test_old/fixtures/sass_project/config/initializers/backtrace_silencers.rb
|
299
|
+
- test_old/fixtures/sass_project/config/initializers/inflections.rb
|
300
|
+
- test_old/fixtures/sass_project/config/initializers/mime_types.rb
|
301
|
+
- test_old/fixtures/sass_project/config/initializers/secret_token.rb
|
302
|
+
- test_old/fixtures/sass_project/config/initializers/session_store.rb
|
303
|
+
- test_old/fixtures/sass_project/config/initializers/wrap_parameters.rb
|
304
|
+
- test_old/fixtures/sass_project/config/locales/en.yml
|
305
|
+
- test_old/fixtures/sass_project/config/routes.rb
|
306
|
+
- test_old/fixtures/sass_project/db/seeds.rb
|
307
|
+
- test_old/fixtures/sass_project/doc/README_FOR_APP
|
308
|
+
- test_old/fixtures/sass_project/lib/tasks/.gitkeep
|
309
|
+
- test_old/fixtures/sass_project/log/.gitkeep
|
310
|
+
- test_old/fixtures/sass_project/public/404.html
|
311
|
+
- test_old/fixtures/sass_project/public/422.html
|
312
|
+
- test_old/fixtures/sass_project/public/500.html
|
313
|
+
- test_old/fixtures/sass_project/public/favicon.ico
|
314
|
+
- test_old/fixtures/sass_project/public/index.html
|
315
|
+
- test_old/fixtures/sass_project/public/robots.txt
|
316
|
+
- test_old/fixtures/sass_project/script/rails
|
317
|
+
- test_old/fixtures/scss_project/.gitignore
|
318
|
+
- test_old/fixtures/scss_project/Gemfile
|
319
|
+
- test_old/fixtures/scss_project/README
|
320
|
+
- test_old/fixtures/scss_project/Rakefile
|
321
|
+
- test_old/fixtures/scss_project/app/assets/images/1x1.png
|
322
|
+
- test_old/fixtures/scss_project/app/assets/images/rails.png
|
323
|
+
- test_old/fixtures/scss_project/app/assets/javascripts/application.js
|
324
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.scss
|
325
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/application.scss
|
326
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/css_application.css
|
327
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/css_erb_handler.css.erb
|
328
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/css_sass_erb_handler.sass.erb
|
329
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/css_scss_erb_handler.scss.erb
|
330
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.scss
|
331
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.scss
|
332
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/import_css_application.scss
|
333
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/partials/_css_sass_import.sass
|
334
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.sass
|
335
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.scss
|
336
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
337
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.sass
|
338
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.scss
|
339
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.scss
|
340
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/sass_erb_handler.sass.erb
|
341
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/scss_erb_handler.scss.erb
|
342
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/_defaults.scss
|
343
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css
|
344
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css
|
345
|
+
- test_old/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.scss
|
346
|
+
- test_old/fixtures/scss_project/app/controllers/application_controller.rb
|
347
|
+
- test_old/fixtures/scss_project/app/helpers/application_helper.rb
|
348
|
+
- test_old/fixtures/scss_project/app/mailers/.gitkeep
|
349
|
+
- test_old/fixtures/scss_project/app/models/.gitkeep
|
350
|
+
- test_old/fixtures/scss_project/app/views/layouts/application.html.erb
|
351
|
+
- test_old/fixtures/scss_project/config.ru
|
352
|
+
- test_old/fixtures/scss_project/config/application.rb
|
353
|
+
- test_old/fixtures/scss_project/config/boot.rb
|
354
|
+
- test_old/fixtures/scss_project/config/database.yml
|
355
|
+
- test_old/fixtures/scss_project/config/environment.rb
|
356
|
+
- test_old/fixtures/scss_project/config/environments/development.rb
|
357
|
+
- test_old/fixtures/scss_project/config/environments/production.rb
|
358
|
+
- test_old/fixtures/scss_project/config/environments/test.rb
|
359
|
+
- test_old/fixtures/scss_project/config/initializers/backtrace_silencers.rb
|
360
|
+
- test_old/fixtures/scss_project/config/initializers/inflections.rb
|
361
|
+
- test_old/fixtures/scss_project/config/initializers/mime_types.rb
|
362
|
+
- test_old/fixtures/scss_project/config/initializers/postprocessor.rb
|
363
|
+
- test_old/fixtures/scss_project/config/initializers/secret_token.rb
|
364
|
+
- test_old/fixtures/scss_project/config/initializers/session_store.rb
|
365
|
+
- test_old/fixtures/scss_project/config/initializers/wrap_parameters.rb
|
366
|
+
- test_old/fixtures/scss_project/config/locales/en.yml
|
367
|
+
- test_old/fixtures/scss_project/config/routes.rb
|
368
|
+
- test_old/fixtures/scss_project/db/seeds.rb
|
369
|
+
- test_old/fixtures/scss_project/doc/README_FOR_APP
|
370
|
+
- test_old/fixtures/scss_project/lib/tasks/.gitkeep
|
371
|
+
- test_old/fixtures/scss_project/log/.gitkeep
|
372
|
+
- test_old/fixtures/scss_project/public/404.html
|
373
|
+
- test_old/fixtures/scss_project/public/422.html
|
374
|
+
- test_old/fixtures/scss_project/public/500.html
|
375
|
+
- test_old/fixtures/scss_project/public/favicon.ico
|
376
|
+
- test_old/fixtures/scss_project/public/index.html
|
377
|
+
- test_old/fixtures/scss_project/public/robots.txt
|
378
|
+
- test_old/fixtures/scss_project/script/rails
|
379
|
+
- test_old/sass_rails_test.rb
|
380
|
+
- test_old/support/sass_rails_test_case.rb
|
381
|
+
- test_old/test_helper.rb
|
382
|
+
homepage: https://github.com/bolandrm/sassc-rails
|
383
|
+
licenses:
|
384
|
+
- MIT
|
385
|
+
metadata: {}
|
386
|
+
post_install_message:
|
387
|
+
rdoc_options: []
|
388
|
+
require_paths:
|
389
|
+
- lib
|
390
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
391
|
+
requirements:
|
392
|
+
- - ">="
|
393
|
+
- !ruby/object:Gem::Version
|
394
|
+
version: '0'
|
395
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
396
|
+
requirements:
|
397
|
+
- - ">="
|
398
|
+
- !ruby/object:Gem::Version
|
399
|
+
version: '0'
|
400
|
+
requirements: []
|
401
|
+
rubyforge_project:
|
402
|
+
rubygems_version: 2.4.5
|
403
|
+
signing_key:
|
404
|
+
specification_version: 4
|
405
|
+
summary: Integrate SassC-Ruby into Rails.
|
406
|
+
test_files:
|
407
|
+
- test/dummy/app/assets/images/.keep
|
408
|
+
- test/dummy/app/assets/images/1x1.png
|
409
|
+
- test/dummy/app/assets/images/rails.png
|
410
|
+
- test/dummy/app/assets/stylesheets/application.scss
|
411
|
+
- test/dummy/app/assets/stylesheets/helpers_test.scss
|
412
|
+
- test/dummy/app/assets/stylesheets/syntax_error.scss
|
413
|
+
- test/dummy/rails_app.rb
|
414
|
+
- test/sassc_rails_test.rb
|
415
|
+
- test/smoke_test.rb
|
416
|
+
- test/test_helper.rb
|