brakeman 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +18 -0
- data/bin/brakeman +1 -1
- data/bundle/load.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/CHANGES.txt +828 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/README.txt +102 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/Makefile +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench.rb +313 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench_context.yaml +141 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_footer.html +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_header.html +52 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/bin/erubis +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis +3468 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis-run.rb +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/inline-require +179 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView.html +105 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ERB.html +101 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis.html +362 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +112 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +327 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +215 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +283 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +165 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +131 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +416 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +267 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +349 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +213 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +359 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +341 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +159 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +266 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +122 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +293 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +350 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +210 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +244 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +227 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +328 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +173 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +298 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +255 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Kernel.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/created.rid +1 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/README_txt.html +247 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +118 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_class_index.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_file_index.html +53 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_method_index.html +265 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/index.html +24 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/rdoc-style.css +208 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/docstyle.css +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/users-guide.html +3551 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp +33 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile +54 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/context.rb +83 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/converter.rb +357 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine.rb +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +110 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +95 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +99 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/enhancer.rb +723 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/error.rb +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/evaluator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/generator.rb +85 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helper.rb +47 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +197 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +353 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/local-setting.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/main.rb +516 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/tiny.rb +144 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/util.rb +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/setup.rb +1331 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/assert-text-equal.rb +44 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +55 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/array_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.rb +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.yaml +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.result +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ec +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ejs +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eperl +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ephp +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.escheme +28 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.rb +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.rb +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.php +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.result +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +21 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.result +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example32.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.rb +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.rb +12 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example71.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example72.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example91.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example92.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_c.result +32 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_java.result +56 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_js.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_php.result +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +38 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stderr.log +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-engines.rb +425 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-enhancers.rb +646 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-erubis.rb +887 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-index-cgi.rb +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-main.rb +752 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-users-guide.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test.rb +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/testutil.rb +111 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/CHANGELOG.md +1363 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/FAQ.md +157 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/README.md +173 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/REFERENCE.md +1294 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/Rakefile +134 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/bin/haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/buffer.rb +345 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/compiler.rb +540 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/engine.rb +245 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/error.rb +61 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/exec.rb +329 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/filters.rb +404 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb +664 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +147 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +29 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +104 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/options.rb +279 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/parser.rb +764 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/railtie.rb +22 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template.rb +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/options.rb +16 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +41 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/util.rb +377 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/engine_test.rb +2013 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_1.erb +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_2.erb +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/action_view.erb +62 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/standard.erb +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/filters_test.rb +254 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.1.x +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.2.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-4.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/LICENSE +14 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/README.md +106 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/lua_haml_spec.lua +38 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/perl_haml_test.pl +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/ruby_haml_test.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/tests.json +660 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/helper_test.rb +583 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/markaby/standard.mab +52 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/mocks/article.rb +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/parser_test.rb +105 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/content_for_layout.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/eval_suppressed.xhtml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpers.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpful.xhtml +10 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/just_stuff.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/list.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_inner_whitespace.xhtml +40 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_outer_whitespace.xhtml +148 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/original_engine.xhtml +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout_erb.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partials.xhtml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/render_layout.xhtml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/silent_script.xhtml +74 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/standard.xhtml +162 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/tag_parsing.xhtml +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/very_basic.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/whitespace_handling.xhtml +90 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/template_test.rb +354 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1_ugly.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2_ugly.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout.erb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout_for_partial.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_partial.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area_helper.html.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view_ugly.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/breakage.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/content_for_layout.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/eval_suppressed.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpers.haml +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpful.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/just_stuff.haml +85 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/list.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_inner_whitespace.haml +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_outer_whitespace.haml +144 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/original_engine.haml +17 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout_erb.erb +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partialize.haml +1 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partials.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/render_layout.haml +2 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/silent_script.haml +45 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard_ugly.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/tag_parsing.haml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/very_basic.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/whitespace_handling.haml +87 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/test_helper.rb +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/util_test.rb +63 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/AUTHORS +3 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/COPYING +339 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Changelog.md +415 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Gemfile +9 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/INSTALL +59 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/LICENSE +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/README.rdoc +74 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Rakefile +30 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/TODO +6 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/ansi_colors.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb +18 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/basic_usage.rb +75 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/color_scheme.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/get_character.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/menus.rb +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/overwrite.rb +19 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/page_and_wrap.rb +322 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/password.rb +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb +21 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/trapping_eof.rb +22 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb +17 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/highline.gemspec +37 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb +1048 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/color_scheme.rb +134 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb +16 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/import.rb +41 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/menu.rb +381 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/question.rb +480 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/simulate.rb +48 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/string_extensions.rb +111 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/style.rb +192 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/system_extensions.rb +254 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/version.rb +4 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/setup.rb +1360 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/highline.css +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/images/logo.png +0 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/index.html +58 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/string_methods.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_color_scheme.rb +96 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_highline.rb +1402 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_import.rb +52 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_menu.rb +439 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_simulator.rb +23 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_extension.rb +33 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_highline.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_style.rb +578 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/History.txt +371 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Manifest.txt +8 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/README.txt +87 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Rakefile +92 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/bin/r2r_show +33 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/lib/ruby2ruby.rb +1159 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/test/test_ruby2ruby.rb +709 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/History.txt +882 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Manifest.txt +29 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/README.txt +93 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Rakefile +187 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse +96 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse_extract_error +156 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.rb +5773 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.y +1899 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.rb +6171 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.y +2109 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.rb +6723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.y +2372 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.rb +6764 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.y +2382 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.rb +6804 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.y +2393 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.rb +6905 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.y +2425 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rb +1237 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex +177 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex.rb +317 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.rb +7 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.yy +2506 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser_extras.rb +1460 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_lexer.rb +2723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser.rb +3502 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser_extras.rb +228 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/CHANGES.md +149 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Gemfile +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/LICENSE.txt +22 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/README.md +191 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Rakefile +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bin/safe_yaml +75 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bundle_install_all_ruby_versions.sh +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/deep.rb +34 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/libyaml_checker.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb +181 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb +35 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/hexadecimal.rb +12 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/sexagesimal.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_handler.rb +99 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb +52 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/resolver.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/safe_to_ruby_visitor.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_hack.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_node_monkeypatch.rb +43 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_resolver.rb +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform.rb +41 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_boolean.rb +21 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_date.rb +13 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_float.rb +33 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_integer.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_nil.rb +18 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_symbol.rb +17 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/transformation_map.rb +47 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/run_specs_all_ruby_versions.sh +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/safe_yaml.gemspec +19 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.2.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.3.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue48.txt +20 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue49.yml +0 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/libyaml_checker_spec.rb +69 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/psych_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/resolver_specs.rb +278 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/safe_yaml_spec.rb +731 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/spec_helper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/support/exploitable_back_door.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/syck_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_date_spec.rb +60 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_float_spec.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_integer_spec.rb +64 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_symbol_spec.rb +51 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/yaml_spec.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CODE_OF_CONDUCT.md +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CONTRIBUTING.md +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/README.md +227 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/REVISION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/Rakefile +432 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_DATE +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_NAME +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass-convert +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/scss +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/extra/update_watch.rb +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/init.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/base.rb +88 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/chain.rb +34 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/filesystem.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/memory.rb +46 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/null.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/callbacks.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/css.rb +408 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/engine.rb +1218 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/environment.rb +215 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/error.rb +198 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_convert.rb +283 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_scss.rb +440 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/features.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers.rb +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/base.rb +182 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/deprecated_path.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger.rb +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/base.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/log_level.rb +45 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/media.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb +582 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/configuration.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/generic.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/merb.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rack.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rails.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/railtie.rb +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/repl.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/root.rb +7 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script.rb +66 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_lexer.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_parser.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_variable_warning.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/functions.rb +2690 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/lexer.rb +464 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/parser.rb +825 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree.rb +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/funcall.rb +313 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/interpolation.rb +223 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/list_literal.rb +104 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/literal.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/map_literal.rb +64 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/node.rb +127 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/operation.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/selector.rb +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/string_interpolation.rb +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/unary_operation.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/variable.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value.rb +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/arg_list.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/base.rb +241 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/bool.rb +35 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/color.rb +698 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/helpers.rb +272 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/list.rb +113 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/map.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/null.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/number.rb +561 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/string.rb +145 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss.rb +14 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/css_parser.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb +1236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/rx.rb +140 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/static_parser.rb +366 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/abstract_sequence.rb +111 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/comma_sequence.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/pseudo.rb +266 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/sequence.rb +636 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple.rb +116 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple_sequence.rb +344 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/shared.rb +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/map.rb +211 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/position.rb +39 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/range.rb +41 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/stack.rb +120 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/supports.rb +225 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/at_root_node.rb +83 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/charset_node.rb +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/comment_node.rb +82 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/content_node.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/css_import_node.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/debug_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/directive_node.rb +59 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/each_node.rb +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/error_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/extend_node.rb +43 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/for_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/function_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/if_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/import_node.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/keyframe_rule_node.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/media_node.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_def_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/node.rb +240 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/prop_node.rb +170 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/return_node.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/root_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/rule_node.rb +146 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/supports_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/trace_node.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/variable_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb +72 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/check_nesting.rb +173 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/convert.rb +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/cssize.rb +373 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/deep_copy.rb +107 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/extend.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb +563 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/set_options.rb +139 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/to_css.rb +409 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/warn_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/while_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util.rb +1350 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/cross_platform_random.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/multibyte_string_scanner.rb +155 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/normalized_map.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/ordered_hash.rb +192 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/subset_map.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/test.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/version.rb +124 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/rails/init.rb +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass-spec.yml +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/cache_test.rb +131 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/callbacks_test.rb +61 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/compiler_test.rb +236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/conversion_test.rb +2171 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css2sass_test.rb +526 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css_variable_test.rb +132 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/data/hsl-rgb.txt +319 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/encoding_test.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/engine_test.rb +3441 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/exec_test.rb +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/extend_test.rb +1707 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/functions_test.rb +1974 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/importer_test.rb +421 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/logger_test.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/mock_importer.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more_import.css +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/_more_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more1.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more_import.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/plugin_test.rb +556 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/alt.css +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/basic.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/cached_import_option.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compact.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/complex.css +86 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compressed.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/expanded.css +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/filename_fn.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/if.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_1_8.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_ibm866.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_content.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/line_numbers.css +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/mixins.css +95 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/multiline.css +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/nested.css +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/options.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/parent_ref.css +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/script.css +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_importee.css +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/subdir.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/units.css +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn_imported.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_conversion_test.rb +357 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_test.rb +1422 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/css_test.rb +1281 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/rx_test.rb +160 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/scss_test.rb +4157 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/test_helper.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/source_map_test.rb +1055 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/superselector_test.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_cached_import_option_partial.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_double_import_loop2.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_filename_fn_import.scss +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_ibm866.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_utf8.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_content.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/alt.sass +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/basic.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork5.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/cached_import_option.scss +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compact.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/complex.sass +305 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compressed.sass +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/double_import_loop1.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/expanded.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/filename_fn.scss +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/if.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import.sass +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset.sass +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_1_8.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_ibm866.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_content.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.less +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.sass +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/line_numbers.sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixin_bork.sass +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixins.sass +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/multiline.sass +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_import.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_mixin_bork.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/options.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/parent_ref.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/script.sass +101 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_import.scss +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_importee.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/single_import_loop.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up1.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up2.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/subdir.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/units.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn_imported.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/test_helper.rb +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/multibyte_string_scanner_test.rb +147 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/normalized_map_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/subset_map_test.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util_test.rb +438 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/value_helpers_test.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/test_helper.rb +110 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CHANGELOG.md +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CONTRIBUTING.md +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Gemfile +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Guardfile +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/README.md +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Rakefile +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Vagrantfile +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen.rb +54 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb +327 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/bsd.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/darwin.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/linux.rb +81 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/polling.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/windows.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/directory_record.rb +406 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/turnstile.rb +32 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/listen.gemspec +28 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapter_spec.rb +149 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/bsd_spec.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/darwin_spec.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/linux_spec.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/polling_spec.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/windows_spec.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/directory_record_spec.rb +1250 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/listener_spec.rb +258 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/turnstile_spec.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen_spec.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/spec_helper.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/adapter_helper.rb +666 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/directory_record_helper.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/fixtures_helper.rb +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/listeners_helper.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/platform_helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/History.txt +278 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Manifest.txt +13 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/README.txt +64 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Rakefile +12 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/composite_sexp_processor.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/pt_testcase.rb +3125 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp.rb +338 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp_processor.rb +695 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_composite_sexp_processor.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_environment.rb +94 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp.rb +356 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp_processor.rb +373 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/CHANGES +426 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Gemfile +69 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/LICENSE +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.jp.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Rakefile +100 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/context.rb +11 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-parser.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-render.rb +12 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-benchmarks.rb +119 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-diffbench.rb +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.erb +23 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.haml +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.slim +17 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/bin/slimrb +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/smart.md +102 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/smart.md +103 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/code_attributes.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/command.rb +128 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/controls.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/do_inserter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/embedded.rb +273 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/end_inserter.rb +62 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/engine.rb +41 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/erb_converter.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/filter.rb +30 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/grammar.rb +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/include.rb +57 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/interpolation.rb +35 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/context.rb +127 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/filter.rb +80 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/parser.rb +527 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/escaper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/filter.rb +96 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/parser.rb +36 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/builder.rb +101 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/filter.rb +91 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/template.rb +19 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/translator.rb +118 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/slim.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/helper.rb +211 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_blocks.rb +183 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_escaping.rb +150 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_evaluation.rb +180 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_output.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_structure.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_commands.rb +223 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_embedded_engines.rb +242 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_encoding.rb +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_erb_converter.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_attributes.rb +268 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_escaping.rb +65 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_structure.rb +537 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_parser_errors.rb +148 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_pretty.rb +166 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_ruby_errors.rb +207 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_slim_template.rb +77 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_tabs.rb +169 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_text_interpolation.rb +79 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_thread_options.rb +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_unicode.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/recursive.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/slimfile.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/subdir/test.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/textfile +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/test_include.rb +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/TESTS.md +1290 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/run.rb +92 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/logic_less/test_logic_less.rb +295 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/Rakefile +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/application_controller.rb +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/entries_controller.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb +40 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/helpers/application_helper.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/models/entry.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/entries/edit.html.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/layouts/application.html.slim +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/_partial.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/content_for.html.slim +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/erb.html.erb +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/form_for.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/helper.html.slim +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/integers.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/no_layout.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/normal.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/partial.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/splat.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/thread_options.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/variables.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/xml.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config.ru +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/application.rb +44 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/boot.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environment.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environments/test.rb +34 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/inflections.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/mime_types.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/secret_token.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/session_store.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/locales/en.yml +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/routes.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/script/rails +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/helper.rb +31 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/test_slim.rb +90 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/smart/test_smart_text.rb +296 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/translator/test_translator.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/CHANGES +235 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/EXPRESSIONS.md +261 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Gemfile +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/README.md +267 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Rakefile +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple.rb +64 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/engine.rb +67 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/engine.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/parser.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/template.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/trimming.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/exceptions.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filter.rb +9 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/code_merger.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/control_flow.rb +42 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/dynamic_inliner.rb +71 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/encoding.rb +24 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/eraser.rb +22 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/escapable.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/multi_flattener.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/remove_bom.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/static_merger.rb +37 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/validator.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array_buffer.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/erb.rb +32 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/rails_output_buffer.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/string_buffer.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/grammar.rb +57 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_merger.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_remover.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_sorter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/dispatcher.rb +31 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/fast.rb +130 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/filter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/pretty.rb +103 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/safe.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/map.rb +105 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/dispatcher.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/engine_dsl.rb +145 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/grammar_dsl.rb +170 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/options.rb +87 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/template.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/parser.rb +8 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/rails.rb +26 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/tilt.rb +46 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/utils.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/temple.gemspec +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_code_merger.rb +38 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_control_flow.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_dynamic_inliner.rb +95 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_eraser.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_escapable.rb +49 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_multi_flattener.rb +33 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_static_merger.rb +41 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/helper.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_merger.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_remover.rb +43 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_sorter.rb +48 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_fast.rb +97 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_pretty.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_dispatcher.rb +70 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_grammar_dsl.rb +86 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_engine.rb +189 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_erb.rb +61 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_filter.rb +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_generator.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_grammar.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_map.rb +39 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_utils.rb +39 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Gemfile +4 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/History.rdoc +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Manifest +27 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/README.rdoc +240 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Rakefile +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Todo.rdoc +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/examples/examples.rb +83 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table.rb +26 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/cell.rb +92 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/import.rb +3 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/row.rb +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/separator.rb +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/style.rb +62 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table.rb +226 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table_helper.rb +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/terminal-table.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/CHANGELOG.md +84 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/COPYING +18 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Gemfile +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/HACKING +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/README.md +226 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Rakefile +105 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/bin/tilt +122 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/TEMPLATES.md +524 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/common.css +14 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt.rb +159 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/asciidoc.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/babel.rb +15 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/bluecloth.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/builder.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/coffee.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/creole.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/csv.rb +65 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erb.rb +57 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erubis.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/etanni.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/haml.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/kramdown.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/less.rb +30 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/liquid.rb +38 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/mapping.rb +265 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/markaby.rb +45 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/maruku.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/nokogiri.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/plain.rb +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/prawn.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/radius.rb +48 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdiscount.rb +39 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdoc.rb +40 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcarpet.rb +83 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcloth.rb +23 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/sass.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/string.rb +21 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/template.rb +295 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/wikicloth.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/yajl.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/index.txt +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/tilt.1.ronn +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/locals.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby_other_static.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/render_twice.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/scope.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/yielding.mab +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/test_helper.rb +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_asciidoctor_test.rb +50 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_babeltemplate.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_blueclothtemplate_test.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_buildertemplate_test.rb +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_cache_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_coffeescripttemplate_test.rb +141 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_compilesite_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_creoletemplate_test.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_csv_test.rb +77 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erbtemplate_test.rb +239 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erubistemplate_test.rb +151 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_etannitemplate_test.rb +174 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_hamltemplate_test.rb +166 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_kramdown_test.rb +20 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.less +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_liquidtemplate_test.rb +78 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_mapping_test.rb +229 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markaby_test.rb +88 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markdown_test.rb +177 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_marukutemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_metadata_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_nokogiritemplate_test.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate.prawn +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_radiustemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdiscounttemplate_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdoctemplate_test.rb +29 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redcarpettemplate_test.rb +54 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redclothtemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_sasstemplate_test.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_stringtemplate_test.rb +171 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_template_test.rb +308 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_test.rb +60 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_wikiclothtemplate_test.rb +32 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_yajltemplate_test.rb +101 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/tilt.gemspec +114 -0
- data/lib/brakeman.rb +9 -1
- data/lib/brakeman/call_index.rb +1 -1
- data/lib/brakeman/checks/check_content_tag.rb +1 -1
- data/lib/brakeman/checks/check_cross_site_scripting.rb +1 -1
- data/lib/brakeman/checks/check_execute.rb +4 -0
- data/lib/brakeman/checks/check_forgery_setting.rb +3 -2
- data/lib/brakeman/checks/check_link_to.rb +1 -1
- data/lib/brakeman/checks/check_link_to_href.rb +2 -2
- data/lib/brakeman/checks/check_mass_assignment.rb +1 -1
- data/lib/brakeman/checks/check_redirect.rb +6 -0
- data/lib/brakeman/checks/check_secrets.rb +40 -0
- data/lib/brakeman/checks/check_sql.rb +1 -1
- data/lib/brakeman/processor.rb +6 -6
- data/lib/brakeman/processors/alias_processor.rb +29 -3
- data/lib/brakeman/processors/base_processor.rb +35 -4
- data/lib/brakeman/processors/controller_alias_processor.rb +4 -4
- data/lib/brakeman/processors/haml_template_processor.rb +1 -1
- data/lib/brakeman/processors/lib/basic_processor.rb +18 -0
- data/lib/brakeman/processors/lib/rails2_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -1
- data/lib/brakeman/processors/lib/rails3_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -1
- data/lib/brakeman/processors/template_alias_processor.rb +4 -4
- data/lib/brakeman/processors/template_processor.rb +1 -0
- data/lib/brakeman/report/report_codeclimate.rb +2 -1
- data/lib/brakeman/scanner.rb +1 -1
- data/lib/brakeman/tracker.rb +11 -1
- data/lib/brakeman/tracker/constants.rb +101 -0
- data/lib/brakeman/util.rb +4 -0
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning_codes.rb +1 -0
- data/lib/ruby_parser/bm_sexp.rb +6 -0
- metadata +1171 -162
@@ -0,0 +1,37 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
require 'sass/engine'
|
3
|
+
|
4
|
+
module ScssTestHelper
|
5
|
+
def assert_parses(scss)
|
6
|
+
assert_equal scss.rstrip, render(scss).rstrip
|
7
|
+
end
|
8
|
+
|
9
|
+
def assert_not_parses(expected, scss)
|
10
|
+
raise "Template must include <err> where an error is expected" unless scss.include?("<err>")
|
11
|
+
|
12
|
+
after, was = scss.split("<err>")
|
13
|
+
line = after.count("\n") + 1
|
14
|
+
|
15
|
+
after.gsub!(/\s*\n\s*$/, '')
|
16
|
+
after.gsub!(/.*\n/, '')
|
17
|
+
after = "..." + after[-15..-1] if after.size > 18
|
18
|
+
|
19
|
+
was.gsub!(/^\s*\n\s*/, '')
|
20
|
+
was.gsub!(/\n.*/, '')
|
21
|
+
was = was[0...15] + "..." if was.size > 18
|
22
|
+
|
23
|
+
to_render = scss.sub("<err>", "")
|
24
|
+
render(to_render)
|
25
|
+
assert(false, "Expected syntax error for:\n#{to_render}\n")
|
26
|
+
rescue Sass::SyntaxError => err
|
27
|
+
assert_equal("Invalid CSS after \"#{after}\": expected #{expected}, was \"#{was}\"",
|
28
|
+
err.message)
|
29
|
+
assert_equal line, err.sass_line
|
30
|
+
end
|
31
|
+
|
32
|
+
def render(scss, options = {})
|
33
|
+
options[:syntax] ||= :scss
|
34
|
+
munge_filename options
|
35
|
+
Sass::Engine.new(scss, options).render
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,1055 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
4
|
+
require File.dirname(__FILE__) + '/test_helper'
|
5
|
+
|
6
|
+
class SourcemapTest < MiniTest::Test
|
7
|
+
def test_to_json_requires_args
|
8
|
+
_, sourcemap = render_with_sourcemap('')
|
9
|
+
assert_raises(ArgumentError) {sourcemap.to_json({})}
|
10
|
+
assert_raises(ArgumentError) {sourcemap.to_json({:css_path => 'foo'})}
|
11
|
+
assert_raises(ArgumentError) {sourcemap.to_json({:sourcemap_path => 'foo'})}
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_simple_mapping_scss
|
15
|
+
assert_parses_with_sourcemap <<SCSS, <<CSS, <<JSON
|
16
|
+
a {
|
17
|
+
foo: bar;
|
18
|
+
/* SOME COMMENT */
|
19
|
+
font-size: 12px;
|
20
|
+
}
|
21
|
+
SCSS
|
22
|
+
a {
|
23
|
+
foo: bar;
|
24
|
+
/* SOME COMMENT */
|
25
|
+
font-size: 12px; }
|
26
|
+
|
27
|
+
/*# sourceMappingURL=test.css.map */
|
28
|
+
CSS
|
29
|
+
{
|
30
|
+
"version": 3,
|
31
|
+
"mappings": "AAAA,CAAE;EACA,GAAG,EAAE,GAAG;EACV,kBAAkB;EAChB,SAAS,EAAE,IAAI",
|
32
|
+
"sources": ["test_simple_mapping_scss_inline.scss"],
|
33
|
+
"names": [],
|
34
|
+
"file": "test.css"
|
35
|
+
}
|
36
|
+
JSON
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_simple_mapping_sass
|
40
|
+
assert_parses_with_sourcemap <<SASS, <<CSS, <<JSON, :syntax => :sass
|
41
|
+
a
|
42
|
+
foo: bar
|
43
|
+
/* SOME COMMENT */
|
44
|
+
:font-size 12px
|
45
|
+
SASS
|
46
|
+
a {
|
47
|
+
foo: bar;
|
48
|
+
/* SOME COMMENT */
|
49
|
+
font-size: 12px; }
|
50
|
+
|
51
|
+
/*# sourceMappingURL=test.css.map */
|
52
|
+
CSS
|
53
|
+
{
|
54
|
+
"version": 3,
|
55
|
+
"mappings": "AAAA,CAAC;EACC,GAAG,EAAE,GAAG;;EAEP,SAAS,EAAC,IAAI",
|
56
|
+
"sources": ["test_simple_mapping_sass_inline.sass"],
|
57
|
+
"names": [],
|
58
|
+
"file": "test.css"
|
59
|
+
}
|
60
|
+
JSON
|
61
|
+
end
|
62
|
+
|
63
|
+
def test_simple_mapping_with_file_uris
|
64
|
+
uri = Sass::Util.file_uri_from_path(Sass::Util.absolute_path(filename_for_test(:scss)))
|
65
|
+
assert_parses_with_sourcemap <<SCSS, <<CSS, <<JSON, :sourcemap => :file
|
66
|
+
a {
|
67
|
+
foo: bar;
|
68
|
+
/* SOME COMMENT */
|
69
|
+
font-size: 12px;
|
70
|
+
}
|
71
|
+
SCSS
|
72
|
+
a {
|
73
|
+
foo: bar;
|
74
|
+
/* SOME COMMENT */
|
75
|
+
font-size: 12px; }
|
76
|
+
|
77
|
+
/*# sourceMappingURL=test.css.map */
|
78
|
+
CSS
|
79
|
+
{
|
80
|
+
"version": 3,
|
81
|
+
"mappings": "AAAA,CAAE;EACA,GAAG,EAAE,GAAG;EACV,kBAAkB;EAChB,SAAS,EAAE,IAAI",
|
82
|
+
"sources": ["#{uri}"],
|
83
|
+
"names": [],
|
84
|
+
"file": "test.css"
|
85
|
+
}
|
86
|
+
JSON
|
87
|
+
end
|
88
|
+
|
89
|
+
def test_mapping_with_directory_scss
|
90
|
+
options = {:filename => "scss/style.scss", :output => "css/style.css"}
|
91
|
+
assert_parses_with_sourcemap <<SCSS, <<CSS, <<JSON, options
|
92
|
+
a {
|
93
|
+
foo: bar;
|
94
|
+
/* SOME COMMENT */
|
95
|
+
font-size: 12px;
|
96
|
+
}
|
97
|
+
SCSS
|
98
|
+
a {
|
99
|
+
foo: bar;
|
100
|
+
/* SOME COMMENT */
|
101
|
+
font-size: 12px; }
|
102
|
+
|
103
|
+
/*# sourceMappingURL=style.css.map */
|
104
|
+
CSS
|
105
|
+
{
|
106
|
+
"version": 3,
|
107
|
+
"mappings": "AAAA,CAAE;EACA,GAAG,EAAE,GAAG;EACV,kBAAkB;EAChB,SAAS,EAAE,IAAI",
|
108
|
+
"sources": ["../scss/style.scss"],
|
109
|
+
"names": [],
|
110
|
+
"file": "style.css"
|
111
|
+
}
|
112
|
+
JSON
|
113
|
+
end
|
114
|
+
|
115
|
+
def test_mapping_with_directory_sass
|
116
|
+
options = {:filename => "sass/style.sass", :output => "css/style.css", :syntax => :sass}
|
117
|
+
assert_parses_with_sourcemap <<SASS, <<CSS, <<JSON, options
|
118
|
+
a
|
119
|
+
foo: bar
|
120
|
+
/* SOME COMMENT */
|
121
|
+
:font-size 12px
|
122
|
+
SASS
|
123
|
+
a {
|
124
|
+
foo: bar;
|
125
|
+
/* SOME COMMENT */
|
126
|
+
font-size: 12px; }
|
127
|
+
|
128
|
+
/*# sourceMappingURL=style.css.map */
|
129
|
+
CSS
|
130
|
+
{
|
131
|
+
"version": 3,
|
132
|
+
"mappings": "AAAA,CAAC;EACC,GAAG,EAAE,GAAG;;EAEP,SAAS,EAAC,IAAI",
|
133
|
+
"sources": ["../sass/style.sass"],
|
134
|
+
"names": [],
|
135
|
+
"file": "style.css"
|
136
|
+
}
|
137
|
+
JSON
|
138
|
+
end
|
139
|
+
|
140
|
+
unless Sass::Util.ruby1_8?
|
141
|
+
def test_simple_charset_mapping_scss
|
142
|
+
assert_parses_with_sourcemap <<SCSS, <<CSS, <<JSON
|
143
|
+
a {
|
144
|
+
fóó: bár;
|
145
|
+
}
|
146
|
+
SCSS
|
147
|
+
@charset "UTF-8";
|
148
|
+
a {
|
149
|
+
fóó: bár; }
|
150
|
+
|
151
|
+
/*# sourceMappingURL=test.css.map */
|
152
|
+
CSS
|
153
|
+
{
|
154
|
+
"version": 3,
|
155
|
+
"mappings": ";AAAA,CAAE;EACA,GAAG,EAAE,GAAG",
|
156
|
+
"sources": ["test_simple_charset_mapping_scss_inline.scss"],
|
157
|
+
"names": [],
|
158
|
+
"file": "test.css"
|
159
|
+
}
|
160
|
+
JSON
|
161
|
+
end
|
162
|
+
|
163
|
+
def test_simple_charset_mapping_sass
|
164
|
+
assert_parses_with_sourcemap <<SASS, <<CSS, <<JSON, :syntax => :sass
|
165
|
+
a
|
166
|
+
fóó: bár
|
167
|
+
SASS
|
168
|
+
@charset "UTF-8";
|
169
|
+
a {
|
170
|
+
fóó: bár; }
|
171
|
+
|
172
|
+
/*# sourceMappingURL=test.css.map */
|
173
|
+
CSS
|
174
|
+
{
|
175
|
+
"version": 3,
|
176
|
+
"mappings": ";AAAA,CAAC;EACC,GAAG,EAAE,GAAG",
|
177
|
+
"sources": ["test_simple_charset_mapping_sass_inline.sass"],
|
178
|
+
"names": [],
|
179
|
+
"file": "test.css"
|
180
|
+
}
|
181
|
+
JSON
|
182
|
+
end
|
183
|
+
|
184
|
+
def test_different_charset_than_encoding_scss
|
185
|
+
assert_parses_with_sourcemap(<<SCSS.force_encoding("IBM866"), <<CSS, <<JSON)
|
186
|
+
@charset "IBM866";
|
187
|
+
f\x86\x86 {
|
188
|
+
\x86: b;
|
189
|
+
}
|
190
|
+
SCSS
|
191
|
+
@charset "UTF-8";
|
192
|
+
fЖЖ {
|
193
|
+
Ж: b; }
|
194
|
+
|
195
|
+
/*# sourceMappingURL=test.css.map */
|
196
|
+
CSS
|
197
|
+
{
|
198
|
+
"version": 3,
|
199
|
+
"mappings": ";AACA,GAAI;EACF,CAAC,EAAE,CAAC",
|
200
|
+
"sources": ["test_different_charset_than_encoding_scss_inline.scss"],
|
201
|
+
"names": [],
|
202
|
+
"file": "test.css"
|
203
|
+
}
|
204
|
+
JSON
|
205
|
+
end
|
206
|
+
|
207
|
+
def test_different_charset_than_encoding_sass
|
208
|
+
assert_parses_with_sourcemap(<<SASS.force_encoding("IBM866"), <<CSS, <<JSON, :syntax => :sass)
|
209
|
+
@charset "IBM866"
|
210
|
+
f\x86\x86
|
211
|
+
\x86: b
|
212
|
+
SASS
|
213
|
+
@charset "UTF-8";
|
214
|
+
fЖЖ {
|
215
|
+
Ж: b; }
|
216
|
+
|
217
|
+
/*# sourceMappingURL=test.css.map */
|
218
|
+
CSS
|
219
|
+
{
|
220
|
+
"version": 3,
|
221
|
+
"mappings": ";AACA,GAAG;EACD,CAAC,EAAE,CAAC",
|
222
|
+
"sources": ["test_different_charset_than_encoding_sass_inline.sass"],
|
223
|
+
"names": [],
|
224
|
+
"file": "test.css"
|
225
|
+
}
|
226
|
+
JSON
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
def test_import_sourcemap_scss
|
231
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
232
|
+
@import {{1}}url(foo){{/1}},{{2}}url(moo) {{/2}}, {{3}}url(bar) {{/3}};
|
233
|
+
@import {{4}}url(baz) screen print{{/4}};
|
234
|
+
SCSS
|
235
|
+
{{1}}@import url(foo){{/1}};
|
236
|
+
{{2}}@import url(moo){{/2}};
|
237
|
+
{{3}}@import url(bar){{/3}};
|
238
|
+
{{4}}@import url(baz) screen print{{/4}};
|
239
|
+
|
240
|
+
/*# sourceMappingURL=test.css.map */
|
241
|
+
CSS
|
242
|
+
end
|
243
|
+
|
244
|
+
def test_import_sourcemap_sass
|
245
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
246
|
+
@import {{1}}foo.css{{/1}},{{2}}moo.css{{/2}}, {{3}}bar.css{{/3}}
|
247
|
+
@import {{4}}url(baz.css){{/4}}
|
248
|
+
@import {{5}}url(qux.css) screen print{{/5}}
|
249
|
+
SASS
|
250
|
+
{{1}}@import url(foo.css){{/1}};
|
251
|
+
{{2}}@import url(moo.css){{/2}};
|
252
|
+
{{3}}@import url(bar.css){{/3}};
|
253
|
+
{{4}}@import url(baz.css){{/4}};
|
254
|
+
{{5}}@import url(qux.css) screen print{{/5}};
|
255
|
+
|
256
|
+
/*# sourceMappingURL=test.css.map */
|
257
|
+
CSS
|
258
|
+
end
|
259
|
+
|
260
|
+
def test_media_sourcemap_scss
|
261
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
262
|
+
{{1}}@media screen, tv {{/1}}{
|
263
|
+
{{2}}body {{/2}}{
|
264
|
+
{{3}}max-width{{/3}}: {{4}}1070px{{/4}};
|
265
|
+
}
|
266
|
+
}
|
267
|
+
SCSS
|
268
|
+
{{1}}@media screen, tv{{/1}} {
|
269
|
+
{{2}}body{{/2}} {
|
270
|
+
{{3}}max-width{{/3}}: {{4}}1070px{{/4}}; } }
|
271
|
+
|
272
|
+
/*# sourceMappingURL=test.css.map */
|
273
|
+
CSS
|
274
|
+
end
|
275
|
+
|
276
|
+
def test_media_sourcemap_sass
|
277
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
278
|
+
{{1}}@media screen, tv{{/1}}
|
279
|
+
{{2}}body{{/2}}
|
280
|
+
{{3}}max-width{{/3}}: {{4}}1070px{{/4}}
|
281
|
+
SASS
|
282
|
+
{{1}}@media screen, tv{{/1}} {
|
283
|
+
{{2}}body{{/2}} {
|
284
|
+
{{3}}max-width{{/3}}: {{4}}1070px{{/4}}; } }
|
285
|
+
|
286
|
+
/*# sourceMappingURL=test.css.map */
|
287
|
+
CSS
|
288
|
+
end
|
289
|
+
|
290
|
+
def test_interpolation_and_vars_sourcemap_scss
|
291
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
292
|
+
$te: "te";
|
293
|
+
$teal: {{5}}teal{{/5}};
|
294
|
+
{{1}}p {{/1}}{
|
295
|
+
{{2}}con#{$te}nt{{/2}}: {{3}}"I a#{$te} #{5 + 10} pies!"{{/3}};
|
296
|
+
{{4}}color{{/4}}: $teal;
|
297
|
+
}
|
298
|
+
|
299
|
+
$name: foo;
|
300
|
+
$attr: border;
|
301
|
+
{{6}}p.#{$name} {{/6}}{
|
302
|
+
{{7}}#{$attr}-color{{/7}}: {{8}}blue{{/8}};
|
303
|
+
$font-size: 12px;
|
304
|
+
$line-height: 30px;
|
305
|
+
{{9}}font{{/9}}: {{10}}#{$font-size}/#{$line-height}{{/10}};
|
306
|
+
}
|
307
|
+
SCSS
|
308
|
+
{{1}}p{{/1}} {
|
309
|
+
{{2}}content{{/2}}: {{3}}"I ate 15 pies!"{{/3}};
|
310
|
+
{{4}}color{{/4}}: {{5}}teal{{/5}}; }
|
311
|
+
|
312
|
+
{{6}}p.foo{{/6}} {
|
313
|
+
{{7}}border-color{{/7}}: {{8}}blue{{/8}};
|
314
|
+
{{9}}font{{/9}}: {{10}}12px/30px{{/10}}; }
|
315
|
+
|
316
|
+
/*# sourceMappingURL=test.css.map */
|
317
|
+
CSS
|
318
|
+
end
|
319
|
+
|
320
|
+
def test_interpolation_and_vars_sourcemap_sass
|
321
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
322
|
+
$te: "te"
|
323
|
+
$teal: {{5}}teal{{/5}}
|
324
|
+
{{1}}p{{/1}}
|
325
|
+
{{2}}con#{$te}nt{{/2}}: {{3}}"I a#{$te} #{5 + 10} pies!"{{/3}}
|
326
|
+
{{4}}color{{/4}}: $teal
|
327
|
+
|
328
|
+
$name: foo
|
329
|
+
$attr: border
|
330
|
+
{{6}}p.#{$name}{{/6}}
|
331
|
+
{{7}}#{$attr}-color{{/7}}: {{8}}blue{{/8}}
|
332
|
+
$font-size: 12px
|
333
|
+
$line-height: 30px
|
334
|
+
{{9}}font{{/9}}: {{10}}#{$font-size}/#{$line-height}{{/10}}
|
335
|
+
SASS
|
336
|
+
{{1}}p{{/1}} {
|
337
|
+
{{2}}content{{/2}}: {{3}}"I ate 15 pies!"{{/3}};
|
338
|
+
{{4}}color{{/4}}: {{5}}teal{{/5}}; }
|
339
|
+
|
340
|
+
{{6}}p.foo{{/6}} {
|
341
|
+
{{7}}border-color{{/7}}: {{8}}blue{{/8}};
|
342
|
+
{{9}}font{{/9}}: {{10}}12px/30px{{/10}}; }
|
343
|
+
|
344
|
+
/*# sourceMappingURL=test.css.map */
|
345
|
+
CSS
|
346
|
+
end
|
347
|
+
|
348
|
+
def test_selectors_properties_sourcemap_scss
|
349
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
350
|
+
$width: 2px;
|
351
|
+
$translucent-red: rgba(255, 0, 0, 0.5);
|
352
|
+
{{1}}a {{/1}}{
|
353
|
+
{{9}}.special {{/9}}{
|
354
|
+
{{10}}color{{/10}}: {{11}}red{{/11}};
|
355
|
+
{{12}}&:hover {{/12}}{
|
356
|
+
{{13}}foo{{/13}}: {{14}}bar{{/14}};
|
357
|
+
{{15}}cursor{{/15}}: {{16}}e + -resize{{/16}};
|
358
|
+
{{17}}color{{/17}}: {{18}}opacify($translucent-red, 0.3){{/18}};
|
359
|
+
}
|
360
|
+
{{19}}&:after {{/19}}{
|
361
|
+
{{20}}content{{/20}}: {{21}}"I ate #{5 + 10} pies #{$width} thick!"{{/21}};
|
362
|
+
}
|
363
|
+
}
|
364
|
+
{{22}}&:active {{/22}}{
|
365
|
+
{{23}}color{{/23}}: {{24}}#010203 + #040506{{/24}};
|
366
|
+
{{25}}border{{/25}}: {{26}}$width solid black{{/26}};
|
367
|
+
}
|
368
|
+
{{2}}/* SOME COMMENT */{{/2}}
|
369
|
+
{{3}}font{{/3}}: {{4}}2px/3px {{/4}}{
|
370
|
+
{{5}}family{{/5}}: {{6}}fantasy{{/6}};
|
371
|
+
{{7}}size{{/7}}: {{8}}1em + (2em * 3){{/8}};
|
372
|
+
}
|
373
|
+
}
|
374
|
+
SCSS
|
375
|
+
{{1}}a{{/1}} {
|
376
|
+
{{2}}/* SOME COMMENT */{{/2}}
|
377
|
+
{{3}}font{{/3}}: {{4}}2px/3px{{/4}};
|
378
|
+
{{5}}font-family{{/5}}: {{6}}fantasy{{/6}};
|
379
|
+
{{7}}font-size{{/7}}: {{8}}7em{{/8}}; }
|
380
|
+
{{9}}a .special{{/9}} {
|
381
|
+
{{10}}color{{/10}}: {{11}}red{{/11}}; }
|
382
|
+
{{12}}a .special:hover{{/12}} {
|
383
|
+
{{13}}foo{{/13}}: {{14}}bar{{/14}};
|
384
|
+
{{15}}cursor{{/15}}: {{16}}e-resize{{/16}};
|
385
|
+
{{17}}color{{/17}}: {{18}}rgba(255, 0, 0, 0.8){{/18}}; }
|
386
|
+
{{19}}a .special:after{{/19}} {
|
387
|
+
{{20}}content{{/20}}: {{21}}"I ate 15 pies 2px thick!"{{/21}}; }
|
388
|
+
{{22}}a:active{{/22}} {
|
389
|
+
{{23}}color{{/23}}: {{24}}#050709{{/24}};
|
390
|
+
{{25}}border{{/25}}: {{26}}2px solid black{{/26}}; }
|
391
|
+
|
392
|
+
/*# sourceMappingURL=test.css.map */
|
393
|
+
CSS
|
394
|
+
end
|
395
|
+
|
396
|
+
def test_selectors_properties_sourcemap_sass
|
397
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
398
|
+
$width: 2px
|
399
|
+
$translucent-red: rgba(255, 0, 0, 0.5)
|
400
|
+
{{1}}a{{/1}}
|
401
|
+
{{9}}.special{{/9}}
|
402
|
+
{{10}}color{{/10}}: {{11}}red{{/11}}
|
403
|
+
{{12}}&:hover{{/12}}
|
404
|
+
{{13}}foo{{/13}}: {{14}}bar{{/14}}
|
405
|
+
{{15}}cursor{{/15}}: {{16}}e + -resize{{/16}}
|
406
|
+
{{17}}color{{/17}}: {{18}}opacify($translucent-red, 0.3){{/18}}
|
407
|
+
{{19}}&:after{{/19}}
|
408
|
+
{{20}}content{{/20}}: {{21}}"I ate #{5 + 10} pies #{$width} thick!"{{/21}}
|
409
|
+
{{22}}&:active{{/22}}
|
410
|
+
{{23}}color{{/23}}: {{24}}#010203 + #040506{{/24}}
|
411
|
+
{{25}}border{{/25}}: {{26}}$width solid black{{/26}}
|
412
|
+
|
413
|
+
{{2}}/* SOME COMMENT */{{/2}}
|
414
|
+
{{3}}font{{/3}}: {{4}}2px/3px{{/4}}
|
415
|
+
{{5}}family{{/5}}: {{6}}fantasy{{/6}}
|
416
|
+
{{7}}size{{/7}}: {{8}}1em + (2em * 3){{/8}}
|
417
|
+
SASS
|
418
|
+
{{1}}a{{/1}} {
|
419
|
+
{{2}}/* SOME COMMENT */{{/2}}
|
420
|
+
{{3}}font{{/3}}: {{4}}2px/3px{{/4}};
|
421
|
+
{{5}}font-family{{/5}}: {{6}}fantasy{{/6}};
|
422
|
+
{{7}}font-size{{/7}}: {{8}}7em{{/8}}; }
|
423
|
+
{{9}}a .special{{/9}} {
|
424
|
+
{{10}}color{{/10}}: {{11}}red{{/11}}; }
|
425
|
+
{{12}}a .special:hover{{/12}} {
|
426
|
+
{{13}}foo{{/13}}: {{14}}bar{{/14}};
|
427
|
+
{{15}}cursor{{/15}}: {{16}}e-resize{{/16}};
|
428
|
+
{{17}}color{{/17}}: {{18}}rgba(255, 0, 0, 0.8){{/18}}; }
|
429
|
+
{{19}}a .special:after{{/19}} {
|
430
|
+
{{20}}content{{/20}}: {{21}}"I ate 15 pies 2px thick!"{{/21}}; }
|
431
|
+
{{22}}a:active{{/22}} {
|
432
|
+
{{23}}color{{/23}}: {{24}}#050709{{/24}};
|
433
|
+
{{25}}border{{/25}}: {{26}}2px solid black{{/26}}; }
|
434
|
+
|
435
|
+
/*# sourceMappingURL=test.css.map */
|
436
|
+
CSS
|
437
|
+
end
|
438
|
+
|
439
|
+
def test_extend_sourcemap_scss
|
440
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
441
|
+
{{1}}.error {{/1}}{
|
442
|
+
{{2}}border{{/2}}: {{3}}1px #ff00aa{{/3}};
|
443
|
+
{{4}}background-color{{/4}}: {{5}}#fdd{{/5}};
|
444
|
+
}
|
445
|
+
{{6}}.seriousError {{/6}}{
|
446
|
+
@extend .error;
|
447
|
+
{{7}}border-width{{/7}}: {{8}}3px{{/8}};
|
448
|
+
}
|
449
|
+
SCSS
|
450
|
+
{{1}}.error, .seriousError{{/1}} {
|
451
|
+
{{2}}border{{/2}}: {{3}}1px #ff00aa{{/3}};
|
452
|
+
{{4}}background-color{{/4}}: {{5}}#fdd{{/5}}; }
|
453
|
+
|
454
|
+
{{6}}.seriousError{{/6}} {
|
455
|
+
{{7}}border-width{{/7}}: {{8}}3px{{/8}}; }
|
456
|
+
|
457
|
+
/*# sourceMappingURL=test.css.map */
|
458
|
+
CSS
|
459
|
+
end
|
460
|
+
|
461
|
+
def test_extend_sourcemap_sass
|
462
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
463
|
+
{{1}}.error{{/1}}
|
464
|
+
{{2}}border{{/2}}: {{3}}1px #f00{{/3}}
|
465
|
+
{{4}}background-color{{/4}}: {{5}}#fdd{{/5}}
|
466
|
+
|
467
|
+
{{6}}.seriousError{{/6}}
|
468
|
+
@extend .error
|
469
|
+
{{7}}border-width{{/7}}: {{8}}3px{{/8}}
|
470
|
+
SASS
|
471
|
+
{{1}}.error, .seriousError{{/1}} {
|
472
|
+
{{2}}border{{/2}}: {{3}}1px #f00{{/3}};
|
473
|
+
{{4}}background-color{{/4}}: {{5}}#fdd{{/5}}; }
|
474
|
+
|
475
|
+
{{6}}.seriousError{{/6}} {
|
476
|
+
{{7}}border-width{{/7}}: {{8}}3px{{/8}}; }
|
477
|
+
|
478
|
+
/*# sourceMappingURL=test.css.map */
|
479
|
+
CSS
|
480
|
+
end
|
481
|
+
|
482
|
+
def test_for_sourcemap_scss
|
483
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
484
|
+
@for $i from 1 through 3 {
|
485
|
+
{{1}}{{4}}{{7}}.item-#{$i} {{/1}}{{/4}}{{/7}}{ {{2}}{{5}}{{8}}width{{/2}}{{/5}}{{/8}}: {{3}}{{6}}{{9}}2em * $i{{/3}}{{/6}}{{/9}}; }
|
486
|
+
}
|
487
|
+
SCSS
|
488
|
+
{{1}}.item-1{{/1}} {
|
489
|
+
{{2}}width{{/2}}: {{3}}2em{{/3}}; }
|
490
|
+
|
491
|
+
{{4}}.item-2{{/4}} {
|
492
|
+
{{5}}width{{/5}}: {{6}}4em{{/6}}; }
|
493
|
+
|
494
|
+
{{7}}.item-3{{/7}} {
|
495
|
+
{{8}}width{{/8}}: {{9}}6em{{/9}}; }
|
496
|
+
|
497
|
+
/*# sourceMappingURL=test.css.map */
|
498
|
+
CSS
|
499
|
+
end
|
500
|
+
|
501
|
+
def test_for_sourcemap_sass
|
502
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
503
|
+
@for $i from 1 through 3
|
504
|
+
{{1}}{{4}}{{7}}.item-#{$i}{{/1}}{{/4}}{{/7}}
|
505
|
+
{{2}}{{5}}{{8}}width{{/2}}{{/5}}{{/8}}: {{3}}{{6}}{{9}}2em * $i{{/3}}{{/6}}{{/9}}
|
506
|
+
SASS
|
507
|
+
{{1}}.item-1{{/1}} {
|
508
|
+
{{2}}width{{/2}}: {{3}}2em{{/3}}; }
|
509
|
+
|
510
|
+
{{4}}.item-2{{/4}} {
|
511
|
+
{{5}}width{{/5}}: {{6}}4em{{/6}}; }
|
512
|
+
|
513
|
+
{{7}}.item-3{{/7}} {
|
514
|
+
{{8}}width{{/8}}: {{9}}6em{{/9}}; }
|
515
|
+
|
516
|
+
/*# sourceMappingURL=test.css.map */
|
517
|
+
CSS
|
518
|
+
end
|
519
|
+
|
520
|
+
def test_while_sourcemap_scss
|
521
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
522
|
+
$i: 6;
|
523
|
+
@while $i > 0 {
|
524
|
+
{{1}}{{4}}{{7}}.item-#{$i} {{/1}}{{/4}}{{/7}}{ {{2}}{{5}}{{8}}width{{/2}}{{/5}}{{/8}}: {{3}}{{6}}{{9}}2em * $i{{/3}}{{/6}}{{/9}}; }
|
525
|
+
$i: $i - 2 !global;
|
526
|
+
}
|
527
|
+
SCSS
|
528
|
+
{{1}}.item-6{{/1}} {
|
529
|
+
{{2}}width{{/2}}: {{3}}12em{{/3}}; }
|
530
|
+
|
531
|
+
{{4}}.item-4{{/4}} {
|
532
|
+
{{5}}width{{/5}}: {{6}}8em{{/6}}; }
|
533
|
+
|
534
|
+
{{7}}.item-2{{/7}} {
|
535
|
+
{{8}}width{{/8}}: {{9}}4em{{/9}}; }
|
536
|
+
|
537
|
+
/*# sourceMappingURL=test.css.map */
|
538
|
+
CSS
|
539
|
+
end
|
540
|
+
|
541
|
+
def test_while_sourcemap_sass
|
542
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
543
|
+
$i: 6
|
544
|
+
@while $i > 0
|
545
|
+
{{1}}{{4}}{{7}}.item-#{$i}{{/1}}{{/4}}{{/7}}
|
546
|
+
{{2}}{{5}}{{8}}width{{/2}}{{/5}}{{/8}}: {{3}}{{6}}{{9}}2em * $i{{/3}}{{/6}}{{/9}}
|
547
|
+
$i: $i - 2 !global
|
548
|
+
SASS
|
549
|
+
{{1}}.item-6{{/1}} {
|
550
|
+
{{2}}width{{/2}}: {{3}}12em{{/3}}; }
|
551
|
+
|
552
|
+
{{4}}.item-4{{/4}} {
|
553
|
+
{{5}}width{{/5}}: {{6}}8em{{/6}}; }
|
554
|
+
|
555
|
+
{{7}}.item-2{{/7}} {
|
556
|
+
{{8}}width{{/8}}: {{9}}4em{{/9}}; }
|
557
|
+
|
558
|
+
/*# sourceMappingURL=test.css.map */
|
559
|
+
CSS
|
560
|
+
end
|
561
|
+
|
562
|
+
def test_each_sourcemap_scss
|
563
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
564
|
+
@each $animal in puma, sea-slug, egret, salamander {
|
565
|
+
{{1}}{{4}}{{7}}{{10}}.#{$animal}-icon {{/1}}{{/4}}{{/7}}{{/10}}{
|
566
|
+
{{2}}{{5}}{{8}}{{11}}background-image{{/2}}{{/5}}{{/8}}{{/11}}: {{3}}{{6}}{{9}}{{12}}url('/images/#{$animal}.png'){{/3}}{{/6}}{{/9}}{{/12}};
|
567
|
+
}
|
568
|
+
}
|
569
|
+
SCSS
|
570
|
+
{{1}}.puma-icon{{/1}} {
|
571
|
+
{{2}}background-image{{/2}}: {{3}}url("/images/puma.png"){{/3}}; }
|
572
|
+
|
573
|
+
{{4}}.sea-slug-icon{{/4}} {
|
574
|
+
{{5}}background-image{{/5}}: {{6}}url("/images/sea-slug.png"){{/6}}; }
|
575
|
+
|
576
|
+
{{7}}.egret-icon{{/7}} {
|
577
|
+
{{8}}background-image{{/8}}: {{9}}url("/images/egret.png"){{/9}}; }
|
578
|
+
|
579
|
+
{{10}}.salamander-icon{{/10}} {
|
580
|
+
{{11}}background-image{{/11}}: {{12}}url("/images/salamander.png"){{/12}}; }
|
581
|
+
|
582
|
+
/*# sourceMappingURL=test.css.map */
|
583
|
+
CSS
|
584
|
+
end
|
585
|
+
|
586
|
+
def test_each_sourcemap_sass
|
587
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
588
|
+
@each $animal in puma, sea-slug, egret, salamander
|
589
|
+
{{1}}{{4}}{{7}}{{10}}.#{$animal}-icon{{/1}}{{/4}}{{/7}}{{/10}}
|
590
|
+
{{2}}{{5}}{{8}}{{11}}background-image{{/2}}{{/5}}{{/8}}{{/11}}: {{3}}{{6}}{{9}}{{12}}url('/images/#{$animal}.png'){{/3}}{{/6}}{{/9}}{{/12}}
|
591
|
+
SASS
|
592
|
+
{{1}}.puma-icon{{/1}} {
|
593
|
+
{{2}}background-image{{/2}}: {{3}}url("/images/puma.png"){{/3}}; }
|
594
|
+
|
595
|
+
{{4}}.sea-slug-icon{{/4}} {
|
596
|
+
{{5}}background-image{{/5}}: {{6}}url("/images/sea-slug.png"){{/6}}; }
|
597
|
+
|
598
|
+
{{7}}.egret-icon{{/7}} {
|
599
|
+
{{8}}background-image{{/8}}: {{9}}url("/images/egret.png"){{/9}}; }
|
600
|
+
|
601
|
+
{{10}}.salamander-icon{{/10}} {
|
602
|
+
{{11}}background-image{{/11}}: {{12}}url("/images/salamander.png"){{/12}}; }
|
603
|
+
|
604
|
+
/*# sourceMappingURL=test.css.map */
|
605
|
+
CSS
|
606
|
+
end
|
607
|
+
|
608
|
+
def test_mixin_sourcemap_scss
|
609
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
610
|
+
@mixin large-text {
|
611
|
+
font: {
|
612
|
+
{{2}}size{{/2}}: {{3}}20px{{/3}};
|
613
|
+
{{4}}weight{{/4}}: {{5}}bold{{/5}};
|
614
|
+
}
|
615
|
+
{{6}}color{{/6}}: {{7}}#ff0000{{/7}};
|
616
|
+
}
|
617
|
+
|
618
|
+
{{1}}.page-title {{/1}}{
|
619
|
+
@include large-text;
|
620
|
+
{{8}}padding{{/8}}: {{9}}4px{{/9}};
|
621
|
+
}
|
622
|
+
|
623
|
+
@mixin dashed-border($color, $width: {{14}}1in{{/14}}) {
|
624
|
+
border: {
|
625
|
+
{{11}}{{18}}color{{/11}}{{/18}}: $color;
|
626
|
+
{{13}}{{20}}width{{/13}}{{/20}}: $width;
|
627
|
+
{{15}}{{22}}style{{/15}}{{/22}}: {{16}}{{23}}dashed{{/16}}{{/23}};
|
628
|
+
}
|
629
|
+
}
|
630
|
+
|
631
|
+
{{10}}p {{/10}}{ @include dashed-border({{12}}blue{{/12}}); }
|
632
|
+
{{17}}h1 {{/17}}{ @include dashed-border({{19}}blue{{/19}}, {{21}}2in{{/21}}); }
|
633
|
+
|
634
|
+
@mixin box-shadow($shadows...) {
|
635
|
+
{{25}}-moz-box-shadow{{/25}}: {{26}}$shadows{{/26}};
|
636
|
+
{{27}}-webkit-box-shadow{{/27}}: {{28}}$shadows{{/28}};
|
637
|
+
{{29}}box-shadow{{/29}}: {{30}}$shadows{{/30}};
|
638
|
+
}
|
639
|
+
|
640
|
+
{{24}}.shadows {{/24}}{
|
641
|
+
@include box-shadow(0px 4px 5px #666, 2px 6px 10px #999);
|
642
|
+
}
|
643
|
+
SCSS
|
644
|
+
{{1}}.page-title{{/1}} {
|
645
|
+
{{2}}font-size{{/2}}: {{3}}20px{{/3}};
|
646
|
+
{{4}}font-weight{{/4}}: {{5}}bold{{/5}};
|
647
|
+
{{6}}color{{/6}}: {{7}}#ff0000{{/7}};
|
648
|
+
{{8}}padding{{/8}}: {{9}}4px{{/9}}; }
|
649
|
+
|
650
|
+
{{10}}p{{/10}} {
|
651
|
+
{{11}}border-color{{/11}}: {{12}}blue{{/12}};
|
652
|
+
{{13}}border-width{{/13}}: {{14}}1in{{/14}};
|
653
|
+
{{15}}border-style{{/15}}: {{16}}dashed{{/16}}; }
|
654
|
+
|
655
|
+
{{17}}h1{{/17}} {
|
656
|
+
{{18}}border-color{{/18}}: {{19}}blue{{/19}};
|
657
|
+
{{20}}border-width{{/20}}: {{21}}2in{{/21}};
|
658
|
+
{{22}}border-style{{/22}}: {{23}}dashed{{/23}}; }
|
659
|
+
|
660
|
+
{{24}}.shadows{{/24}} {
|
661
|
+
{{25}}-moz-box-shadow{{/25}}: {{26}}0px 4px 5px #666, 2px 6px 10px #999{{/26}};
|
662
|
+
{{27}}-webkit-box-shadow{{/27}}: {{28}}0px 4px 5px #666, 2px 6px 10px #999{{/28}};
|
663
|
+
{{29}}box-shadow{{/29}}: {{30}}0px 4px 5px #666, 2px 6px 10px #999{{/30}}; }
|
664
|
+
|
665
|
+
/*# sourceMappingURL=test.css.map */
|
666
|
+
CSS
|
667
|
+
end
|
668
|
+
|
669
|
+
def test_mixin_sourcemap_sass
|
670
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
671
|
+
=large-text
|
672
|
+
:font
|
673
|
+
{{2}}size{{/2}}: {{3}}20px{{/3}}
|
674
|
+
{{4}}weight{{/4}}: {{5}}bold{{/5}}
|
675
|
+
{{6}}color{{/6}}: {{7}}#ff0000{{/7}}
|
676
|
+
|
677
|
+
{{1}}.page-title{{/1}}
|
678
|
+
+large-text
|
679
|
+
{{8}}padding{{/8}}: {{9}}4px{{/9}}
|
680
|
+
|
681
|
+
=dashed-border($color, $width: {{14}}1in{{/14}})
|
682
|
+
border:
|
683
|
+
{{11}}{{18}}color{{/11}}{{/18}}: $color
|
684
|
+
{{13}}{{20}}width{{/13}}{{/20}}: $width
|
685
|
+
{{15}}{{22}}style{{/15}}{{/22}}: {{16}}{{23}}dashed{{/16}}{{/23}}
|
686
|
+
|
687
|
+
{{10}}p{{/10}}
|
688
|
+
+dashed-border({{12}}blue{{/12}})
|
689
|
+
|
690
|
+
{{17}}h1{{/17}}
|
691
|
+
+dashed-border({{19}}blue{{/19}}, {{21}}2in{{/21}})
|
692
|
+
|
693
|
+
=box-shadow($shadows...)
|
694
|
+
{{25}}-moz-box-shadow{{/25}}: {{26}}$shadows{{/26}}
|
695
|
+
{{27}}-webkit-box-shadow{{/27}}: {{28}}$shadows{{/28}}
|
696
|
+
{{29}}box-shadow{{/29}}: {{30}}$shadows{{/30}}
|
697
|
+
|
698
|
+
{{24}}.shadows{{/24}}
|
699
|
+
+box-shadow(0px 4px 5px #666, 2px 6px 10px #999)
|
700
|
+
SASS
|
701
|
+
{{1}}.page-title{{/1}} {
|
702
|
+
{{2}}font-size{{/2}}: {{3}}20px{{/3}};
|
703
|
+
{{4}}font-weight{{/4}}: {{5}}bold{{/5}};
|
704
|
+
{{6}}color{{/6}}: {{7}}#ff0000{{/7}};
|
705
|
+
{{8}}padding{{/8}}: {{9}}4px{{/9}}; }
|
706
|
+
|
707
|
+
{{10}}p{{/10}} {
|
708
|
+
{{11}}border-color{{/11}}: {{12}}blue{{/12}};
|
709
|
+
{{13}}border-width{{/13}}: {{14}}1in{{/14}};
|
710
|
+
{{15}}border-style{{/15}}: {{16}}dashed{{/16}}; }
|
711
|
+
|
712
|
+
{{17}}h1{{/17}} {
|
713
|
+
{{18}}border-color{{/18}}: {{19}}blue{{/19}};
|
714
|
+
{{20}}border-width{{/20}}: {{21}}2in{{/21}};
|
715
|
+
{{22}}border-style{{/22}}: {{23}}dashed{{/23}}; }
|
716
|
+
|
717
|
+
{{24}}.shadows{{/24}} {
|
718
|
+
{{25}}-moz-box-shadow{{/25}}: {{26}}0px 4px 5px #666, 2px 6px 10px #999{{/26}};
|
719
|
+
{{27}}-webkit-box-shadow{{/27}}: {{28}}0px 4px 5px #666, 2px 6px 10px #999{{/28}};
|
720
|
+
{{29}}box-shadow{{/29}}: {{30}}0px 4px 5px #666, 2px 6px 10px #999{{/30}}; }
|
721
|
+
|
722
|
+
/*# sourceMappingURL=test.css.map */
|
723
|
+
CSS
|
724
|
+
end
|
725
|
+
|
726
|
+
def test_function_sourcemap_scss
|
727
|
+
assert_parses_with_mapping <<'SCSS', <<'CSS'
|
728
|
+
$grid-width: 20px;
|
729
|
+
$gutter-width: 5px;
|
730
|
+
|
731
|
+
@function grid-width($n) {
|
732
|
+
@return $n * $grid-width + ($n - 1) * $gutter-width;
|
733
|
+
}
|
734
|
+
{{1}}sidebar {{/1}}{ {{2}}width{{/2}}: {{3}}grid-width(5){{/3}}; }
|
735
|
+
SCSS
|
736
|
+
{{1}}sidebar{{/1}} {
|
737
|
+
{{2}}width{{/2}}: {{3}}120px{{/3}}; }
|
738
|
+
|
739
|
+
/*# sourceMappingURL=test.css.map */
|
740
|
+
CSS
|
741
|
+
end
|
742
|
+
|
743
|
+
def test_function_sourcemap_sass
|
744
|
+
assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
|
745
|
+
$grid-width: 20px
|
746
|
+
$gutter-width: 5px
|
747
|
+
|
748
|
+
@function grid-width($n)
|
749
|
+
@return $n * $grid-width + ($n - 1) * $gutter-width
|
750
|
+
|
751
|
+
{{1}}sidebar{{/1}}
|
752
|
+
{{2}}width{{/2}}: {{3}}grid-width(5){{/3}}
|
753
|
+
SASS
|
754
|
+
{{1}}sidebar{{/1}} {
|
755
|
+
{{2}}width{{/2}}: {{3}}120px{{/3}}; }
|
756
|
+
|
757
|
+
/*# sourceMappingURL=test.css.map */
|
758
|
+
CSS
|
759
|
+
end
|
760
|
+
|
761
|
+
# Regression tests
|
762
|
+
|
763
|
+
def test_properties_sass
|
764
|
+
assert_parses_with_mapping <<SASS, <<CSS, :syntax => :sass
|
765
|
+
{{1}}.foo{{/1}}
|
766
|
+
:{{2}}name{{/2}} {{3}}value{{/3}}
|
767
|
+
{{4}}name{{/4}}: {{5}}value{{/5}}
|
768
|
+
:{{6}}name{{/6}} {{7}}value{{/7}}
|
769
|
+
{{8}}name{{/8}}: {{9}}value{{/9}}
|
770
|
+
SASS
|
771
|
+
{{1}}.foo{{/1}} {
|
772
|
+
{{2}}name{{/2}}: {{3}}value{{/3}};
|
773
|
+
{{4}}name{{/4}}: {{5}}value{{/5}};
|
774
|
+
{{6}}name{{/6}}: {{7}}value{{/7}};
|
775
|
+
{{8}}name{{/8}}: {{9}}value{{/9}}; }
|
776
|
+
|
777
|
+
/*# sourceMappingURL=test.css.map */
|
778
|
+
CSS
|
779
|
+
end
|
780
|
+
|
781
|
+
def test_multiline_script_scss
|
782
|
+
assert_parses_with_mapping <<SCSS, <<CSS, :syntax => :scss
|
783
|
+
$var: {{3}}foo +
|
784
|
+
bar{{/3}}; {{1}}x {{/1}}{ {{2}}y{{/2}}: $var }
|
785
|
+
SCSS
|
786
|
+
{{1}}x{{/1}} {
|
787
|
+
{{2}}y{{/2}}: {{3}}foobar{{/3}}; }
|
788
|
+
|
789
|
+
/*# sourceMappingURL=test.css.map */
|
790
|
+
CSS
|
791
|
+
end
|
792
|
+
|
793
|
+
def test_multiline_interpolation_source_range
|
794
|
+
engine = Sass::Engine.new(<<-SCSS, :cache => false, :syntax => :scss)
|
795
|
+
p {
|
796
|
+
filter: progid:DXImageTransform(
|
797
|
+
'\#{123}');
|
798
|
+
}
|
799
|
+
SCSS
|
800
|
+
|
801
|
+
interpolated = engine.to_tree.children.
|
802
|
+
first.children.
|
803
|
+
first.value.children[1]
|
804
|
+
assert_equal "123", interpolated.to_sass
|
805
|
+
range = interpolated.source_range
|
806
|
+
assert_equal 3, range.start_pos.line
|
807
|
+
assert_equal 14, range.start_pos.offset
|
808
|
+
assert_equal 3, range.end_pos.line
|
809
|
+
assert_equal 17, range.end_pos.offset
|
810
|
+
end
|
811
|
+
|
812
|
+
def test_list_source_range
|
813
|
+
engine = Sass::Engine.new(<<-SCSS, :cache => false, :syntax => :scss)
|
814
|
+
@each $a, $b in (1, 2), (2, 4), (3, 6) { }
|
815
|
+
SCSS
|
816
|
+
list = engine.to_tree.children.first.list
|
817
|
+
assert_equal 1, list.source_range.start_pos.line
|
818
|
+
assert_equal 1, list.source_range.end_pos.line
|
819
|
+
assert_equal 16, list.source_range.start_pos.offset
|
820
|
+
assert_equal 38, list.source_range.end_pos.offset
|
821
|
+
end
|
822
|
+
|
823
|
+
def test_sources_array_is_uri_escaped
|
824
|
+
map = Sass::Source::Map.new
|
825
|
+
importer = Sass::Importers::Filesystem.new('.')
|
826
|
+
map.add(
|
827
|
+
Sass::Source::Range.new(
|
828
|
+
Sass::Source::Position.new(0, 0),
|
829
|
+
Sass::Source::Position.new(0, 10),
|
830
|
+
'source file.scss',
|
831
|
+
importer),
|
832
|
+
Sass::Source::Range.new(
|
833
|
+
Sass::Source::Position.new(0, 0),
|
834
|
+
Sass::Source::Position.new(0, 10),
|
835
|
+
nil, nil))
|
836
|
+
|
837
|
+
json = map.to_json(:css_path => 'output file.css', :sourcemap_path => 'output file.css.map')
|
838
|
+
assert_equal json, <<JSON.rstrip
|
839
|
+
{
|
840
|
+
"version": 3,
|
841
|
+
"mappings": "DADD,UAAU",
|
842
|
+
"sources": ["source%20file.scss"],
|
843
|
+
"names": [],
|
844
|
+
"file": "output%20file.css"
|
845
|
+
}
|
846
|
+
JSON
|
847
|
+
end
|
848
|
+
|
849
|
+
def test_scss_comment_source_range
|
850
|
+
assert_parses_with_mapping <<SCSS, <<CSS, :syntax => :scss
|
851
|
+
$var: val; {{1}}/* text */{{/1}}
|
852
|
+
|
853
|
+
{{2}}/* multiline
|
854
|
+
comment */{{/2}}
|
855
|
+
SCSS
|
856
|
+
{{1}}/* text */{{/1}}
|
857
|
+
{{2}}/* multiline
|
858
|
+
comment */{{/2}}
|
859
|
+
|
860
|
+
/*# sourceMappingURL=test.css.map */
|
861
|
+
CSS
|
862
|
+
end
|
863
|
+
|
864
|
+
def test_sass_comment_source_range
|
865
|
+
assert_parses_with_mapping <<SASS, <<CSS, :syntax => :sass
|
866
|
+
{{1}}body{{/1}}
|
867
|
+
{{2}}/* text */{{/2}}
|
868
|
+
|
869
|
+
{{3}}/* multiline
|
870
|
+
comment */{{/3}}
|
871
|
+
SASS
|
872
|
+
{{1}}body{{/1}} {
|
873
|
+
{{2}}/* text */{{/2}} }
|
874
|
+
|
875
|
+
{{3}}/* multiline
|
876
|
+
* comment */{{/3}}
|
877
|
+
|
878
|
+
/*# sourceMappingURL=test.css.map */
|
879
|
+
CSS
|
880
|
+
end
|
881
|
+
|
882
|
+
def test_scss_comment_interpolation_source_range
|
883
|
+
assert_parses_with_mapping <<SCSS, <<CSS, :syntax => :scss
|
884
|
+
$var: 2; {{1}}/* two \#{$var} and four \#{2 * $var} */{{/1}}
|
885
|
+
|
886
|
+
{{2}}/* multiline
|
887
|
+
comment \#{ 2 + 2 } and \#{ 2 +
|
888
|
+
2 } */{{/2}}
|
889
|
+
SCSS
|
890
|
+
{{1}}/* two 2 and four 4 */{{/1}}
|
891
|
+
{{2}}/* multiline
|
892
|
+
comment 4 and 4 */{{/2}}
|
893
|
+
|
894
|
+
/*# sourceMappingURL=test.css.map */
|
895
|
+
CSS
|
896
|
+
end
|
897
|
+
|
898
|
+
def test_sass_comment_interpolation_source_range
|
899
|
+
assert_parses_with_mapping <<SASS, <<CSS, :syntax => :sass
|
900
|
+
$var: 2
|
901
|
+
{{1}}/* two \#{$var} and four \#{2 * $var} */{{/1}}
|
902
|
+
|
903
|
+
{{2}}/* multiline
|
904
|
+
comment \#{ 2 + 2 } and \#{ 2 +
|
905
|
+
2 } */{{/2}}
|
906
|
+
SASS
|
907
|
+
{{1}}/* two 2 and four 4 */{{/1}}
|
908
|
+
{{2}}/* multiline
|
909
|
+
* comment 4 and 4 */{{/2}}
|
910
|
+
|
911
|
+
/*# sourceMappingURL=test.css.map */
|
912
|
+
CSS
|
913
|
+
end
|
914
|
+
|
915
|
+
private
|
916
|
+
|
917
|
+
ANNOTATION_REGEX = /\{\{(\/?)([^}]+)\}\}/
|
918
|
+
|
919
|
+
def build_ranges(text, file_name = nil)
|
920
|
+
ranges = Hash.new {|h, k| h[k] = []}
|
921
|
+
start_positions = {}
|
922
|
+
text.split("\n").each_with_index do |line_text, line|
|
923
|
+
line += 1 # lines shoud be 1-based
|
924
|
+
while (match = line_text.match(ANNOTATION_REGEX))
|
925
|
+
closing = !match[1].empty?
|
926
|
+
name = match[2]
|
927
|
+
match_offsets = match.offset(0)
|
928
|
+
offset = match_offsets[0] + 1 # Offsets are 1-based in source maps.
|
929
|
+
assert(!closing || start_positions[name], "Closing annotation #{name} found before opening one.")
|
930
|
+
position = Sass::Source::Position.new(line, offset)
|
931
|
+
if closing
|
932
|
+
ranges[name] << Sass::Source::Range.new(
|
933
|
+
start_positions[name], position, file_name,
|
934
|
+
Sass::Importers::Filesystem.new('.'))
|
935
|
+
start_positions.delete name
|
936
|
+
else
|
937
|
+
assert(!start_positions[name], "Overlapping range annotation #{name} encountered on line #{line}")
|
938
|
+
start_positions[name] = position
|
939
|
+
end
|
940
|
+
line_text.slice!(match_offsets[0], match_offsets[1] - match_offsets[0])
|
941
|
+
end
|
942
|
+
end
|
943
|
+
ranges
|
944
|
+
end
|
945
|
+
|
946
|
+
def build_mapping_from_annotations(source, css, source_file_name)
|
947
|
+
source_ranges = build_ranges(source, source_file_name)
|
948
|
+
target_ranges = build_ranges(css)
|
949
|
+
map = Sass::Source::Map.new
|
950
|
+
source_ranges.map do |(name, sources)|
|
951
|
+
assert(sources.length == 1, "#{sources.length} source ranges encountered for annotation #{name}")
|
952
|
+
assert(target_ranges[name], "No target ranges for annotation #{name}")
|
953
|
+
target_ranges[name].map {|target_range| [sources.first, target_range]}
|
954
|
+
end.
|
955
|
+
flatten(1).
|
956
|
+
sort_by {|(_, target)| [target.start_pos.line, target.start_pos.offset]}.
|
957
|
+
each {|(s2, target)| map.add(s2, target)}
|
958
|
+
map
|
959
|
+
end
|
960
|
+
|
961
|
+
def assert_parses_with_mapping(source, css, options={})
|
962
|
+
options[:syntax] ||= :scss
|
963
|
+
input_filename = filename_for_test(options[:syntax])
|
964
|
+
mapping = build_mapping_from_annotations(source, css, input_filename)
|
965
|
+
source.gsub!(ANNOTATION_REGEX, "")
|
966
|
+
css.gsub!(ANNOTATION_REGEX, "")
|
967
|
+
rendered, sourcemap = render_with_sourcemap(source, options)
|
968
|
+
assert_equal css.rstrip, rendered.rstrip
|
969
|
+
assert_sourcemaps_equal source, css, mapping, sourcemap
|
970
|
+
end
|
971
|
+
|
972
|
+
def assert_positions_equal(expected, actual, lines, message = nil)
|
973
|
+
prefix = message ? message + ": " : ""
|
974
|
+
expected_location = lines[expected.line - 1] + "\n" + ("-" * (expected.offset - 1)) + "^"
|
975
|
+
actual_location = lines[actual.line - 1] + "\n" + ("-" * (actual.offset - 1)) + "^"
|
976
|
+
assert_equal(expected.line, actual.line, prefix +
|
977
|
+
"Expected #{expected.inspect}\n" +
|
978
|
+
expected_location + "\n\n" +
|
979
|
+
"But was #{actual.inspect}\n" +
|
980
|
+
actual_location)
|
981
|
+
assert_equal(expected.offset, actual.offset, prefix +
|
982
|
+
"Expected #{expected.inspect}\n" +
|
983
|
+
expected_location + "\n\n" +
|
984
|
+
"But was #{actual.inspect}\n" +
|
985
|
+
actual_location)
|
986
|
+
end
|
987
|
+
|
988
|
+
def assert_ranges_equal(expected, actual, lines, prefix)
|
989
|
+
assert_positions_equal(expected.start_pos, actual.start_pos, lines, prefix + " start position")
|
990
|
+
assert_positions_equal(expected.end_pos, actual.end_pos, lines, prefix + " end position")
|
991
|
+
assert_equal(expected.file, actual.file)
|
992
|
+
end
|
993
|
+
|
994
|
+
def assert_sourcemaps_equal(source, css, expected, actual)
|
995
|
+
assert_equal(expected.data.length, actual.data.length, <<MESSAGE)
|
996
|
+
Wrong number of mappings. Expected:
|
997
|
+
#{dump_sourcemap_as_expectation(source, css, expected).gsub(/^/, '| ')}
|
998
|
+
|
999
|
+
Actual:
|
1000
|
+
#{dump_sourcemap_as_expectation(source, css, actual).gsub(/^/, '| ')}
|
1001
|
+
MESSAGE
|
1002
|
+
source_lines = source.split("\n")
|
1003
|
+
css_lines = css.split("\n")
|
1004
|
+
expected.data.zip(actual.data) do |expected_mapping, actual_mapping|
|
1005
|
+
assert_ranges_equal(expected_mapping.input, actual_mapping.input, source_lines, "Input")
|
1006
|
+
assert_ranges_equal(expected_mapping.output, actual_mapping.output, css_lines, "Output")
|
1007
|
+
end
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
def assert_parses_with_sourcemap(source, css, sourcemap_json, options={})
|
1011
|
+
rendered, sourcemap = render_with_sourcemap(source, options)
|
1012
|
+
css_path = options[:output] || "test.css"
|
1013
|
+
sourcemap_path = Sass::Util.sourcemap_name(css_path)
|
1014
|
+
rendered_json = sourcemap.to_json(:css_path => css_path, :sourcemap_path => sourcemap_path, :type => options[:sourcemap])
|
1015
|
+
|
1016
|
+
assert_equal css.rstrip, rendered.rstrip
|
1017
|
+
assert_equal sourcemap_json.rstrip, rendered_json
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
def render_with_sourcemap(source, options={})
|
1021
|
+
options[:syntax] ||= :scss
|
1022
|
+
munge_filename options
|
1023
|
+
engine = Sass::Engine.new(source, options)
|
1024
|
+
engine.options[:cache] = false
|
1025
|
+
sourcemap_path = Sass::Util.sourcemap_name(options[:output] || "test.css")
|
1026
|
+
engine.render_with_sourcemap File.basename(sourcemap_path)
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
def dump_sourcemap_as_expectation(source, css, sourcemap)
|
1030
|
+
mappings_to_annotations(source, sourcemap.data.map {|d| d.input}) + "\n\n" +
|
1031
|
+
"=" * 20 + " maps to:\n\n" +
|
1032
|
+
mappings_to_annotations(css, sourcemap.data.map {|d| d.output})
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
def mappings_to_annotations(source, ranges)
|
1036
|
+
additional_offsets = Hash.new(0)
|
1037
|
+
lines = source.split("\n")
|
1038
|
+
|
1039
|
+
add_annotation = lambda do |pos, str|
|
1040
|
+
line_num = pos.line - 1
|
1041
|
+
line = lines[line_num]
|
1042
|
+
offset = pos.offset + additional_offsets[line_num] - 1
|
1043
|
+
line << " " * (offset - line.length) if offset > line.length
|
1044
|
+
line.insert(offset, str)
|
1045
|
+
additional_offsets[line_num] += str.length
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
ranges.each_with_index do |range, i|
|
1049
|
+
add_annotation[range.start_pos, "{{#{i + 1}}}"]
|
1050
|
+
add_annotation[range.end_pos, "{{/#{i + 1}}}"]
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
return lines.join("\n")
|
1054
|
+
end
|
1055
|
+
end
|