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
data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/nested_subdir/nested_subdir.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
#pi { width: 314px; }
|
File without changes
|
File without changes
|
@@ -0,0 +1,357 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
4
|
+
require 'sass/engine'
|
5
|
+
|
6
|
+
class SassScriptConversionTest < MiniTest::Test
|
7
|
+
def test_bool
|
8
|
+
assert_renders "true"
|
9
|
+
assert_renders "false"
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_color
|
13
|
+
assert_renders "#abcdef"
|
14
|
+
assert_renders "blue"
|
15
|
+
assert_renders "rgba(0, 1, 2, 0.2)"
|
16
|
+
assert_renders "#abc"
|
17
|
+
assert_renders "#0000ff"
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_number
|
21
|
+
assert_renders "10"
|
22
|
+
assert_renders "10.35"
|
23
|
+
assert_renders "12px"
|
24
|
+
assert_renders "12.45px"
|
25
|
+
|
26
|
+
assert_equal "12.34568", render("12.345678901")
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_string
|
30
|
+
assert_renders '"foo"'
|
31
|
+
assert_renders '"bar baz"'
|
32
|
+
assert_equal '"baz bang"', render("'baz bang'")
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_string_quotes
|
36
|
+
assert_equal "'quote\"quote'", render('"quote\\"quote"')
|
37
|
+
assert_equal '"quote\'quote"', render("'quote\\'quote'")
|
38
|
+
assert_renders '"quote\'quote\\"quote"'
|
39
|
+
assert_equal '"quote\'quote\\"quote"', render("'quote\\'quote\"quote'")
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_string_escapes
|
43
|
+
assert_renders '"foo\\\\bar"'
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_funcall
|
47
|
+
assert_renders "foo(true, blue)"
|
48
|
+
assert_renders "hsla(20deg, 30%, 50%, 0.3)"
|
49
|
+
assert_renders "blam()"
|
50
|
+
|
51
|
+
assert_renders "-\xC3\xBFoo(12px)"
|
52
|
+
assert_renders "-foo(12px)"
|
53
|
+
end
|
54
|
+
|
55
|
+
def test_funcall_with_keyword_args
|
56
|
+
assert_renders "foo(arg1, arg2, $karg1: val, $karg2: val2)"
|
57
|
+
assert_renders "foo($karg1: val, $karg2: val2)"
|
58
|
+
end
|
59
|
+
|
60
|
+
def test_funcall_with_hyphen_conversion_keyword_arg
|
61
|
+
assert_renders "foo($a-b_c: val)"
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_url
|
65
|
+
assert_renders "url(foo.gif)"
|
66
|
+
assert_renders "url($var)"
|
67
|
+
assert_renders "url(\#{$var}/flip.gif)"
|
68
|
+
end
|
69
|
+
|
70
|
+
def test_variable
|
71
|
+
assert_renders "$foo-bar"
|
72
|
+
assert_renders "$flaznicate"
|
73
|
+
end
|
74
|
+
|
75
|
+
def test_null
|
76
|
+
assert_renders "null"
|
77
|
+
end
|
78
|
+
|
79
|
+
def test_space_list
|
80
|
+
assert_renders "foo bar baz"
|
81
|
+
assert_renders "foo (bar baz) bip"
|
82
|
+
assert_renders "foo (bar, baz) bip"
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_comma_list
|
86
|
+
assert_renders "foo, bar, baz"
|
87
|
+
assert_renders "foo, (bar, baz), bip"
|
88
|
+
assert_renders "foo, bar baz, bip"
|
89
|
+
end
|
90
|
+
|
91
|
+
def test_space_list_adds_parens_for_clarity
|
92
|
+
assert_renders "(1 + 1) (2 / 4) (3 * 5)"
|
93
|
+
end
|
94
|
+
|
95
|
+
def test_comma_list_doesnt_add_parens
|
96
|
+
assert_renders "1 + 1, 2 / 4, 3 * 5"
|
97
|
+
end
|
98
|
+
|
99
|
+
def test_empty_list
|
100
|
+
assert_renders "()"
|
101
|
+
end
|
102
|
+
|
103
|
+
def test_list_in_args
|
104
|
+
assert_renders "foo((a, b, c))"
|
105
|
+
assert_renders "foo($arg: (a, b, c))"
|
106
|
+
assert_renders "foo(a, b, (a, b, c)...)"
|
107
|
+
end
|
108
|
+
|
109
|
+
def test_singleton_list
|
110
|
+
assert_renders "(1,)"
|
111
|
+
assert_renders "(1 2 3,)"
|
112
|
+
assert_renders "((1, 2, 3),)"
|
113
|
+
end
|
114
|
+
|
115
|
+
def test_map
|
116
|
+
assert_renders "(foo: bar)"
|
117
|
+
assert_renders "(foo: bar, baz: bip)"
|
118
|
+
assert_renders "(foo: bar, baz: (bip: bap))"
|
119
|
+
end
|
120
|
+
|
121
|
+
def test_map_in_list
|
122
|
+
assert_renders "(foo: bar) baz"
|
123
|
+
assert_renders "(foo: bar), (baz: bip)"
|
124
|
+
end
|
125
|
+
|
126
|
+
def test_list_in_map
|
127
|
+
assert_renders "(foo: bar baz)"
|
128
|
+
assert_renders "(foo: (bar, baz), bip: bop)"
|
129
|
+
end
|
130
|
+
|
131
|
+
def test_selector
|
132
|
+
assert_renders "&"
|
133
|
+
end
|
134
|
+
|
135
|
+
def self.test_precedence(outer, inner)
|
136
|
+
op_outer = Sass::Script::Lexer::OPERATORS_REVERSE[outer]
|
137
|
+
op_inner = Sass::Script::Lexer::OPERATORS_REVERSE[inner]
|
138
|
+
class_eval <<RUBY
|
139
|
+
def test_precedence_#{outer}_#{inner}
|
140
|
+
assert_renders "$foo #{op_outer} $bar #{op_inner} $baz"
|
141
|
+
assert_renders "$foo #{op_inner} $bar #{op_outer} $baz"
|
142
|
+
|
143
|
+
assert_renders "($foo #{op_outer} $bar) #{op_inner} $baz"
|
144
|
+
assert_renders "$foo #{op_inner} ($bar #{op_outer} $baz)"
|
145
|
+
|
146
|
+
assert_equal "$foo #{op_outer} $bar #{op_inner} $baz",
|
147
|
+
render("$foo #{op_outer} ($bar #{op_inner} $baz)")
|
148
|
+
assert_equal "$foo #{op_inner} $bar #{op_outer} $baz",
|
149
|
+
render("($foo #{op_inner} $bar) #{op_outer} $baz")
|
150
|
+
end
|
151
|
+
RUBY
|
152
|
+
end
|
153
|
+
|
154
|
+
def self.assert_associative(op_name, sibling_name)
|
155
|
+
op = separator_for(op_name)
|
156
|
+
sibling = separator_for(sibling_name)
|
157
|
+
class_eval <<RUBY
|
158
|
+
def test_associative_#{op_name}_#{sibling_name}
|
159
|
+
assert_renders "$foo#{op}$bar#{op}$baz"
|
160
|
+
|
161
|
+
assert_equal "$foo#{op}$bar#{op}$baz",
|
162
|
+
render("$foo#{op}($bar#{op}$baz)")
|
163
|
+
assert_equal "$foo#{op}$bar#{op}$baz",
|
164
|
+
render("($foo#{op}$bar)#{op}$baz")
|
165
|
+
|
166
|
+
assert_equal "$foo#{op}$bar#{sibling}$baz",
|
167
|
+
render("$foo#{op}($bar#{sibling}$baz)")
|
168
|
+
assert_equal "$foo#{sibling}$bar#{op}$baz",
|
169
|
+
render("($foo#{sibling}$bar)#{op}$baz")
|
170
|
+
end
|
171
|
+
RUBY
|
172
|
+
end
|
173
|
+
|
174
|
+
def self.separator_for(op_name)
|
175
|
+
case op_name
|
176
|
+
when :comma; ", "
|
177
|
+
when :space; " "
|
178
|
+
else; " #{Sass::Script::Lexer::OPERATORS_REVERSE[op_name]} "
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
def self.assert_non_associative(op_name, sibling_name)
|
183
|
+
op = Sass::Script::Lexer::OPERATORS_REVERSE[op_name]
|
184
|
+
sibling = Sass::Script::Lexer::OPERATORS_REVERSE[sibling_name]
|
185
|
+
class_eval <<RUBY
|
186
|
+
def test_non_associative_#{op_name}_#{sibling_name}
|
187
|
+
assert_renders "$foo #{op} $bar #{op} $baz"
|
188
|
+
|
189
|
+
assert_renders "$foo #{op} ($bar #{op} $baz)"
|
190
|
+
assert_equal "$foo #{op} $bar #{op} $baz",
|
191
|
+
render("($foo #{op} $bar) #{op} $baz")
|
192
|
+
|
193
|
+
assert_renders "$foo #{op} ($bar #{sibling} $baz)"
|
194
|
+
assert_equal "$foo #{sibling} $bar #{op} $baz",
|
195
|
+
render("($foo #{sibling} $bar) #{op} $baz")
|
196
|
+
end
|
197
|
+
RUBY
|
198
|
+
end
|
199
|
+
|
200
|
+
test_precedence :or, :and
|
201
|
+
test_precedence :and, :eq
|
202
|
+
test_precedence :and, :neq
|
203
|
+
test_precedence :eq, :gt
|
204
|
+
test_precedence :eq, :gte
|
205
|
+
test_precedence :eq, :lt
|
206
|
+
test_precedence :eq, :lte
|
207
|
+
test_precedence :gt, :plus
|
208
|
+
test_precedence :gt, :minus
|
209
|
+
test_precedence :plus, :times
|
210
|
+
test_precedence :plus, :div
|
211
|
+
test_precedence :plus, :mod
|
212
|
+
|
213
|
+
assert_associative :plus, :minus
|
214
|
+
assert_associative :times, :div
|
215
|
+
assert_associative :times, :mod
|
216
|
+
|
217
|
+
assert_non_associative :minus, :plus
|
218
|
+
assert_non_associative :div, :times
|
219
|
+
assert_non_associative :mod, :times
|
220
|
+
assert_non_associative :gt, :gte
|
221
|
+
assert_non_associative :gte, :lt
|
222
|
+
assert_non_associative :lt, :lte
|
223
|
+
assert_non_associative :lte, :gt
|
224
|
+
|
225
|
+
def test_comma_precedence
|
226
|
+
assert_renders "$foo, $bar, $baz"
|
227
|
+
|
228
|
+
assert_renders "$foo ($bar, $baz)"
|
229
|
+
assert_renders "($foo, $bar) $baz"
|
230
|
+
|
231
|
+
assert_equal "$foo, $bar $baz", render("$foo, ($bar $baz)")
|
232
|
+
assert_equal "$foo $bar, $baz", render("($foo $bar), $baz")
|
233
|
+
|
234
|
+
assert_equal "$foo, ($bar, $baz)", render("$foo, ($bar, $baz)")
|
235
|
+
assert_equal "($foo, $bar), $baz", render("($foo, $bar), $baz")
|
236
|
+
end
|
237
|
+
|
238
|
+
def test_space_precedence
|
239
|
+
assert_renders "$foo $bar $baz"
|
240
|
+
|
241
|
+
assert_renders "$foo or ($bar $baz)"
|
242
|
+
assert_renders "($foo $bar) or $baz"
|
243
|
+
|
244
|
+
assert_renders "$foo ($bar or $baz)"
|
245
|
+
assert_renders "($foo or $bar) $baz"
|
246
|
+
|
247
|
+
assert_equal "$foo ($bar $baz)", render("$foo ($bar $baz)")
|
248
|
+
assert_equal "($foo $bar) $baz", render("($foo $bar) $baz")
|
249
|
+
end
|
250
|
+
|
251
|
+
def test_unary_op
|
252
|
+
assert_renders "-12px"
|
253
|
+
assert_renders '/"foo"'
|
254
|
+
assert_renders 'not true'
|
255
|
+
|
256
|
+
assert_renders "-(foo(12px))"
|
257
|
+
assert_renders "-(-foo(12px))"
|
258
|
+
assert_renders "-(_foo(12px))"
|
259
|
+
assert_renders "-(\xC3\xBFoo(12px))"
|
260
|
+
assert_renders "-(blue)"
|
261
|
+
|
262
|
+
assert_equal 'not true or false', render('(not true) or false')
|
263
|
+
assert_equal 'not (true or false)', render('not (true or false)')
|
264
|
+
end
|
265
|
+
|
266
|
+
def test_interpolation
|
267
|
+
assert_equal 'unquote("#{$foo}#{$bar}#{$baz}")', render("$foo\#{$bar}$baz")
|
268
|
+
assert_equal 'unquote("#{$foo}#{$bar} #{$baz}")', render("$foo\#{$bar} $baz")
|
269
|
+
assert_equal 'unquote("#{$foo} #{$bar}#{$baz}")', render("$foo \#{$bar}$baz")
|
270
|
+
assert_renders "$foo \#{$bar} $baz"
|
271
|
+
assert_renders "$foo \#{$bar}\#{$bang} $baz"
|
272
|
+
assert_renders "$foo \#{$bar} \#{$bang} $baz"
|
273
|
+
assert_equal 'unquote("#{$bar}#{$baz}")', render("\#{$bar}$baz")
|
274
|
+
assert_equal 'unquote("#{$foo}#{$bar}")', render("$foo\#{$bar}")
|
275
|
+
assert_renders "\#{$bar}"
|
276
|
+
end
|
277
|
+
|
278
|
+
def test_interpolation_in_function
|
279
|
+
assert_renders 'flabnabbit(#{1 + "foo"})'
|
280
|
+
assert_equal 'flabnabbit(unquote("#{$foo} #{1 + "foo"}#{$baz}"))',
|
281
|
+
render('flabnabbit($foo #{1 + "foo"}$baz)')
|
282
|
+
assert_renders 'flabnabbit($foo #{1 + "foo"}#{2 + "bar"} $baz)'
|
283
|
+
end
|
284
|
+
|
285
|
+
def test_interpolation_in_string_function
|
286
|
+
assert_renders 'calc(#{1 + "foo"})'
|
287
|
+
assert_renders 'calc(foo#{1 + "foo"}baz)'
|
288
|
+
end
|
289
|
+
|
290
|
+
def test_interpolation_near_operators
|
291
|
+
assert_renders '#{1 + 2} , #{3 + 4}'
|
292
|
+
assert_renders '#{1 + 2}, #{3 + 4}'
|
293
|
+
assert_renders '#{1 + 2} ,#{3 + 4}'
|
294
|
+
assert_renders '#{1 + 2},#{3 + 4}'
|
295
|
+
assert_renders '#{1 + 2}, #{3 + 4}, #{5 + 6}'
|
296
|
+
assert_renders '3, #{3 + 4}, 11'
|
297
|
+
|
298
|
+
assert_renders '3 / #{3 + 4}'
|
299
|
+
assert_renders '3 /#{3 + 4}'
|
300
|
+
assert_renders '3/ #{3 + 4}'
|
301
|
+
assert_renders '3/#{3 + 4}'
|
302
|
+
|
303
|
+
assert_equal 'unquote("#{1 + 2} * 7")', render('#{1 + 2} * 7')
|
304
|
+
assert_equal 'unquote("#{1 + 2}* 7")', render('#{1 + 2}* 7')
|
305
|
+
assert_equal 'unquote("#{1 + 2} *7")', render('#{1 + 2} *7')
|
306
|
+
assert_equal 'unquote("#{1 + 2}*7")', render('#{1 + 2}*7')
|
307
|
+
|
308
|
+
assert_renders '-#{1 + 2}'
|
309
|
+
assert_equal 'unquote("- #{1 + 2}")', render('- #{1 + 2}')
|
310
|
+
|
311
|
+
assert_equal 'unquote("5 + #{1 + 2} * #{3 + 4}")', render('5 + #{1 + 2} * #{3 + 4}')
|
312
|
+
assert_equal 'unquote("5 +#{1 + 2} * #{3 + 4}")', render('5 +#{1 + 2} * #{3 + 4}')
|
313
|
+
assert_equal 'unquote("5+#{1 + 2} * #{3 + 4}")', render('5+#{1 + 2} * #{3 + 4}')
|
314
|
+
assert_equal 'unquote("#{1 + 2} * #{3 + 4} + 5")', render('#{1 + 2} * #{3 + 4} + 5')
|
315
|
+
assert_equal 'unquote("#{1 + 2} * #{3 + 4}+ 5")', render('#{1 + 2} * #{3 + 4}+ 5')
|
316
|
+
assert_equal 'unquote("#{1 + 2} * #{3 + 4}+5")', render('#{1 + 2} * #{3 + 4}+5')
|
317
|
+
|
318
|
+
assert_equal '5 / unquote("#{1 + 2} + #{3 + 4}")', render('5 / (#{1 + 2} + #{3 + 4})')
|
319
|
+
assert_equal '5 / unquote("#{1 + 2} + #{3 + 4}")', render('5 /(#{1 + 2} + #{3 + 4})')
|
320
|
+
assert_equal '5 / unquote("#{1 + 2} + #{3 + 4}")', render('5 /( #{1 + 2} + #{3 + 4} )')
|
321
|
+
assert_equal 'unquote("#{1 + 2} + #{3 + 4}") / 5', render('(#{1 + 2} + #{3 + 4}) / 5')
|
322
|
+
assert_equal 'unquote("#{1 + 2} + #{3 + 4}") / 5', render('(#{1 + 2} + #{3 + 4})/ 5')
|
323
|
+
assert_equal 'unquote("#{1 + 2} + #{3 + 4}") / 5', render('( #{1 + 2} + #{3 + 4} )/ 5')
|
324
|
+
|
325
|
+
assert_equal 'unquote("#{1 + 2} + #{2 + 3}")', render('#{1 + 2} + 2 + 3')
|
326
|
+
assert_equal 'unquote("#{1 + 2} +#{2 + 3}")', render('#{1 + 2} +2 + 3')
|
327
|
+
end
|
328
|
+
|
329
|
+
def test_string_interpolation
|
330
|
+
assert_renders '"foo#{$bar}baz"'
|
331
|
+
assert_renders '"foo #{$bar}baz"'
|
332
|
+
assert_renders '"foo#{$bar} baz"'
|
333
|
+
assert_renders '"foo #{$bar} baz"'
|
334
|
+
assert_renders '"foo #{$bar}#{$bang} baz"'
|
335
|
+
assert_renders '"foo #{$bar} #{$bang} baz"'
|
336
|
+
assert_renders '"#{$bar}baz"'
|
337
|
+
assert_renders '"foo#{$bar}"'
|
338
|
+
assert_renders '"#{$bar}"'
|
339
|
+
|
340
|
+
assert_renders "'\"\#{\"bar\"}\"'"
|
341
|
+
assert_renders '"\#{bar}"'
|
342
|
+
|
343
|
+
assert_equal '"foo#{$bar}baz"', render("'foo\#{$bar}baz'")
|
344
|
+
end
|
345
|
+
|
346
|
+
private
|
347
|
+
|
348
|
+
def assert_renders(script, options = {})
|
349
|
+
assert_equal(script, render(script, options))
|
350
|
+
end
|
351
|
+
|
352
|
+
def render(script, options = {})
|
353
|
+
munge_filename(options)
|
354
|
+
node = Sass::Script.parse(script, 1, 0, options.merge(:_convert => true))
|
355
|
+
node.to_sass
|
356
|
+
end
|
357
|
+
end
|
@@ -0,0 +1,1422 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
4
|
+
require 'sass/engine'
|
5
|
+
|
6
|
+
module Sass::Script::Functions::UserFunctions
|
7
|
+
def assert_options(val)
|
8
|
+
val.options[:foo]
|
9
|
+
Sass::Script::Value::String.new("Options defined!")
|
10
|
+
end
|
11
|
+
|
12
|
+
def arg_error
|
13
|
+
assert_options
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Sass::Script::Functions
|
18
|
+
include Sass::Script::Functions::UserFunctions
|
19
|
+
end
|
20
|
+
|
21
|
+
class SassScriptTest < MiniTest::Test
|
22
|
+
include Sass::Script
|
23
|
+
|
24
|
+
def test_color_clamps_input
|
25
|
+
assert_equal 0, Sass::Script::Value::Color.new([1, 2, -1]).blue
|
26
|
+
assert_equal 255, Sass::Script::Value::Color.new([256, 2, 3]).red
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_color_clamps_rgba_input
|
30
|
+
assert_equal 1, Sass::Script::Value::Color.new([1, 2, 3, 1.1]).alpha
|
31
|
+
assert_equal 0, Sass::Script::Value::Color.new([1, 2, 3, -0.1]).alpha
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_color_from_hex
|
35
|
+
assert_equal Sass::Script::Value::Color.new([0,0,0]), Sass::Script::Value::Color.from_hex('000000')
|
36
|
+
assert_equal Sass::Script::Value::Color.new([0,0,0]), Sass::Script::Value::Color.from_hex('#000000')
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_string_escapes
|
40
|
+
assert_equal "'", resolve("\"'\"")
|
41
|
+
assert_equal '"', resolve("\"\\\"\"")
|
42
|
+
assert_equal "\\", resolve("\"\\\\\"")
|
43
|
+
assert_equal "☃", resolve("\"\\2603\"")
|
44
|
+
assert_equal "☃f", resolve("\"\\2603 f\"")
|
45
|
+
assert_equal "☃x", resolve("\"\\2603x\"")
|
46
|
+
assert_equal "\\2603", resolve("\"\\\\2603\"")
|
47
|
+
assert_equal "\#{foo}", resolve("\"\\\#{foo}\"")
|
48
|
+
|
49
|
+
# U+FFFD is the replacement character, "�".
|
50
|
+
assert_equal [0xFFFD].pack("U"), resolve("\"\\0\"")
|
51
|
+
assert_equal [0xFFFD].pack("U"), resolve("\"\\FFFFFF\"")
|
52
|
+
assert_equal [0xFFFD].pack("U"), resolve("\"\\D800\"")
|
53
|
+
assert_equal [0xD7FF].pack("U"), resolve("\"\\D7FF\"")
|
54
|
+
assert_equal [0xFFFD].pack("U"), resolve("\"\\DFFF\"")
|
55
|
+
assert_equal [0xE000].pack("U"), resolve("\"\\E000\"")
|
56
|
+
end
|
57
|
+
|
58
|
+
def test_string_escapes_are_resolved_before_operators
|
59
|
+
assert_equal "true", resolve('"abc" == "\61\62\63"')
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_string_quote
|
63
|
+
assert_equal '"foo"', resolve_quoted('"foo"')
|
64
|
+
assert_equal "'f\"oo'", resolve_quoted('"f\"oo"')
|
65
|
+
assert_equal "\"f'oo\"", resolve_quoted("'f\\'oo'")
|
66
|
+
assert_equal "\"f'o\\\"o\"", resolve_quoted("'f\\'o\"o'")
|
67
|
+
assert_equal '"foo bar"', resolve_quoted('"foo\20 bar"')
|
68
|
+
assert_equal '"foo\a bar"', resolve_quoted('"foo\a bar"')
|
69
|
+
assert_equal '"x\ay"', resolve_quoted('"x\a y"')
|
70
|
+
assert_equal '"\a "', resolve_quoted('"\a\20"')
|
71
|
+
assert_equal '"\a abcdef"', resolve_quoted('"\a abcdef"')
|
72
|
+
assert_equal '"☃abcdef"', resolve_quoted('"\2603 abcdef"')
|
73
|
+
assert_equal '"\\\\"', resolve_quoted('"\\\\"')
|
74
|
+
assert_equal '"foobar"', resolve_quoted("\"foo\\\nbar\"")
|
75
|
+
assert_equal '"#{foo}"', resolve_quoted("\"\\\#{foo}\"")
|
76
|
+
end
|
77
|
+
|
78
|
+
def test_color_names
|
79
|
+
assert_equal "white", resolve("white")
|
80
|
+
assert_equal "#ffffff", resolve("#ffffff")
|
81
|
+
assert_equal "#fffffe", resolve("white - #000001")
|
82
|
+
assert_equal "transparent", resolve("transparent")
|
83
|
+
assert_equal "transparent", resolve("rgba(0, 0, 0, 0)")
|
84
|
+
end
|
85
|
+
|
86
|
+
def test_rgba_color_literals
|
87
|
+
assert_equal Sass::Script::Value::Color.new([1, 2, 3, 0.75]), eval("rgba(1, 2, 3, 0.75)")
|
88
|
+
assert_equal "rgba(1, 2, 3, 0.75)", resolve("rgba(1, 2, 3, 0.75)")
|
89
|
+
|
90
|
+
assert_equal Sass::Script::Value::Color.new([1, 2, 3, 0]), eval("rgba(1, 2, 3, 0)")
|
91
|
+
assert_equal "rgba(1, 2, 3, 0)", resolve("rgba(1, 2, 3, 0)")
|
92
|
+
|
93
|
+
assert_equal Sass::Script::Value::Color.new([1, 2, 3]), eval("rgba(1, 2, 3, 1)")
|
94
|
+
assert_equal Sass::Script::Value::Color.new([1, 2, 3, 1]), eval("rgba(1, 2, 3, 1)")
|
95
|
+
assert_equal "#010203", resolve("rgba(1, 2, 3, 1)")
|
96
|
+
assert_equal "white", resolve("rgba(255, 255, 255, 1)")
|
97
|
+
end
|
98
|
+
|
99
|
+
def test_rgba_color_math
|
100
|
+
assert_equal "rgba(50, 50, 100, 0.35)", resolve("rgba(1, 1, 2, 0.35) * rgba(50, 50, 50, 0.35)")
|
101
|
+
assert_equal "rgba(52, 52, 52, 0.25)", resolve("rgba(2, 2, 2, 0.25) + rgba(50, 50, 50, 0.25)")
|
102
|
+
|
103
|
+
assert_raise_message(Sass::SyntaxError, "Alpha channels must be equal: rgba(1, 2, 3, 0.15) + rgba(50, 50, 50, 0.75)") do
|
104
|
+
resolve("rgba(1, 2, 3, 0.15) + rgba(50, 50, 50, 0.75)")
|
105
|
+
end
|
106
|
+
assert_raise_message(Sass::SyntaxError, "Alpha channels must be equal: #123456 * rgba(50, 50, 50, 0.75)") do
|
107
|
+
resolve("#123456 * rgba(50, 50, 50, 0.75)")
|
108
|
+
end
|
109
|
+
assert_raise_message(Sass::SyntaxError, "Alpha channels must be equal: rgba(50, 50, 50, 0.75) / #123456") do
|
110
|
+
resolve("rgba(50, 50, 50, 0.75) / #123456")
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
def test_rgba_number_math
|
115
|
+
assert_equal "rgba(49, 49, 49, 0.75)", resolve("rgba(50, 50, 50, 0.75) - 1")
|
116
|
+
assert_equal "rgba(100, 100, 100, 0.75)", resolve("rgba(50, 50, 50, 0.75) * 2")
|
117
|
+
end
|
118
|
+
|
119
|
+
def test_rgba_rounding
|
120
|
+
assert_equal "rgba(10, 1, 0, 0.12346)", resolve("rgba(10.0, 1.23456789, 0.0, 0.1234567)")
|
121
|
+
end
|
122
|
+
|
123
|
+
def test_rgb_calc
|
124
|
+
assert_equal "rgb(calc(255 - 5), 0, 0)", resolve("rgb(calc(255 - 5), 0, 0)")
|
125
|
+
end
|
126
|
+
|
127
|
+
def test_rgba_calc
|
128
|
+
assert_equal "rgba(calc(255 - 5), 0, 0, 0.1)",
|
129
|
+
resolve("rgba(calc(255 - 5), 0, 0, 0.1)")
|
130
|
+
assert_equal "rgba(127, 0, 0, calc(0.1 + 0.5))",
|
131
|
+
resolve("rgba(127, 0, 0, calc(0.1 + 0.5))")
|
132
|
+
end
|
133
|
+
|
134
|
+
def test_rgba_shorthand_calc
|
135
|
+
assert_equal "rgba(255, 0, 0, calc(0.1 + 0.5))",
|
136
|
+
resolve("rgba(red, calc(0.1 + 0.5))")
|
137
|
+
end
|
138
|
+
|
139
|
+
def test_hsl_calc
|
140
|
+
assert_equal "hsl(calc(360 * 5 / 6), 50%, 50%)", resolve("hsl(calc(360 * 5 / 6), 50%, 50%)")
|
141
|
+
end
|
142
|
+
|
143
|
+
def test_hsla_calc
|
144
|
+
assert_equal "hsla(calc(360 * 5 / 6), 50%, 50%, 0.1)",
|
145
|
+
resolve("hsla(calc(360 * 5 / 6), 50%, 50%, 0.1)")
|
146
|
+
assert_equal "hsla(270, 50%, 50%, calc(0.1 + 0.1))",
|
147
|
+
resolve("hsla(270, 50%, 50%, calc(0.1 + 0.1))")
|
148
|
+
end
|
149
|
+
|
150
|
+
def test_compressed_colors
|
151
|
+
assert_equal "#123456", resolve("#123456", :style => :compressed)
|
152
|
+
assert_equal "rgba(1,2,3,0.5)", resolve("rgba(1, 2, 3, 0.5)", :style => :compressed)
|
153
|
+
assert_equal "#123", resolve("#112233", :style => :compressed)
|
154
|
+
assert_equal "#000", resolve("black", :style => :compressed)
|
155
|
+
assert_equal "red", resolve("#f00", :style => :compressed)
|
156
|
+
assert_equal "blue", resolve("blue", :style => :compressed)
|
157
|
+
assert_equal "navy", resolve("#000080", :style => :compressed)
|
158
|
+
assert_equal "navy #fff", resolve("#000080 white", :style => :compressed)
|
159
|
+
assert_equal "This color is #fff", resolve('"This color is #{ white }"', :style => :compressed)
|
160
|
+
assert_equal "transparent", resolve("rgba(0, 0, 0, 0)", :style => :compressed)
|
161
|
+
end
|
162
|
+
|
163
|
+
def test_compressed_comma
|
164
|
+
# assert_equal "foo,bar,baz", resolve("foo, bar, baz", :style => :compressed)
|
165
|
+
# assert_equal "foo,#baf,baz", resolve("foo, #baf, baz", :style => :compressed)
|
166
|
+
assert_equal "foo,#baf,red", resolve("foo, #baf, #f00", :style => :compressed)
|
167
|
+
end
|
168
|
+
|
169
|
+
def test_implicit_strings
|
170
|
+
assert_equal Sass::Script::Value::String.new("foo"), eval("foo")
|
171
|
+
assert_equal Sass::Script::Value::String.new("foo/bar"), eval("foo/bar")
|
172
|
+
end
|
173
|
+
|
174
|
+
def test_basic_interpolation
|
175
|
+
assert_equal "foo3bar", resolve("foo\#{1 + 2}bar")
|
176
|
+
assert_equal "foo3 bar", resolve("foo\#{1 + 2} bar")
|
177
|
+
assert_equal "foo 3bar", resolve("foo \#{1 + 2}bar")
|
178
|
+
assert_equal "foo 3 bar", resolve("foo \#{1 + 2} bar")
|
179
|
+
assert_equal "foo 35 bar", resolve("foo \#{1 + 2}\#{2 + 3} bar")
|
180
|
+
assert_equal "foo 3 5 bar", resolve("foo \#{1 + 2} \#{2 + 3} bar")
|
181
|
+
assert_equal "3bar", resolve("\#{1 + 2}bar")
|
182
|
+
assert_equal "foo3", resolve("foo\#{1 + 2}")
|
183
|
+
assert_equal "3", resolve("\#{1 + 2}")
|
184
|
+
end
|
185
|
+
|
186
|
+
def test_interpolation_in_function
|
187
|
+
assert_equal 'flabnabbit(1foo)', resolve('flabnabbit(#{1 + "foo"})')
|
188
|
+
assert_equal 'flabnabbit(foo 1foobaz)', resolve('flabnabbit(foo #{1 + "foo"}baz)')
|
189
|
+
assert_equal('flabnabbit(foo 1foo2bar baz)',
|
190
|
+
resolve('flabnabbit(foo #{1 + "foo"}#{2 + "bar"} baz)'))
|
191
|
+
end
|
192
|
+
|
193
|
+
def test_interpolation_near_operators
|
194
|
+
silence_warnings do
|
195
|
+
assert_equal '3 , 7', resolve('#{1 + 2} , #{3 + 4}')
|
196
|
+
assert_equal '3, 7', resolve('#{1 + 2}, #{3 + 4}')
|
197
|
+
assert_equal '3 ,7', resolve('#{1 + 2} ,#{3 + 4}')
|
198
|
+
assert_equal '3,7', resolve('#{1 + 2},#{3 + 4}')
|
199
|
+
assert_equal '3, 7, 11', resolve('#{1 + 2}, #{3 + 4}, #{5 + 6}')
|
200
|
+
assert_equal '3, 7, 11', resolve('3, #{3 + 4}, 11')
|
201
|
+
assert_equal '3, 7, 11', resolve('3, 7, #{5 + 6}')
|
202
|
+
|
203
|
+
assert_equal '3 / 7', resolve('3 / #{3 + 4}')
|
204
|
+
assert_equal '3 /7', resolve('3 /#{3 + 4}')
|
205
|
+
assert_equal '3/ 7', resolve('3/ #{3 + 4}')
|
206
|
+
assert_equal '3/7', resolve('3/#{3 + 4}')
|
207
|
+
|
208
|
+
assert_equal '3 * 7', resolve('#{1 + 2} * 7')
|
209
|
+
assert_equal '3* 7', resolve('#{1 + 2}* 7')
|
210
|
+
assert_equal '3 *7', resolve('#{1 + 2} *7')
|
211
|
+
assert_equal '3*7', resolve('#{1 + 2}*7')
|
212
|
+
|
213
|
+
assert_equal '-3', resolve('-#{1 + 2}')
|
214
|
+
assert_equal '- 3', resolve('- #{1 + 2}')
|
215
|
+
|
216
|
+
assert_equal '5 + 3 * 7', resolve('5 + #{1 + 2} * #{3 + 4}')
|
217
|
+
assert_equal '5 +3 * 7', resolve('5 +#{1 + 2} * #{3 + 4}')
|
218
|
+
assert_equal '5+3 * 7', resolve('5+#{1 + 2} * #{3 + 4}')
|
219
|
+
assert_equal '3 * 7 + 5', resolve('#{1 + 2} * #{3 + 4} + 5')
|
220
|
+
assert_equal '3 * 7+ 5', resolve('#{1 + 2} * #{3 + 4}+ 5')
|
221
|
+
assert_equal '3 * 7+5', resolve('#{1 + 2} * #{3 + 4}+5')
|
222
|
+
|
223
|
+
assert_equal '5/3 + 7', resolve('5 / (#{1 + 2} + #{3 + 4})')
|
224
|
+
assert_equal '5/3 + 7', resolve('5 /(#{1 + 2} + #{3 + 4})')
|
225
|
+
assert_equal '5/3 + 7', resolve('5 /( #{1 + 2} + #{3 + 4} )')
|
226
|
+
assert_equal '3 + 7/5', resolve('(#{1 + 2} + #{3 + 4}) / 5')
|
227
|
+
assert_equal '3 + 7/5', resolve('(#{1 + 2} + #{3 + 4})/ 5')
|
228
|
+
assert_equal '3 + 7/5', resolve('( #{1 + 2} + #{3 + 4} )/ 5')
|
229
|
+
|
230
|
+
assert_equal '3 + 5', resolve('#{1 + 2} + 2 + 3')
|
231
|
+
assert_equal '3 +5', resolve('#{1 + 2} +2 + 3')
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
def test_string_interpolation
|
236
|
+
assert_equal "foo bar, baz bang", resolve('"foo #{"bar"}, #{"baz"} bang"')
|
237
|
+
assert_equal "foo bar baz bang", resolve('"foo #{"#{"ba" + "r"} baz"} bang"')
|
238
|
+
assert_equal 'foo #{bar baz} bang', resolve('"foo \#{#{"ba" + "r"} baz} bang"')
|
239
|
+
assert_equal 'foo #{baz bang', resolve('"foo #{"\#{" + "baz"} bang"')
|
240
|
+
assert_equal "foo2bar", resolve('\'foo#{1 + 1}bar\'')
|
241
|
+
assert_equal "foo2bar", resolve('"foo#{1 + 1}bar"')
|
242
|
+
assert_equal "foo1bar5baz4bang", resolve('\'foo#{1 + "bar#{2 + 3}baz" + 4}bang\'')
|
243
|
+
end
|
244
|
+
|
245
|
+
def test_interpolation_in_interpolation
|
246
|
+
assert_equal 'foo', resolve('#{#{foo}}')
|
247
|
+
assert_equal 'foo', resolve('"#{#{foo}}"')
|
248
|
+
assert_equal 'foo', resolve('#{"#{foo}"}')
|
249
|
+
assert_equal 'foo', resolve('"#{"#{foo}"}"')
|
250
|
+
end
|
251
|
+
|
252
|
+
def test_interpolation_with_newline
|
253
|
+
assert_equal "\nbang", resolve('"#{"\a "}bang"')
|
254
|
+
assert_equal "\n\nbang", resolve('"#{"\a "}\a bang"')
|
255
|
+
end
|
256
|
+
|
257
|
+
def test_rule_interpolation
|
258
|
+
assert_equal(<<CSS, render(<<SASS))
|
259
|
+
foo bar baz bang {
|
260
|
+
a: b; }
|
261
|
+
CSS
|
262
|
+
foo \#{"\#{"ba" + "r"} baz"} bang
|
263
|
+
a: b
|
264
|
+
SASS
|
265
|
+
assert_equal(<<CSS, render(<<SASS))
|
266
|
+
foo [bar="\#{bar baz}"] bang {
|
267
|
+
a: b; }
|
268
|
+
CSS
|
269
|
+
foo [bar="\\\#{\#{"ba" + "r"} baz}"] bang
|
270
|
+
a: b
|
271
|
+
SASS
|
272
|
+
assert_equal(<<CSS, render(<<SASS))
|
273
|
+
foo [bar="\#{baz"] bang {
|
274
|
+
a: b; }
|
275
|
+
CSS
|
276
|
+
foo [bar="\#{"\\\#{" + "baz"}"] bang
|
277
|
+
a: b
|
278
|
+
SASS
|
279
|
+
end
|
280
|
+
|
281
|
+
def test_inaccessible_functions
|
282
|
+
assert_equal "send(to_s)", resolve("send(to_s)", :line => 2)
|
283
|
+
assert_equal "public_instance_methods()", resolve("public_instance_methods()")
|
284
|
+
end
|
285
|
+
|
286
|
+
def test_adding_functions_directly_to_functions_module
|
287
|
+
assert !Functions.callable?('nonexistant')
|
288
|
+
Functions.class_eval { def nonexistant; end }
|
289
|
+
assert Functions.callable?('nonexistant')
|
290
|
+
Functions.send :remove_method, :nonexistant
|
291
|
+
end
|
292
|
+
|
293
|
+
def test_default_functions
|
294
|
+
assert_equal "url(12)", resolve("url(12)")
|
295
|
+
assert_equal 'blam("foo")', resolve('blam("foo")')
|
296
|
+
end
|
297
|
+
|
298
|
+
def test_function_results_have_options
|
299
|
+
assert_equal "Options defined!", resolve("assert_options(abs(1))")
|
300
|
+
assert_equal "Options defined!", resolve("assert_options(round(1.2))")
|
301
|
+
end
|
302
|
+
|
303
|
+
def test_funcall_requires_no_whitespace_before_lparen
|
304
|
+
assert_equal "no-repeat 15px", resolve("no-repeat (7px + 8px)")
|
305
|
+
assert_equal "no-repeat(15px)", resolve("no-repeat(7px + 8px)")
|
306
|
+
end
|
307
|
+
|
308
|
+
def test_dynamic_url
|
309
|
+
assert_equal "url(foo-bar)", resolve("url($foo)", {}, env('foo' => Sass::Script::Value::String.new("foo-bar")))
|
310
|
+
assert_equal "url(foo-bar baz)", resolve("url($foo $bar)", {}, env('foo' => Sass::Script::Value::String.new("foo-bar"), 'bar' => Sass::Script::Value::String.new("baz")))
|
311
|
+
assert_equal "url(foo baz)", resolve("url(foo $bar)", {}, env('bar' => Sass::Script::Value::String.new("baz")))
|
312
|
+
assert_equal "url(foo bar)", resolve("url(foo bar)")
|
313
|
+
end
|
314
|
+
|
315
|
+
def test_url_with_interpolation
|
316
|
+
assert_equal "url(http://sass-lang.com/images/foo-bar)", resolve("url(http://sass-lang.com/images/\#{foo-bar})")
|
317
|
+
assert_equal 'url("http://sass-lang.com/images/foo-bar")', resolve("url('http://sass-lang.com/images/\#{foo-bar}')")
|
318
|
+
assert_equal 'url("http://sass-lang.com/images/foo-bar")', resolve('url("http://sass-lang.com/images/#{foo-bar}")')
|
319
|
+
assert_unquoted "url(http://sass-lang.com/images/\#{foo-bar})"
|
320
|
+
end
|
321
|
+
|
322
|
+
def test_hyphenated_variables
|
323
|
+
assert_equal("a-b", resolve("$a-b", {}, env("a-b" => Sass::Script::Value::String.new("a-b"))))
|
324
|
+
end
|
325
|
+
|
326
|
+
def test_ruby_equality
|
327
|
+
assert_equal eval('"foo"'), eval('"foo"')
|
328
|
+
assert_equal eval('1'), eval('1.0')
|
329
|
+
assert_equal eval('1 2 3.0'), eval('1 2 3')
|
330
|
+
assert_equal eval('1, 2, 3.0'), eval('1, 2, 3')
|
331
|
+
assert_equal eval('(1 2), (3, 4), (5 6)'), eval('(1 2), (3, 4), (5 6)')
|
332
|
+
refute_equal eval('1, 2, 3'), eval('1 2 3')
|
333
|
+
refute_equal eval('1'), eval('"1"')
|
334
|
+
end
|
335
|
+
|
336
|
+
def test_booleans
|
337
|
+
assert_equal "true", resolve("true")
|
338
|
+
assert_equal "false", resolve("false")
|
339
|
+
end
|
340
|
+
|
341
|
+
def test_null
|
342
|
+
assert_equal "", resolve("null")
|
343
|
+
end
|
344
|
+
|
345
|
+
def test_boolean_ops
|
346
|
+
assert_equal "true", resolve("true and true")
|
347
|
+
assert_equal "true", resolve("false or true")
|
348
|
+
assert_equal "true", resolve("true or false")
|
349
|
+
assert_equal "true", resolve("true or true")
|
350
|
+
assert_equal "false", resolve("false or false")
|
351
|
+
assert_equal "false", resolve("false and true")
|
352
|
+
assert_equal "false", resolve("true and false")
|
353
|
+
assert_equal "false", resolve("false and false")
|
354
|
+
|
355
|
+
assert_equal "true", resolve("not false")
|
356
|
+
assert_equal "false", resolve("not true")
|
357
|
+
assert_equal "true", resolve("not not true")
|
358
|
+
|
359
|
+
assert_equal "1", resolve("false or 1")
|
360
|
+
assert_equal "false", resolve("false and 1")
|
361
|
+
assert_equal "2", resolve("2 or 3")
|
362
|
+
assert_equal "3", resolve("2 and 3")
|
363
|
+
|
364
|
+
assert_equal "true", resolve("null or true")
|
365
|
+
assert_equal "true", resolve("true or null")
|
366
|
+
assert_equal "", resolve("null or null")
|
367
|
+
assert_equal "", resolve("null and true")
|
368
|
+
assert_equal "", resolve("true and null")
|
369
|
+
assert_equal "", resolve("null and null")
|
370
|
+
|
371
|
+
assert_equal "true", resolve("not null")
|
372
|
+
|
373
|
+
assert_equal "1", resolve("null or 1")
|
374
|
+
assert_equal "", resolve("null and 1")
|
375
|
+
end
|
376
|
+
|
377
|
+
def test_arithmetic_ops
|
378
|
+
assert_equal "2", resolve("1 + 1")
|
379
|
+
assert_equal "0", resolve("1 - 1")
|
380
|
+
assert_equal "8", resolve("2 * 4")
|
381
|
+
assert_equal "0.5", resolve("(2 / 4)")
|
382
|
+
assert_equal "2", resolve("(4 / 2)")
|
383
|
+
|
384
|
+
assert_equal "-1", resolve("-1")
|
385
|
+
end
|
386
|
+
|
387
|
+
def test_subtraction_vs_minus_vs_identifier
|
388
|
+
assert_equal "0.25em", resolve("1em-.75")
|
389
|
+
assert_equal "0.25em", resolve("1em-0.75")
|
390
|
+
assert_equal "1em -0.75", resolve("1em -.75")
|
391
|
+
assert_equal "1em -0.75", resolve("1em -0.75")
|
392
|
+
assert_equal "1em- 0.75", resolve("1em- .75")
|
393
|
+
assert_equal "1em- 0.75", resolve("1em- 0.75")
|
394
|
+
assert_equal "0.25em", resolve("1em - .75")
|
395
|
+
assert_equal "0.25em", resolve("1em - 0.75")
|
396
|
+
end
|
397
|
+
|
398
|
+
def test_string_ops
|
399
|
+
assert_equal '"foo" "bar"', resolve('"foo" "bar"')
|
400
|
+
assert_equal "true 1", resolve('true 1')
|
401
|
+
assert_equal '"foo", "bar"', resolve("'foo' , 'bar'")
|
402
|
+
assert_equal "true, 1", resolve('true , 1')
|
403
|
+
assert_equal "foobar", resolve('"foo" + "bar"')
|
404
|
+
assert_equal "\nfoo\nxyz", resolve('"\a foo" + "\axyz"')
|
405
|
+
assert_equal "true1", resolve('true + 1')
|
406
|
+
assert_equal '"foo"-"bar"', resolve("'foo' - 'bar'")
|
407
|
+
assert_equal "true-1", resolve('true - 1')
|
408
|
+
assert_equal '"foo"/"bar"', resolve('"foo" / "bar"')
|
409
|
+
assert_equal "true/1", resolve('true / 1')
|
410
|
+
|
411
|
+
assert_equal '-"bar"', resolve("- 'bar'")
|
412
|
+
assert_equal "-true", resolve('- true')
|
413
|
+
assert_equal '/"bar"', resolve('/ "bar"')
|
414
|
+
assert_equal "/true", resolve('/ true')
|
415
|
+
end
|
416
|
+
|
417
|
+
def test_relational_ops
|
418
|
+
assert_equal "false", resolve("1 > 2")
|
419
|
+
assert_equal "false", resolve("2 > 2")
|
420
|
+
assert_equal "true", resolve("3 > 2")
|
421
|
+
assert_equal "false", resolve("1 >= 2")
|
422
|
+
assert_equal "true", resolve("2 >= 2")
|
423
|
+
assert_equal "true", resolve("3 >= 2")
|
424
|
+
assert_equal "true", resolve("1 < 2")
|
425
|
+
assert_equal "false", resolve("2 < 2")
|
426
|
+
assert_equal "false", resolve("3 < 2")
|
427
|
+
assert_equal "true", resolve("1 <= 2")
|
428
|
+
assert_equal "true", resolve("2 <= 2")
|
429
|
+
assert_equal "false", resolve("3 <= 2")
|
430
|
+
end
|
431
|
+
|
432
|
+
def test_null_ops
|
433
|
+
assert_raise_message(Sass::SyntaxError,
|
434
|
+
'Invalid null operation: "null plus 1".') {eval("null + 1")}
|
435
|
+
assert_raise_message(Sass::SyntaxError,
|
436
|
+
'Invalid null operation: "null minus 1".') {eval("null - 1")}
|
437
|
+
assert_raise_message(Sass::SyntaxError,
|
438
|
+
'Invalid null operation: "null times 1".') {eval("null * 1")}
|
439
|
+
assert_raise_message(Sass::SyntaxError,
|
440
|
+
'Invalid null operation: "null div 1".') {eval("null / 1")}
|
441
|
+
assert_raise_message(Sass::SyntaxError,
|
442
|
+
'Invalid null operation: "null mod 1".') {eval("null % 1")}
|
443
|
+
assert_raise_message(Sass::SyntaxError,
|
444
|
+
'Invalid null operation: "1 plus null".') {eval("1 + null")}
|
445
|
+
assert_raise_message(Sass::SyntaxError,
|
446
|
+
'Invalid null operation: "1 minus null".') {eval("1 - null")}
|
447
|
+
assert_raise_message(Sass::SyntaxError,
|
448
|
+
'Invalid null operation: "1 times null".') {eval("1 * null")}
|
449
|
+
assert_raise_message(Sass::SyntaxError,
|
450
|
+
'Invalid null operation: "1 div null".') {eval("1 / null")}
|
451
|
+
assert_raise_message(Sass::SyntaxError,
|
452
|
+
'Invalid null operation: "1 mod null".') {eval("1 % null")}
|
453
|
+
assert_raise_message(Sass::SyntaxError,
|
454
|
+
'Invalid null operation: "1 gt null".') {eval("1 > null")}
|
455
|
+
assert_raise_message(Sass::SyntaxError,
|
456
|
+
'Invalid null operation: "null lt 1".') {eval("null < 1")}
|
457
|
+
assert_raise_message(Sass::SyntaxError,
|
458
|
+
'Invalid null operation: "null plus null".') {eval("null + null")}
|
459
|
+
assert_raise_message(Sass::SyntaxError,
|
460
|
+
'Invalid null operation: ""foo" plus null".') {eval("foo + null")}
|
461
|
+
end
|
462
|
+
|
463
|
+
def test_equals
|
464
|
+
assert_equal("true", resolve('"foo" == $foo', {},
|
465
|
+
env("foo" => Sass::Script::Value::String.new("foo"))))
|
466
|
+
assert_equal "true", resolve("1 == 1.0")
|
467
|
+
assert_equal "true", resolve("false != true")
|
468
|
+
assert_equal "false", resolve("1em == 1px")
|
469
|
+
assert_equal "false", resolve("12 != 12")
|
470
|
+
assert_equal "true", resolve("(foo bar baz) == (foo bar baz)")
|
471
|
+
assert_equal "true", resolve("(foo, bar, baz) == (foo, bar, baz)")
|
472
|
+
assert_equal "true", resolve('((1 2), (3, 4), (5 6)) == ((1 2), (3, 4), (5 6))')
|
473
|
+
assert_equal "true", resolve('((1 2), (3 4)) == (1 2, 3 4)')
|
474
|
+
assert_equal "false", resolve('((1 2) 3) == (1 2 3)')
|
475
|
+
assert_equal "false", resolve('(1 (2 3)) == (1 2 3)')
|
476
|
+
assert_equal "false", resolve('((1, 2) (3, 4)) == (1, 2 3, 4)')
|
477
|
+
assert_equal "false", resolve('(1 2 3) == (1, 2, 3)')
|
478
|
+
|
479
|
+
assert_equal "true", resolve('null == null')
|
480
|
+
assert_equal "false", resolve('"null" == null')
|
481
|
+
assert_equal "false", resolve('0 == null')
|
482
|
+
assert_equal "false", resolve('() == null')
|
483
|
+
|
484
|
+
assert_equal "false", resolve('null != null')
|
485
|
+
assert_equal "true", resolve('"null" != null')
|
486
|
+
assert_equal "true", resolve('0 != null')
|
487
|
+
assert_equal "true", resolve('() != null')
|
488
|
+
end
|
489
|
+
|
490
|
+
def test_mod
|
491
|
+
assert_equal "5", resolve("29 % 12")
|
492
|
+
assert_equal "5px", resolve("29px % 12")
|
493
|
+
assert_equal "5px", resolve("29px % 12px")
|
494
|
+
end
|
495
|
+
|
496
|
+
def test_operation_precedence
|
497
|
+
assert_equal "false true", resolve("true and false false or true")
|
498
|
+
assert_equal "true", resolve("false and true or true and true")
|
499
|
+
assert_equal "true", resolve("1 == 2 or 3 == 3")
|
500
|
+
assert_equal "true", resolve("1 < 2 == 3 >= 3")
|
501
|
+
assert_equal "true", resolve("1 + 3 > 4 - 2")
|
502
|
+
assert_equal "11", resolve("1 + 2 * 3 + 4")
|
503
|
+
end
|
504
|
+
|
505
|
+
def test_functions
|
506
|
+
assert_equal "#80ff80", resolve("hsl(120, 100%, 75%)")
|
507
|
+
assert_equal "#81ff81", resolve("hsl(120, 100%, 75%) + #010001")
|
508
|
+
end
|
509
|
+
|
510
|
+
def test_operator_unit_conversion
|
511
|
+
assert_equal "1.1cm", resolve("1cm + 1mm")
|
512
|
+
assert_equal "8q", resolve("4q + 1mm")
|
513
|
+
assert_equal "40.025cm", resolve("40cm + 1q")
|
514
|
+
assert_equal "2in", resolve("1in + 96px")
|
515
|
+
assert_equal "true", resolve("2mm < 1cm")
|
516
|
+
assert_equal "true", resolve("10mm == 1cm")
|
517
|
+
assert_equal "true", resolve("1.1cm == 11mm")
|
518
|
+
assert_equal "true", resolve("2mm == 8q")
|
519
|
+
assert_equal "false", resolve("2px > 3q")
|
520
|
+
|
521
|
+
assert_warning(<<WARNING) {assert_equal "true", resolve("1 == 1cm")}
|
522
|
+
DEPRECATION WARNING on line 1 of test_operator_unit_conversion_inline.sass:
|
523
|
+
The result of `1 == 1cm` will be `false` in future releases of Sass.
|
524
|
+
Unitless numbers will no longer be equal to the same numbers with units.
|
525
|
+
WARNING
|
526
|
+
|
527
|
+
assert_warning(<<WARNING) {assert_equal "false", resolve("1 != 1cm")}
|
528
|
+
DEPRECATION WARNING on line 1 of test_operator_unit_conversion_inline.sass:
|
529
|
+
The result of `1 != 1cm` will be `true` in future releases of Sass.
|
530
|
+
Unitless numbers will no longer be equal to the same numbers with units.
|
531
|
+
WARNING
|
532
|
+
end
|
533
|
+
|
534
|
+
def test_length_units
|
535
|
+
assert_equal "2.54", resolve("(1in/1cm)")
|
536
|
+
assert_equal "2.3622", resolve("(1cm/1pc)")
|
537
|
+
assert_equal "4.23333", resolve("(1pc/1mm)")
|
538
|
+
assert_equal "2.83465", resolve("(1mm/1pt)")
|
539
|
+
assert_equal "1.33333", resolve("(1pt/1px)")
|
540
|
+
assert_equal "0.01042", resolve("(1px/1in)")
|
541
|
+
assert_equal "1.05833", resolve("(1px/1q)")
|
542
|
+
assert_equal "0.05906", resolve("(1q/1pc)")
|
543
|
+
end
|
544
|
+
|
545
|
+
def test_angle_units
|
546
|
+
assert_equal "1.11111", resolve("(1deg/1grad)")
|
547
|
+
assert_equal "0.01571", resolve("(1grad/1rad)")
|
548
|
+
assert_equal "0.15915", resolve("(1rad/1turn)")
|
549
|
+
assert_equal "360", resolve("(1turn/1deg)")
|
550
|
+
end
|
551
|
+
|
552
|
+
def test_time_units
|
553
|
+
assert_equal "1000", resolve("(1s/1ms)")
|
554
|
+
end
|
555
|
+
|
556
|
+
def test_frequency_units
|
557
|
+
assert_equal "0.001", resolve("(1Hz/1kHz)")
|
558
|
+
end
|
559
|
+
|
560
|
+
def test_resolution_units
|
561
|
+
assert_equal "2.54", resolve("(1dpi/1dpcm)")
|
562
|
+
assert_equal "37.79528", resolve("(1dpcm/1dppx)")
|
563
|
+
assert_equal "0.01042", resolve("(1dppx/1dpi)")
|
564
|
+
end
|
565
|
+
|
566
|
+
def test_operations_have_options
|
567
|
+
assert_equal "Options defined!", resolve("assert_options(1 + 1)")
|
568
|
+
assert_equal "Options defined!", resolve("assert_options('bar' + 'baz')")
|
569
|
+
end
|
570
|
+
|
571
|
+
def test_slash_compiles_literally_when_left_alone
|
572
|
+
assert_equal "1px/2px", resolve("1px/2px")
|
573
|
+
assert_equal "1px/2px/3px/4px", resolve("1px/2px/3px/4px")
|
574
|
+
|
575
|
+
assert_equal "1px/2px redpx bluepx", resolve("1px/2px redpx bluepx")
|
576
|
+
assert_equal "foo 1px/2px/3px bar", resolve("foo 1px/2px/3px bar")
|
577
|
+
end
|
578
|
+
|
579
|
+
def test_slash_divides_with_parens
|
580
|
+
assert_equal "0.5", resolve("(1px/2px)")
|
581
|
+
assert_equal "0.5", resolve("(1px)/2px")
|
582
|
+
assert_equal "0.5", resolve("1px/(2px)")
|
583
|
+
end
|
584
|
+
|
585
|
+
def test_slash_divides_with_other_arithmetic
|
586
|
+
assert_equal "0.5px", resolve("1px*1px/2px")
|
587
|
+
assert_equal "0.5px", resolve("1px/2px*1px")
|
588
|
+
assert_equal "0.5", resolve("0+1px/2px")
|
589
|
+
assert_equal "0.5", resolve("1px/2px+0")
|
590
|
+
end
|
591
|
+
|
592
|
+
def test_slash_divides_with_variable
|
593
|
+
assert_equal "0.5", resolve("$var/2px", {}, env("var" => eval("1px")))
|
594
|
+
assert_equal "0.5", resolve("1px/$var", {}, env("var" => eval("2px")))
|
595
|
+
assert_equal "0.5", resolve("$var", {}, env("var" => eval("1px/2px")))
|
596
|
+
end
|
597
|
+
|
598
|
+
# Regression test for issue 1786.
|
599
|
+
def test_slash_division_within_list
|
600
|
+
assert_equal "1 1/2 1/2", resolve("(1 1/2 1/2)")
|
601
|
+
assert_equal "1/2 1/2", resolve("(1/2 1/2)")
|
602
|
+
assert_equal "1/2", resolve("(1/2,)")
|
603
|
+
end
|
604
|
+
|
605
|
+
def test_non_ident_colors_with_wrong_number_of_digits
|
606
|
+
assert_raise_message(Sass::SyntaxError,
|
607
|
+
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#1"') {eval("#1")}
|
608
|
+
assert_raise_message(Sass::SyntaxError,
|
609
|
+
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#12"') {eval("#12")}
|
610
|
+
assert_raise_message(Sass::SyntaxError,
|
611
|
+
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#1234"') {eval("#1234")}
|
612
|
+
assert_raise_message(Sass::SyntaxError,
|
613
|
+
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#12345"') {eval("#12345")}
|
614
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "": expected expression (e.g. ' \
|
615
|
+
'1px, bold), was "#1234567"') {eval("#1234567")}
|
616
|
+
end
|
617
|
+
|
618
|
+
def test_case_insensitive_color_names
|
619
|
+
assert_equal "BLUE", resolve("BLUE")
|
620
|
+
assert_equal "rEd", resolve("rEd")
|
621
|
+
assert_equal "#804000", resolve("mix(GrEeN, ReD)")
|
622
|
+
end
|
623
|
+
|
624
|
+
def test_empty_list
|
625
|
+
assert_equal "1 2 3", resolve("1 2 () 3")
|
626
|
+
assert_equal "1 2 3", resolve("1 2 3 ()")
|
627
|
+
assert_equal "1 2 3", resolve("() 1 2 3")
|
628
|
+
assert_raise_message(Sass::SyntaxError, "() isn't a valid CSS value.") {resolve("()")}
|
629
|
+
assert_raise_message(Sass::SyntaxError, "() isn't a valid CSS value.") {resolve("nth(append((), ()), 1)")}
|
630
|
+
end
|
631
|
+
|
632
|
+
def test_list_with_nulls
|
633
|
+
assert_equal "1, 2, 3", resolve("1, 2, null, 3")
|
634
|
+
assert_equal "1 2 3", resolve("1 2 null 3")
|
635
|
+
assert_equal "1, 2, 3", resolve("1, 2, 3, null")
|
636
|
+
assert_equal "1 2 3", resolve("1 2 3 null")
|
637
|
+
assert_equal "1, 2, 3", resolve("null, 1, 2, 3")
|
638
|
+
assert_equal "1 2 3", resolve("null 1 2 3")
|
639
|
+
end
|
640
|
+
|
641
|
+
def test_map_can_have_trailing_comma
|
642
|
+
assert_equal("(foo: 1, bar: 2)", eval("(foo: 1, bar: 2,)").to_sass)
|
643
|
+
end
|
644
|
+
|
645
|
+
def test_list_can_have_trailing_comma
|
646
|
+
assert_equal("1, 2, 3", resolve("1, 2, 3,"))
|
647
|
+
end
|
648
|
+
|
649
|
+
def test_trailing_comma_defines_singleton_list
|
650
|
+
assert_equal("1 2 3", resolve("nth((1 2 3,), 1)"))
|
651
|
+
end
|
652
|
+
|
653
|
+
def test_map_cannot_have_duplicate_keys
|
654
|
+
assert_raise_message(Sass::SyntaxError, 'Duplicate key "foo" in map (foo: bar, foo: baz).') do
|
655
|
+
eval("(foo: bar, foo: baz)")
|
656
|
+
end
|
657
|
+
assert_raise_message(Sass::SyntaxError, 'Duplicate key "foo" in map (foo: bar, fo + o: baz).') do
|
658
|
+
eval("(foo: bar, fo + o: baz)")
|
659
|
+
end
|
660
|
+
assert_raise_message(Sass::SyntaxError, 'Duplicate key "foo" in map (foo: bar, "foo": baz).') do
|
661
|
+
eval("(foo: bar, 'foo': baz)")
|
662
|
+
end
|
663
|
+
assert_raise_message(Sass::SyntaxError, 'Duplicate key 2px in map (2px: bar, 1px + 1px: baz).') do
|
664
|
+
eval("(2px: bar, 1px + 1px: baz)")
|
665
|
+
end
|
666
|
+
assert_raise_message(Sass::SyntaxError, 'Duplicate key #0000ff in map (blue: bar, #00f: baz).') do
|
667
|
+
eval("(blue: bar, #00f: baz)")
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
def test_non_duplicate_map_keys
|
672
|
+
# These shouldn't throw errors
|
673
|
+
eval("(foo: foo, bar: bar)")
|
674
|
+
eval("(2px: foo, 2: bar)")
|
675
|
+
eval("(2px: foo, 2em: bar)")
|
676
|
+
eval("('2px': foo, 2px: bar)")
|
677
|
+
end
|
678
|
+
|
679
|
+
def test_map_syntax_errors
|
680
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(foo:": expected expression (e.g. 1px, bold), was ")"') do
|
681
|
+
eval("(foo:)")
|
682
|
+
end
|
683
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(": expected ")", was ":bar)"') do
|
684
|
+
eval("(:bar)")
|
685
|
+
end
|
686
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(foo, bar": expected ")", was ": baz)"') do
|
687
|
+
eval("(foo, bar: baz)")
|
688
|
+
end
|
689
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(foo: bar, baz": expected ":", was ")"') do
|
690
|
+
eval("(foo: bar, baz)")
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
def test_deep_argument_error_not_unwrapped
|
695
|
+
# JRuby (as of 1.6.7.2) offers no way of distinguishing between
|
696
|
+
# argument errors caused by programming errors in a function and
|
697
|
+
# argument errors explicitly thrown within that function.
|
698
|
+
return if RUBY_PLATFORM =~ /java/
|
699
|
+
|
700
|
+
# Don't validate the message; it's different on Rubinius.
|
701
|
+
assert_raises(ArgumentError) {resolve("arg-error()")}
|
702
|
+
end
|
703
|
+
|
704
|
+
def test_shallow_argument_error_unwrapped
|
705
|
+
assert_raise_message(Sass::SyntaxError, "wrong number of arguments (1 for 0) for `arg-error'") {resolve("arg-error(1)")}
|
706
|
+
end
|
707
|
+
|
708
|
+
def test_boolean_ops_short_circuit
|
709
|
+
assert_equal "false", resolve("$ie and $ie <= 7", {}, env('ie' => Sass::Script::Value::Bool.new(false)))
|
710
|
+
assert_equal "true", resolve("$ie or $undef", {}, env('ie' => Sass::Script::Value::Bool.new(true)))
|
711
|
+
end
|
712
|
+
|
713
|
+
def test_selector
|
714
|
+
env = Sass::Environment.new
|
715
|
+
assert_equal "true", resolve("& == null", {}, env)
|
716
|
+
|
717
|
+
env.selector = selector('.foo.bar .baz.bang, .bip.bop')
|
718
|
+
assert_equal ".foo.bar .baz.bang, .bip.bop", resolve("&", {}, env)
|
719
|
+
assert_equal ".foo.bar .baz.bang", resolve("nth(&, 1)", {}, env)
|
720
|
+
assert_equal ".bip.bop", resolve("nth(&, 2)", {}, env)
|
721
|
+
assert_equal ".foo.bar", resolve("nth(nth(&, 1), 1)", {}, env)
|
722
|
+
assert_equal ".baz.bang", resolve("nth(nth(&, 1), 2)", {}, env)
|
723
|
+
assert_equal ".bip.bop", resolve("nth(nth(&, 2), 1)", {}, env)
|
724
|
+
assert_equal "string", resolve("type-of(nth(nth(&, 1), 1))", {}, env)
|
725
|
+
|
726
|
+
env.selector = selector('.foo > .bar')
|
727
|
+
assert_equal ".foo > .bar", resolve("&", {}, env)
|
728
|
+
assert_equal ".foo > .bar", resolve("nth(&, 1)", {}, env)
|
729
|
+
assert_equal ".foo", resolve("nth(nth(&, 1), 1)", {}, env)
|
730
|
+
assert_equal ">", resolve("nth(nth(&, 1), 2)", {}, env)
|
731
|
+
assert_equal ".bar", resolve("nth(nth(&, 1), 3)", {}, env)
|
732
|
+
end
|
733
|
+
|
734
|
+
def test_selector_with_newlines
|
735
|
+
env = Sass::Environment.new
|
736
|
+
env.selector = selector(".foo.bar\n.baz.bang,\n\n.bip.bop")
|
737
|
+
assert_equal ".foo.bar .baz.bang, .bip.bop", resolve("&", {}, env)
|
738
|
+
assert_equal ".foo.bar .baz.bang", resolve("nth(&, 1)", {}, env)
|
739
|
+
assert_equal ".bip.bop", resolve("nth(&, 2)", {}, env)
|
740
|
+
assert_equal ".foo.bar", resolve("nth(nth(&, 1), 1)", {}, env)
|
741
|
+
assert_equal ".baz.bang", resolve("nth(nth(&, 1), 2)", {}, env)
|
742
|
+
assert_equal ".bip.bop", resolve("nth(nth(&, 2), 1)", {}, env)
|
743
|
+
assert_equal "string", resolve("type-of(nth(nth(&, 1), 1))", {}, env)
|
744
|
+
end
|
745
|
+
|
746
|
+
def test_setting_global_variable_globally
|
747
|
+
assert_no_warning {assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))}
|
748
|
+
.foo {
|
749
|
+
a: 1; }
|
750
|
+
|
751
|
+
.bar {
|
752
|
+
b: 2; }
|
753
|
+
CSS
|
754
|
+
$var: 1;
|
755
|
+
|
756
|
+
.foo {
|
757
|
+
a: $var;
|
758
|
+
}
|
759
|
+
|
760
|
+
$var: 2;
|
761
|
+
|
762
|
+
.bar {
|
763
|
+
b: $var;
|
764
|
+
}
|
765
|
+
SCSS
|
766
|
+
end
|
767
|
+
|
768
|
+
def test_setting_global_variable_locally
|
769
|
+
assert_no_warning {assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))}
|
770
|
+
.bar {
|
771
|
+
a: x;
|
772
|
+
b: y;
|
773
|
+
c: z; }
|
774
|
+
CSS
|
775
|
+
$var1: 1;
|
776
|
+
$var3: 3;
|
777
|
+
|
778
|
+
.foo {
|
779
|
+
$var1: x !global;
|
780
|
+
$var2: y !global;
|
781
|
+
@each $var3 in _ {
|
782
|
+
$var3: z !global;
|
783
|
+
}
|
784
|
+
}
|
785
|
+
|
786
|
+
.bar {
|
787
|
+
a: $var1;
|
788
|
+
b: $var2;
|
789
|
+
c: $var3;
|
790
|
+
}
|
791
|
+
SCSS
|
792
|
+
end
|
793
|
+
|
794
|
+
def test_setting_global_variable_locally_with_default
|
795
|
+
assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))
|
796
|
+
.bar {
|
797
|
+
a: 1;
|
798
|
+
b: y;
|
799
|
+
c: z; }
|
800
|
+
CSS
|
801
|
+
$var1: 1;
|
802
|
+
|
803
|
+
.foo {
|
804
|
+
$var1: x !global !default;
|
805
|
+
$var2: y !global !default;
|
806
|
+
@each $var3 in _ {
|
807
|
+
$var3: z !global !default;
|
808
|
+
}
|
809
|
+
}
|
810
|
+
|
811
|
+
.bar {
|
812
|
+
a: $var1;
|
813
|
+
b: $var2;
|
814
|
+
c: $var3;
|
815
|
+
}
|
816
|
+
SCSS
|
817
|
+
end
|
818
|
+
|
819
|
+
def test_setting_local_variable
|
820
|
+
assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))
|
821
|
+
.a {
|
822
|
+
value: inside; }
|
823
|
+
|
824
|
+
.b {
|
825
|
+
value: outside; }
|
826
|
+
CSS
|
827
|
+
$var: outside;
|
828
|
+
|
829
|
+
.a {
|
830
|
+
$var: inside;
|
831
|
+
value: $var;
|
832
|
+
}
|
833
|
+
|
834
|
+
.b {
|
835
|
+
value: $var;
|
836
|
+
}
|
837
|
+
SCSS
|
838
|
+
end
|
839
|
+
|
840
|
+
def test_setting_local_variable_from_inner_scope
|
841
|
+
assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))
|
842
|
+
.a .b {
|
843
|
+
value: inside; }
|
844
|
+
.a .c {
|
845
|
+
value: inside; }
|
846
|
+
CSS
|
847
|
+
.a {
|
848
|
+
$var: outside;
|
849
|
+
|
850
|
+
.b {
|
851
|
+
$var: inside;
|
852
|
+
value: $var;
|
853
|
+
}
|
854
|
+
|
855
|
+
.c {
|
856
|
+
value: $var;
|
857
|
+
}
|
858
|
+
}
|
859
|
+
SCSS
|
860
|
+
end
|
861
|
+
|
862
|
+
def test_if_can_assign_to_global_variables
|
863
|
+
assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
|
864
|
+
.a {
|
865
|
+
b: 2; }
|
866
|
+
CSS
|
867
|
+
$var: 1;
|
868
|
+
@if true {$var: 2}
|
869
|
+
.a {b: $var}
|
870
|
+
SCSS
|
871
|
+
end
|
872
|
+
|
873
|
+
def test_else_can_assign_to_global_variables
|
874
|
+
assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
|
875
|
+
.a {
|
876
|
+
b: 2; }
|
877
|
+
CSS
|
878
|
+
$var: 1;
|
879
|
+
@if false {}
|
880
|
+
@else {$var: 2}
|
881
|
+
.a {b: $var}
|
882
|
+
SCSS
|
883
|
+
end
|
884
|
+
|
885
|
+
def test_for_can_assign_to_global_variables
|
886
|
+
assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
|
887
|
+
.a {
|
888
|
+
b: 2; }
|
889
|
+
CSS
|
890
|
+
$var: 1;
|
891
|
+
@for $i from 1 to 2 {$var: 2}
|
892
|
+
.a {b: $var}
|
893
|
+
SCSS
|
894
|
+
end
|
895
|
+
|
896
|
+
def test_each_can_assign_to_global_variables
|
897
|
+
assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
|
898
|
+
.a {
|
899
|
+
b: 2; }
|
900
|
+
CSS
|
901
|
+
$var: 1;
|
902
|
+
@each $a in 1 {$var: 2}
|
903
|
+
.a {b: $var}
|
904
|
+
SCSS
|
905
|
+
end
|
906
|
+
|
907
|
+
def test_while_can_assign_to_global_variables
|
908
|
+
assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
|
909
|
+
.a {
|
910
|
+
b: 2; }
|
911
|
+
CSS
|
912
|
+
$var: 1;
|
913
|
+
@while $var != 2 {$var: 2}
|
914
|
+
.a {b: $var}
|
915
|
+
SCSS
|
916
|
+
end
|
917
|
+
|
918
|
+
def test_if_doesnt_leak_local_variables
|
919
|
+
assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
|
920
|
+
render(<<SCSS, :syntax => :scss)
|
921
|
+
@if true {$var: 1}
|
922
|
+
.a {b: $var}
|
923
|
+
SCSS
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
927
|
+
def test_else_doesnt_leak_local_variables
|
928
|
+
assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
|
929
|
+
render(<<SCSS, :syntax => :scss)
|
930
|
+
@if false {}
|
931
|
+
@else {$var: 1}
|
932
|
+
.a {b: $var}
|
933
|
+
SCSS
|
934
|
+
end
|
935
|
+
end
|
936
|
+
|
937
|
+
def test_for_doesnt_leak_local_variables
|
938
|
+
assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
|
939
|
+
render(<<SCSS, :syntax => :scss)
|
940
|
+
@for $i from 1 to 2 {$var: 1}
|
941
|
+
.a {b: $var}
|
942
|
+
SCSS
|
943
|
+
end
|
944
|
+
end
|
945
|
+
|
946
|
+
def test_each_doesnt_leak_local_variables
|
947
|
+
assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
|
948
|
+
render(<<SCSS, :syntax => :scss)
|
949
|
+
@each $a in 1 {$var: 1}
|
950
|
+
.a {b: $var}
|
951
|
+
SCSS
|
952
|
+
end
|
953
|
+
end
|
954
|
+
|
955
|
+
def test_while_doesnt_leak_local_variables
|
956
|
+
assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
|
957
|
+
render(<<SCSS, :syntax => :scss)
|
958
|
+
$iter: true;
|
959
|
+
@while $iter {
|
960
|
+
$var: 1;
|
961
|
+
$iter: false;
|
962
|
+
}
|
963
|
+
.a {b: $var}
|
964
|
+
SCSS
|
965
|
+
end
|
966
|
+
end
|
967
|
+
|
968
|
+
def test_color_format_is_preserved_by_default
|
969
|
+
assert_equal "blue", resolve("blue")
|
970
|
+
assert_equal "bLuE", resolve("bLuE")
|
971
|
+
assert_equal "#00f", resolve("#00f")
|
972
|
+
assert_equal "blue #00F", resolve("blue #00F")
|
973
|
+
assert_equal "blue", resolve("nth(blue #00F, 1)")
|
974
|
+
assert_equal "#00F", resolve("nth(blue #00F, 2)")
|
975
|
+
end
|
976
|
+
|
977
|
+
def test_color_format_isnt_always_preserved_in_compressed_style
|
978
|
+
assert_equal "red", resolve("red", :style => :compressed)
|
979
|
+
assert_equal "red", resolve("#f00", :style => :compressed)
|
980
|
+
assert_equal "red red", resolve("red #f00", :style => :compressed)
|
981
|
+
assert_equal "red", resolve("nth(red #f00, 2)", :style => :compressed)
|
982
|
+
end
|
983
|
+
|
984
|
+
def test_color_format_is_sometimes_preserved_in_compressed_style
|
985
|
+
assert_equal "ReD", resolve("ReD", :style => :compressed)
|
986
|
+
assert_equal "blue", resolve("blue", :style => :compressed)
|
987
|
+
assert_equal "#00f", resolve("#00f", :style => :compressed)
|
988
|
+
end
|
989
|
+
|
990
|
+
def test_color_format_isnt_preserved_when_modified
|
991
|
+
assert_equal "magenta", resolve("#f00 + #00f")
|
992
|
+
end
|
993
|
+
|
994
|
+
def test_ids
|
995
|
+
assert_equal "#foo", resolve("#foo")
|
996
|
+
assert_equal "#abcd", resolve("#abcd")
|
997
|
+
assert_equal "#abc-def", resolve("#abc-def")
|
998
|
+
assert_equal "#abc_def", resolve("#abc_def")
|
999
|
+
assert_equal "#uvw-xyz", resolve("#uvw-xyz")
|
1000
|
+
assert_equal "#uvw_xyz", resolve("#uvw_xyz")
|
1001
|
+
assert_equal "#uvwxyz", resolve("#uvw + xyz")
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
def test_scientific_notation
|
1005
|
+
assert_equal "2000", resolve("2e3")
|
1006
|
+
assert_equal "2000", resolve("2E3")
|
1007
|
+
assert_equal "2000", resolve("2e+3")
|
1008
|
+
assert_equal "2000em", resolve("2e3em")
|
1009
|
+
assert_equal "25000000000", resolve("2.5e10")
|
1010
|
+
assert_equal "0.1234", resolve("1234e-4")
|
1011
|
+
assert_equal "12.34", resolve("1.234e1")
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
def test_identifier_units
|
1015
|
+
assert_equal "5-foo", resolve("2-foo + 3-foo")
|
1016
|
+
assert_equal "5-foo-", resolve("2-foo- + 3-foo-")
|
1017
|
+
assert_equal "5-\\u2603", resolve("2-\\u2603 + 3-\\u2603")
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
def test_backslash_newline_in_string
|
1021
|
+
assert_equal 'foobar', resolve("\"foo\\\nbar\"")
|
1022
|
+
assert_equal 'foobar', resolve("'foo\\\nbar'")
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
def test_unclosed_special_fun
|
1026
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "calc(foo()": expected ")", was ""') do
|
1027
|
+
resolve("calc(foo()")
|
1028
|
+
end
|
1029
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "calc(#{\')\'}": expected ")", was ""') do
|
1030
|
+
resolve("calc(\#{')'}")
|
1031
|
+
end
|
1032
|
+
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "calc(#{foo": expected "}", was ""') do
|
1033
|
+
resolve("calc(\#{foo")
|
1034
|
+
end
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
def test_special_fun_with_interpolation
|
1038
|
+
assert_equal "calc())", resolve("calc(\#{')'})")
|
1039
|
+
assert_equal "calc(# {foo})", resolve("calc(# {foo})")
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# Regression Tests
|
1043
|
+
|
1044
|
+
def test_interpolation_after_string
|
1045
|
+
assert_equal '"foobar" 2', resolve('"foobar" #{2}')
|
1046
|
+
assert_equal "calc(1 + 2) 3", resolve('calc(1 + 2) #{3}')
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
def test_repeatedly_modified_color
|
1050
|
+
assert_equal(<<CSS, render(<<SASS))
|
1051
|
+
a {
|
1052
|
+
link-color: #161C14;
|
1053
|
+
link-color-hover: black;
|
1054
|
+
link-color-tap: rgba(22, 28, 20, 0.3); }
|
1055
|
+
CSS
|
1056
|
+
$green: #161C14
|
1057
|
+
$link-color: $green
|
1058
|
+
$link-color-hover: darken($link-color, 10%)
|
1059
|
+
$link-color-tap: rgba($green, 0.3)
|
1060
|
+
|
1061
|
+
a
|
1062
|
+
link-color: $link-color
|
1063
|
+
link-color-hover: $link-color-hover
|
1064
|
+
link-color-tap: $link-color-tap
|
1065
|
+
SASS
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
def test_inspect_divided_numbers
|
1069
|
+
assert_equal "1px/2px", resolve("inspect(1px/2px)")
|
1070
|
+
assert_equal "0.5", resolve("inspect((1px/2px))")
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
def test_minus_without_whitespace
|
1074
|
+
assert_equal "5px", resolve("15px-10px")
|
1075
|
+
assert_equal "5px-", resolve("15px--10px-")
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
def test_minus_preceded_by_comment
|
1079
|
+
assert_equal "15px -10px", resolve("15px/**/-10px")
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
def test_user_defined_function_forces_division
|
1083
|
+
assert_equal(<<CSS, render(<<SASS))
|
1084
|
+
a {
|
1085
|
+
b: 10px; }
|
1086
|
+
CSS
|
1087
|
+
@function foo()
|
1088
|
+
@return 20px
|
1089
|
+
|
1090
|
+
a
|
1091
|
+
b: (foo() / 2)
|
1092
|
+
SASS
|
1093
|
+
|
1094
|
+
assert_equal(<<CSS, render(<<SASS))
|
1095
|
+
a {
|
1096
|
+
b: 10px; }
|
1097
|
+
CSS
|
1098
|
+
@function foo()
|
1099
|
+
@return 20px
|
1100
|
+
|
1101
|
+
a
|
1102
|
+
b: foo() / 2
|
1103
|
+
SASS
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
def test_funcall_has_higher_precedence_than_color_name
|
1107
|
+
assert_equal "teal(12)", resolve("teal(12)")
|
1108
|
+
assert_equal "tealbang(12)", resolve("tealbang(12)")
|
1109
|
+
assert_equal "teal-bang(12)", resolve("teal-bang(12)")
|
1110
|
+
assert_equal "teal\\+bang(12)", resolve("teal\\+bang(12)")
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
def test_funcall_has_higher_precedence_than_true_false_null
|
1114
|
+
assert_equal "teal(12)", resolve("teal(12)")
|
1115
|
+
assert_equal "tealbang(12)", resolve("tealbang(12)")
|
1116
|
+
assert_equal "teal-bang(12)", resolve("teal-bang(12)")
|
1117
|
+
assert_equal "teal\\+bang(12)", resolve("teal\\+bang(12)")
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
def test_and_or_not_disallowed_as_function_names
|
1121
|
+
%w[and or not].each do |name|
|
1122
|
+
assert_raise_message(Sass::SyntaxError, "Invalid function name \"#{name}\".") do
|
1123
|
+
render(<<SASS)
|
1124
|
+
@function #{name}()
|
1125
|
+
@return null
|
1126
|
+
SASS
|
1127
|
+
end
|
1128
|
+
end
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
def test_interpolation_after_hash
|
1132
|
+
assert_equal "#2", resolve('"##{1 + 1}"')
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
def test_misplaced_comma_in_funcall
|
1136
|
+
assert_raise_message(Sass::SyntaxError,
|
1137
|
+
'Invalid CSS after "foo(bar, ": expected function argument, was ")"') {eval('foo(bar, )')}
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
def test_color_prefixed_identifier
|
1141
|
+
assert_equal "tealbang", resolve("tealbang")
|
1142
|
+
assert_equal "teal-bang", resolve("teal-bang")
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
def test_op_prefixed_identifier
|
1146
|
+
assert_equal "notbang", resolve("notbang")
|
1147
|
+
assert_equal "not-bang", resolve("not-bang")
|
1148
|
+
assert_equal "or-bang", resolve("or-bang")
|
1149
|
+
assert_equal "and-bang", resolve("and-bang")
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
def test_number_initialization
|
1153
|
+
assert_equal Sass::Script::Value::Number.new(10, ["px"]), Sass::Script::Value::Number.new(10, "px")
|
1154
|
+
assert_equal Sass::Script::Value::Number.new(10, ["px"], ["em"]), Sass::Script::Value::Number.new(10, "px", "em")
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
def test_is_unit
|
1158
|
+
assert Sass::Script::Value::Number.new(10, "px").is_unit?("px")
|
1159
|
+
assert Sass::Script::Value::Number.new(10).is_unit?(nil)
|
1160
|
+
assert !Sass::Script::Value::Number.new(10, "px", "em").is_unit?("px")
|
1161
|
+
assert !Sass::Script::Value::Number.new(10, [], "em").is_unit?("em")
|
1162
|
+
assert !Sass::Script::Value::Number.new(10, ["px", "em"]).is_unit?("px")
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
def test_rename_redirect
|
1166
|
+
assert_no_warning do
|
1167
|
+
assert_equal Sass::Script::Value::Base, Sass::Script::Literal
|
1168
|
+
assert_equal Sass::Script::Tree::Node, Sass::Script::Node
|
1169
|
+
assert_equal Sass::Script::Tree::Operation, Sass::Script::Operation
|
1170
|
+
assert_equal Sass::Script::Value::String, Sass::Script::String
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
def test_number_printing
|
1175
|
+
assert_equal "1", resolve("1")
|
1176
|
+
assert_equal "1", resolve("1.0")
|
1177
|
+
assert_equal "1000000000", resolve("1000000000")
|
1178
|
+
assert_equal "0.00001", resolve("0.00001")
|
1179
|
+
assert_equal "1.12121", resolve("1.121214")
|
1180
|
+
assert_equal "1.12122", resolve("1.121215")
|
1181
|
+
assert_equal "Infinity", resolve("(1.0/0.0)")
|
1182
|
+
assert_equal "-Infinity", resolve("(-1.0/0.0)")
|
1183
|
+
assert_equal "NaN", resolve("(0.0/0.0)")
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
def test_equality_uses_an_epsilon
|
1187
|
+
# At least on my machine, this calculation introduces a floating point error:
|
1188
|
+
# 29.0 / 7 * 7
|
1189
|
+
# => 29.000000000000004
|
1190
|
+
assert_equal "true", resolve("29 == (29 / 7 * 7)")
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
def test_compressed_output_of_numbers_with_leading_zeros
|
1194
|
+
assert_equal "1.5", resolve("1.5", :style => :compressed)
|
1195
|
+
assert_equal ".5", resolve("0.5", :style => :compressed)
|
1196
|
+
assert_equal "-.5", resolve("-0.5", :style => :compressed)
|
1197
|
+
assert_equal "0.5", resolve("0.5", :style => :compact)
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
def test_interpolation_without_deprecation_warning
|
1201
|
+
assert_no_warning {assert_equal "a", resolve('#{a}')}
|
1202
|
+
assert_no_warning {assert_equal "abc", resolve('a#{b}c')}
|
1203
|
+
assert_no_warning {assert_equal "+ a", resolve('+ #{a}')}
|
1204
|
+
assert_no_warning {assert_equal "/ a", resolve('/ #{a}')}
|
1205
|
+
assert_no_warning {assert_equal "1 / a", resolve('1 / #{a}')}
|
1206
|
+
assert_no_warning {assert_equal "a / b", resolve('#{a} / #{b}')}
|
1207
|
+
assert_no_warning {assert_equal "foo(1 = a)", resolve('foo(1 = #{a})')}
|
1208
|
+
assert_no_warning {assert_equal "foo(a = b)", resolve('foo(#{a} = #{b})')}
|
1209
|
+
assert_no_warning {assert_equal "-a", resolve('-#{a}')}
|
1210
|
+
assert_no_warning {assert_equal "1-a", resolve('1-#{a}')}
|
1211
|
+
assert_no_warning {assert_equal "a- 1", resolve('#{a}- 1')}
|
1212
|
+
assert_no_warning {assert_equal "a-1", resolve('#{a}-1')}
|
1213
|
+
assert_no_warning {assert_equal "a-b", resolve('#{a}-#{b}')}
|
1214
|
+
assert_no_warning {assert_equal "a1", resolve('#{a}1')}
|
1215
|
+
assert_no_warning {assert_equal "ab", resolve('#{a}b')}
|
1216
|
+
assert_no_warning {assert_equal "1a", resolve('1#{a}')}
|
1217
|
+
assert_no_warning {assert_equal "ba", resolve('b#{a}')}
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
def test_leading_interpolation_with_deprecation_warning
|
1221
|
+
assert_equal "ab == 1", resolve_with_interp_warning('#{a + b} == 1')
|
1222
|
+
assert_equal "ab != 1", resolve_with_interp_warning('#{a + b} != 1')
|
1223
|
+
assert_equal "ab > 1", resolve_with_interp_warning('#{a + b} > 1')
|
1224
|
+
assert_equal "ab >= 1", resolve_with_interp_warning('#{a + b} >= 1')
|
1225
|
+
assert_equal "ab < 1", resolve_with_interp_warning('#{a + b} < 1')
|
1226
|
+
assert_equal "ab <= 1", resolve_with_interp_warning('#{a + b} <= 1')
|
1227
|
+
assert_equal "ab + 1", resolve_with_interp_warning('#{a + b} + 1')
|
1228
|
+
assert_equal "ab * 1", resolve_with_interp_warning('#{a + b} * 1')
|
1229
|
+
assert_equal "ab - 1", resolve_with_interp_warning('#{a + b} - 1')
|
1230
|
+
assert_equal "ab % 1", resolve_with_interp_warning('#{a + b} % 1')
|
1231
|
+
assert_equal(
|
1232
|
+
"abvar",
|
1233
|
+
resolve_with_interp_warning(
|
1234
|
+
'#{a + b}$var', '"#{a + b}#{$var}"',
|
1235
|
+
env('var' => Sass::Script::Value::String.new("var"))))
|
1236
|
+
assert_equal(
|
1237
|
+
"varab",
|
1238
|
+
resolve_with_interp_warning(
|
1239
|
+
'$var#{a + b}', '"#{$var}#{a + b}"',
|
1240
|
+
env('var' => Sass::Script::Value::String.new("var"))))
|
1241
|
+
assert_equal "ab1", resolve_with_interp_warning('#{a + b}(1)', '"#{a + b}1"')
|
1242
|
+
assert_equal "1ab", resolve_with_interp_warning('(1)#{a + b}', '"1#{a + b}"')
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
def test_trailing_interpolation_with_deprecation_warning
|
1246
|
+
assert_equal "not ab", resolve_with_interp_warning('not #{a + b}')
|
1247
|
+
assert_equal "1 and ab", resolve_with_interp_warning('1 and #{a + b}')
|
1248
|
+
assert_equal "1 or ab", resolve_with_interp_warning('1 or #{a + b}')
|
1249
|
+
assert_equal "1 == ab", resolve_with_interp_warning('1 == #{a + b}')
|
1250
|
+
assert_equal "1 != ab", resolve_with_interp_warning('1 != #{a + b}')
|
1251
|
+
assert_equal "1 > ab", resolve_with_interp_warning('1 > #{a + b}')
|
1252
|
+
assert_equal "1 >= ab", resolve_with_interp_warning('1 >= #{a + b}')
|
1253
|
+
assert_equal "1 < ab", resolve_with_interp_warning('1 < #{a + b}')
|
1254
|
+
assert_equal "1 <= ab", resolve_with_interp_warning('1 <= #{a + b}')
|
1255
|
+
assert_equal "1 + ab", resolve_with_interp_warning('1 + #{a + b}')
|
1256
|
+
assert_equal "1 * ab", resolve_with_interp_warning('1 * #{a + b}')
|
1257
|
+
assert_equal "1 - ab", resolve_with_interp_warning('1 - #{a + b}')
|
1258
|
+
assert_equal "1 % ab", resolve_with_interp_warning('1 % #{a + b}')
|
1259
|
+
assert_equal "- ab", resolve_with_interp_warning('- #{a + b}')
|
1260
|
+
assert_equal "1- ab", resolve_with_interp_warning('1- #{a + b}')
|
1261
|
+
assert_equal "- ab 2 3", resolve_with_interp_warning('- #{a + b} 2 3', '"- #{a + b} #{2 3}"')
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
def test_brackteing_interpolation_with_deprecation_warning
|
1265
|
+
assert_equal "ab == cd", resolve_with_interp_warning('#{a + b} == #{c + d}')
|
1266
|
+
assert_equal "ab != cd", resolve_with_interp_warning('#{a + b} != #{c + d}')
|
1267
|
+
assert_equal "ab > cd", resolve_with_interp_warning('#{a + b} > #{c + d}')
|
1268
|
+
assert_equal "ab >= cd", resolve_with_interp_warning('#{a + b} >= #{c + d}')
|
1269
|
+
assert_equal "ab < cd", resolve_with_interp_warning('#{a + b} < #{c + d}')
|
1270
|
+
assert_equal "ab <= cd", resolve_with_interp_warning('#{a + b} <= #{c + d}')
|
1271
|
+
assert_equal "ab + cd", resolve_with_interp_warning('#{a + b} + #{c + d}')
|
1272
|
+
assert_equal "ab * cd", resolve_with_interp_warning('#{a + b} * #{c + d}')
|
1273
|
+
assert_equal "ab - cd", resolve_with_interp_warning('#{a + b} - #{c + d}')
|
1274
|
+
assert_equal "ab % cd", resolve_with_interp_warning('#{a + b} % #{c + d}')
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
def test_interp_warning_formatting
|
1278
|
+
resolve_with_interp_warning('#{1} + 1', '"1 + 1"')
|
1279
|
+
resolve_with_interp_warning('#{1} + "foo"', '\'1 + "foo"\'')
|
1280
|
+
resolve_with_interp_warning('#{1} + \'foo\'', '\'1 + "foo"\'')
|
1281
|
+
|
1282
|
+
resolve_with_interp_warning('#{1} + "#{a + b}"', '\'1 + "#{a + b}"\'')
|
1283
|
+
resolve_with_interp_warning('"#{a + b}" + #{1}', '\'"#{a + b}" + 1\'')
|
1284
|
+
resolve_with_interp_warning('"#{a + b}" + #{1} + "#{c + d}"', '\'"#{a + b}" + 1 + "#{c + d}"\'')
|
1285
|
+
|
1286
|
+
resolve_with_interp_warning('#{1} + "\'"', '"1 + \\"\'\\""')
|
1287
|
+
resolve_with_interp_warning('#{1} + \'"\'', '"1 + \'\\"\'"')
|
1288
|
+
resolve_with_interp_warning('#{1} + "\'\\""', '"1 + \\"\'\\\\\\"\\""')
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
def test_inactive_lazy_interpolation_deprecation_warning
|
1292
|
+
assert_equal '1, 2, 3', assert_no_warning {resolve('1, #{2}, 3')}
|
1293
|
+
assert_equal '1, 2, 3', assert_no_warning {resolve('1, 2, #{3}')}
|
1294
|
+
assert_equal '1,2,3', assert_no_warning {resolve('1,#{2},3')}
|
1295
|
+
assert_equal '1 2 3', assert_no_warning {resolve('#{1} 2 3')}
|
1296
|
+
assert_equal '1 2 3', assert_no_warning {resolve('1 #{2} 3')}
|
1297
|
+
assert_equal '1 2 3', assert_no_warning {resolve('1 2 #{3}')}
|
1298
|
+
|
1299
|
+
assert_equal '+1 2 3', assert_no_warning {resolve('+#{1} 2 3')}
|
1300
|
+
assert_equal '-1 2 3', assert_no_warning {resolve('-#{1} 2 3')}
|
1301
|
+
assert_equal '/1 2 3', assert_no_warning {resolve('/#{1} 2 3')}
|
1302
|
+
|
1303
|
+
assert_equal '1, 2, 31', assert_no_warning {resolve('(1, #{2}, 3) + 1')}
|
1304
|
+
assert_equal '11, 2, 3', assert_no_warning {resolve('1 + (1, #{2}, 3)')}
|
1305
|
+
|
1306
|
+
assert_equal 'a, b, c', assert_no_warning {resolve('selector-parse((a, #{b}, c))')}
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
def test_active_lazy_interpolation_deprecation_warning
|
1310
|
+
assert_equal "1, 2, 3", resolve_with_lazy_interp_warning('quote((1, #{2}, 3))', '"1, 2, 3"')
|
1311
|
+
assert_equal "1", resolve_with_lazy_interp_warning('length((1, #{2}, 3))', '"1, 2, 3"')
|
1312
|
+
assert_equal "1, 2, 3", resolve_with_lazy_interp_warning('inspect((1, #{2}, 3))', '"1, 2, 3"')
|
1313
|
+
assert_equal "string", resolve_with_lazy_interp_warning('type-of((1, #{2}, 3))', '"1, 2, 3"')
|
1314
|
+
|
1315
|
+
assert_equal "+1 2 3", resolve_with_lazy_interp_warning('quote((+#{1} 2 3))', '"+1 #{2 3}"')
|
1316
|
+
assert_equal "/1 2 3", resolve_with_lazy_interp_warning('quote((/#{1} 2 3))', '"/1 #{2 3}"')
|
1317
|
+
assert_equal "-1 2 3", resolve_with_lazy_interp_warning('quote((-#{1} 2 3))', '"-1 #{2 3}"')
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
def test_comparison_of_complex_units
|
1321
|
+
# Tests for issue #1960
|
1322
|
+
assert_warning(<<WARNING) do
|
1323
|
+
DEPRECATION WARNING on line 1 of test_comparison_of_complex_units_inline.sass:
|
1324
|
+
The result of `10 == 10px` will be `false` in future releases of Sass.
|
1325
|
+
Unitless numbers will no longer be equal to the same numbers with units.
|
1326
|
+
WARNING
|
1327
|
+
assert_equal "true", resolve("10 == 2 * 5px")
|
1328
|
+
end
|
1329
|
+
assert_warning(<<WARNING) do
|
1330
|
+
DEPRECATION WARNING on line 1 of test_comparison_of_complex_units_inline.sass:
|
1331
|
+
The result of `10 == 10px*px` will be `false` in future releases of Sass.
|
1332
|
+
Unitless numbers will no longer be equal to the same numbers with units.
|
1333
|
+
WARNING
|
1334
|
+
assert_equal "true", resolve("10 == 2px * 5px")
|
1335
|
+
end
|
1336
|
+
assert_equal "true", resolve("10px * 1px == 2px * 5px")
|
1337
|
+
assert_equal "true", resolve("5px * 1px < 2px * 5px")
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
private
|
1341
|
+
|
1342
|
+
def resolve_with_lazy_interp_warning(str, contents = nil, environment = env)
|
1343
|
+
contents ||= "\"#{str}\""
|
1344
|
+
result = assert_warning(<<WARNING) {resolve(str, {}, environment)}
|
1345
|
+
DEPRECATION WARNING on line 1 of #{filename_for_test}: \#{} interpolation near operators will be simplified
|
1346
|
+
in a future version of Sass. To preserve the current behavior, use quotes:
|
1347
|
+
|
1348
|
+
unquote(#{contents})
|
1349
|
+
WARNING
|
1350
|
+
$_sass_deprecated_interp_warnings = nil
|
1351
|
+
result
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
def resolve_with_interp_warning(str, contents = nil, environment = env)
|
1355
|
+
contents ||= "\"#{str}\""
|
1356
|
+
assert_warning(<<WARNING) {resolve(str, {}, environment)}
|
1357
|
+
DEPRECATION WARNING on line 1 of #{filename_for_test}: \#{} interpolation near operators will be simplified
|
1358
|
+
in a future version of Sass. To preserve the current behavior, use quotes:
|
1359
|
+
|
1360
|
+
unquote(#{contents})
|
1361
|
+
|
1362
|
+
You can use the sass-convert command to automatically fix most cases.
|
1363
|
+
WARNING
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
def resolve(str, opts = {}, environment = env)
|
1367
|
+
munge_filename opts
|
1368
|
+
val = eval(str, opts, environment)
|
1369
|
+
assert_kind_of Sass::Script::Value::Base, val
|
1370
|
+
val.options = opts
|
1371
|
+
val.is_a?(Sass::Script::Value::String) ? val.value : val.to_s
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
def resolve_quoted(str, opts = {}, environment = env)
|
1375
|
+
munge_filename opts
|
1376
|
+
val = eval(str, opts, environment)
|
1377
|
+
assert_kind_of Sass::Script::Value::Base, val
|
1378
|
+
val.to_s
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
def assert_unquoted(str, opts = {}, environment = env)
|
1382
|
+
munge_filename opts
|
1383
|
+
val = eval(str, opts, environment)
|
1384
|
+
assert_kind_of Sass::Script::Value::String, val
|
1385
|
+
assert_equal :identifier, val.type
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
def assert_quoted(str, opts = {}, environment = env)
|
1389
|
+
munge_filename opts
|
1390
|
+
val = eval(str, opts, environment)
|
1391
|
+
assert_kind_of Sass::Script::Value::String, val
|
1392
|
+
assert_equal :string, val.type
|
1393
|
+
end
|
1394
|
+
|
1395
|
+
def eval(str, opts = {}, environment = env)
|
1396
|
+
munge_filename opts
|
1397
|
+
Sass::Script.parse(str, opts.delete(:line) || 1,
|
1398
|
+
opts.delete(:offset) || 0, opts).
|
1399
|
+
perform(Sass::Environment.new(environment, opts))
|
1400
|
+
end
|
1401
|
+
|
1402
|
+
def render(sass, options = {})
|
1403
|
+
munge_filename options
|
1404
|
+
Sass::Engine.new(sass, options).render
|
1405
|
+
end
|
1406
|
+
|
1407
|
+
def env(hash = {})
|
1408
|
+
env = Sass::Environment.new
|
1409
|
+
hash.each {|k, v| env.set_var(k, v)}
|
1410
|
+
env
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
def selector(str)
|
1414
|
+
parser = Sass::SCSS::StaticParser.new(
|
1415
|
+
str, filename_for_test, Sass::Importers::Filesystem.new('.'))
|
1416
|
+
parser.parse_selector
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
def test_null_is_a_singleton
|
1420
|
+
assert_same Sass::Script::Value::Null.new, Sass::Script::Value::Null.new
|
1421
|
+
end
|
1422
|
+
end
|