brakeman 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +18 -0
- data/bin/brakeman +1 -1
- data/bundle/load.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/CHANGES.txt +828 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/README.txt +102 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/Makefile +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench.rb +313 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench_context.yaml +141 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_footer.html +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_header.html +52 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/bin/erubis +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis +3468 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis-run.rb +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/inline-require +179 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView.html +105 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ERB.html +101 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis.html +362 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +112 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +327 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +215 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +283 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +165 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +131 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +416 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +267 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +349 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +213 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +359 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +341 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +159 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +266 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +122 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +293 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +350 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +210 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +244 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +227 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +328 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +173 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +298 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +255 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Kernel.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/created.rid +1 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/README_txt.html +247 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +118 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_class_index.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_file_index.html +53 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_method_index.html +265 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/index.html +24 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/rdoc-style.css +208 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/docstyle.css +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/users-guide.html +3551 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp +33 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile +54 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/context.rb +83 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/converter.rb +357 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine.rb +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +110 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +95 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +99 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/enhancer.rb +723 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/error.rb +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/evaluator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/generator.rb +85 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helper.rb +47 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +197 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +353 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/local-setting.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/main.rb +516 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/tiny.rb +144 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/util.rb +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/setup.rb +1331 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/assert-text-equal.rb +44 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +55 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/array_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.rb +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.yaml +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.result +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ec +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ejs +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eperl +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ephp +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.escheme +28 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.rb +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.rb +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.php +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.result +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +21 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.result +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example32.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.rb +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.rb +12 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example71.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example72.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example91.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example92.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_c.result +32 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_java.result +56 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_js.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_php.result +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +38 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stderr.log +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-engines.rb +425 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-enhancers.rb +646 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-erubis.rb +887 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-index-cgi.rb +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-main.rb +752 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-users-guide.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test.rb +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/testutil.rb +111 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/CHANGELOG.md +1363 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/FAQ.md +157 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/README.md +173 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/REFERENCE.md +1294 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/Rakefile +134 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/bin/haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/buffer.rb +345 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/compiler.rb +540 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/engine.rb +245 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/error.rb +61 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/exec.rb +329 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/filters.rb +404 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb +664 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +147 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +29 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +104 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/options.rb +279 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/parser.rb +764 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/railtie.rb +22 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template.rb +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/options.rb +16 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +41 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/util.rb +377 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/engine_test.rb +2013 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_1.erb +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_2.erb +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/action_view.erb +62 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/standard.erb +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/filters_test.rb +254 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.1.x +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.2.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-4.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/LICENSE +14 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/README.md +106 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/lua_haml_spec.lua +38 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/perl_haml_test.pl +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/ruby_haml_test.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/tests.json +660 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/helper_test.rb +583 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/markaby/standard.mab +52 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/mocks/article.rb +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/parser_test.rb +105 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/content_for_layout.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/eval_suppressed.xhtml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpers.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpful.xhtml +10 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/just_stuff.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/list.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_inner_whitespace.xhtml +40 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_outer_whitespace.xhtml +148 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/original_engine.xhtml +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout_erb.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partials.xhtml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/render_layout.xhtml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/silent_script.xhtml +74 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/standard.xhtml +162 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/tag_parsing.xhtml +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/very_basic.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/whitespace_handling.xhtml +90 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/template_test.rb +354 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1_ugly.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2_ugly.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout.erb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout_for_partial.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_partial.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area_helper.html.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view_ugly.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/breakage.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/content_for_layout.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/eval_suppressed.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpers.haml +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpful.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/just_stuff.haml +85 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/list.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_inner_whitespace.haml +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_outer_whitespace.haml +144 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/original_engine.haml +17 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout_erb.erb +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partialize.haml +1 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partials.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/render_layout.haml +2 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/silent_script.haml +45 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard_ugly.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/tag_parsing.haml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/very_basic.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/whitespace_handling.haml +87 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/test_helper.rb +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/util_test.rb +63 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/AUTHORS +3 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/COPYING +339 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Changelog.md +415 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Gemfile +9 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/INSTALL +59 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/LICENSE +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/README.rdoc +74 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Rakefile +30 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/TODO +6 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/ansi_colors.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb +18 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/basic_usage.rb +75 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/color_scheme.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/get_character.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/menus.rb +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/overwrite.rb +19 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/page_and_wrap.rb +322 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/password.rb +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb +21 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/trapping_eof.rb +22 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb +17 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/highline.gemspec +37 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb +1048 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/color_scheme.rb +134 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb +16 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/import.rb +41 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/menu.rb +381 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/question.rb +480 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/simulate.rb +48 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/string_extensions.rb +111 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/style.rb +192 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/system_extensions.rb +254 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/version.rb +4 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/setup.rb +1360 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/highline.css +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/images/logo.png +0 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/index.html +58 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/string_methods.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_color_scheme.rb +96 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_highline.rb +1402 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_import.rb +52 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_menu.rb +439 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_simulator.rb +23 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_extension.rb +33 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_highline.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_style.rb +578 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/History.txt +371 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Manifest.txt +8 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/README.txt +87 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Rakefile +92 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/bin/r2r_show +33 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/lib/ruby2ruby.rb +1159 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/test/test_ruby2ruby.rb +709 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/History.txt +882 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Manifest.txt +29 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/README.txt +93 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Rakefile +187 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse +96 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse_extract_error +156 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.rb +5773 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.y +1899 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.rb +6171 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.y +2109 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.rb +6723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.y +2372 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.rb +6764 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.y +2382 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.rb +6804 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.y +2393 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.rb +6905 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.y +2425 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rb +1237 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex +177 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex.rb +317 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.rb +7 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.yy +2506 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser_extras.rb +1460 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_lexer.rb +2723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser.rb +3502 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser_extras.rb +228 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/CHANGES.md +149 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Gemfile +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/LICENSE.txt +22 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/README.md +191 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Rakefile +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bin/safe_yaml +75 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bundle_install_all_ruby_versions.sh +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/deep.rb +34 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/libyaml_checker.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb +181 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb +35 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/hexadecimal.rb +12 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/sexagesimal.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_handler.rb +99 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb +52 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/resolver.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/safe_to_ruby_visitor.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_hack.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_node_monkeypatch.rb +43 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_resolver.rb +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform.rb +41 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_boolean.rb +21 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_date.rb +13 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_float.rb +33 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_integer.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_nil.rb +18 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_symbol.rb +17 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/transformation_map.rb +47 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/run_specs_all_ruby_versions.sh +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/safe_yaml.gemspec +19 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.2.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.3.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue48.txt +20 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue49.yml +0 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/libyaml_checker_spec.rb +69 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/psych_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/resolver_specs.rb +278 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/safe_yaml_spec.rb +731 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/spec_helper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/support/exploitable_back_door.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/syck_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_date_spec.rb +60 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_float_spec.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_integer_spec.rb +64 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_symbol_spec.rb +51 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/yaml_spec.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CODE_OF_CONDUCT.md +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CONTRIBUTING.md +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/README.md +227 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/REVISION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/Rakefile +432 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_DATE +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_NAME +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass-convert +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/scss +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/extra/update_watch.rb +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/init.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/base.rb +88 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/chain.rb +34 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/filesystem.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/memory.rb +46 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/null.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/callbacks.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/css.rb +408 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/engine.rb +1218 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/environment.rb +215 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/error.rb +198 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_convert.rb +283 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_scss.rb +440 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/features.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers.rb +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/base.rb +182 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/deprecated_path.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger.rb +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/base.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/log_level.rb +45 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/media.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb +582 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/configuration.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/generic.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/merb.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rack.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rails.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/railtie.rb +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/repl.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/root.rb +7 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script.rb +66 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_lexer.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_parser.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_variable_warning.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/functions.rb +2690 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/lexer.rb +464 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/parser.rb +825 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree.rb +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/funcall.rb +313 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/interpolation.rb +223 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/list_literal.rb +104 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/literal.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/map_literal.rb +64 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/node.rb +127 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/operation.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/selector.rb +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/string_interpolation.rb +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/unary_operation.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/variable.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value.rb +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/arg_list.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/base.rb +241 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/bool.rb +35 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/color.rb +698 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/helpers.rb +272 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/list.rb +113 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/map.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/null.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/number.rb +561 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/string.rb +145 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss.rb +14 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/css_parser.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb +1236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/rx.rb +140 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/static_parser.rb +366 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/abstract_sequence.rb +111 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/comma_sequence.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/pseudo.rb +266 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/sequence.rb +636 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple.rb +116 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple_sequence.rb +344 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/shared.rb +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/map.rb +211 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/position.rb +39 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/range.rb +41 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/stack.rb +120 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/supports.rb +225 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/at_root_node.rb +83 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/charset_node.rb +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/comment_node.rb +82 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/content_node.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/css_import_node.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/debug_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/directive_node.rb +59 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/each_node.rb +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/error_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/extend_node.rb +43 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/for_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/function_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/if_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/import_node.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/keyframe_rule_node.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/media_node.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_def_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/node.rb +240 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/prop_node.rb +170 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/return_node.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/root_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/rule_node.rb +146 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/supports_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/trace_node.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/variable_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb +72 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/check_nesting.rb +173 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/convert.rb +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/cssize.rb +373 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/deep_copy.rb +107 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/extend.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb +563 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/set_options.rb +139 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/to_css.rb +409 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/warn_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/while_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util.rb +1350 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/cross_platform_random.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/multibyte_string_scanner.rb +155 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/normalized_map.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/ordered_hash.rb +192 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/subset_map.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/test.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/version.rb +124 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/rails/init.rb +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass-spec.yml +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/cache_test.rb +131 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/callbacks_test.rb +61 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/compiler_test.rb +236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/conversion_test.rb +2171 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css2sass_test.rb +526 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css_variable_test.rb +132 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/data/hsl-rgb.txt +319 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/encoding_test.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/engine_test.rb +3441 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/exec_test.rb +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/extend_test.rb +1707 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/functions_test.rb +1974 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/importer_test.rb +421 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/logger_test.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/mock_importer.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more_import.css +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/_more_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more1.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more_import.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/plugin_test.rb +556 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/alt.css +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/basic.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/cached_import_option.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compact.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/complex.css +86 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compressed.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/expanded.css +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/filename_fn.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/if.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_1_8.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_ibm866.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_content.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/line_numbers.css +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/mixins.css +95 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/multiline.css +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/nested.css +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/options.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/parent_ref.css +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/script.css +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_importee.css +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/subdir.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/units.css +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn_imported.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_conversion_test.rb +357 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_test.rb +1422 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/css_test.rb +1281 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/rx_test.rb +160 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/scss_test.rb +4157 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/test_helper.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/source_map_test.rb +1055 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/superselector_test.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_cached_import_option_partial.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_double_import_loop2.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_filename_fn_import.scss +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_ibm866.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_utf8.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_content.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/alt.sass +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/basic.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork5.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/cached_import_option.scss +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compact.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/complex.sass +305 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compressed.sass +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/double_import_loop1.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/expanded.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/filename_fn.scss +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/if.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import.sass +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset.sass +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_1_8.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_ibm866.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_content.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.less +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.sass +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/line_numbers.sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixin_bork.sass +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixins.sass +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/multiline.sass +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_import.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_mixin_bork.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/options.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/parent_ref.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/script.sass +101 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_import.scss +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_importee.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/single_import_loop.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up1.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up2.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/subdir.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/units.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn_imported.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/test_helper.rb +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/multibyte_string_scanner_test.rb +147 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/normalized_map_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/subset_map_test.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util_test.rb +438 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/value_helpers_test.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/test_helper.rb +110 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CHANGELOG.md +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CONTRIBUTING.md +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Gemfile +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Guardfile +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/README.md +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Rakefile +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Vagrantfile +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen.rb +54 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb +327 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/bsd.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/darwin.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/linux.rb +81 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/polling.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/windows.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/directory_record.rb +406 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/turnstile.rb +32 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/listen.gemspec +28 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapter_spec.rb +149 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/bsd_spec.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/darwin_spec.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/linux_spec.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/polling_spec.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/windows_spec.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/directory_record_spec.rb +1250 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/listener_spec.rb +258 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/turnstile_spec.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen_spec.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/spec_helper.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/adapter_helper.rb +666 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/directory_record_helper.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/fixtures_helper.rb +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/listeners_helper.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/platform_helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/History.txt +278 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Manifest.txt +13 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/README.txt +64 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Rakefile +12 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/composite_sexp_processor.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/pt_testcase.rb +3125 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp.rb +338 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp_processor.rb +695 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_composite_sexp_processor.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_environment.rb +94 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp.rb +356 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp_processor.rb +373 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/CHANGES +426 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Gemfile +69 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/LICENSE +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.jp.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Rakefile +100 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/context.rb +11 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-parser.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-render.rb +12 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-benchmarks.rb +119 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-diffbench.rb +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.erb +23 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.haml +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.slim +17 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/bin/slimrb +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/smart.md +102 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/smart.md +103 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/code_attributes.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/command.rb +128 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/controls.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/do_inserter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/embedded.rb +273 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/end_inserter.rb +62 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/engine.rb +41 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/erb_converter.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/filter.rb +30 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/grammar.rb +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/include.rb +57 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/interpolation.rb +35 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/context.rb +127 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/filter.rb +80 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/parser.rb +527 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/escaper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/filter.rb +96 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/parser.rb +36 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/builder.rb +101 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/filter.rb +91 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/template.rb +19 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/translator.rb +118 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/slim.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/helper.rb +211 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_blocks.rb +183 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_escaping.rb +150 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_evaluation.rb +180 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_output.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_structure.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_commands.rb +223 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_embedded_engines.rb +242 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_encoding.rb +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_erb_converter.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_attributes.rb +268 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_escaping.rb +65 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_structure.rb +537 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_parser_errors.rb +148 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_pretty.rb +166 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_ruby_errors.rb +207 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_slim_template.rb +77 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_tabs.rb +169 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_text_interpolation.rb +79 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_thread_options.rb +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_unicode.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/recursive.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/slimfile.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/subdir/test.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/textfile +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/test_include.rb +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/TESTS.md +1290 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/run.rb +92 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/logic_less/test_logic_less.rb +295 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/Rakefile +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/application_controller.rb +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/entries_controller.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb +40 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/helpers/application_helper.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/models/entry.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/entries/edit.html.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/layouts/application.html.slim +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/_partial.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/content_for.html.slim +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/erb.html.erb +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/form_for.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/helper.html.slim +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/integers.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/no_layout.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/normal.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/partial.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/splat.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/thread_options.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/variables.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/xml.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config.ru +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/application.rb +44 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/boot.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environment.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environments/test.rb +34 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/inflections.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/mime_types.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/secret_token.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/session_store.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/locales/en.yml +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/routes.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/script/rails +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/helper.rb +31 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/test_slim.rb +90 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/smart/test_smart_text.rb +296 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/translator/test_translator.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/CHANGES +235 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/EXPRESSIONS.md +261 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Gemfile +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/README.md +267 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Rakefile +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple.rb +64 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/engine.rb +67 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/engine.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/parser.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/template.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/trimming.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/exceptions.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filter.rb +9 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/code_merger.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/control_flow.rb +42 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/dynamic_inliner.rb +71 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/encoding.rb +24 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/eraser.rb +22 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/escapable.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/multi_flattener.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/remove_bom.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/static_merger.rb +37 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/validator.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array_buffer.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/erb.rb +32 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/rails_output_buffer.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/string_buffer.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/grammar.rb +57 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_merger.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_remover.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_sorter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/dispatcher.rb +31 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/fast.rb +130 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/filter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/pretty.rb +103 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/safe.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/map.rb +105 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/dispatcher.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/engine_dsl.rb +145 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/grammar_dsl.rb +170 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/options.rb +87 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/template.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/parser.rb +8 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/rails.rb +26 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/tilt.rb +46 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/utils.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/temple.gemspec +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_code_merger.rb +38 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_control_flow.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_dynamic_inliner.rb +95 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_eraser.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_escapable.rb +49 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_multi_flattener.rb +33 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_static_merger.rb +41 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/helper.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_merger.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_remover.rb +43 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_sorter.rb +48 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_fast.rb +97 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_pretty.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_dispatcher.rb +70 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_grammar_dsl.rb +86 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_engine.rb +189 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_erb.rb +61 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_filter.rb +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_generator.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_grammar.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_map.rb +39 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_utils.rb +39 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Gemfile +4 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/History.rdoc +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Manifest +27 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/README.rdoc +240 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Rakefile +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Todo.rdoc +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/examples/examples.rb +83 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table.rb +26 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/cell.rb +92 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/import.rb +3 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/row.rb +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/separator.rb +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/style.rb +62 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table.rb +226 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table_helper.rb +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/terminal-table.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/CHANGELOG.md +84 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/COPYING +18 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Gemfile +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/HACKING +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/README.md +226 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Rakefile +105 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/bin/tilt +122 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/TEMPLATES.md +524 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/common.css +14 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt.rb +159 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/asciidoc.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/babel.rb +15 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/bluecloth.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/builder.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/coffee.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/creole.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/csv.rb +65 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erb.rb +57 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erubis.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/etanni.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/haml.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/kramdown.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/less.rb +30 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/liquid.rb +38 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/mapping.rb +265 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/markaby.rb +45 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/maruku.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/nokogiri.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/plain.rb +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/prawn.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/radius.rb +48 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdiscount.rb +39 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdoc.rb +40 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcarpet.rb +83 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcloth.rb +23 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/sass.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/string.rb +21 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/template.rb +295 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/wikicloth.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/yajl.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/index.txt +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/tilt.1.ronn +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/locals.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby_other_static.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/render_twice.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/scope.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/yielding.mab +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/test_helper.rb +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_asciidoctor_test.rb +50 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_babeltemplate.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_blueclothtemplate_test.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_buildertemplate_test.rb +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_cache_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_coffeescripttemplate_test.rb +141 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_compilesite_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_creoletemplate_test.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_csv_test.rb +77 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erbtemplate_test.rb +239 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erubistemplate_test.rb +151 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_etannitemplate_test.rb +174 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_hamltemplate_test.rb +166 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_kramdown_test.rb +20 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.less +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_liquidtemplate_test.rb +78 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_mapping_test.rb +229 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markaby_test.rb +88 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markdown_test.rb +177 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_marukutemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_metadata_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_nokogiritemplate_test.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate.prawn +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_radiustemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdiscounttemplate_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdoctemplate_test.rb +29 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redcarpettemplate_test.rb +54 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redclothtemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_sasstemplate_test.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_stringtemplate_test.rb +171 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_template_test.rb +308 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_test.rb +60 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_wikiclothtemplate_test.rb +32 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_yajltemplate_test.rb +101 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/tilt.gemspec +114 -0
- data/lib/brakeman.rb +9 -1
- data/lib/brakeman/call_index.rb +1 -1
- data/lib/brakeman/checks/check_content_tag.rb +1 -1
- data/lib/brakeman/checks/check_cross_site_scripting.rb +1 -1
- data/lib/brakeman/checks/check_execute.rb +4 -0
- data/lib/brakeman/checks/check_forgery_setting.rb +3 -2
- data/lib/brakeman/checks/check_link_to.rb +1 -1
- data/lib/brakeman/checks/check_link_to_href.rb +2 -2
- data/lib/brakeman/checks/check_mass_assignment.rb +1 -1
- data/lib/brakeman/checks/check_redirect.rb +6 -0
- data/lib/brakeman/checks/check_secrets.rb +40 -0
- data/lib/brakeman/checks/check_sql.rb +1 -1
- data/lib/brakeman/processor.rb +6 -6
- data/lib/brakeman/processors/alias_processor.rb +29 -3
- data/lib/brakeman/processors/base_processor.rb +35 -4
- data/lib/brakeman/processors/controller_alias_processor.rb +4 -4
- data/lib/brakeman/processors/haml_template_processor.rb +1 -1
- data/lib/brakeman/processors/lib/basic_processor.rb +18 -0
- data/lib/brakeman/processors/lib/rails2_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -1
- data/lib/brakeman/processors/lib/rails3_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -1
- data/lib/brakeman/processors/template_alias_processor.rb +4 -4
- data/lib/brakeman/processors/template_processor.rb +1 -0
- data/lib/brakeman/report/report_codeclimate.rb +2 -1
- data/lib/brakeman/scanner.rb +1 -1
- data/lib/brakeman/tracker.rb +11 -1
- data/lib/brakeman/tracker/constants.rb +101 -0
- data/lib/brakeman/util.rb +4 -0
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning_codes.rb +1 -0
- data/lib/ruby_parser/bm_sexp.rb +6 -0
- metadata +1171 -162
@@ -0,0 +1,96 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'sass/util/test'
|
5
|
+
require 'tmpdir'
|
6
|
+
|
7
|
+
class ExecTest < MiniTest::Test
|
8
|
+
include Sass::Util::Test
|
9
|
+
|
10
|
+
def setup
|
11
|
+
@dir = Dir.mktmpdir
|
12
|
+
end
|
13
|
+
|
14
|
+
def teardown
|
15
|
+
FileUtils.rm_rf(@dir)
|
16
|
+
clean_up_sassc
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_scss_t_expanded
|
20
|
+
src = get_path("src.scss")
|
21
|
+
dest = get_path("dest.css")
|
22
|
+
write(src, ".ruleset { margin: 0 }")
|
23
|
+
assert(exec(*%w[scss --sourcemap=none -t expanded --unix-newlines].push(src, dest)))
|
24
|
+
assert_equal(".ruleset {\n margin: 0;\n}\n", read(dest))
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_sass_convert_T_sass
|
28
|
+
src = get_path("src.scss")
|
29
|
+
dest = get_path("dest.css")
|
30
|
+
write(src, ".ruleset { margin: 0 }")
|
31
|
+
assert(exec(*%w[sass-convert -T sass --unix-newlines].push(src, dest)))
|
32
|
+
assert_equal(".ruleset\n margin: 0\n", read(dest))
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_sass_convert_T_sass_in_place
|
36
|
+
src = get_path("src.scss")
|
37
|
+
write(src, ".ruleset { margin: 0 }")
|
38
|
+
assert(exec(*%w[sass-convert -T sass --in-place --unix-newlines].push(src)))
|
39
|
+
assert_equal(".ruleset\n margin: 0\n", read(src))
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_scss_t_expanded_no_unix_newlines
|
43
|
+
return skip "Can be run on Windows only" unless Sass::Util.windows?
|
44
|
+
src = get_path("src.scss")
|
45
|
+
dest = get_path("dest.css")
|
46
|
+
write(src, ".ruleset { margin: 0 }")
|
47
|
+
assert(exec(*%w[scss -t expanded].push(src, dest)))
|
48
|
+
assert_equal(".ruleset {\r\n margin: 0;\r\n}\r\n", read(dest))
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_sass_convert_T_sass_no_unix_newlines
|
52
|
+
return skip "Can be run on Windows only" unless Sass::Util.windows?
|
53
|
+
src = get_path("src.scss")
|
54
|
+
dest = get_path("dest.sass")
|
55
|
+
write(src, ".ruleset { margin: 0 }")
|
56
|
+
assert(exec(*%w[sass-convert -T sass].push(src, dest)))
|
57
|
+
assert_equal(".ruleset\r\n margin: 0\r\n", read(dest))
|
58
|
+
end
|
59
|
+
|
60
|
+
def test_sass_convert_T_sass_in_place_no_unix_newlines
|
61
|
+
return skip "Can be run on Windows only" unless Sass::Util.windows?
|
62
|
+
src = get_path("src.scss")
|
63
|
+
write(src, ".ruleset { margin: 0 }")
|
64
|
+
assert(exec(*%w[sass-convert -T sass --in-place].push(src)))
|
65
|
+
assert_equal(".ruleset\r\n margin: 0\r\n", read(src))
|
66
|
+
end
|
67
|
+
|
68
|
+
def test_sass_convert_R
|
69
|
+
Dir.chdir(@dir) do
|
70
|
+
src = get_path("styles/src.css")
|
71
|
+
write(src, ".ruleset { margin: 0 }")
|
72
|
+
assert(exec(*%w[sass-convert -Rq --from css --to scss --trace styles]))
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
private
|
77
|
+
|
78
|
+
def get_path(name)
|
79
|
+
File.join(@dir, name)
|
80
|
+
end
|
81
|
+
|
82
|
+
def read(file)
|
83
|
+
open(file, 'rb') {|f| f.read}
|
84
|
+
end
|
85
|
+
|
86
|
+
def write(file, content)
|
87
|
+
FileUtils.mkdir_p(File.dirname(file))
|
88
|
+
open(file, 'wb') {|f| f.write(content)}
|
89
|
+
end
|
90
|
+
|
91
|
+
def exec(script, *args)
|
92
|
+
script = File.dirname(__FILE__) + '/../../bin/' + script
|
93
|
+
ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT'])
|
94
|
+
system(ruby, script, *args)
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,1707 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
3
|
+
|
4
|
+
class ExtendTest < MiniTest::Test
|
5
|
+
def test_basic
|
6
|
+
assert_equal <<CSS, render(<<SCSS)
|
7
|
+
.foo, .bar {
|
8
|
+
a: b; }
|
9
|
+
CSS
|
10
|
+
.foo {a: b}
|
11
|
+
.bar {@extend .foo}
|
12
|
+
SCSS
|
13
|
+
|
14
|
+
assert_equal <<CSS, render(<<SCSS)
|
15
|
+
.foo, .bar {
|
16
|
+
a: b; }
|
17
|
+
CSS
|
18
|
+
.bar {@extend .foo}
|
19
|
+
.foo {a: b}
|
20
|
+
SCSS
|
21
|
+
|
22
|
+
assert_equal <<CSS, render(<<SCSS)
|
23
|
+
.foo, .bar {
|
24
|
+
a: b; }
|
25
|
+
|
26
|
+
.bar {
|
27
|
+
c: d; }
|
28
|
+
CSS
|
29
|
+
.foo {a: b}
|
30
|
+
.bar {c: d; @extend .foo}
|
31
|
+
SCSS
|
32
|
+
|
33
|
+
assert_equal <<CSS, render(<<SCSS)
|
34
|
+
.foo, .bar {
|
35
|
+
a: b; }
|
36
|
+
|
37
|
+
.bar {
|
38
|
+
c: d; }
|
39
|
+
CSS
|
40
|
+
.foo {a: b}
|
41
|
+
.bar {@extend .foo; c: d}
|
42
|
+
SCSS
|
43
|
+
end
|
44
|
+
|
45
|
+
def test_indented_syntax
|
46
|
+
assert_equal <<CSS, render(<<SASS, :syntax => :sass)
|
47
|
+
.foo, .bar {
|
48
|
+
a: b; }
|
49
|
+
CSS
|
50
|
+
.foo
|
51
|
+
a: b
|
52
|
+
.bar
|
53
|
+
@extend .foo
|
54
|
+
SASS
|
55
|
+
|
56
|
+
assert_equal <<CSS, render(<<SASS, :syntax => :sass)
|
57
|
+
.foo, .bar {
|
58
|
+
a: b; }
|
59
|
+
CSS
|
60
|
+
.foo
|
61
|
+
a: b
|
62
|
+
.bar
|
63
|
+
@extend \#{".foo"}
|
64
|
+
SASS
|
65
|
+
end
|
66
|
+
|
67
|
+
def test_multiple_targets
|
68
|
+
assert_equal <<CSS, render(<<SCSS)
|
69
|
+
.foo, .bar {
|
70
|
+
a: b; }
|
71
|
+
|
72
|
+
.blip .foo, .blip .bar {
|
73
|
+
c: d; }
|
74
|
+
CSS
|
75
|
+
.foo {a: b}
|
76
|
+
.bar {@extend .foo}
|
77
|
+
.blip .foo {c: d}
|
78
|
+
SCSS
|
79
|
+
end
|
80
|
+
|
81
|
+
def test_multiple_extendees
|
82
|
+
assert_equal <<CSS, render(<<SCSS)
|
83
|
+
.foo, .baz {
|
84
|
+
a: b; }
|
85
|
+
|
86
|
+
.bar, .baz {
|
87
|
+
c: d; }
|
88
|
+
CSS
|
89
|
+
.foo {a: b}
|
90
|
+
.bar {c: d}
|
91
|
+
.baz {@extend .foo; @extend .bar}
|
92
|
+
SCSS
|
93
|
+
end
|
94
|
+
|
95
|
+
def test_multiple_extends_with_single_extender_and_single_target
|
96
|
+
assert_extends('.foo .bar', '.baz {@extend .foo; @extend .bar}',
|
97
|
+
'.foo .bar, .baz .bar, .foo .baz, .baz .baz')
|
98
|
+
assert_extends '.foo.bar', '.baz {@extend .foo; @extend .bar}', '.foo.bar, .baz'
|
99
|
+
end
|
100
|
+
|
101
|
+
def test_multiple_extends_with_multiple_extenders_and_single_target
|
102
|
+
assert_equal <<CSS, render(<<SCSS)
|
103
|
+
.foo .bar, .baz .bar, .foo .bang, .baz .bang {
|
104
|
+
a: b; }
|
105
|
+
CSS
|
106
|
+
.foo .bar {a: b}
|
107
|
+
.baz {@extend .foo}
|
108
|
+
.bang {@extend .bar}
|
109
|
+
SCSS
|
110
|
+
|
111
|
+
assert_equal <<CSS, render(<<SCSS)
|
112
|
+
.foo.bar, .bar.baz, .baz.bang, .foo.bang {
|
113
|
+
a: b; }
|
114
|
+
CSS
|
115
|
+
.foo.bar {a: b}
|
116
|
+
.baz {@extend .foo}
|
117
|
+
.bang {@extend .bar}
|
118
|
+
SCSS
|
119
|
+
end
|
120
|
+
|
121
|
+
def test_chained_extends
|
122
|
+
assert_equal <<CSS, render(<<SCSS)
|
123
|
+
.foo, .bar, .baz, .bip {
|
124
|
+
a: b; }
|
125
|
+
CSS
|
126
|
+
.foo {a: b}
|
127
|
+
.bar {@extend .foo}
|
128
|
+
.baz {@extend .bar}
|
129
|
+
.bip {@extend .bar}
|
130
|
+
SCSS
|
131
|
+
end
|
132
|
+
|
133
|
+
def test_dynamic_extendee
|
134
|
+
assert_extends '.foo', '.bar {@extend #{".foo"}}', '.foo, .bar'
|
135
|
+
assert_extends('[baz^="blip12px"]', '.bar {@extend [baz^="blip#{12px}"]}',
|
136
|
+
'[baz^="blip12px"], .bar')
|
137
|
+
end
|
138
|
+
|
139
|
+
def test_nested_target
|
140
|
+
assert_extends '.foo .bar', '.baz {@extend .bar}', '.foo .bar, .foo .baz'
|
141
|
+
end
|
142
|
+
|
143
|
+
def test_target_with_child
|
144
|
+
assert_extends '.foo .bar', '.baz {@extend .foo}', '.foo .bar, .baz .bar'
|
145
|
+
end
|
146
|
+
|
147
|
+
def test_class_unification
|
148
|
+
assert_unification '.foo.bar', '.baz {@extend .foo}', '.foo.bar, .bar.baz'
|
149
|
+
assert_unification '.foo.baz', '.baz {@extend .foo}', '.baz'
|
150
|
+
end
|
151
|
+
|
152
|
+
def test_id_unification
|
153
|
+
assert_unification '.foo.bar', '#baz {@extend .foo}', '.foo.bar, .bar#baz'
|
154
|
+
assert_unification '.foo#baz', '#baz {@extend .foo}', '#baz'
|
155
|
+
|
156
|
+
assert_extend_doesnt_match('#bar', '.foo', :failed_to_unify, 2) do
|
157
|
+
render_unification '.foo#baz', '#bar {@extend .foo}'
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
def test_universal_unification_with_simple_target
|
162
|
+
assert_unification '.foo', '* {@extend .foo}', '.foo, *'
|
163
|
+
assert_unification '.foo', '*|* {@extend .foo}', '.foo, *|*'
|
164
|
+
assert_unification '.foo.bar', '* {@extend .foo}', '.bar'
|
165
|
+
assert_unification '.foo.bar', '*|* {@extend .foo}', '.bar'
|
166
|
+
assert_unification '.foo.bar', 'ns|* {@extend .foo}', '.foo.bar, ns|*.bar'
|
167
|
+
end
|
168
|
+
|
169
|
+
def test_universal_unification_with_namespaceless_universal_target
|
170
|
+
assert_unification '*.foo', '* {@extend .foo}', '*'
|
171
|
+
assert_unification '*.foo', '*|* {@extend .foo}', '*'
|
172
|
+
assert_unification '*|*.foo', '* {@extend .foo}', '*|*.foo, *'
|
173
|
+
assert_unification '*|*.foo', '*|* {@extend .foo}', '*|*'
|
174
|
+
assert_unification '*.foo', 'ns|* {@extend .foo}', '*.foo, ns|*'
|
175
|
+
assert_unification '*|*.foo', 'ns|* {@extend .foo}', '*|*.foo, ns|*'
|
176
|
+
end
|
177
|
+
|
178
|
+
def test_universal_unification_with_namespaced_universal_target
|
179
|
+
assert_unification 'ns|*.foo', '* {@extend .foo}', 'ns|*'
|
180
|
+
assert_unification 'ns|*.foo', '*|* {@extend .foo}', 'ns|*'
|
181
|
+
|
182
|
+
assert_extend_doesnt_match('ns2|*', '.foo', :failed_to_unify, 2) do
|
183
|
+
render_unification 'ns1|*.foo', 'ns2|* {@extend .foo}'
|
184
|
+
end
|
185
|
+
|
186
|
+
assert_unification 'ns|*.foo', 'ns|* {@extend .foo}', 'ns|*'
|
187
|
+
end
|
188
|
+
|
189
|
+
def test_universal_unification_with_namespaceless_element_target
|
190
|
+
assert_unification 'a.foo', '* {@extend .foo}', 'a'
|
191
|
+
assert_unification 'a.foo', '*|* {@extend .foo}', 'a'
|
192
|
+
assert_unification '*|a.foo', '* {@extend .foo}', '*|a.foo, a'
|
193
|
+
assert_unification '*|a.foo', '*|* {@extend .foo}', '*|a'
|
194
|
+
assert_unification 'a.foo', 'ns|* {@extend .foo}', 'a.foo, ns|a'
|
195
|
+
assert_unification '*|a.foo', 'ns|* {@extend .foo}', '*|a.foo, ns|a'
|
196
|
+
end
|
197
|
+
|
198
|
+
def test_universal_unification_with_namespaced_element_target
|
199
|
+
assert_unification 'ns|a.foo', '* {@extend .foo}', 'ns|a'
|
200
|
+
assert_unification 'ns|a.foo', '*|* {@extend .foo}', 'ns|a'
|
201
|
+
|
202
|
+
assert_extend_doesnt_match('ns2|*', '.foo', :failed_to_unify, 2) do
|
203
|
+
render_unification 'ns1|a.foo', 'ns2|* {@extend .foo}'
|
204
|
+
end
|
205
|
+
|
206
|
+
assert_unification 'ns|a.foo', 'ns|* {@extend .foo}', 'ns|a'
|
207
|
+
end
|
208
|
+
|
209
|
+
def test_element_unification_with_simple_target
|
210
|
+
assert_unification '.foo', 'a {@extend .foo}', '.foo, a'
|
211
|
+
assert_unification '.foo.bar', 'a {@extend .foo}', '.foo.bar, a.bar'
|
212
|
+
assert_unification '.foo.bar', '*|a {@extend .foo}', '.foo.bar, *|a.bar'
|
213
|
+
assert_unification '.foo.bar', 'ns|a {@extend .foo}', '.foo.bar, ns|a.bar'
|
214
|
+
end
|
215
|
+
|
216
|
+
def test_element_unification_with_namespaceless_universal_target
|
217
|
+
assert_unification '*.foo', 'a {@extend .foo}', '*.foo, a'
|
218
|
+
assert_unification '*.foo', '*|a {@extend .foo}', '*.foo, a'
|
219
|
+
assert_unification '*|*.foo', 'a {@extend .foo}', '*|*.foo, a'
|
220
|
+
assert_unification '*|*.foo', '*|a {@extend .foo}', '*|*.foo, *|a'
|
221
|
+
assert_unification '*.foo', 'ns|a {@extend .foo}', '*.foo, ns|a'
|
222
|
+
assert_unification '*|*.foo', 'ns|a {@extend .foo}', '*|*.foo, ns|a'
|
223
|
+
end
|
224
|
+
|
225
|
+
def test_element_unification_with_namespaced_universal_target
|
226
|
+
assert_unification 'ns|*.foo', 'a {@extend .foo}', 'ns|*.foo, ns|a'
|
227
|
+
assert_unification 'ns|*.foo', '*|a {@extend .foo}', 'ns|*.foo, ns|a'
|
228
|
+
|
229
|
+
assert_extend_doesnt_match('ns2|a', '.foo', :failed_to_unify, 2) do
|
230
|
+
render_unification 'ns1|*.foo', 'ns2|a {@extend .foo}'
|
231
|
+
end
|
232
|
+
|
233
|
+
assert_unification 'ns|*.foo', 'ns|a {@extend .foo}', 'ns|*.foo, ns|a'
|
234
|
+
end
|
235
|
+
|
236
|
+
def test_element_unification_with_namespaceless_element_target
|
237
|
+
assert_unification 'a.foo', 'a {@extend .foo}', 'a'
|
238
|
+
assert_unification 'a.foo', '*|a {@extend .foo}', 'a'
|
239
|
+
assert_unification '*|a.foo', 'a {@extend .foo}', '*|a.foo, a'
|
240
|
+
assert_unification '*|a.foo', '*|a {@extend .foo}', '*|a'
|
241
|
+
assert_unification 'a.foo', 'ns|a {@extend .foo}', 'a.foo, ns|a'
|
242
|
+
assert_unification '*|a.foo', 'ns|a {@extend .foo}', '*|a.foo, ns|a'
|
243
|
+
|
244
|
+
assert_extend_doesnt_match('h1', '.foo', :failed_to_unify, 2) do
|
245
|
+
render_unification 'a.foo', 'h1 {@extend .foo}'
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
def test_element_unification_with_namespaced_element_target
|
250
|
+
assert_unification 'ns|a.foo', 'a {@extend .foo}', 'ns|a'
|
251
|
+
assert_unification 'ns|a.foo', '*|a {@extend .foo}', 'ns|a'
|
252
|
+
|
253
|
+
assert_extend_doesnt_match('ns2|a', '.foo', :failed_to_unify, 2) do
|
254
|
+
render_unification 'ns1|a.foo', 'ns2|a {@extend .foo}'
|
255
|
+
end
|
256
|
+
|
257
|
+
assert_unification 'ns|a.foo', 'ns|a {@extend .foo}', 'ns|a'
|
258
|
+
end
|
259
|
+
|
260
|
+
def test_attribute_unification
|
261
|
+
assert_unification '[foo=bar].baz', '[foo=baz] {@extend .baz}', '[foo=bar].baz, [foo=bar][foo=baz]'
|
262
|
+
assert_unification '[foo=bar].baz', '[foo^=bar] {@extend .baz}', '[foo=bar].baz, [foo=bar][foo^=bar]'
|
263
|
+
assert_unification '[foo=bar].baz', '[foot=bar] {@extend .baz}', '[foo=bar].baz, [foo=bar][foot=bar]'
|
264
|
+
assert_unification '[foo=bar].baz', '[ns|foo=bar] {@extend .baz}', '[foo=bar].baz, [foo=bar][ns|foo=bar]'
|
265
|
+
assert_unification '%-a [foo=bar].bar', '[foo=bar] {@extend .bar}', '-a [foo=bar]'
|
266
|
+
end
|
267
|
+
|
268
|
+
def test_pseudo_unification
|
269
|
+
assert_unification ':foo.baz', ':foo(2n+1) {@extend .baz}', ':foo.baz, :foo:foo(2n+1)'
|
270
|
+
assert_unification ':foo.baz', '::foo {@extend .baz}', ':foo.baz, :foo::foo'
|
271
|
+
|
272
|
+
assert_extend_doesnt_match('::bar', '.baz', :failed_to_unify, 2) do
|
273
|
+
render_unification '::foo.baz', '::bar {@extend .baz}'
|
274
|
+
end
|
275
|
+
|
276
|
+
assert_extend_doesnt_match('::foo(2n+1)', '.baz', :failed_to_unify, 2) do
|
277
|
+
render_unification '::foo.baz', '::foo(2n+1) {@extend .baz}'
|
278
|
+
end
|
279
|
+
|
280
|
+
assert_unification '::foo.baz', '::foo {@extend .baz}', '::foo'
|
281
|
+
assert_unification '::foo(2n+1).baz', '::foo(2n+1) {@extend .baz}', '::foo(2n+1)'
|
282
|
+
assert_unification ':foo.baz', ':bar {@extend .baz}', ':foo.baz, :foo:bar'
|
283
|
+
assert_unification '.baz:foo', ':after {@extend .baz}', '.baz:foo, :foo:after'
|
284
|
+
assert_unification '.baz:after', ':foo {@extend .baz}', '.baz:after, :foo:after'
|
285
|
+
assert_unification ':foo.baz', ':foo {@extend .baz}', ':foo'
|
286
|
+
end
|
287
|
+
|
288
|
+
def test_pseudoelement_remains_at_end_of_selector
|
289
|
+
assert_extends '.foo::bar', '.baz {@extend .foo}', '.foo::bar, .baz::bar'
|
290
|
+
assert_extends 'a.foo::bar', '.baz {@extend .foo}', 'a.foo::bar, a.baz::bar'
|
291
|
+
end
|
292
|
+
|
293
|
+
def test_pseudoclass_remains_at_end_of_selector
|
294
|
+
assert_extends '.foo:bar', '.baz {@extend .foo}', '.foo:bar, .baz:bar'
|
295
|
+
assert_extends 'a.foo:bar', '.baz {@extend .foo}', 'a.foo:bar, a.baz:bar'
|
296
|
+
end
|
297
|
+
|
298
|
+
def test_not_remains_at_end_of_selector
|
299
|
+
assert_extends '.foo:not(.bar)', '.baz {@extend .foo}', '.foo:not(.bar), .baz:not(.bar)'
|
300
|
+
end
|
301
|
+
|
302
|
+
def test_pseudoelement_goes_lefter_than_pseudoclass
|
303
|
+
assert_extends '.foo::bar', '.baz:bang {@extend .foo}', '.foo::bar, .baz:bang::bar'
|
304
|
+
assert_extends '.foo:bar', '.baz::bang {@extend .foo}', '.foo:bar, .baz:bar::bang'
|
305
|
+
end
|
306
|
+
|
307
|
+
def test_pseudoelement_goes_lefter_than_not
|
308
|
+
assert_extends '.foo::bar', '.baz:not(.bang) {@extend .foo}', '.foo::bar, .baz:not(.bang)::bar'
|
309
|
+
assert_extends '.foo:not(.bang)', '.baz::bar {@extend .foo}', '.foo:not(.bang), .baz:not(.bang)::bar'
|
310
|
+
end
|
311
|
+
|
312
|
+
def test_negation_unification
|
313
|
+
assert_extends ':not(.foo).baz', ':not(.bar) {@extend .baz}', ':not(.foo).baz, :not(.foo):not(.bar)'
|
314
|
+
# Unifying to :not(.foo) here would reduce the specificity of the original selector.
|
315
|
+
assert_extends ':not(.foo).baz', ':not(.foo) {@extend .baz}', ':not(.foo).baz, :not(.foo)'
|
316
|
+
end
|
317
|
+
|
318
|
+
def test_prefixed_pseudoclass_unification
|
319
|
+
assert_unification(
|
320
|
+
':nth-child(2n+1 of .foo).baz',
|
321
|
+
':nth-child(2n of .foo) {@extend .baz}',
|
322
|
+
':nth-child(2n+1 of .foo).baz, :nth-child(2n+1 of .foo):nth-child(2n of .foo)')
|
323
|
+
|
324
|
+
assert_unification(
|
325
|
+
':nth-child(2n+1 of .foo).baz',
|
326
|
+
':nth-child(2n+1 of .bar) {@extend .baz}',
|
327
|
+
':nth-child(2n+1 of .foo).baz, :nth-child(2n+1 of .foo):nth-child(2n+1 of .bar)')
|
328
|
+
|
329
|
+
assert_unification(
|
330
|
+
':nth-child(2n+1 of .foo).baz',
|
331
|
+
':nth-child(2n+1 of .foo) {@extend .baz}',
|
332
|
+
':nth-child(2n+1 of .foo)')
|
333
|
+
end
|
334
|
+
|
335
|
+
def test_extend_into_not
|
336
|
+
assert_extends(':not(.foo)', '.x {@extend .foo}', ':not(.foo):not(.x)')
|
337
|
+
assert_extends(':not(.foo.bar)', '.x {@extend .bar}', ':not(.foo.bar):not(.foo.x)')
|
338
|
+
assert_extends(
|
339
|
+
':not(.foo.bar, .baz.bar)',
|
340
|
+
'.x {@extend .bar}',
|
341
|
+
':not(.foo.bar, .foo.x, .baz.bar, .baz.x)')
|
342
|
+
end
|
343
|
+
|
344
|
+
def test_extend_into_mergeable_pseudoclasses
|
345
|
+
assert_extends(':matches(.foo)', '.x {@extend .foo}', ':matches(.foo, .x)')
|
346
|
+
assert_extends(':matches(.foo.bar)', '.x {@extend .bar}', ':matches(.foo.bar, .foo.x)')
|
347
|
+
assert_extends(
|
348
|
+
':matches(.foo.bar, .baz.bar)',
|
349
|
+
'.x {@extend .bar}',
|
350
|
+
':matches(.foo.bar, .foo.x, .baz.bar, .baz.x)')
|
351
|
+
|
352
|
+
assert_extends(':-moz-any(.foo)', '.x {@extend .foo}', ':-moz-any(.foo, .x)')
|
353
|
+
assert_extends(':current(.foo)', '.x {@extend .foo}', ':current(.foo, .x)')
|
354
|
+
assert_extends(':has(.foo)', '.x {@extend .foo}', ':has(.foo, .x)')
|
355
|
+
assert_extends(':host(.foo)', '.x {@extend .foo}', ':host(.foo, .x)')
|
356
|
+
assert_extends(':host-context(.foo)', '.x {@extend .foo}', ':host-context(.foo, .x)')
|
357
|
+
assert_extends(':nth-child(n of .foo)', '.x {@extend .foo}', ':nth-child(n of .foo, .x)')
|
358
|
+
assert_extends(
|
359
|
+
':nth-last-child(n of .foo)',
|
360
|
+
'.x {@extend .foo}',
|
361
|
+
':nth-last-child(n of .foo, .x)')
|
362
|
+
end
|
363
|
+
|
364
|
+
def test_complex_extend_into_pseudoclass
|
365
|
+
# Unlike other selectors, we don't allow complex selectors to be
|
366
|
+
# added to `:not` if they weren't there before. At time of
|
367
|
+
# writing, most browsers don't support that and will throw away
|
368
|
+
# the entire selector if it exists.
|
369
|
+
#assert_extends(':not(.bar)', '.x .y {@extend .bar}', ':not(.bar)')
|
370
|
+
|
371
|
+
# If the `:not()` already has a complex selector, we won't break
|
372
|
+
# anything by adding a new one.
|
373
|
+
assert_extends(':not(.baz .bar)', '.x .y {@extend .bar}',
|
374
|
+
':not(.baz .bar):not(.baz .x .y):not(.x .baz .y)')
|
375
|
+
|
376
|
+
# If the `:not()` would only contain complex selectors, there's no
|
377
|
+
# harm in letting it continue to exist.
|
378
|
+
assert_extends(':not(%bar)', '.x .y {@extend %bar}', ':not(.x .y)')
|
379
|
+
|
380
|
+
assert_extends(':matches(.bar)', '.x .y {@extend .bar}', ':matches(.bar, .x .y)')
|
381
|
+
assert_extends(':current(.bar)', '.x .y {@extend .bar}', ':current(.bar, .x .y)')
|
382
|
+
assert_extends(':has(.bar)', '.x .y {@extend .bar}', ':has(.bar, .x .y)')
|
383
|
+
assert_extends(':host(.bar)', '.x .y {@extend .bar}', ':host(.bar, .x .y)')
|
384
|
+
assert_extends(':host-context(.bar)', '.x .y {@extend .bar}', ':host-context(.bar, .x .y)')
|
385
|
+
assert_extends(
|
386
|
+
':-moz-any(.bar)',
|
387
|
+
'.x .y {@extend .bar}',
|
388
|
+
':-moz-any(.bar, .x .y)')
|
389
|
+
assert_extends(
|
390
|
+
':nth-child(n of .bar)',
|
391
|
+
'.x .y {@extend .bar}',
|
392
|
+
':nth-child(n of .bar, .x .y)')
|
393
|
+
assert_extends(
|
394
|
+
':nth-last-child(n of .bar)',
|
395
|
+
'.x .y {@extend .bar}',
|
396
|
+
':nth-last-child(n of .bar, .x .y)')
|
397
|
+
end
|
398
|
+
|
399
|
+
def test_extend_over_selector_pseudoclass
|
400
|
+
assert_extends(':not(.foo)', '.x {@extend :not(.foo)}', ':not(.foo), .x')
|
401
|
+
assert_extends(
|
402
|
+
':matches(.foo, .bar)',
|
403
|
+
'.x {@extend :matches(.foo, .bar)}',
|
404
|
+
':matches(.foo, .bar), .x')
|
405
|
+
end
|
406
|
+
|
407
|
+
def test_matches_within_not
|
408
|
+
assert_extends(
|
409
|
+
':not(.foo, .bar)',
|
410
|
+
':matches(.x, .y) {@extend .foo}',
|
411
|
+
':not(.foo, .x, .y, .bar)')
|
412
|
+
end
|
413
|
+
|
414
|
+
def test_pseudoclasses_merge
|
415
|
+
assert_extends(':matches(.foo)', ':matches(.bar) {@extend .foo}', ':matches(.foo, .bar)')
|
416
|
+
assert_extends(':-moz-any(.foo)', ':-moz-any(.bar) {@extend .foo}', ':-moz-any(.foo, .bar)')
|
417
|
+
assert_extends(':current(.foo)', ':current(.bar) {@extend .foo}', ':current(.foo, .bar)')
|
418
|
+
assert_extends(
|
419
|
+
':nth-child(n of .foo)',
|
420
|
+
':nth-child(n of .bar) {@extend .foo}',
|
421
|
+
':nth-child(n of .foo, .bar)')
|
422
|
+
assert_extends(
|
423
|
+
':nth-last-child(n of .foo)',
|
424
|
+
':nth-last-child(n of .bar) {@extend .foo}',
|
425
|
+
':nth-last-child(n of .foo, .bar)')
|
426
|
+
end
|
427
|
+
|
428
|
+
def test_nesting_pseudoclasses_merge
|
429
|
+
assert_extends(':has(.foo)', ':has(.bar) {@extend .foo}', ':has(.foo, :has(.bar))')
|
430
|
+
assert_extends(':host(.foo)', ':host(.bar) {@extend .foo}', ':host(.foo, :host(.bar))')
|
431
|
+
assert_extends(
|
432
|
+
':host-context(.foo)',
|
433
|
+
':host-context(.bar) {@extend .foo}',
|
434
|
+
':host-context(.foo, :host-context(.bar))')
|
435
|
+
end
|
436
|
+
|
437
|
+
def test_not_unifies_with_unique_values
|
438
|
+
assert_unification('foo', ':not(bar) {@extend foo}', ':not(bar)')
|
439
|
+
assert_unification('#foo', ':not(#bar) {@extend #foo}', ':not(#bar)')
|
440
|
+
end
|
441
|
+
|
442
|
+
def test_not_adds_no_specificity
|
443
|
+
assert_specificity_equals(':not(.foo)', '.foo')
|
444
|
+
end
|
445
|
+
|
446
|
+
def test_matches_has_a_specificity_range
|
447
|
+
# `:matches(.foo, #bar)` has minimum specificity equal to that of `.foo`,
|
448
|
+
# which means `:matches(.foo, #bar) .a` can have less specificity than
|
449
|
+
# `#b.a`. Thus the selector generated by `#b.a` should be preserved.
|
450
|
+
assert_equal <<CSS, render(<<SCSS)
|
451
|
+
:matches(.foo, #bar) .a, :matches(.foo, #bar) #b.a {
|
452
|
+
a: b; }
|
453
|
+
CSS
|
454
|
+
:matches(.foo, #bar) %x {a: b}
|
455
|
+
.a {@extend %x}
|
456
|
+
#b.a {@extend %x}
|
457
|
+
SCSS
|
458
|
+
|
459
|
+
# `:matches(.foo, #bar)` has maximum specificity equal to that of `#bar`,
|
460
|
+
# which means `:matches(.foo, #bar).b` can have greater specificity than `.a
|
461
|
+
# .b`. Thus the selector generated by `:matches(.foo, #bar).b` should be
|
462
|
+
# preserved.
|
463
|
+
assert_equal <<CSS, render(<<SCSS)
|
464
|
+
.a .b, .a .b:matches(.foo, #bar) {
|
465
|
+
a: b; }
|
466
|
+
CSS
|
467
|
+
.a %x {a: b}
|
468
|
+
.b {@extend %x}
|
469
|
+
.b:matches(.foo, #bar) {@extend %x}
|
470
|
+
SCSS
|
471
|
+
end
|
472
|
+
|
473
|
+
def test_extend_into_not_and_normal_extend
|
474
|
+
assert_equal <<CSS, render(<<SCSS)
|
475
|
+
.x:not(.y):not(.bar), .foo:not(.y):not(.bar) {
|
476
|
+
a: b; }
|
477
|
+
CSS
|
478
|
+
.x:not(.y) {a: b}
|
479
|
+
.foo {@extend .x}
|
480
|
+
.bar {@extend .y}
|
481
|
+
SCSS
|
482
|
+
end
|
483
|
+
|
484
|
+
def test_extend_into_matches_and_normal_extend
|
485
|
+
assert_equal <<CSS, render(<<SCSS)
|
486
|
+
.x:matches(.y, .bar), .foo:matches(.y, .bar) {
|
487
|
+
a: b; }
|
488
|
+
CSS
|
489
|
+
.x:matches(.y) {a: b}
|
490
|
+
.foo {@extend .x}
|
491
|
+
.bar {@extend .y}
|
492
|
+
SCSS
|
493
|
+
end
|
494
|
+
|
495
|
+
def test_multilayer_pseudoclass_extend
|
496
|
+
assert_equal <<CSS, render(<<SCSS)
|
497
|
+
:matches(.x, .foo, .bar) {
|
498
|
+
a: b; }
|
499
|
+
CSS
|
500
|
+
:matches(.x) {a: b}
|
501
|
+
.foo {@extend .x}
|
502
|
+
.bar {@extend .foo}
|
503
|
+
SCSS
|
504
|
+
end
|
505
|
+
|
506
|
+
def test_root_only_allowed_at_root
|
507
|
+
assert_extends(':root .foo', '.bar .baz {@extend .foo}',
|
508
|
+
':root .foo, :root .bar .baz')
|
509
|
+
assert_extends('.foo:root .bar', '.baz:root .bang {@extend .bar}',
|
510
|
+
'.foo:root .bar, .baz.foo:root .bang')
|
511
|
+
assert_extends('html:root .bar', 'xml:root .bang {@extend .bar}', 'html:root .bar')
|
512
|
+
assert_extends('.foo:root > .bar .x', '.baz:root .bang .y {@extend .x}',
|
513
|
+
'.foo:root > .bar .x, .baz.foo:root > .bar .bang .y')
|
514
|
+
end
|
515
|
+
|
516
|
+
def test_comma_extendee
|
517
|
+
assert_equal <<CSS, render(<<SCSS)
|
518
|
+
.foo, .baz {
|
519
|
+
a: b; }
|
520
|
+
|
521
|
+
.bar, .baz {
|
522
|
+
c: d; }
|
523
|
+
CSS
|
524
|
+
.foo {a: b}
|
525
|
+
.bar {c: d}
|
526
|
+
.baz {@extend .foo, .bar}
|
527
|
+
SCSS
|
528
|
+
end
|
529
|
+
|
530
|
+
def test_redundant_selector_elimination
|
531
|
+
assert_equal <<CSS, render(<<SCSS)
|
532
|
+
.foo.bar, .x, .y {
|
533
|
+
a: b; }
|
534
|
+
CSS
|
535
|
+
.foo.bar {a: b}
|
536
|
+
.x {@extend .foo, .bar}
|
537
|
+
.y {@extend .foo, .bar}
|
538
|
+
SCSS
|
539
|
+
end
|
540
|
+
|
541
|
+
def test_nested_pseudo_selectors
|
542
|
+
assert_equal <<CSS, render(<<SCSS)
|
543
|
+
.foo .bar:not(.baz), .bang .bar:not(.baz) {
|
544
|
+
a: b; }
|
545
|
+
CSS
|
546
|
+
.foo {
|
547
|
+
.bar:not(.baz) {a: b}
|
548
|
+
}
|
549
|
+
.bang {@extend .foo}
|
550
|
+
SCSS
|
551
|
+
end
|
552
|
+
|
553
|
+
## Long Extendees
|
554
|
+
|
555
|
+
def test_long_extendee
|
556
|
+
assert_extends '.foo.bar', '.baz {@extend .foo.bar}', '.foo.bar, .baz'
|
557
|
+
end
|
558
|
+
|
559
|
+
def test_long_extendee_requires_all_selectors
|
560
|
+
assert_extend_doesnt_match('.baz', '.foo.bar', :not_found, 2) do
|
561
|
+
render_extends '.foo', '.baz {@extend .foo.bar}'
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
565
|
+
def test_long_extendee_matches_supersets
|
566
|
+
assert_extends '.foo.bar.bap', '.baz {@extend .foo.bar}', '.foo.bar.bap, .bap.baz'
|
567
|
+
end
|
568
|
+
|
569
|
+
def test_long_extendee_runs_unification
|
570
|
+
assert_extends 'ns|*.foo.bar', 'a.baz {@extend .foo.bar}', 'ns|*.foo.bar, ns|a.baz'
|
571
|
+
end
|
572
|
+
|
573
|
+
## Long Extenders
|
574
|
+
|
575
|
+
def test_long_extender
|
576
|
+
assert_extends '.foo.bar', '.baz.bang {@extend .foo}', '.foo.bar, .bar.baz.bang'
|
577
|
+
end
|
578
|
+
|
579
|
+
def test_long_extender_runs_unification
|
580
|
+
assert_extends 'ns|*.foo.bar', 'a.baz {@extend .foo}', 'ns|*.foo.bar, ns|a.bar.baz'
|
581
|
+
end
|
582
|
+
|
583
|
+
def test_long_extender_aborts_unification
|
584
|
+
assert_extend_doesnt_match('h1.baz', '.foo', :failed_to_unify, 2) do
|
585
|
+
render_extends 'a.foo#bar', 'h1.baz {@extend .foo}'
|
586
|
+
end
|
587
|
+
|
588
|
+
assert_extend_doesnt_match('.bang#baz', '.foo', :failed_to_unify, 2) do
|
589
|
+
render_extends 'a.foo#bar', '.bang#baz {@extend .foo}'
|
590
|
+
end
|
591
|
+
end
|
592
|
+
|
593
|
+
## Nested Extenders
|
594
|
+
|
595
|
+
def test_nested_extender
|
596
|
+
assert_extends '.foo', 'foo bar {@extend .foo}', '.foo, foo bar'
|
597
|
+
end
|
598
|
+
|
599
|
+
def test_nested_extender_runs_unification
|
600
|
+
assert_extends '.foo.bar', 'foo bar {@extend .foo}', '.foo.bar, foo bar.bar'
|
601
|
+
end
|
602
|
+
|
603
|
+
def test_nested_extender_aborts_unification
|
604
|
+
assert_extend_doesnt_match('foo bar', '.foo', :failed_to_unify, 2) do
|
605
|
+
render_extends 'baz.foo', 'foo bar {@extend .foo}'
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
609
|
+
def test_nested_extender_alternates_parents
|
610
|
+
assert_extends('.baz .bip .foo', 'foo .grank bar {@extend .foo}',
|
611
|
+
'.baz .bip .foo, .baz .bip foo .grank bar, foo .grank .baz .bip bar')
|
612
|
+
end
|
613
|
+
|
614
|
+
def test_nested_extender_unifies_identical_parents
|
615
|
+
assert_extends('.baz .bip .foo', '.baz .bip bar {@extend .foo}',
|
616
|
+
'.baz .bip .foo, .baz .bip bar')
|
617
|
+
end
|
618
|
+
|
619
|
+
def test_nested_extender_unifies_common_substring
|
620
|
+
assert_extends('.baz .bip .bap .bink .foo', '.brat .bip .bap bar {@extend .foo}',
|
621
|
+
'.baz .bip .bap .bink .foo, .baz .brat .bip .bap .bink bar, .brat .baz .bip .bap .bink bar')
|
622
|
+
end
|
623
|
+
|
624
|
+
def test_nested_extender_unifies_common_subseq
|
625
|
+
assert_extends('.a .x .b .y .foo', '.a .n .b .m bar {@extend .foo}',
|
626
|
+
'.a .x .b .y .foo, .a .x .n .b .y .m bar, .a .n .x .b .y .m bar, .a .x .n .b .m .y bar, .a .n .x .b .m .y bar')
|
627
|
+
end
|
628
|
+
|
629
|
+
def test_nested_extender_chooses_first_subseq
|
630
|
+
assert_extends('.a .b .c .d .foo', '.c .d .a .b .bar {@extend .foo}',
|
631
|
+
'.a .b .c .d .foo, .a .b .c .d .a .b .bar')
|
632
|
+
end
|
633
|
+
|
634
|
+
def test_nested_extender_counts_extended_subselectors
|
635
|
+
assert_extends('.a .bip.bop .foo', '.b .bip .bar {@extend .foo}',
|
636
|
+
'.a .bip.bop .foo, .a .b .bip.bop .bar, .b .a .bip.bop .bar')
|
637
|
+
end
|
638
|
+
|
639
|
+
def test_nested_extender_counts_extended_superselectors
|
640
|
+
assert_extends('.a .bip .foo', '.b .bip.bop .bar {@extend .foo}',
|
641
|
+
'.a .bip .foo, .a .b .bip.bop .bar, .b .a .bip.bop .bar')
|
642
|
+
end
|
643
|
+
|
644
|
+
def test_nested_extender_with_child_selector
|
645
|
+
assert_extends '.baz .foo', 'foo > bar {@extend .foo}', '.baz .foo, .baz foo > bar'
|
646
|
+
end
|
647
|
+
|
648
|
+
def test_nested_extender_finds_common_selectors_around_child_selector
|
649
|
+
assert_extends 'a > b c .c1', 'a c .c2 {@extend .c1}', 'a > b c .c1, a > b c .c2'
|
650
|
+
assert_extends 'a > b c .c1', 'b c .c2 {@extend .c1}', 'a > b c .c1, a > b c .c2'
|
651
|
+
end
|
652
|
+
|
653
|
+
def test_nested_extender_doesnt_find_common_selectors_around_adjacent_sibling_selector
|
654
|
+
assert_extends 'a + b c .c1', 'a c .c2 {@extend .c1}', 'a + b c .c1, a + b a c .c2, a a + b c .c2'
|
655
|
+
assert_extends 'a + b c .c1', 'a b .c2 {@extend .c1}', 'a + b c .c1, a a + b c .c2'
|
656
|
+
assert_extends 'a + b c .c1', 'b c .c2 {@extend .c1}', 'a + b c .c1, a + b c .c2'
|
657
|
+
end
|
658
|
+
|
659
|
+
def test_nested_extender_doesnt_find_common_selectors_around_sibling_selector
|
660
|
+
assert_extends 'a ~ b c .c1', 'a c .c2 {@extend .c1}', 'a ~ b c .c1, a ~ b a c .c2, a a ~ b c .c2'
|
661
|
+
assert_extends 'a ~ b c .c1', 'a b .c2 {@extend .c1}', 'a ~ b c .c1, a a ~ b c .c2'
|
662
|
+
assert_extends 'a ~ b c .c1', 'b c .c2 {@extend .c1}', 'a ~ b c .c1, a ~ b c .c2'
|
663
|
+
end
|
664
|
+
|
665
|
+
def test_nested_extender_doesnt_find_common_selectors_around_reference_selector
|
666
|
+
assert_extends 'a /for/ b c .c1', 'a c .c2 {@extend .c1}', 'a /for/ b c .c1, a /for/ b a c .c2, a a /for/ b c .c2'
|
667
|
+
assert_extends 'a /for/ b c .c1', 'a b .c2 {@extend .c1}', 'a /for/ b c .c1, a a /for/ b c .c2'
|
668
|
+
assert_extends 'a /for/ b c .c1', 'b c .c2 {@extend .c1}', 'a /for/ b c .c1, a /for/ b c .c2'
|
669
|
+
end
|
670
|
+
|
671
|
+
def test_nested_extender_with_early_child_selectors_doesnt_subseq_them
|
672
|
+
assert_extends('.bip > .bap .foo', '.grip > .bap .bar {@extend .foo}',
|
673
|
+
'.bip > .bap .foo, .bip > .bap .grip > .bap .bar, .grip > .bap .bip > .bap .bar')
|
674
|
+
assert_extends('.bap > .bip .foo', '.bap > .grip .bar {@extend .foo}',
|
675
|
+
'.bap > .bip .foo, .bap > .bip .bap > .grip .bar, .bap > .grip .bap > .bip .bar')
|
676
|
+
end
|
677
|
+
|
678
|
+
def test_nested_extender_with_child_selector_unifies
|
679
|
+
assert_extends '.baz.foo', 'foo > bar {@extend .foo}', '.baz.foo, foo > bar.baz'
|
680
|
+
|
681
|
+
assert_equal <<CSS, render(<<SCSS)
|
682
|
+
.baz > .foo, .baz > .bar {
|
683
|
+
a: b; }
|
684
|
+
CSS
|
685
|
+
.baz > {
|
686
|
+
.foo {a: b}
|
687
|
+
.bar {@extend .foo}
|
688
|
+
}
|
689
|
+
SCSS
|
690
|
+
|
691
|
+
assert_equal <<CSS, render(<<SCSS)
|
692
|
+
.foo .bar, .foo > .baz {
|
693
|
+
a: b; }
|
694
|
+
CSS
|
695
|
+
.foo {
|
696
|
+
.bar {a: b}
|
697
|
+
> .baz {@extend .bar}
|
698
|
+
}
|
699
|
+
SCSS
|
700
|
+
end
|
701
|
+
|
702
|
+
def test_nested_extender_with_early_child_selector
|
703
|
+
assert_equal <<CSS, render(<<SCSS)
|
704
|
+
.foo .bar, .foo .bip > .baz {
|
705
|
+
a: b; }
|
706
|
+
CSS
|
707
|
+
.foo {
|
708
|
+
.bar {a: b}
|
709
|
+
.bip > .baz {@extend .bar}
|
710
|
+
}
|
711
|
+
SCSS
|
712
|
+
|
713
|
+
assert_equal <<CSS, render(<<SCSS)
|
714
|
+
.foo .bip .bar, .foo .bip .foo > .baz {
|
715
|
+
a: b; }
|
716
|
+
CSS
|
717
|
+
.foo {
|
718
|
+
.bip .bar {a: b}
|
719
|
+
> .baz {@extend .bar}
|
720
|
+
}
|
721
|
+
SCSS
|
722
|
+
|
723
|
+
assert_extends '.foo > .bar', '.bip + .baz {@extend .bar}', '.foo > .bar, .foo > .bip + .baz'
|
724
|
+
assert_extends '.foo + .bar', '.bip > .baz {@extend .bar}', '.foo + .bar, .bip > .foo + .baz'
|
725
|
+
assert_extends '.foo > .bar', '.bip > .baz {@extend .bar}', '.foo > .bar, .bip.foo > .baz'
|
726
|
+
end
|
727
|
+
|
728
|
+
def test_nested_extender_with_trailing_child_selector
|
729
|
+
assert_raises(Sass::SyntaxError, "bar > can't extend: invalid selector") do
|
730
|
+
render("bar > {@extend .baz}")
|
731
|
+
end
|
732
|
+
end
|
733
|
+
|
734
|
+
def test_nested_extender_with_sibling_selector
|
735
|
+
assert_extends '.baz .foo', 'foo + bar {@extend .foo}', '.baz .foo, .baz foo + bar'
|
736
|
+
end
|
737
|
+
|
738
|
+
def test_nested_extender_with_hacky_selector
|
739
|
+
assert_extends('.baz .foo', 'foo + > > + bar {@extend .foo}',
|
740
|
+
'.baz .foo, .baz foo + > > + bar, foo .baz + > > + bar')
|
741
|
+
assert_extends '.baz .foo', '> > bar {@extend .foo}', '.baz .foo, > > .baz bar'
|
742
|
+
end
|
743
|
+
|
744
|
+
def test_nested_extender_merges_with_same_selector
|
745
|
+
assert_equal <<CSS, render(<<SCSS)
|
746
|
+
.foo .bar, .foo .baz {
|
747
|
+
a: b; }
|
748
|
+
CSS
|
749
|
+
.foo {
|
750
|
+
.bar {a: b}
|
751
|
+
.baz {@extend .bar} }
|
752
|
+
SCSS
|
753
|
+
end
|
754
|
+
|
755
|
+
def test_nested_extender_with_child_selector_merges_with_same_selector
|
756
|
+
assert_extends('.foo > .bar .baz', '.foo > .bar .bang {@extend .baz}',
|
757
|
+
'.foo > .bar .baz, .foo > .bar .bang')
|
758
|
+
end
|
759
|
+
|
760
|
+
# Combinator Unification
|
761
|
+
|
762
|
+
def test_combinator_unification_for_hacky_combinators
|
763
|
+
assert_extends '.a > + x', '.b y {@extend x}', '.a > + x, .a .b > + y, .b .a > + y'
|
764
|
+
assert_extends '.a x', '.b > + y {@extend x}', '.a x, .a .b > + y, .b .a > + y'
|
765
|
+
assert_extends '.a > + x', '.b > + y {@extend x}', '.a > + x, .a .b > + y, .b .a > + y'
|
766
|
+
assert_extends '.a ~ > + x', '.b > + y {@extend x}', '.a ~ > + x, .a .b ~ > + y, .b .a ~ > + y'
|
767
|
+
assert_extends '.a + > x', '.b > + y {@extend x}', '.a + > x'
|
768
|
+
assert_extends '.a + > x', '.b > + y {@extend x}', '.a + > x'
|
769
|
+
assert_extends '.a ~ > + .b > x', '.c > + .d > y {@extend x}', '.a ~ > + .b > x, .a .c ~ > + .d.b > y, .c .a ~ > + .d.b > y'
|
770
|
+
end
|
771
|
+
|
772
|
+
def test_combinator_unification_double_tilde
|
773
|
+
assert_extends '.a.b ~ x', '.a ~ y {@extend x}', '.a.b ~ x, .a.b ~ y'
|
774
|
+
assert_extends '.a ~ x', '.a.b ~ y {@extend x}', '.a ~ x, .a.b ~ y'
|
775
|
+
assert_extends '.a ~ x', '.b ~ y {@extend x}', '.a ~ x, .a ~ .b ~ y, .b ~ .a ~ y, .b.a ~ y'
|
776
|
+
assert_extends 'a.a ~ x', 'b.b ~ y {@extend x}', 'a.a ~ x, a.a ~ b.b ~ y, b.b ~ a.a ~ y'
|
777
|
+
end
|
778
|
+
|
779
|
+
def test_combinator_unification_tilde_plus
|
780
|
+
assert_extends '.a.b + x', '.a ~ y {@extend x}', '.a.b + x, .a.b + y'
|
781
|
+
assert_extends '.a + x', '.a.b ~ y {@extend x}', '.a + x, .a.b ~ .a + y, .a.b + y'
|
782
|
+
assert_extends '.a + x', '.b ~ y {@extend x}', '.a + x, .b ~ .a + y, .b.a + y'
|
783
|
+
assert_extends 'a.a + x', 'b.b ~ y {@extend x}', 'a.a + x, b.b ~ a.a + y'
|
784
|
+
assert_extends '.a.b ~ x', '.a + y {@extend x}', '.a.b ~ x, .a.b ~ .a + y, .a.b + y'
|
785
|
+
assert_extends '.a ~ x', '.a.b + y {@extend x}', '.a ~ x, .a.b + y'
|
786
|
+
assert_extends '.a ~ x', '.b + y {@extend x}', '.a ~ x, .a ~ .b + y, .a.b + y'
|
787
|
+
assert_extends 'a.a ~ x', 'b.b + y {@extend x}', 'a.a ~ x, a.a ~ b.b + y'
|
788
|
+
end
|
789
|
+
|
790
|
+
def test_combinator_unification_angle_sibling
|
791
|
+
assert_extends '.a > x', '.b ~ y {@extend x}', '.a > x, .a > .b ~ y'
|
792
|
+
assert_extends '.a > x', '.b + y {@extend x}', '.a > x, .a > .b + y'
|
793
|
+
assert_extends '.a ~ x', '.b > y {@extend x}', '.a ~ x, .b > .a ~ y'
|
794
|
+
assert_extends '.a + x', '.b > y {@extend x}', '.a + x, .b > .a + y'
|
795
|
+
end
|
796
|
+
|
797
|
+
def test_combinator_unification_double_angle
|
798
|
+
assert_extends '.a.b > x', '.b > y {@extend x}', '.a.b > x, .b.a > y'
|
799
|
+
assert_extends '.a > x', '.a.b > y {@extend x}', '.a > x, .a.b > y'
|
800
|
+
assert_extends '.a > x', '.b > y {@extend x}', '.a > x, .b.a > y'
|
801
|
+
assert_extends 'a.a > x', 'b.b > y {@extend x}', 'a.a > x'
|
802
|
+
end
|
803
|
+
|
804
|
+
def test_combinator_unification_double_plus
|
805
|
+
assert_extends '.a.b + x', '.b + y {@extend x}', '.a.b + x, .b.a + y'
|
806
|
+
assert_extends '.a + x', '.a.b + y {@extend x}', '.a + x, .a.b + y'
|
807
|
+
assert_extends '.a + x', '.b + y {@extend x}', '.a + x, .b.a + y'
|
808
|
+
assert_extends 'a.a + x', 'b.b + y {@extend x}', 'a.a + x'
|
809
|
+
end
|
810
|
+
|
811
|
+
def test_combinator_unification_angle_space
|
812
|
+
assert_extends '.a.b > x', '.a y {@extend x}', '.a.b > x, .a.b > y'
|
813
|
+
assert_extends '.a > x', '.a.b y {@extend x}', '.a > x, .a.b .a > y'
|
814
|
+
assert_extends '.a > x', '.b y {@extend x}', '.a > x, .b .a > y'
|
815
|
+
assert_extends '.a.b x', '.a > y {@extend x}', '.a.b x, .a.b .a > y'
|
816
|
+
assert_extends '.a x', '.a.b > y {@extend x}', '.a x, .a.b > y'
|
817
|
+
assert_extends '.a x', '.b > y {@extend x}', '.a x, .a .b > y'
|
818
|
+
end
|
819
|
+
|
820
|
+
def test_combinator_unification_plus_space
|
821
|
+
assert_extends '.a.b + x', '.a y {@extend x}', '.a.b + x, .a .a.b + y'
|
822
|
+
assert_extends '.a + x', '.a.b y {@extend x}', '.a + x, .a.b .a + y'
|
823
|
+
assert_extends '.a + x', '.b y {@extend x}', '.a + x, .b .a + y'
|
824
|
+
assert_extends '.a.b x', '.a + y {@extend x}', '.a.b x, .a.b .a + y'
|
825
|
+
assert_extends '.a x', '.a.b + y {@extend x}', '.a x, .a .a.b + y'
|
826
|
+
assert_extends '.a x', '.b + y {@extend x}', '.a x, .a .b + y'
|
827
|
+
end
|
828
|
+
|
829
|
+
def test_combinator_unification_nested
|
830
|
+
assert_extends '.a > .b + x', '.c > .d + y {@extend x}', '.a > .b + x, .c.a > .d.b + y'
|
831
|
+
assert_extends '.a > .b + x', '.c > y {@extend x}', '.a > .b + x, .c.a > .b + y'
|
832
|
+
end
|
833
|
+
|
834
|
+
def test_combinator_unification_with_newlines
|
835
|
+
assert_equal <<CSS, render(<<SCSS)
|
836
|
+
.a >
|
837
|
+
.b
|
838
|
+
+ x, .c.a > .d.b + y {
|
839
|
+
a: b; }
|
840
|
+
CSS
|
841
|
+
.a >
|
842
|
+
.b
|
843
|
+
+ x {a: b}
|
844
|
+
.c
|
845
|
+
> .d +
|
846
|
+
y {@extend x}
|
847
|
+
SCSS
|
848
|
+
end
|
849
|
+
|
850
|
+
# Loops
|
851
|
+
|
852
|
+
def test_extend_self_loop
|
853
|
+
assert_equal <<CSS, render(<<SCSS)
|
854
|
+
.foo {
|
855
|
+
a: b; }
|
856
|
+
CSS
|
857
|
+
.foo {a: b; @extend .foo}
|
858
|
+
SCSS
|
859
|
+
end
|
860
|
+
|
861
|
+
def test_basic_extend_loop
|
862
|
+
assert_equal <<CSS, render(<<SCSS)
|
863
|
+
.foo, .bar {
|
864
|
+
a: b; }
|
865
|
+
|
866
|
+
.bar, .foo {
|
867
|
+
c: d; }
|
868
|
+
CSS
|
869
|
+
.foo {a: b; @extend .bar}
|
870
|
+
.bar {c: d; @extend .foo}
|
871
|
+
SCSS
|
872
|
+
end
|
873
|
+
|
874
|
+
def test_three_level_extend_loop
|
875
|
+
assert_equal <<CSS, render(<<SCSS)
|
876
|
+
.foo, .baz, .bar {
|
877
|
+
a: b; }
|
878
|
+
|
879
|
+
.bar, .foo, .baz {
|
880
|
+
c: d; }
|
881
|
+
|
882
|
+
.baz, .bar, .foo {
|
883
|
+
e: f; }
|
884
|
+
CSS
|
885
|
+
.foo {a: b; @extend .bar}
|
886
|
+
.bar {c: d; @extend .baz}
|
887
|
+
.baz {e: f; @extend .foo}
|
888
|
+
SCSS
|
889
|
+
end
|
890
|
+
|
891
|
+
def test_nested_extend_loop
|
892
|
+
assert_equal <<CSS, render(<<SCSS)
|
893
|
+
.bar, .bar .foo {
|
894
|
+
a: b; }
|
895
|
+
.bar .foo {
|
896
|
+
c: d; }
|
897
|
+
CSS
|
898
|
+
.bar {
|
899
|
+
a: b;
|
900
|
+
.foo {c: d; @extend .bar}
|
901
|
+
}
|
902
|
+
SCSS
|
903
|
+
end
|
904
|
+
|
905
|
+
def test_cross_loop
|
906
|
+
# The first law of extend means the selector should stick around.
|
907
|
+
assert_equal <<CSS, render(<<SCSS)
|
908
|
+
.foo.bar, .foo, .bar {
|
909
|
+
a: b; }
|
910
|
+
CSS
|
911
|
+
.foo.bar {a: b}
|
912
|
+
.foo {@extend .bar}
|
913
|
+
.bar {@extend .foo}
|
914
|
+
SCSS
|
915
|
+
end
|
916
|
+
|
917
|
+
def test_multiple_extender_merges_with_superset_selector
|
918
|
+
assert_equal <<CSS, render(<<SCSS)
|
919
|
+
a.bar.baz, a.foo {
|
920
|
+
a: b; }
|
921
|
+
CSS
|
922
|
+
.foo {@extend .bar; @extend .baz}
|
923
|
+
a.bar.baz {a: b}
|
924
|
+
SCSS
|
925
|
+
end
|
926
|
+
|
927
|
+
def test_control_flow_if
|
928
|
+
assert_equal <<CSS, render(<<SCSS)
|
929
|
+
.true, .also-true {
|
930
|
+
color: green; }
|
931
|
+
|
932
|
+
.false, .also-false {
|
933
|
+
color: red; }
|
934
|
+
CSS
|
935
|
+
.true { color: green; }
|
936
|
+
.false { color: red; }
|
937
|
+
.also-true {
|
938
|
+
@if true { @extend .true; }
|
939
|
+
@else { @extend .false; }
|
940
|
+
}
|
941
|
+
.also-false {
|
942
|
+
@if false { @extend .true; }
|
943
|
+
@else { @extend .false; }
|
944
|
+
}
|
945
|
+
SCSS
|
946
|
+
end
|
947
|
+
|
948
|
+
def test_control_flow_for
|
949
|
+
assert_equal <<CSS, render(<<SCSS)
|
950
|
+
.base-0, .added {
|
951
|
+
color: green; }
|
952
|
+
|
953
|
+
.base-1, .added {
|
954
|
+
display: block; }
|
955
|
+
|
956
|
+
.base-2, .added {
|
957
|
+
border: 1px solid blue; }
|
958
|
+
CSS
|
959
|
+
.base-0 { color: green; }
|
960
|
+
.base-1 { display: block; }
|
961
|
+
.base-2 { border: 1px solid blue; }
|
962
|
+
.added {
|
963
|
+
@for $i from 0 to 3 {
|
964
|
+
@extend .base-\#{$i};
|
965
|
+
}
|
966
|
+
}
|
967
|
+
SCSS
|
968
|
+
end
|
969
|
+
|
970
|
+
def test_control_flow_while
|
971
|
+
assert_equal <<CSS, render(<<SCSS)
|
972
|
+
.base-0, .added {
|
973
|
+
color: green; }
|
974
|
+
|
975
|
+
.base-1, .added {
|
976
|
+
display: block; }
|
977
|
+
|
978
|
+
.base-2, .added {
|
979
|
+
border: 1px solid blue; }
|
980
|
+
CSS
|
981
|
+
.base-0 { color: green; }
|
982
|
+
.base-1 { display: block; }
|
983
|
+
.base-2 { border: 1px solid blue; }
|
984
|
+
.added {
|
985
|
+
$i : 0;
|
986
|
+
@while $i < 3 {
|
987
|
+
@extend .base-\#{$i};
|
988
|
+
$i : $i + 1;
|
989
|
+
}
|
990
|
+
}
|
991
|
+
SCSS
|
992
|
+
end
|
993
|
+
|
994
|
+
def test_basic_placeholder_selector
|
995
|
+
assert_extends '%foo', '.bar {@extend %foo}', '.bar'
|
996
|
+
end
|
997
|
+
|
998
|
+
def test_unused_placeholder_selector
|
999
|
+
assert_equal <<CSS, render(<<SCSS)
|
1000
|
+
.baz {
|
1001
|
+
color: blue; }
|
1002
|
+
CSS
|
1003
|
+
%foo {color: blue}
|
1004
|
+
%bar {color: red}
|
1005
|
+
.baz {@extend %foo}
|
1006
|
+
SCSS
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
def test_placeholder_descendant_selector
|
1010
|
+
assert_extends '#context %foo a', '.bar {@extend %foo}', '#context .bar a'
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
def test_semi_placeholder_selector
|
1014
|
+
assert_equal <<CSS, render(<<SCSS)
|
1015
|
+
.bar .baz {
|
1016
|
+
color: blue; }
|
1017
|
+
CSS
|
1018
|
+
#context %foo, .bar .baz {color: blue}
|
1019
|
+
SCSS
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
def test_placeholder_selector_with_multiple_extenders
|
1023
|
+
assert_equal <<CSS, render(<<SCSS)
|
1024
|
+
.bar, .baz {
|
1025
|
+
color: blue; }
|
1026
|
+
CSS
|
1027
|
+
%foo {color: blue}
|
1028
|
+
.bar {@extend %foo}
|
1029
|
+
.baz {@extend %foo}
|
1030
|
+
SCSS
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
def test_placeholder_selector_as_modifier
|
1034
|
+
assert_extend_doesnt_match('div', '%foo', :failed_to_unify, 3) do
|
1035
|
+
render(<<SCSS)
|
1036
|
+
a%foo.baz {color: blue}
|
1037
|
+
.bar {@extend %foo}
|
1038
|
+
div {@extend %foo}
|
1039
|
+
SCSS
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
def test_placeholder_interpolation
|
1044
|
+
assert_equal <<CSS, render(<<SCSS)
|
1045
|
+
.bar {
|
1046
|
+
color: blue; }
|
1047
|
+
CSS
|
1048
|
+
$foo: foo;
|
1049
|
+
|
1050
|
+
%\#{$foo} {color: blue}
|
1051
|
+
.bar {@extend %foo}
|
1052
|
+
SCSS
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
def test_placeholder_in_selector_pseudoclass
|
1056
|
+
assert_equal <<CSS, render(<<SCSS)
|
1057
|
+
:matches(.bar, .baz) {
|
1058
|
+
color: blue; }
|
1059
|
+
CSS
|
1060
|
+
:matches(%foo) {color: blue}
|
1061
|
+
.bar {@extend %foo}
|
1062
|
+
.baz {@extend %foo}
|
1063
|
+
SCSS
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
def test_media_in_placeholder_selector
|
1067
|
+
assert_equal <<CSS, render(<<SCSS)
|
1068
|
+
.baz {
|
1069
|
+
c: d; }
|
1070
|
+
CSS
|
1071
|
+
%foo {bar {@media screen {a: b}}}
|
1072
|
+
.baz {c: d}
|
1073
|
+
SCSS
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
def test_extend_out_of_media
|
1077
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1078
|
+
You may not @extend an outer selector from within @media.
|
1079
|
+
You may only @extend selectors within the same directive.
|
1080
|
+
From "@extend .foo" on line 3 of test_extend_out_of_media_inline.scss.
|
1081
|
+
ERR
|
1082
|
+
.foo {a: b}
|
1083
|
+
@media screen {
|
1084
|
+
.bar {@extend .foo}
|
1085
|
+
}
|
1086
|
+
SCSS
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
def test_extend_out_of_unknown_directive
|
1090
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1091
|
+
You may not @extend an outer selector from within @flooblehoof.
|
1092
|
+
You may only @extend selectors within the same directive.
|
1093
|
+
From "@extend .foo" on line 3 of test_extend_out_of_unknown_directive_inline.scss.
|
1094
|
+
ERR
|
1095
|
+
.foo {a: b}
|
1096
|
+
@flooblehoof {
|
1097
|
+
.bar {@extend .foo}
|
1098
|
+
}
|
1099
|
+
SCSS
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
def test_extend_out_of_nested_directives
|
1103
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1104
|
+
You may not @extend an outer selector from within @flooblehoof.
|
1105
|
+
You may only @extend selectors within the same directive.
|
1106
|
+
From "@extend .foo" on line 4 of test_extend_out_of_nested_directives_inline.scss.
|
1107
|
+
ERR
|
1108
|
+
@media screen {
|
1109
|
+
.foo {a: b}
|
1110
|
+
@flooblehoof {
|
1111
|
+
.bar {@extend .foo}
|
1112
|
+
}
|
1113
|
+
}
|
1114
|
+
SCSS
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
def test_extend_within_media
|
1118
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1119
|
+
@media screen {
|
1120
|
+
.foo, .bar {
|
1121
|
+
a: b; } }
|
1122
|
+
CSS
|
1123
|
+
@media screen {
|
1124
|
+
.foo {a: b}
|
1125
|
+
.bar {@extend .foo}
|
1126
|
+
}
|
1127
|
+
SCSS
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
def test_extend_within_unknown_directive
|
1131
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1132
|
+
@flooblehoof {
|
1133
|
+
.foo, .bar {
|
1134
|
+
a: b; } }
|
1135
|
+
CSS
|
1136
|
+
@flooblehoof {
|
1137
|
+
.foo {a: b}
|
1138
|
+
.bar {@extend .foo}
|
1139
|
+
}
|
1140
|
+
SCSS
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
def test_extend_within_nested_directives
|
1144
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1145
|
+
@media screen {
|
1146
|
+
@flooblehoof {
|
1147
|
+
.foo, .bar {
|
1148
|
+
a: b; } } }
|
1149
|
+
CSS
|
1150
|
+
@media screen {
|
1151
|
+
@flooblehoof {
|
1152
|
+
.foo {a: b}
|
1153
|
+
.bar {@extend .foo}
|
1154
|
+
}
|
1155
|
+
}
|
1156
|
+
SCSS
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
def test_extend_within_disparate_media
|
1160
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1161
|
+
@media screen {
|
1162
|
+
.foo, .bar {
|
1163
|
+
a: b; } }
|
1164
|
+
CSS
|
1165
|
+
@media screen {.foo {a: b}}
|
1166
|
+
@media screen {.bar {@extend .foo}}
|
1167
|
+
SCSS
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
def test_extend_within_disparate_unknown_directive
|
1171
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1172
|
+
@flooblehoof {
|
1173
|
+
.foo, .bar {
|
1174
|
+
a: b; } }
|
1175
|
+
@flooblehoof {}
|
1176
|
+
CSS
|
1177
|
+
@flooblehoof {.foo {a: b}}
|
1178
|
+
@flooblehoof {.bar {@extend .foo}}
|
1179
|
+
SCSS
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
def test_extend_within_disparate_nested_directives
|
1183
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1184
|
+
@media screen {
|
1185
|
+
@flooblehoof {
|
1186
|
+
.foo, .bar {
|
1187
|
+
a: b; } } }
|
1188
|
+
@media screen {
|
1189
|
+
@flooblehoof {} }
|
1190
|
+
CSS
|
1191
|
+
@media screen {@flooblehoof {.foo {a: b}}}
|
1192
|
+
@media screen {@flooblehoof {.bar {@extend .foo}}}
|
1193
|
+
SCSS
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
def test_extend_within_and_without_media
|
1197
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1198
|
+
You may not @extend an outer selector from within @media.
|
1199
|
+
You may only @extend selectors within the same directive.
|
1200
|
+
From "@extend .foo" on line 4 of test_extend_within_and_without_media_inline.scss.
|
1201
|
+
ERR
|
1202
|
+
.foo {a: b}
|
1203
|
+
@media screen {
|
1204
|
+
.foo {c: d}
|
1205
|
+
.bar {@extend .foo}
|
1206
|
+
}
|
1207
|
+
SCSS
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
def test_extend_within_and_without_unknown_directive
|
1211
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1212
|
+
You may not @extend an outer selector from within @flooblehoof.
|
1213
|
+
You may only @extend selectors within the same directive.
|
1214
|
+
From "@extend .foo" on line 4 of test_extend_within_and_without_unknown_directive_inline.scss.
|
1215
|
+
ERR
|
1216
|
+
.foo {a: b}
|
1217
|
+
@flooblehoof {
|
1218
|
+
.foo {c: d}
|
1219
|
+
.bar {@extend .foo}
|
1220
|
+
}
|
1221
|
+
SCSS
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
def test_extend_within_and_without_nested_directives
|
1225
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1226
|
+
You may not @extend an outer selector from within @flooblehoof.
|
1227
|
+
You may only @extend selectors within the same directive.
|
1228
|
+
From "@extend .foo" on line 5 of test_extend_within_and_without_nested_directives_inline.scss.
|
1229
|
+
ERR
|
1230
|
+
@media screen {
|
1231
|
+
.foo {a: b}
|
1232
|
+
@flooblehoof {
|
1233
|
+
.foo {c: d}
|
1234
|
+
.bar {@extend .foo}
|
1235
|
+
}
|
1236
|
+
}
|
1237
|
+
SCSS
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
def test_extend_with_subject_transfers_subject_to_extender
|
1241
|
+
silence_warnings {assert_equal(<<CSS, render(<<SCSS))}
|
1242
|
+
foo bar! baz, foo .bip .bap! baz, .bip foo .bap! baz {
|
1243
|
+
a: b; }
|
1244
|
+
CSS
|
1245
|
+
foo bar! baz {a: b}
|
1246
|
+
.bip .bap {@extend bar}
|
1247
|
+
SCSS
|
1248
|
+
|
1249
|
+
silence_warnings {assert_equal(<<CSS, render(<<SCSS))}
|
1250
|
+
foo.x bar.y! baz.z, foo.x .bip bar.bap! baz.z, .bip foo.x bar.bap! baz.z {
|
1251
|
+
a: b; }
|
1252
|
+
CSS
|
1253
|
+
foo.x bar.y! baz.z {a: b}
|
1254
|
+
.bip .bap {@extend .y}
|
1255
|
+
SCSS
|
1256
|
+
end
|
1257
|
+
|
1258
|
+
def test_extend_with_subject_retains_subject_on_target
|
1259
|
+
silence_warnings {assert_equal(<<CSS, render(<<SCSS))}
|
1260
|
+
.foo! .bar, .foo! .bip .bap, .bip .foo! .bap {
|
1261
|
+
a: b; }
|
1262
|
+
CSS
|
1263
|
+
.foo! .bar {a: b}
|
1264
|
+
.bip .bap {@extend .bar}
|
1265
|
+
SCSS
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
def test_extend_with_subject_transfers_subject_to_target
|
1269
|
+
silence_warnings {assert_equal(<<CSS, render(<<SCSS))}
|
1270
|
+
a.foo .bar, .bip a.bap! .bar {
|
1271
|
+
a: b; }
|
1272
|
+
CSS
|
1273
|
+
a.foo .bar {a: b}
|
1274
|
+
.bip .bap! {@extend .foo}
|
1275
|
+
SCSS
|
1276
|
+
end
|
1277
|
+
|
1278
|
+
def test_extend_with_subject_retains_subject_on_extender
|
1279
|
+
silence_warnings {assert_equal(<<CSS, render(<<SCSS))}
|
1280
|
+
.foo .bar, .foo .bip! .bap, .bip! .foo .bap {
|
1281
|
+
a: b; }
|
1282
|
+
CSS
|
1283
|
+
.foo .bar {a: b}
|
1284
|
+
.bip! .bap {@extend .bar}
|
1285
|
+
SCSS
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
def test_extend_with_subject_fails_with_conflicting_subject
|
1289
|
+
silence_warnings {assert_equal(<<CSS, render(<<SCSS))}
|
1290
|
+
x! .bar {
|
1291
|
+
a: b; }
|
1292
|
+
CSS
|
1293
|
+
x! .bar {a: b}
|
1294
|
+
y! .bap {@extend .bar}
|
1295
|
+
SCSS
|
1296
|
+
end
|
1297
|
+
|
1298
|
+
def test_extend_warns_when_extendee_doesnt_exist
|
1299
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1300
|
+
".foo" failed to @extend ".bar".
|
1301
|
+
The selector ".bar" was not found.
|
1302
|
+
Use "@extend .bar !optional" if the extend should be able to fail.
|
1303
|
+
ERR
|
1304
|
+
.foo {@extend .bar}
|
1305
|
+
SCSS
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
def test_extend_warns_when_extension_fails
|
1309
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {render(<<SCSS)}
|
1310
|
+
"b.foo" failed to @extend ".bar".
|
1311
|
+
No selectors matching ".bar" could be unified with "b.foo".
|
1312
|
+
Use "@extend .bar !optional" if the extend should be able to fail.
|
1313
|
+
ERR
|
1314
|
+
a.bar {a: b}
|
1315
|
+
b.foo {@extend .bar}
|
1316
|
+
SCSS
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
def test_extend_succeeds_when_one_extension_fails_but_others_dont
|
1320
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1321
|
+
a.bar {
|
1322
|
+
a: b; }
|
1323
|
+
|
1324
|
+
.bar, b.foo {
|
1325
|
+
c: d; }
|
1326
|
+
CSS
|
1327
|
+
a.bar {a: b}
|
1328
|
+
.bar {c: d}
|
1329
|
+
b.foo {@extend .bar}
|
1330
|
+
SCSS
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
def test_optional_extend_succeeds_when_extendee_doesnt_exist
|
1334
|
+
assert_equal("", render(<<SCSS))
|
1335
|
+
.foo {@extend .bar !optional}
|
1336
|
+
SCSS
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
def test_optional_extend_succeeds_when_extension_fails
|
1340
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1341
|
+
a.bar {
|
1342
|
+
a: b; }
|
1343
|
+
CSS
|
1344
|
+
a.bar {a: b}
|
1345
|
+
b.foo {@extend .bar !optional}
|
1346
|
+
SCSS
|
1347
|
+
end
|
1348
|
+
|
1349
|
+
# Regression Tests
|
1350
|
+
|
1351
|
+
def test_extend_with_middle_pseudo
|
1352
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1353
|
+
.btn:active.focus, :active.focus:before {
|
1354
|
+
a: b; }
|
1355
|
+
CSS
|
1356
|
+
.btn:active.focus {a: b}
|
1357
|
+
:before {@extend .btn}
|
1358
|
+
SCSS
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
def test_extend_parent_selector_suffix
|
1362
|
+
assert_equal <<CSS, render(<<SCSS)
|
1363
|
+
.a-b, .c {
|
1364
|
+
x: y; }
|
1365
|
+
CSS
|
1366
|
+
.a {&-b {x: y}}
|
1367
|
+
.c {@extend .a-b}
|
1368
|
+
SCSS
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
def test_pseudo_element_superselector
|
1372
|
+
# Pseudo-elements shouldn't be removed in superselector calculations.
|
1373
|
+
assert_equal <<CSS, render(<<SCSS)
|
1374
|
+
a#bar, a#bar::fblthp {
|
1375
|
+
a: b; }
|
1376
|
+
CSS
|
1377
|
+
%x#bar {a: b} // Add an id to make the results have high specificity
|
1378
|
+
%y, %y::fblthp {@extend %x}
|
1379
|
+
a {@extend %y}
|
1380
|
+
SCSS
|
1381
|
+
|
1382
|
+
# Pseudo-classes can be removed when the second law allows.
|
1383
|
+
assert_equal <<CSS, render(<<SCSS)
|
1384
|
+
a#bar {
|
1385
|
+
a: b; }
|
1386
|
+
CSS
|
1387
|
+
%x#bar {a: b}
|
1388
|
+
%y, %y:fblthp {@extend %x}
|
1389
|
+
a {@extend %y}
|
1390
|
+
SCSS
|
1391
|
+
|
1392
|
+
# A few pseudo-elements can be written as pseudo-elements for historical
|
1393
|
+
# reasons. See http://www.w3.org/TR/selectors4/#pseudo-elements.
|
1394
|
+
%w[first-line first-letter before after].each do |pseudo|
|
1395
|
+
assert_equal <<CSS, render(<<SCSS)
|
1396
|
+
a#bar, a#bar:#{pseudo} {
|
1397
|
+
a: b; }
|
1398
|
+
CSS
|
1399
|
+
%x#bar {a: b}
|
1400
|
+
%y, %y:#{pseudo} {@extend %x}
|
1401
|
+
a {@extend %y}
|
1402
|
+
SCSS
|
1403
|
+
end
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
def test_multiple_source_redundancy_elimination
|
1407
|
+
assert_equal <<CSS, render(<<SCSS)
|
1408
|
+
.test-case, .test-case:active {
|
1409
|
+
color: red; }
|
1410
|
+
|
1411
|
+
.test-case:hover {
|
1412
|
+
color: green; }
|
1413
|
+
CSS
|
1414
|
+
%default-color {color: red}
|
1415
|
+
%alt-color {color: green}
|
1416
|
+
|
1417
|
+
%default-style {
|
1418
|
+
@extend %default-color;
|
1419
|
+
&:hover {@extend %alt-color}
|
1420
|
+
&:active {@extend %default-color}
|
1421
|
+
}
|
1422
|
+
|
1423
|
+
.test-case {@extend %default-style}
|
1424
|
+
SCSS
|
1425
|
+
end
|
1426
|
+
|
1427
|
+
def test_nested_sibling_extend
|
1428
|
+
assert_equal <<CSS, render(<<SCSS)
|
1429
|
+
.parent .bar, .parent .foo {
|
1430
|
+
width: 2000px; }
|
1431
|
+
CSS
|
1432
|
+
.foo {@extend .bar}
|
1433
|
+
|
1434
|
+
.parent {
|
1435
|
+
.bar {
|
1436
|
+
width: 2000px;
|
1437
|
+
}
|
1438
|
+
.foo {
|
1439
|
+
@extend .bar
|
1440
|
+
}
|
1441
|
+
}
|
1442
|
+
SCSS
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
def test_parent_and_sibling_extend
|
1446
|
+
assert_equal <<CSS, render(<<SCSS)
|
1447
|
+
.parent1 .parent2 .child1.child2, .parent2 .parent1 .child1.child2 {
|
1448
|
+
c: d; }
|
1449
|
+
CSS
|
1450
|
+
%foo %bar%baz {c: d}
|
1451
|
+
|
1452
|
+
.parent1 {
|
1453
|
+
@extend %foo;
|
1454
|
+
.child1 {@extend %bar}
|
1455
|
+
}
|
1456
|
+
|
1457
|
+
.parent2 {
|
1458
|
+
@extend %foo;
|
1459
|
+
.child2 {@extend %baz}
|
1460
|
+
}
|
1461
|
+
SCSS
|
1462
|
+
end
|
1463
|
+
|
1464
|
+
def test_nested_extend_specificity
|
1465
|
+
assert_equal <<CSS, render(<<SCSS)
|
1466
|
+
a :b, a :b:c {
|
1467
|
+
a: b; }
|
1468
|
+
CSS
|
1469
|
+
%foo {a: b}
|
1470
|
+
|
1471
|
+
a {
|
1472
|
+
:b {@extend %foo}
|
1473
|
+
:b:c {@extend %foo}
|
1474
|
+
}
|
1475
|
+
SCSS
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
def test_nested_double_extend_optimization
|
1479
|
+
assert_equal <<CSS, render(<<SCSS)
|
1480
|
+
.parent1 .child {
|
1481
|
+
a: b; }
|
1482
|
+
CSS
|
1483
|
+
%foo %bar {
|
1484
|
+
a: b;
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
.parent1 {
|
1488
|
+
@extend %foo;
|
1489
|
+
|
1490
|
+
.child {
|
1491
|
+
@extend %bar;
|
1492
|
+
}
|
1493
|
+
}
|
1494
|
+
|
1495
|
+
.parent2 {
|
1496
|
+
@extend %foo;
|
1497
|
+
}
|
1498
|
+
SCSS
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
def test_extend_in_double_nested_media_query
|
1502
|
+
assert_equal <<CSS, render(<<SCSS)
|
1503
|
+
@media all and (orientation: landscape) {
|
1504
|
+
.bar {
|
1505
|
+
color: blue; } }
|
1506
|
+
CSS
|
1507
|
+
@media all {
|
1508
|
+
@media (orientation: landscape) {
|
1509
|
+
%foo {color: blue}
|
1510
|
+
.bar {@extend %foo}
|
1511
|
+
}
|
1512
|
+
}
|
1513
|
+
SCSS
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
def test_partially_failed_extend
|
1517
|
+
assert_no_warning {assert_equal(<<CSS, render(<<SCSS))}
|
1518
|
+
.rc, test {
|
1519
|
+
color: white; }
|
1520
|
+
|
1521
|
+
.prices span.pill span.rc {
|
1522
|
+
color: red; }
|
1523
|
+
CSS
|
1524
|
+
test { @extend .rc; }
|
1525
|
+
.rc {color: white;}
|
1526
|
+
.prices span.pill span.rc {color: red;}
|
1527
|
+
SCSS
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
def test_newline_near_combinator
|
1531
|
+
assert_equal <<CSS, render(<<SCSS)
|
1532
|
+
.a +
|
1533
|
+
.b x, .a +
|
1534
|
+
.b .c y, .c .a +
|
1535
|
+
.b y {
|
1536
|
+
a: b; }
|
1537
|
+
CSS
|
1538
|
+
.a +
|
1539
|
+
.b x {a: b}
|
1540
|
+
.c y {@extend x}
|
1541
|
+
SCSS
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
def test_duplicated_selector_with_newlines
|
1545
|
+
assert_equal(<<CSS, render(<<SCSS))
|
1546
|
+
.example-1-1,
|
1547
|
+
.example-1-2,
|
1548
|
+
.my-page-1 .my-module-1-1,
|
1549
|
+
.example-1-3 {
|
1550
|
+
a: b; }
|
1551
|
+
CSS
|
1552
|
+
.example-1-1,
|
1553
|
+
.example-1-2,
|
1554
|
+
.example-1-3 {
|
1555
|
+
a: b;
|
1556
|
+
}
|
1557
|
+
|
1558
|
+
.my-page-1 .my-module-1-1 {@extend .example-1-2}
|
1559
|
+
SCSS
|
1560
|
+
end
|
1561
|
+
|
1562
|
+
def test_nested_selector_with_child_selector_hack_extendee
|
1563
|
+
assert_extends '> .foo', 'foo bar {@extend .foo}', '> .foo, > foo bar'
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
def test_nested_selector_with_child_selector_hack_extender
|
1567
|
+
assert_extends '.foo .bar', '> foo bar {@extend .bar}', '.foo .bar, > .foo foo bar, > foo .foo bar'
|
1568
|
+
end
|
1569
|
+
|
1570
|
+
def test_nested_selector_with_child_selector_hack_extender_and_extendee
|
1571
|
+
assert_extends '> .foo', '> foo bar {@extend .foo}', '> .foo, > foo bar'
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
def test_nested_selector_with_child_selector_hack_extender_and_sibling_selector_extendee
|
1575
|
+
assert_extends '~ .foo', '> foo bar {@extend .foo}', '~ .foo'
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
def test_nested_selector_with_child_selector_hack_extender_and_extendee_and_newline
|
1579
|
+
assert_equal <<CSS, render(<<SCSS)
|
1580
|
+
> .foo, > flip,
|
1581
|
+
> foo bar {
|
1582
|
+
a: b; }
|
1583
|
+
CSS
|
1584
|
+
> .foo {a: b}
|
1585
|
+
flip,
|
1586
|
+
> foo bar {@extend .foo}
|
1587
|
+
SCSS
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
def test_extended_parent_and_child_redundancy_elimination
|
1591
|
+
assert_equal <<CSS, render(<<SCSS)
|
1592
|
+
a b, d b, a c, d c {
|
1593
|
+
a: b; }
|
1594
|
+
CSS
|
1595
|
+
a {
|
1596
|
+
b {a: b}
|
1597
|
+
c {@extend b}
|
1598
|
+
}
|
1599
|
+
d {@extend a}
|
1600
|
+
SCSS
|
1601
|
+
end
|
1602
|
+
|
1603
|
+
def test_extend_redundancy_elimination_when_it_would_reduce_specificity
|
1604
|
+
assert_extends 'a', 'a.foo {@extend a}', 'a, a.foo'
|
1605
|
+
end
|
1606
|
+
|
1607
|
+
def test_extend_redundancy_elimination_when_it_would_preserve_specificity
|
1608
|
+
assert_extends '.bar a', 'a.foo {@extend a}', '.bar a'
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
def test_extend_redundancy_elimination_never_eliminates_base_selector
|
1612
|
+
assert_extends 'a.foo', '.foo {@extend a}', 'a.foo, .foo'
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
def test_extend_cross_branch_redundancy_elimination
|
1616
|
+
assert_equal <<CSS, render(<<SCSS)
|
1617
|
+
.a .c .d, .b .c .a .d {
|
1618
|
+
a: b; }
|
1619
|
+
CSS
|
1620
|
+
%x .c %y {a: b}
|
1621
|
+
.a, .b {@extend %x}
|
1622
|
+
.a .d {@extend %y}
|
1623
|
+
SCSS
|
1624
|
+
|
1625
|
+
assert_equal <<CSS, render(<<SCSS)
|
1626
|
+
.e .a .c .d, .a .c .e .d, .e .b .c .a .d, .b .c .a .e .d {
|
1627
|
+
a: b; }
|
1628
|
+
CSS
|
1629
|
+
.e %z {a: b}
|
1630
|
+
%x .c %y {@extend %z}
|
1631
|
+
.a, .b {@extend %x}
|
1632
|
+
.a .d {@extend %y}
|
1633
|
+
SCSS
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
private
|
1637
|
+
|
1638
|
+
def assert_extend_doesnt_match(extender, target, reason, line, syntax = :scss)
|
1639
|
+
message = "\"#{extender}\" failed to @extend \"#{target}\"."
|
1640
|
+
reason =
|
1641
|
+
if reason == :not_found
|
1642
|
+
"The selector \"#{target}\" was not found."
|
1643
|
+
else
|
1644
|
+
"No selectors matching \"#{target}\" could be unified with \"#{extender}\"."
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
assert_raise_message(Sass::SyntaxError, <<ERR) {yield}
|
1648
|
+
#{message}
|
1649
|
+
#{reason}
|
1650
|
+
Use "@extend #{target} !optional" if the extend should be able to fail.
|
1651
|
+
ERR
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
def assert_unification(selector, extension, unified, nested = true)
|
1655
|
+
# Do some trickery so the first law of extend doesn't get in our way.
|
1656
|
+
assert_extends(
|
1657
|
+
"%-a #{selector}",
|
1658
|
+
extension + " -a {@extend %-a}",
|
1659
|
+
unified.split(', ').map {|s| "-a #{s}"}.join(', '))
|
1660
|
+
end
|
1661
|
+
|
1662
|
+
def assert_specificity_equals(sel1, sel2)
|
1663
|
+
assert_specificity_gte(sel1, sel2)
|
1664
|
+
assert_specificity_gte(sel2, sel1)
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
def assert_specificity_gte(sel1, sel2)
|
1668
|
+
assert_equal <<CSS, render(<<SCSS)
|
1669
|
+
#{sel1} .a {
|
1670
|
+
a: b; }
|
1671
|
+
CSS
|
1672
|
+
#{sel1} %-a {a: b}
|
1673
|
+
.a {@extend %-a}
|
1674
|
+
#{sel2}.a {@extend %-a}
|
1675
|
+
SCSS
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
def render_unification(selector, extension)
|
1679
|
+
render_extends(
|
1680
|
+
"%-a #{selector}",
|
1681
|
+
extension + " -a {@extend %-a}")
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
def assert_extends(selector, extension, result)
|
1685
|
+
assert_equal <<CSS, render_extends(selector, extension)
|
1686
|
+
#{result} {
|
1687
|
+
a: b; }
|
1688
|
+
CSS
|
1689
|
+
end
|
1690
|
+
|
1691
|
+
def assert_extends_to_nothing(selector, extension)
|
1692
|
+
assert_equal '', render_extends(selector, extension)
|
1693
|
+
end
|
1694
|
+
|
1695
|
+
def render_extends(selector, extension)
|
1696
|
+
render(<<SCSS)
|
1697
|
+
#{selector} {a: b}
|
1698
|
+
#{extension}
|
1699
|
+
SCSS
|
1700
|
+
end
|
1701
|
+
|
1702
|
+
def render(sass, options = {})
|
1703
|
+
options = {:syntax => :scss}.merge(options)
|
1704
|
+
munge_filename options
|
1705
|
+
Sass::Engine.new(sass, options).render
|
1706
|
+
end
|
1707
|
+
end
|