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,18 @@
|
|
1
|
+
module Sass
|
2
|
+
module Tree
|
3
|
+
# A dynamic node representing a Sass `@warn` statement.
|
4
|
+
#
|
5
|
+
# @see Sass::Tree
|
6
|
+
class WarnNode < Node
|
7
|
+
# The expression to print.
|
8
|
+
# @return [Script::Tree::Node]
|
9
|
+
attr_accessor :expr
|
10
|
+
|
11
|
+
# @param expr [Script::Tree::Node] The expression to print
|
12
|
+
def initialize(expr)
|
13
|
+
@expr = expr
|
14
|
+
super()
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'sass/tree/node'
|
2
|
+
|
3
|
+
module Sass::Tree
|
4
|
+
# A dynamic node representing a Sass `@while` loop.
|
5
|
+
#
|
6
|
+
# @see Sass::Tree
|
7
|
+
class WhileNode < Node
|
8
|
+
# The parse tree for the continuation expression.
|
9
|
+
# @return [Script::Tree::Node]
|
10
|
+
attr_accessor :expr
|
11
|
+
|
12
|
+
# @param expr [Script::Tree::Node] See \{#expr}
|
13
|
+
def initialize(expr)
|
14
|
+
@expr = expr
|
15
|
+
super()
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,1350 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'erb'
|
3
|
+
require 'set'
|
4
|
+
require 'enumerator'
|
5
|
+
require 'stringio'
|
6
|
+
require 'rbconfig'
|
7
|
+
require 'uri'
|
8
|
+
require 'thread'
|
9
|
+
require 'pathname'
|
10
|
+
|
11
|
+
require 'sass/root'
|
12
|
+
require 'sass/util/subset_map'
|
13
|
+
|
14
|
+
module Sass
|
15
|
+
# A module containing various useful functions.
|
16
|
+
# @comment
|
17
|
+
# rubocop:disable ModuleLength
|
18
|
+
module Util
|
19
|
+
extend self
|
20
|
+
|
21
|
+
# An array of ints representing the Ruby version number.
|
22
|
+
# @api public
|
23
|
+
RUBY_VERSION_COMPONENTS = RUBY_VERSION.split(".").map {|s| s.to_i}
|
24
|
+
|
25
|
+
# The Ruby engine we're running under. Defaults to `"ruby"`
|
26
|
+
# if the top-level constant is undefined.
|
27
|
+
# @api public
|
28
|
+
RUBY_ENGINE = defined?(::RUBY_ENGINE) ? ::RUBY_ENGINE : "ruby"
|
29
|
+
|
30
|
+
# Returns the path of a file relative to the Sass root directory.
|
31
|
+
#
|
32
|
+
# @param file [String] The filename relative to the Sass root
|
33
|
+
# @return [String] The filename relative to the the working directory
|
34
|
+
def scope(file)
|
35
|
+
File.join(Sass::ROOT_DIR, file)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Converts an array of `[key, value]` pairs to a hash.
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# to_hash([[:foo, "bar"], [:baz, "bang"]])
|
42
|
+
# #=> {:foo => "bar", :baz => "bang"}
|
43
|
+
# @param arr [Array<(Object, Object)>] An array of pairs
|
44
|
+
# @return [Hash] A hash
|
45
|
+
def to_hash(arr)
|
46
|
+
ordered_hash(*arr.compact)
|
47
|
+
end
|
48
|
+
|
49
|
+
# Maps the keys in a hash according to a block.
|
50
|
+
#
|
51
|
+
# @example
|
52
|
+
# map_keys({:foo => "bar", :baz => "bang"}) {|k| k.to_s}
|
53
|
+
# #=> {"foo" => "bar", "baz" => "bang"}
|
54
|
+
# @param hash [Hash] The hash to map
|
55
|
+
# @yield [key] A block in which the keys are transformed
|
56
|
+
# @yieldparam key [Object] The key that should be mapped
|
57
|
+
# @yieldreturn [Object] The new value for the key
|
58
|
+
# @return [Hash] The mapped hash
|
59
|
+
# @see #map_vals
|
60
|
+
# @see #map_hash
|
61
|
+
def map_keys(hash)
|
62
|
+
map_hash(hash) {|k, v| [yield(k), v]}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Maps the values in a hash according to a block.
|
66
|
+
#
|
67
|
+
# @example
|
68
|
+
# map_values({:foo => "bar", :baz => "bang"}) {|v| v.to_sym}
|
69
|
+
# #=> {:foo => :bar, :baz => :bang}
|
70
|
+
# @param hash [Hash] The hash to map
|
71
|
+
# @yield [value] A block in which the values are transformed
|
72
|
+
# @yieldparam value [Object] The value that should be mapped
|
73
|
+
# @yieldreturn [Object] The new value for the value
|
74
|
+
# @return [Hash] The mapped hash
|
75
|
+
# @see #map_keys
|
76
|
+
# @see #map_hash
|
77
|
+
def map_vals(hash)
|
78
|
+
# We don't delegate to map_hash for performance here
|
79
|
+
# because map_hash does more than is necessary.
|
80
|
+
rv = hash.class.new
|
81
|
+
hash = hash.as_stored if hash.is_a?(NormalizedMap)
|
82
|
+
hash.each do |k, v|
|
83
|
+
rv[k] = yield(v)
|
84
|
+
end
|
85
|
+
rv
|
86
|
+
end
|
87
|
+
|
88
|
+
# Maps the key-value pairs of a hash according to a block.
|
89
|
+
#
|
90
|
+
# @example
|
91
|
+
# map_hash({:foo => "bar", :baz => "bang"}) {|k, v| [k.to_s, v.to_sym]}
|
92
|
+
# #=> {"foo" => :bar, "baz" => :bang}
|
93
|
+
# @param hash [Hash] The hash to map
|
94
|
+
# @yield [key, value] A block in which the key-value pairs are transformed
|
95
|
+
# @yieldparam [key] The hash key
|
96
|
+
# @yieldparam [value] The hash value
|
97
|
+
# @yieldreturn [(Object, Object)] The new value for the `[key, value]` pair
|
98
|
+
# @return [Hash] The mapped hash
|
99
|
+
# @see #map_keys
|
100
|
+
# @see #map_vals
|
101
|
+
def map_hash(hash)
|
102
|
+
# Copy and modify is more performant than mapping to an array and using
|
103
|
+
# to_hash on the result.
|
104
|
+
rv = hash.class.new
|
105
|
+
hash.each do |k, v|
|
106
|
+
new_key, new_value = yield(k, v)
|
107
|
+
new_key = hash.denormalize(new_key) if hash.is_a?(NormalizedMap) && new_key == k
|
108
|
+
rv[new_key] = new_value
|
109
|
+
end
|
110
|
+
rv
|
111
|
+
end
|
112
|
+
|
113
|
+
# Computes the powerset of the given array.
|
114
|
+
# This is the set of all subsets of the array.
|
115
|
+
#
|
116
|
+
# @example
|
117
|
+
# powerset([1, 2, 3]) #=>
|
118
|
+
# Set[Set[], Set[1], Set[2], Set[3], Set[1, 2], Set[2, 3], Set[1, 3], Set[1, 2, 3]]
|
119
|
+
# @param arr [Enumerable]
|
120
|
+
# @return [Set<Set>] The subsets of `arr`
|
121
|
+
def powerset(arr)
|
122
|
+
arr.inject([Set.new].to_set) do |powerset, el|
|
123
|
+
new_powerset = Set.new
|
124
|
+
powerset.each do |subset|
|
125
|
+
new_powerset << subset
|
126
|
+
new_powerset << subset + [el]
|
127
|
+
end
|
128
|
+
new_powerset
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# Restricts a number to falling within a given range.
|
133
|
+
# Returns the number if it falls within the range,
|
134
|
+
# or the closest value in the range if it doesn't.
|
135
|
+
#
|
136
|
+
# @param value [Numeric]
|
137
|
+
# @param range [Range<Numeric>]
|
138
|
+
# @return [Numeric]
|
139
|
+
def restrict(value, range)
|
140
|
+
[[value, range.first].max, range.last].min
|
141
|
+
end
|
142
|
+
|
143
|
+
# Like [Fixnum.round], but leaves rooms for slight floating-point
|
144
|
+
# differences.
|
145
|
+
#
|
146
|
+
# @param value [Numeric]
|
147
|
+
# @return [Numeric]
|
148
|
+
def round(value)
|
149
|
+
# If the number is within epsilon of X.5, round up (or down for negative
|
150
|
+
# numbers).
|
151
|
+
return value.round if (value % 1) - 0.5 <= -1 * Script::Value::Number.epsilon
|
152
|
+
value > 0 ? value.ceil : value.floor
|
153
|
+
end
|
154
|
+
|
155
|
+
# Concatenates all strings that are adjacent in an array,
|
156
|
+
# while leaving other elements as they are.
|
157
|
+
#
|
158
|
+
# @example
|
159
|
+
# merge_adjacent_strings([1, "foo", "bar", 2, "baz"])
|
160
|
+
# #=> [1, "foobar", 2, "baz"]
|
161
|
+
# @param arr [Array]
|
162
|
+
# @return [Array] The enumerable with strings merged
|
163
|
+
def merge_adjacent_strings(arr)
|
164
|
+
# Optimize for the common case of one element
|
165
|
+
return arr if arr.size < 2
|
166
|
+
arr.inject([]) do |a, e|
|
167
|
+
if e.is_a?(String)
|
168
|
+
if a.last.is_a?(String)
|
169
|
+
a.last << e
|
170
|
+
else
|
171
|
+
a << e.dup
|
172
|
+
end
|
173
|
+
else
|
174
|
+
a << e
|
175
|
+
end
|
176
|
+
a
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Non-destructively replaces all occurrences of a subsequence in an array
|
181
|
+
# with another subsequence.
|
182
|
+
#
|
183
|
+
# @example
|
184
|
+
# replace_subseq([1, 2, 3, 4, 5], [2, 3], [:a, :b])
|
185
|
+
# #=> [1, :a, :b, 4, 5]
|
186
|
+
#
|
187
|
+
# @param arr [Array] The array whose subsequences will be replaced.
|
188
|
+
# @param subseq [Array] The subsequence to find and replace.
|
189
|
+
# @param replacement [Array] The sequence that `subseq` will be replaced with.
|
190
|
+
# @return [Array] `arr` with `subseq` replaced with `replacement`.
|
191
|
+
def replace_subseq(arr, subseq, replacement)
|
192
|
+
new = []
|
193
|
+
matched = []
|
194
|
+
i = 0
|
195
|
+
arr.each do |elem|
|
196
|
+
if elem != subseq[i]
|
197
|
+
new.push(*matched)
|
198
|
+
matched = []
|
199
|
+
i = 0
|
200
|
+
new << elem
|
201
|
+
next
|
202
|
+
end
|
203
|
+
|
204
|
+
if i == subseq.length - 1
|
205
|
+
matched = []
|
206
|
+
i = 0
|
207
|
+
new.push(*replacement)
|
208
|
+
else
|
209
|
+
matched << elem
|
210
|
+
i += 1
|
211
|
+
end
|
212
|
+
end
|
213
|
+
new.push(*matched)
|
214
|
+
new
|
215
|
+
end
|
216
|
+
|
217
|
+
# Intersperses a value in an enumerable, as would be done with `Array#join`
|
218
|
+
# but without concatenating the array together afterwards.
|
219
|
+
#
|
220
|
+
# @param enum [Enumerable]
|
221
|
+
# @param val
|
222
|
+
# @return [Array]
|
223
|
+
def intersperse(enum, val)
|
224
|
+
enum.inject([]) {|a, e| a << e << val}[0...-1]
|
225
|
+
end
|
226
|
+
|
227
|
+
def slice_by(enum)
|
228
|
+
results = []
|
229
|
+
enum.each do |value|
|
230
|
+
key = yield(value)
|
231
|
+
if !results.empty? && results.last.first == key
|
232
|
+
results.last.last << value
|
233
|
+
else
|
234
|
+
results << [key, [value]]
|
235
|
+
end
|
236
|
+
end
|
237
|
+
results
|
238
|
+
end
|
239
|
+
|
240
|
+
# Substitutes a sub-array of one array with another sub-array.
|
241
|
+
#
|
242
|
+
# @param ary [Array] The array in which to make the substitution
|
243
|
+
# @param from [Array] The sequence of elements to replace with `to`
|
244
|
+
# @param to [Array] The sequence of elements to replace `from` with
|
245
|
+
def substitute(ary, from, to)
|
246
|
+
res = ary.dup
|
247
|
+
i = 0
|
248
|
+
while i < res.size
|
249
|
+
if res[i...i + from.size] == from
|
250
|
+
res[i...i + from.size] = to
|
251
|
+
end
|
252
|
+
i += 1
|
253
|
+
end
|
254
|
+
res
|
255
|
+
end
|
256
|
+
|
257
|
+
# Destructively strips whitespace from the beginning and end
|
258
|
+
# of the first and last elements, respectively,
|
259
|
+
# in the array (if those elements are strings).
|
260
|
+
#
|
261
|
+
# @param arr [Array]
|
262
|
+
# @return [Array] `arr`
|
263
|
+
def strip_string_array(arr)
|
264
|
+
arr.first.lstrip! if arr.first.is_a?(String)
|
265
|
+
arr.last.rstrip! if arr.last.is_a?(String)
|
266
|
+
arr
|
267
|
+
end
|
268
|
+
|
269
|
+
# Return an array of all possible paths through the given arrays.
|
270
|
+
#
|
271
|
+
# @param arrs [Array<Array>]
|
272
|
+
# @return [Array<Arrays>]
|
273
|
+
#
|
274
|
+
# @example
|
275
|
+
# paths([[1, 2], [3, 4], [5]]) #=>
|
276
|
+
# # [[1, 3, 5],
|
277
|
+
# # [2, 3, 5],
|
278
|
+
# # [1, 4, 5],
|
279
|
+
# # [2, 4, 5]]
|
280
|
+
def paths(arrs)
|
281
|
+
arrs.inject([[]]) do |paths, arr|
|
282
|
+
arr.map {|e| paths.map {|path| path + [e]}}.flatten(1)
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# Computes a single longest common subsequence for `x` and `y`.
|
287
|
+
# If there are more than one longest common subsequences,
|
288
|
+
# the one returned is that which starts first in `x`.
|
289
|
+
#
|
290
|
+
# @param x [Array]
|
291
|
+
# @param y [Array]
|
292
|
+
# @yield [a, b] An optional block to use in place of a check for equality
|
293
|
+
# between elements of `x` and `y`.
|
294
|
+
# @yieldreturn [Object, nil] If the two values register as equal,
|
295
|
+
# this will return the value to use in the LCS array.
|
296
|
+
# @return [Array] The LCS
|
297
|
+
def lcs(x, y, &block)
|
298
|
+
x = [nil, *x]
|
299
|
+
y = [nil, *y]
|
300
|
+
block ||= proc {|a, b| a == b && a}
|
301
|
+
lcs_backtrace(lcs_table(x, y, &block), x, y, x.size - 1, y.size - 1, &block)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Converts a Hash to an Array. This is usually identical to `Hash#to_a`,
|
305
|
+
# with the following exceptions:
|
306
|
+
#
|
307
|
+
# * In Ruby 1.8, `Hash#to_a` is not deterministically ordered, but this is.
|
308
|
+
# * In Ruby 1.9 when running tests, this is ordered in the same way it would
|
309
|
+
# be under Ruby 1.8 (sorted key order rather than insertion order).
|
310
|
+
#
|
311
|
+
# @param hash [Hash]
|
312
|
+
# @return [Array]
|
313
|
+
def hash_to_a(hash)
|
314
|
+
return hash.to_a unless ruby1_8? || defined?(Test::Unit)
|
315
|
+
hash.sort_by {|k, _v| k}
|
316
|
+
end
|
317
|
+
|
318
|
+
# Performs the equivalent of `enum.group_by.to_a`, but with a guaranteed
|
319
|
+
# order. Unlike {Util#hash_to_a}, the resulting order isn't sorted key order;
|
320
|
+
# instead, it's the same order as `#group_by` has under Ruby 1.9 (key
|
321
|
+
# appearance order).
|
322
|
+
#
|
323
|
+
# @param enum [Enumerable]
|
324
|
+
# @return [Array<[Object, Array]>] An array of pairs.
|
325
|
+
def group_by_to_a(enum)
|
326
|
+
return enum.group_by {|e| yield(e)}.to_a unless ruby1_8?
|
327
|
+
order = {}
|
328
|
+
arr = []
|
329
|
+
groups = enum.group_by do |e|
|
330
|
+
res = yield(e)
|
331
|
+
unless order.include?(res)
|
332
|
+
order[res] = order.size
|
333
|
+
end
|
334
|
+
res
|
335
|
+
end
|
336
|
+
groups.each do |key, vals|
|
337
|
+
arr[order[key]] = [key, vals]
|
338
|
+
end
|
339
|
+
arr
|
340
|
+
end
|
341
|
+
|
342
|
+
# Returns a sub-array of `minuend` containing only elements that are also in
|
343
|
+
# `subtrahend`. Ensures that the return value has the same order as
|
344
|
+
# `minuend`, even on Rubinius where that's not guaranteed by `Array#-`.
|
345
|
+
#
|
346
|
+
# @param minuend [Array]
|
347
|
+
# @param subtrahend [Array]
|
348
|
+
# @return [Array]
|
349
|
+
def array_minus(minuend, subtrahend)
|
350
|
+
return minuend - subtrahend unless rbx?
|
351
|
+
set = Set.new(minuend) - subtrahend
|
352
|
+
minuend.select {|e| set.include?(e)}
|
353
|
+
end
|
354
|
+
|
355
|
+
# Returns the maximum of `val1` and `val2`. We use this over \{Array.max} to
|
356
|
+
# avoid unnecessary garbage collection.
|
357
|
+
def max(val1, val2)
|
358
|
+
val1 > val2 ? val1 : val2
|
359
|
+
end
|
360
|
+
|
361
|
+
# Returns the minimum of `val1` and `val2`. We use this over \{Array.min} to
|
362
|
+
# avoid unnecessary garbage collection.
|
363
|
+
def min(val1, val2)
|
364
|
+
val1 <= val2 ? val1 : val2
|
365
|
+
end
|
366
|
+
|
367
|
+
# Returns a string description of the character that caused an
|
368
|
+
# `Encoding::UndefinedConversionError`.
|
369
|
+
#
|
370
|
+
# @param e [Encoding::UndefinedConversionError]
|
371
|
+
# @return [String]
|
372
|
+
def undefined_conversion_error_char(e)
|
373
|
+
# Rubinius (as of 2.0.0.rc1) pre-quotes the error character.
|
374
|
+
return e.error_char if rbx?
|
375
|
+
# JRuby (as of 1.7.2) doesn't have an error_char field on
|
376
|
+
# Encoding::UndefinedConversionError.
|
377
|
+
return e.error_char.dump unless jruby?
|
378
|
+
e.message[/^"[^"]+"/] # "
|
379
|
+
end
|
380
|
+
|
381
|
+
# Asserts that `value` falls within `range` (inclusive), leaving
|
382
|
+
# room for slight floating-point errors.
|
383
|
+
#
|
384
|
+
# @param name [String] The name of the value. Used in the error message.
|
385
|
+
# @param range [Range] The allowed range of values.
|
386
|
+
# @param value [Numeric, Sass::Script::Value::Number] The value to check.
|
387
|
+
# @param unit [String] The unit of the value. Used in error reporting.
|
388
|
+
# @return [Numeric] `value` adjusted to fall within range, if it
|
389
|
+
# was outside by a floating-point margin.
|
390
|
+
def check_range(name, range, value, unit = '')
|
391
|
+
grace = (-0.00001..0.00001)
|
392
|
+
str = value.to_s
|
393
|
+
value = value.value if value.is_a?(Sass::Script::Value::Number)
|
394
|
+
return value if range.include?(value)
|
395
|
+
return range.first if grace.include?(value - range.first)
|
396
|
+
return range.last if grace.include?(value - range.last)
|
397
|
+
raise ArgumentError.new(
|
398
|
+
"#{name} #{str} must be between #{range.first}#{unit} and #{range.last}#{unit}")
|
399
|
+
end
|
400
|
+
|
401
|
+
# Returns whether or not `seq1` is a subsequence of `seq2`. That is, whether
|
402
|
+
# or not `seq2` contains every element in `seq1` in the same order (and
|
403
|
+
# possibly more elements besides).
|
404
|
+
#
|
405
|
+
# @param seq1 [Array]
|
406
|
+
# @param seq2 [Array]
|
407
|
+
# @return [Boolean]
|
408
|
+
def subsequence?(seq1, seq2)
|
409
|
+
i = j = 0
|
410
|
+
loop do
|
411
|
+
return true if i == seq1.size
|
412
|
+
return false if j == seq2.size
|
413
|
+
i += 1 if seq1[i] == seq2[j]
|
414
|
+
j += 1
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# Returns information about the caller of the previous method.
|
419
|
+
#
|
420
|
+
# @param entry [String] An entry in the `#caller` list, or a similarly formatted string
|
421
|
+
# @return [[String, Fixnum, (String, nil)]]
|
422
|
+
# An array containing the filename, line, and method name of the caller.
|
423
|
+
# The method name may be nil
|
424
|
+
def caller_info(entry = nil)
|
425
|
+
# JRuby evaluates `caller` incorrectly when it's in an actual default argument.
|
426
|
+
entry ||= caller[1]
|
427
|
+
info = entry.scan(/^((?:[A-Za-z]:)?.*?):(-?.*?)(?::.*`(.+)')?$/).first
|
428
|
+
info[1] = info[1].to_i
|
429
|
+
# This is added by Rubinius to designate a block, but we don't care about it.
|
430
|
+
info[2].sub!(/ \{\}\Z/, '') if info[2]
|
431
|
+
info
|
432
|
+
end
|
433
|
+
|
434
|
+
# Returns whether one version string represents a more recent version than another.
|
435
|
+
#
|
436
|
+
# @param v1 [String] A version string.
|
437
|
+
# @param v2 [String] Another version string.
|
438
|
+
# @return [Boolean]
|
439
|
+
def version_gt(v1, v2)
|
440
|
+
# Construct an array to make sure the shorter version is padded with nil
|
441
|
+
Array.new([v1.length, v2.length].max).zip(v1.split("."), v2.split(".")) do |_, p1, p2|
|
442
|
+
p1 ||= "0"
|
443
|
+
p2 ||= "0"
|
444
|
+
release1 = p1 =~ /^[0-9]+$/
|
445
|
+
release2 = p2 =~ /^[0-9]+$/
|
446
|
+
if release1 && release2
|
447
|
+
# Integer comparison if both are full releases
|
448
|
+
p1, p2 = p1.to_i, p2.to_i
|
449
|
+
next if p1 == p2
|
450
|
+
return p1 > p2
|
451
|
+
elsif !release1 && !release2
|
452
|
+
# String comparison if both are prereleases
|
453
|
+
next if p1 == p2
|
454
|
+
return p1 > p2
|
455
|
+
else
|
456
|
+
# If only one is a release, that one is newer
|
457
|
+
return release1
|
458
|
+
end
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
# Returns whether one version string represents the same or a more
|
463
|
+
# recent version than another.
|
464
|
+
#
|
465
|
+
# @param v1 [String] A version string.
|
466
|
+
# @param v2 [String] Another version string.
|
467
|
+
# @return [Boolean]
|
468
|
+
def version_geq(v1, v2)
|
469
|
+
version_gt(v1, v2) || !version_gt(v2, v1)
|
470
|
+
end
|
471
|
+
|
472
|
+
# Throws a NotImplementedError for an abstract method.
|
473
|
+
#
|
474
|
+
# @param obj [Object] `self`
|
475
|
+
# @raise [NotImplementedError]
|
476
|
+
def abstract(obj)
|
477
|
+
raise NotImplementedError.new("#{obj.class} must implement ##{caller_info[2]}")
|
478
|
+
end
|
479
|
+
|
480
|
+
# Prints a deprecation warning for the caller method.
|
481
|
+
#
|
482
|
+
# @param obj [Object] `self`
|
483
|
+
# @param message [String] A message describing what to do instead.
|
484
|
+
def deprecated(obj, message = nil)
|
485
|
+
obj_class = obj.is_a?(Class) ? "#{obj}." : "#{obj.class}#"
|
486
|
+
full_message = "DEPRECATION WARNING: #{obj_class}#{caller_info[2]} " +
|
487
|
+
"will be removed in a future version of Sass.#{("\n" + message) if message}"
|
488
|
+
Sass::Util.sass_warn full_message
|
489
|
+
end
|
490
|
+
|
491
|
+
# Silence all output to STDERR within a block.
|
492
|
+
#
|
493
|
+
# @yield A block in which no output will be printed to STDERR
|
494
|
+
def silence_warnings
|
495
|
+
the_real_stderr, $stderr = $stderr, StringIO.new
|
496
|
+
yield
|
497
|
+
ensure
|
498
|
+
$stderr = the_real_stderr
|
499
|
+
end
|
500
|
+
|
501
|
+
# Silences all Sass warnings within a block.
|
502
|
+
#
|
503
|
+
# @yield A block in which no Sass warnings will be printed
|
504
|
+
def silence_sass_warnings
|
505
|
+
old_level, Sass.logger.log_level = Sass.logger.log_level, :error
|
506
|
+
yield
|
507
|
+
ensure
|
508
|
+
Sass.logger.log_level = old_level
|
509
|
+
end
|
510
|
+
|
511
|
+
# The same as `Kernel#warn`, but is silenced by \{#silence\_sass\_warnings}.
|
512
|
+
#
|
513
|
+
# @param msg [String]
|
514
|
+
def sass_warn(msg)
|
515
|
+
msg += "\n" unless ruby1?
|
516
|
+
Sass.logger.warn(msg)
|
517
|
+
end
|
518
|
+
|
519
|
+
## Cross Rails Version Compatibility
|
520
|
+
|
521
|
+
# Returns the root of the Rails application,
|
522
|
+
# if this is running in a Rails context.
|
523
|
+
# Returns `nil` if no such root is defined.
|
524
|
+
#
|
525
|
+
# @return [String, nil]
|
526
|
+
def rails_root
|
527
|
+
if defined?(::Rails.root)
|
528
|
+
return ::Rails.root.to_s if ::Rails.root
|
529
|
+
raise "ERROR: Rails.root is nil!"
|
530
|
+
end
|
531
|
+
return RAILS_ROOT.to_s if defined?(RAILS_ROOT)
|
532
|
+
nil
|
533
|
+
end
|
534
|
+
|
535
|
+
# Returns the environment of the Rails application,
|
536
|
+
# if this is running in a Rails context.
|
537
|
+
# Returns `nil` if no such environment is defined.
|
538
|
+
#
|
539
|
+
# @return [String, nil]
|
540
|
+
def rails_env
|
541
|
+
return ::Rails.env.to_s if defined?(::Rails.env)
|
542
|
+
return RAILS_ENV.to_s if defined?(RAILS_ENV)
|
543
|
+
nil
|
544
|
+
end
|
545
|
+
|
546
|
+
# Returns whether this environment is using ActionPack
|
547
|
+
# version 3.0.0 or greater.
|
548
|
+
#
|
549
|
+
# @return [Boolean]
|
550
|
+
def ap_geq_3?
|
551
|
+
ap_geq?("3.0.0.beta1")
|
552
|
+
end
|
553
|
+
|
554
|
+
# Returns whether this environment is using ActionPack
|
555
|
+
# of a version greater than or equal to that specified.
|
556
|
+
#
|
557
|
+
# @param version [String] The string version number to check against.
|
558
|
+
# Should be greater than or equal to Rails 3,
|
559
|
+
# because otherwise ActionPack::VERSION isn't autoloaded
|
560
|
+
# @return [Boolean]
|
561
|
+
def ap_geq?(version)
|
562
|
+
# The ActionPack module is always loaded automatically in Rails >= 3
|
563
|
+
return false unless defined?(ActionPack) && defined?(ActionPack::VERSION) &&
|
564
|
+
defined?(ActionPack::VERSION::STRING)
|
565
|
+
|
566
|
+
version_geq(ActionPack::VERSION::STRING, version)
|
567
|
+
end
|
568
|
+
|
569
|
+
# Returns whether this environment is using Listen
|
570
|
+
# version 2.0.0 or greater.
|
571
|
+
#
|
572
|
+
# @return [Boolean]
|
573
|
+
def listen_geq_2?
|
574
|
+
return @listen_geq_2 if defined?(@listen_geq_2)
|
575
|
+
@listen_geq_2 =
|
576
|
+
begin
|
577
|
+
# Make sure we're loading listen/version from the same place that
|
578
|
+
# we're loading listen itself.
|
579
|
+
load_listen!
|
580
|
+
require 'listen/version'
|
581
|
+
version_geq(::Listen::VERSION, '2.0.0')
|
582
|
+
rescue LoadError
|
583
|
+
false
|
584
|
+
end
|
585
|
+
end
|
586
|
+
|
587
|
+
# Returns an ActionView::Template* class.
|
588
|
+
# In pre-3.0 versions of Rails, most of these classes
|
589
|
+
# were of the form `ActionView::TemplateFoo`,
|
590
|
+
# while afterwards they were of the form `ActionView;:Template::Foo`.
|
591
|
+
#
|
592
|
+
# @param name [#to_s] The name of the class to get.
|
593
|
+
# For example, `:Error` will return `ActionView::TemplateError`
|
594
|
+
# or `ActionView::Template::Error`.
|
595
|
+
def av_template_class(name)
|
596
|
+
return ActionView.const_get("Template#{name}") if ActionView.const_defined?("Template#{name}")
|
597
|
+
ActionView::Template.const_get(name.to_s)
|
598
|
+
end
|
599
|
+
|
600
|
+
## Cross-OS Compatibility
|
601
|
+
#
|
602
|
+
# These methods are cached because some of them are called quite frequently
|
603
|
+
# and even basic checks like String#== are too costly to be called repeatedly.
|
604
|
+
|
605
|
+
# Whether or not this is running on Windows.
|
606
|
+
#
|
607
|
+
# @return [Boolean]
|
608
|
+
def windows?
|
609
|
+
return @windows if defined?(@windows)
|
610
|
+
@windows = (RbConfig::CONFIG['host_os'] =~ /mswin|windows|mingw/i)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Whether or not this is running on IronRuby.
|
614
|
+
#
|
615
|
+
# @return [Boolean]
|
616
|
+
def ironruby?
|
617
|
+
return @ironruby if defined?(@ironruby)
|
618
|
+
@ironruby = RUBY_ENGINE == "ironruby"
|
619
|
+
end
|
620
|
+
|
621
|
+
# Whether or not this is running on Rubinius.
|
622
|
+
#
|
623
|
+
# @return [Boolean]
|
624
|
+
def rbx?
|
625
|
+
return @rbx if defined?(@rbx)
|
626
|
+
@rbx = RUBY_ENGINE == "rbx"
|
627
|
+
end
|
628
|
+
|
629
|
+
# Whether or not this is running on JRuby.
|
630
|
+
#
|
631
|
+
# @return [Boolean]
|
632
|
+
def jruby?
|
633
|
+
return @jruby if defined?(@jruby)
|
634
|
+
@jruby = RUBY_PLATFORM =~ /java/
|
635
|
+
end
|
636
|
+
|
637
|
+
# Returns an array of ints representing the JRuby version number.
|
638
|
+
#
|
639
|
+
# @return [Array<Fixnum>]
|
640
|
+
def jruby_version
|
641
|
+
@jruby_version ||= ::JRUBY_VERSION.split(".").map {|s| s.to_i}
|
642
|
+
end
|
643
|
+
|
644
|
+
# Like `Dir.glob`, but works with backslash-separated paths on Windows.
|
645
|
+
#
|
646
|
+
# @param path [String]
|
647
|
+
def glob(path)
|
648
|
+
path = path.tr('\\', '/') if windows?
|
649
|
+
if block_given?
|
650
|
+
Dir.glob(path) {|f| yield(f)}
|
651
|
+
else
|
652
|
+
Dir.glob(path)
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
656
|
+
# Like `Pathname.new`, but normalizes Windows paths to always use backslash
|
657
|
+
# separators.
|
658
|
+
#
|
659
|
+
# `Pathname#relative_path_from` can break if the two pathnames aren't
|
660
|
+
# consistent in their slash style.
|
661
|
+
#
|
662
|
+
# @param path [String]
|
663
|
+
# @return [Pathname]
|
664
|
+
def pathname(path)
|
665
|
+
path = path.tr("/", "\\") if windows?
|
666
|
+
Pathname.new(path)
|
667
|
+
end
|
668
|
+
|
669
|
+
# Like `Pathname#cleanpath`, but normalizes Windows paths to always use
|
670
|
+
# backslash separators. Normally, `Pathname#cleanpath` actually does the
|
671
|
+
# reverse -- it will convert backslashes to forward slashes, which can break
|
672
|
+
# `Pathname#relative_path_from`.
|
673
|
+
#
|
674
|
+
# @param path [String, Pathname]
|
675
|
+
# @return [Pathname]
|
676
|
+
def cleanpath(path)
|
677
|
+
path = Pathname.new(path) unless path.is_a?(Pathname)
|
678
|
+
pathname(path.cleanpath.to_s)
|
679
|
+
end
|
680
|
+
|
681
|
+
# Returns `path` with all symlinks resolved.
|
682
|
+
#
|
683
|
+
# @param path [String, Pathname]
|
684
|
+
# @return [Pathname]
|
685
|
+
def realpath(path)
|
686
|
+
path = Pathname.new(path) unless path.is_a?(Pathname)
|
687
|
+
|
688
|
+
# Explicitly DON'T run #pathname here. We don't want to convert
|
689
|
+
# to Windows directory separators because we're comparing these
|
690
|
+
# against the paths returned by Listen, which use forward
|
691
|
+
# slashes everywhere.
|
692
|
+
begin
|
693
|
+
path.realpath
|
694
|
+
rescue SystemCallError
|
695
|
+
# If [path] doesn't actually exist, don't bail, just
|
696
|
+
# return the original.
|
697
|
+
path
|
698
|
+
end
|
699
|
+
end
|
700
|
+
|
701
|
+
# Returns `path` relative to `from`.
|
702
|
+
#
|
703
|
+
# This is like `Pathname#relative_path_from` except it accepts both strings
|
704
|
+
# and pathnames, it handles Windows path separators correctly, and it throws
|
705
|
+
# an error rather than crashing if the paths use different encodings
|
706
|
+
# (https://github.com/ruby/ruby/pull/713).
|
707
|
+
#
|
708
|
+
# @param path [String, Pathname]
|
709
|
+
# @param from [String, Pathname]
|
710
|
+
# @return [Pathname?]
|
711
|
+
def relative_path_from(path, from)
|
712
|
+
pathname(path.to_s).relative_path_from(pathname(from.to_s))
|
713
|
+
rescue NoMethodError => e
|
714
|
+
raise e unless e.name == :zero?
|
715
|
+
|
716
|
+
# Work around https://github.com/ruby/ruby/pull/713.
|
717
|
+
path = path.to_s
|
718
|
+
from = from.to_s
|
719
|
+
raise ArgumentError("Incompatible path encodings: #{path.inspect} is #{path.encoding}, " +
|
720
|
+
"#{from.inspect} is #{from.encoding}")
|
721
|
+
end
|
722
|
+
|
723
|
+
# Converts `path` to a "file:" URI. This handles Windows paths correctly.
|
724
|
+
#
|
725
|
+
# @param path [String, Pathname]
|
726
|
+
# @return [String]
|
727
|
+
def file_uri_from_path(path)
|
728
|
+
path = path.to_s if path.is_a?(Pathname)
|
729
|
+
path = path.tr('\\', '/') if windows?
|
730
|
+
path = Sass::Util.escape_uri(path)
|
731
|
+
return path.start_with?('/') ? "file://" + path : path unless windows?
|
732
|
+
return "file:///" + path.tr("\\", "/") if path =~ %r{^[a-zA-Z]:[/\\]}
|
733
|
+
return "file:" + path.tr("\\", "/") if path =~ %r{\\\\[^\\]+\\[^\\/]+}
|
734
|
+
path.tr("\\", "/")
|
735
|
+
end
|
736
|
+
|
737
|
+
# Retries a filesystem operation if it fails on Windows. Windows
|
738
|
+
# has weird and flaky locking rules that can cause operations to fail.
|
739
|
+
#
|
740
|
+
# @yield [] The filesystem operation.
|
741
|
+
def retry_on_windows
|
742
|
+
return yield unless windows?
|
743
|
+
|
744
|
+
begin
|
745
|
+
yield
|
746
|
+
rescue SystemCallError
|
747
|
+
sleep 0.1
|
748
|
+
yield
|
749
|
+
end
|
750
|
+
end
|
751
|
+
|
752
|
+
# Prepare a value for a destructuring assignment (e.g. `a, b =
|
753
|
+
# val`). This works around a performance bug when using
|
754
|
+
# ActiveSupport, and only needs to be called when `val` is likely
|
755
|
+
# to be `nil` reasonably often.
|
756
|
+
#
|
757
|
+
# See [this bug report](http://redmine.ruby-lang.org/issues/4917).
|
758
|
+
#
|
759
|
+
# @param val [Object]
|
760
|
+
# @return [Object]
|
761
|
+
def destructure(val)
|
762
|
+
val || []
|
763
|
+
end
|
764
|
+
|
765
|
+
## Cross-Ruby-Version Compatibility
|
766
|
+
|
767
|
+
# Whether or not this is running under a Ruby version under 2.0.
|
768
|
+
#
|
769
|
+
# @return [Boolean]
|
770
|
+
def ruby1?
|
771
|
+
return @ruby1 if defined?(@ruby1)
|
772
|
+
@ruby1 = RUBY_VERSION_COMPONENTS[0] <= 1
|
773
|
+
end
|
774
|
+
|
775
|
+
# Whether or not this is running under Ruby 1.8 or lower.
|
776
|
+
#
|
777
|
+
# Note that IronRuby counts as Ruby 1.8,
|
778
|
+
# because it doesn't support the Ruby 1.9 encoding API.
|
779
|
+
#
|
780
|
+
# @return [Boolean]
|
781
|
+
def ruby1_8?
|
782
|
+
# IronRuby says its version is 1.9, but doesn't support any of the encoding APIs.
|
783
|
+
# We have to fall back to 1.8 behavior.
|
784
|
+
return @ruby1_8 if defined?(@ruby1_8)
|
785
|
+
@ruby1_8 = ironruby? ||
|
786
|
+
(RUBY_VERSION_COMPONENTS[0] == 1 && RUBY_VERSION_COMPONENTS[1] < 9)
|
787
|
+
end
|
788
|
+
|
789
|
+
# Whether or not this is running under Ruby 1.9.2 exactly.
|
790
|
+
#
|
791
|
+
# @return [Boolean]
|
792
|
+
def ruby1_9_2?
|
793
|
+
return @ruby1_9_2 if defined?(@ruby1_9_2)
|
794
|
+
@ruby1_9_2 = RUBY_VERSION_COMPONENTS == [1, 9, 2]
|
795
|
+
end
|
796
|
+
|
797
|
+
# Wehter or not this is running under JRuby 1.6 or lower.
|
798
|
+
def jruby1_6?
|
799
|
+
return @jruby1_6 if defined?(@jruby1_6)
|
800
|
+
@jruby1_6 = jruby? && jruby_version[0] == 1 && jruby_version[1] < 7
|
801
|
+
end
|
802
|
+
|
803
|
+
# Whether or not this is running under MacRuby.
|
804
|
+
#
|
805
|
+
# @return [Boolean]
|
806
|
+
def macruby?
|
807
|
+
return @macruby if defined?(@macruby)
|
808
|
+
@macruby = RUBY_ENGINE == 'macruby'
|
809
|
+
end
|
810
|
+
|
811
|
+
require 'sass/util/ordered_hash' if ruby1_8?
|
812
|
+
|
813
|
+
# Converts a hash or a list of pairs into an order-preserving hash.
|
814
|
+
#
|
815
|
+
# On Ruby 1.8.7, this uses the orderedhash gem to simulate an
|
816
|
+
# order-preserving hash. On Ruby 1.9 and up, it just uses the native Hash
|
817
|
+
# class, since that preserves the order itself.
|
818
|
+
#
|
819
|
+
# @overload ordered_hash(hash)
|
820
|
+
# @param hash [Hash] a normal hash to convert to an ordered hash
|
821
|
+
# @return [Hash]
|
822
|
+
# @overload ordered_hash(*pairs)
|
823
|
+
# @example
|
824
|
+
# ordered_hash([:foo, "bar"], [:baz, "bang"])
|
825
|
+
# #=> {:foo => "bar", :baz => "bang"}
|
826
|
+
# ordered_hash #=> {}
|
827
|
+
# @param pairs [Array<(Object, Object)>] the list of key/value pairs for
|
828
|
+
# the hash.
|
829
|
+
# @return [Hash]
|
830
|
+
def ordered_hash(*pairs_or_hash)
|
831
|
+
if pairs_or_hash.length == 1 && pairs_or_hash.first.is_a?(Hash)
|
832
|
+
hash = pairs_or_hash.first
|
833
|
+
return hash unless ruby1_8?
|
834
|
+
return OrderedHash.new.merge hash
|
835
|
+
end
|
836
|
+
|
837
|
+
return Hash[pairs_or_hash] unless ruby1_8?
|
838
|
+
(pairs_or_hash.is_a?(NormalizedMap) ? NormalizedMap : OrderedHash)[*pairs_or_hash.flatten(1)]
|
839
|
+
end
|
840
|
+
|
841
|
+
unless ruby1_8?
|
842
|
+
CHARSET_REGEXP = /\A@charset "([^"]+)"/
|
843
|
+
bom = "\uFEFF"
|
844
|
+
UTF_8_BOM = bom.encode("UTF-8").force_encoding('BINARY')
|
845
|
+
UTF_16BE_BOM = bom.encode("UTF-16BE").force_encoding('BINARY')
|
846
|
+
UTF_16LE_BOM = bom.encode("UTF-16LE").force_encoding('BINARY')
|
847
|
+
end
|
848
|
+
|
849
|
+
# Like {\#check\_encoding}, but also checks for a `@charset` declaration
|
850
|
+
# at the beginning of the file and uses that encoding if it exists.
|
851
|
+
#
|
852
|
+
# Sass follows CSS's decoding rules.
|
853
|
+
#
|
854
|
+
# @param str [String] The string of which to check the encoding
|
855
|
+
# @return [(String, Encoding)] The original string encoded as UTF-8,
|
856
|
+
# and the source encoding of the string (or `nil` under Ruby 1.8)
|
857
|
+
# @raise [Encoding::UndefinedConversionError] if the source encoding
|
858
|
+
# cannot be converted to UTF-8
|
859
|
+
# @raise [ArgumentError] if the document uses an unknown encoding with `@charset`
|
860
|
+
# @raise [Sass::SyntaxError] If the document declares an encoding that
|
861
|
+
# doesn't match its contents, or it doesn't declare an encoding and its
|
862
|
+
# contents are invalid in the native encoding.
|
863
|
+
def check_sass_encoding(str)
|
864
|
+
# On Ruby 1.8 we can't do anything complicated with encodings.
|
865
|
+
# Instead, we just strip out a UTF-8 BOM if it exists and
|
866
|
+
# sanitize according to Section 3.3 of CSS Syntax Level 3. We
|
867
|
+
# don't sanitize null characters since they might be components
|
868
|
+
# of other characters.
|
869
|
+
if ruby1_8?
|
870
|
+
return str.gsub(/\A\xEF\xBB\xBF/, '').gsub(/\r\n?|\f/, "\n"), nil
|
871
|
+
end
|
872
|
+
|
873
|
+
# Determine the fallback encoding following section 3.2 of CSS Syntax Level 3 and Encodings:
|
874
|
+
# http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/#determine-the-fallback-encoding
|
875
|
+
# http://encoding.spec.whatwg.org/#decode
|
876
|
+
binary = str.dup.force_encoding("BINARY")
|
877
|
+
if binary.start_with?(UTF_8_BOM)
|
878
|
+
binary.slice! 0, UTF_8_BOM.length
|
879
|
+
str = binary.force_encoding('UTF-8')
|
880
|
+
elsif binary.start_with?(UTF_16BE_BOM)
|
881
|
+
binary.slice! 0, UTF_16BE_BOM.length
|
882
|
+
str = binary.force_encoding('UTF-16BE')
|
883
|
+
elsif binary.start_with?(UTF_16LE_BOM)
|
884
|
+
binary.slice! 0, UTF_16LE_BOM.length
|
885
|
+
str = binary.force_encoding('UTF-16LE')
|
886
|
+
elsif binary =~ CHARSET_REGEXP
|
887
|
+
charset = $1.force_encoding('US-ASCII')
|
888
|
+
# Ruby 1.9.2 doesn't recognize a UTF-16 encoding without an endian marker.
|
889
|
+
if ruby1_9_2? && charset.downcase == 'utf-16'
|
890
|
+
encoding = Encoding.find('UTF-8')
|
891
|
+
else
|
892
|
+
encoding = Encoding.find(charset)
|
893
|
+
if encoding.name == 'UTF-16' || encoding.name == 'UTF-16BE'
|
894
|
+
encoding = Encoding.find('UTF-8')
|
895
|
+
end
|
896
|
+
end
|
897
|
+
str = binary.force_encoding(encoding)
|
898
|
+
elsif str.encoding.name == "ASCII-8BIT"
|
899
|
+
# Normally we want to fall back on believing the Ruby string
|
900
|
+
# encoding, but if that's just binary we want to make sure
|
901
|
+
# it's valid UTF-8.
|
902
|
+
str = str.force_encoding('utf-8')
|
903
|
+
end
|
904
|
+
|
905
|
+
find_encoding_error(str) unless str.valid_encoding?
|
906
|
+
|
907
|
+
begin
|
908
|
+
# If the string is valid, preprocess it according to section 3.3 of CSS Syntax Level 3.
|
909
|
+
return str.encode("UTF-8").gsub(/\r\n?|\f/, "\n").tr("\u0000", "�"), str.encoding
|
910
|
+
rescue EncodingError
|
911
|
+
find_encoding_error(str)
|
912
|
+
end
|
913
|
+
end
|
914
|
+
|
915
|
+
# Checks to see if a class has a given method.
|
916
|
+
# For example:
|
917
|
+
#
|
918
|
+
# Sass::Util.has?(:public_instance_method, String, :gsub) #=> true
|
919
|
+
#
|
920
|
+
# Method collections like `Class#instance_methods`
|
921
|
+
# return strings in Ruby 1.8 and symbols in Ruby 1.9 and on,
|
922
|
+
# so this handles checking for them in a compatible way.
|
923
|
+
#
|
924
|
+
# @param attr [#to_s] The (singular) name of the method-collection method
|
925
|
+
# (e.g. `:instance_methods`, `:private_methods`)
|
926
|
+
# @param klass [Module] The class to check the methods of which to check
|
927
|
+
# @param method [String, Symbol] The name of the method do check for
|
928
|
+
# @return [Boolean] Whether or not the given collection has the given method
|
929
|
+
def has?(attr, klass, method)
|
930
|
+
klass.send("#{attr}s").include?(ruby1_8? ? method.to_s : method.to_sym)
|
931
|
+
end
|
932
|
+
|
933
|
+
# A version of `Enumerable#enum_with_index` that works in Ruby 1.8 and 1.9.
|
934
|
+
#
|
935
|
+
# @param enum [Enumerable] The enumerable to get the enumerator for
|
936
|
+
# @return [Enumerator] The with-index enumerator
|
937
|
+
def enum_with_index(enum)
|
938
|
+
ruby1_8? ? enum.enum_with_index : enum.each_with_index
|
939
|
+
end
|
940
|
+
|
941
|
+
# A version of `Enumerable#enum_cons` that works in Ruby 1.8 and 1.9.
|
942
|
+
#
|
943
|
+
# @param enum [Enumerable] The enumerable to get the enumerator for
|
944
|
+
# @param n [Fixnum] The size of each cons
|
945
|
+
# @return [Enumerator] The consed enumerator
|
946
|
+
def enum_cons(enum, n)
|
947
|
+
ruby1_8? ? enum.enum_cons(n) : enum.each_cons(n)
|
948
|
+
end
|
949
|
+
|
950
|
+
# A version of `Enumerable#enum_slice` that works in Ruby 1.8 and 1.9.
|
951
|
+
#
|
952
|
+
# @param enum [Enumerable] The enumerable to get the enumerator for
|
953
|
+
# @param n [Fixnum] The size of each slice
|
954
|
+
# @return [Enumerator] The consed enumerator
|
955
|
+
def enum_slice(enum, n)
|
956
|
+
ruby1_8? ? enum.enum_slice(n) : enum.each_slice(n)
|
957
|
+
end
|
958
|
+
|
959
|
+
# Destructively removes all elements from an array that match a block, and
|
960
|
+
# returns the removed elements.
|
961
|
+
#
|
962
|
+
# @param array [Array] The array from which to remove elements.
|
963
|
+
# @yield [el] Called for each element.
|
964
|
+
# @yieldparam el [*] The element to test.
|
965
|
+
# @yieldreturn [Boolean] Whether or not to extract the element.
|
966
|
+
# @return [Array] The extracted elements.
|
967
|
+
def extract!(array)
|
968
|
+
out = []
|
969
|
+
array.reject! do |e|
|
970
|
+
next false unless yield e
|
971
|
+
out << e
|
972
|
+
true
|
973
|
+
end
|
974
|
+
out
|
975
|
+
end
|
976
|
+
|
977
|
+
# Returns the ASCII code of the given character.
|
978
|
+
#
|
979
|
+
# @param c [String] All characters but the first are ignored.
|
980
|
+
# @return [Fixnum] The ASCII code of `c`.
|
981
|
+
def ord(c)
|
982
|
+
ruby1_8? ? c[0] : c.ord
|
983
|
+
end
|
984
|
+
|
985
|
+
# Flattens the first level of nested arrays in `arrs`. Unlike
|
986
|
+
# `Array#flatten`, this orders the result by taking the first
|
987
|
+
# values from each array in order, then the second, and so on.
|
988
|
+
#
|
989
|
+
# @param arrs [Array] The array to flatten.
|
990
|
+
# @return [Array] The flattened array.
|
991
|
+
def flatten_vertically(arrs)
|
992
|
+
result = []
|
993
|
+
arrs = arrs.map {|sub| sub.is_a?(Array) ? sub.dup : Array(sub)}
|
994
|
+
until arrs.empty?
|
995
|
+
arrs.reject! do |arr|
|
996
|
+
result << arr.shift
|
997
|
+
arr.empty?
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
result
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
# Like `Object#inspect`, but preserves non-ASCII characters rather than
|
1004
|
+
# escaping them under Ruby 1.9.2. This is necessary so that the
|
1005
|
+
# precompiled Haml template can be `#encode`d into `@options[:encoding]`
|
1006
|
+
# before being evaluated.
|
1007
|
+
#
|
1008
|
+
# @param obj {Object}
|
1009
|
+
# @return {String}
|
1010
|
+
def inspect_obj(obj)
|
1011
|
+
return obj.inspect unless version_geq(RUBY_VERSION, "1.9.2")
|
1012
|
+
return ':' + inspect_obj(obj.to_s) if obj.is_a?(Symbol)
|
1013
|
+
return obj.inspect unless obj.is_a?(String)
|
1014
|
+
'"' + obj.gsub(/[\x00-\x7F]+/) {|s| s.inspect[1...-1]} + '"'
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Extracts the non-string vlaues from an array containing both strings and non-strings.
|
1018
|
+
# These values are replaced with escape sequences.
|
1019
|
+
# This can be undone using \{#inject\_values}.
|
1020
|
+
#
|
1021
|
+
# This is useful e.g. when we want to do string manipulation
|
1022
|
+
# on an interpolated string.
|
1023
|
+
#
|
1024
|
+
# The precise format of the resulting string is not guaranteed.
|
1025
|
+
# However, it is guaranteed that newlines and whitespace won't be affected.
|
1026
|
+
#
|
1027
|
+
# @param arr [Array] The array from which values are extracted.
|
1028
|
+
# @return [(String, Array)] The resulting string, and an array of extracted values.
|
1029
|
+
def extract_values(arr)
|
1030
|
+
values = []
|
1031
|
+
mapped = arr.map do |e|
|
1032
|
+
next e.gsub('{', '{{') if e.is_a?(String)
|
1033
|
+
values << e
|
1034
|
+
next "{#{values.count - 1}}"
|
1035
|
+
end
|
1036
|
+
return mapped.join, values
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# Undoes \{#extract\_values} by transforming a string with escape sequences
|
1040
|
+
# into an array of strings and non-string values.
|
1041
|
+
#
|
1042
|
+
# @param str [String] The string with escape sequences.
|
1043
|
+
# @param values [Array] The array of values to inject.
|
1044
|
+
# @return [Array] The array of strings and values.
|
1045
|
+
def inject_values(str, values)
|
1046
|
+
return [str.gsub('{{', '{')] if values.empty?
|
1047
|
+
# Add an extra { so that we process the tail end of the string
|
1048
|
+
result = (str + '{{').scan(/(.*?)(?:(\{\{)|\{(\d+)\})/m).map do |(pre, esc, n)|
|
1049
|
+
[pre, esc ? '{' : '', n ? values[n.to_i] : '']
|
1050
|
+
end.flatten(1)
|
1051
|
+
result[-2] = '' # Get rid of the extra {
|
1052
|
+
merge_adjacent_strings(result).reject {|s| s == ''}
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
# Allows modifications to be performed on the string form
|
1056
|
+
# of an array containing both strings and non-strings.
|
1057
|
+
#
|
1058
|
+
# @param arr [Array] The array from which values are extracted.
|
1059
|
+
# @yield [str] A block in which string manipulation can be done to the array.
|
1060
|
+
# @yieldparam str [String] The string form of `arr`.
|
1061
|
+
# @yieldreturn [String] The modified string.
|
1062
|
+
# @return [Array] The modified, interpolated array.
|
1063
|
+
def with_extracted_values(arr)
|
1064
|
+
str, vals = extract_values(arr)
|
1065
|
+
str = yield str
|
1066
|
+
inject_values(str, vals)
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# Builds a sourcemap file name given the generated CSS file name.
|
1070
|
+
#
|
1071
|
+
# @param css [String] The generated CSS file name.
|
1072
|
+
# @return [String] The source map file name.
|
1073
|
+
def sourcemap_name(css)
|
1074
|
+
css + ".map"
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
# Escapes certain characters so that the result can be used
|
1078
|
+
# as the JSON string value. Returns the original string if
|
1079
|
+
# no escaping is necessary.
|
1080
|
+
#
|
1081
|
+
# @param s [String] The string to be escaped
|
1082
|
+
# @return [String] The escaped string
|
1083
|
+
def json_escape_string(s)
|
1084
|
+
return s if s !~ /["\\\b\f\n\r\t]/
|
1085
|
+
|
1086
|
+
result = ""
|
1087
|
+
s.split("").each do |c|
|
1088
|
+
case c
|
1089
|
+
when '"', "\\"
|
1090
|
+
result << "\\" << c
|
1091
|
+
when "\n" then result << "\\n"
|
1092
|
+
when "\t" then result << "\\t"
|
1093
|
+
when "\r" then result << "\\r"
|
1094
|
+
when "\f" then result << "\\f"
|
1095
|
+
when "\b" then result << "\\b"
|
1096
|
+
else
|
1097
|
+
result << c
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
result
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Converts the argument into a valid JSON value.
|
1104
|
+
#
|
1105
|
+
# @param v [Fixnum, String, Array, Boolean, nil]
|
1106
|
+
# @return [String]
|
1107
|
+
def json_value_of(v)
|
1108
|
+
case v
|
1109
|
+
when Fixnum
|
1110
|
+
v.to_s
|
1111
|
+
when String
|
1112
|
+
"\"" + json_escape_string(v) + "\""
|
1113
|
+
when Array
|
1114
|
+
"[" + v.map {|x| json_value_of(x)}.join(",") + "]"
|
1115
|
+
when NilClass
|
1116
|
+
"null"
|
1117
|
+
when TrueClass
|
1118
|
+
"true"
|
1119
|
+
when FalseClass
|
1120
|
+
"false"
|
1121
|
+
else
|
1122
|
+
raise ArgumentError.new("Unknown type: #{v.class.name}")
|
1123
|
+
end
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
VLQ_BASE_SHIFT = 5
|
1127
|
+
VLQ_BASE = 1 << VLQ_BASE_SHIFT
|
1128
|
+
VLQ_BASE_MASK = VLQ_BASE - 1
|
1129
|
+
VLQ_CONTINUATION_BIT = VLQ_BASE
|
1130
|
+
|
1131
|
+
BASE64_DIGITS = ('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a + ['+', '/']
|
1132
|
+
BASE64_DIGIT_MAP = begin
|
1133
|
+
map = {}
|
1134
|
+
Sass::Util.enum_with_index(BASE64_DIGITS).map do |digit, i|
|
1135
|
+
map[digit] = i
|
1136
|
+
end
|
1137
|
+
map
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Encodes `value` as VLQ (http://en.wikipedia.org/wiki/VLQ).
|
1141
|
+
#
|
1142
|
+
# @param value [Fixnum]
|
1143
|
+
# @return [String] The encoded value
|
1144
|
+
def encode_vlq(value)
|
1145
|
+
if value < 0
|
1146
|
+
value = ((-value) << 1) | 1
|
1147
|
+
else
|
1148
|
+
value <<= 1
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
result = ''
|
1152
|
+
begin
|
1153
|
+
digit = value & VLQ_BASE_MASK
|
1154
|
+
value >>= VLQ_BASE_SHIFT
|
1155
|
+
if value > 0
|
1156
|
+
digit |= VLQ_CONTINUATION_BIT
|
1157
|
+
end
|
1158
|
+
result << BASE64_DIGITS[digit]
|
1159
|
+
end while value > 0
|
1160
|
+
result
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# This is a hack around the fact that you can't instantiate a URI parser on
|
1164
|
+
# 1.8, so we have to have this hacky stuff to work around it. When 1.8
|
1165
|
+
# support is dropped, we can remove this method.
|
1166
|
+
#
|
1167
|
+
# @private
|
1168
|
+
URI_ESCAPE = URI.const_defined?("DEFAULT_PARSER") ? URI::DEFAULT_PARSER : URI
|
1169
|
+
|
1170
|
+
# URI-escape `string`.
|
1171
|
+
#
|
1172
|
+
# @param string [String]
|
1173
|
+
# @return [String]
|
1174
|
+
def escape_uri(string)
|
1175
|
+
URI_ESCAPE.escape string
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# A cross-platform implementation of `File.absolute_path`.
|
1179
|
+
#
|
1180
|
+
# @param path [String]
|
1181
|
+
# @param dir_string [String] The directory to consider [path] relative to.
|
1182
|
+
# @return [String] The absolute version of `path`.
|
1183
|
+
def absolute_path(path, dir_string = nil)
|
1184
|
+
# Ruby 1.8 doesn't support File.absolute_path.
|
1185
|
+
return File.absolute_path(path, dir_string) unless ruby1_8?
|
1186
|
+
|
1187
|
+
# File.expand_path expands "~", which we don't want.
|
1188
|
+
return File.expand_path(path, dir_string) unless path[0] == ?~
|
1189
|
+
File.expand_path(File.join(".", path), dir_string)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
## Static Method Stuff
|
1193
|
+
|
1194
|
+
# The context in which the ERB for \{#def\_static\_method} will be run.
|
1195
|
+
class StaticConditionalContext
|
1196
|
+
# @param set [#include?] The set of variables that are defined for this context.
|
1197
|
+
def initialize(set)
|
1198
|
+
@set = set
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
# Checks whether or not a variable is defined for this context.
|
1202
|
+
#
|
1203
|
+
# @param name [Symbol] The name of the variable
|
1204
|
+
# @return [Boolean]
|
1205
|
+
def method_missing(name, *args)
|
1206
|
+
super unless args.empty? && !block_given?
|
1207
|
+
@set.include?(name)
|
1208
|
+
end
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
# @private
|
1212
|
+
ATOMIC_WRITE_MUTEX = Mutex.new
|
1213
|
+
|
1214
|
+
# This creates a temp file and yields it for writing. When the
|
1215
|
+
# write is complete, the file is moved into the desired location.
|
1216
|
+
# The atomicity of this operation is provided by the filesystem's
|
1217
|
+
# rename operation.
|
1218
|
+
#
|
1219
|
+
# @param filename [String] The file to write to.
|
1220
|
+
# @param perms [Integer] The permissions used for creating this file.
|
1221
|
+
# Will be masked by the process umask. Defaults to readable/writeable
|
1222
|
+
# by all users however the umask usually changes this to only be writable
|
1223
|
+
# by the process's user.
|
1224
|
+
# @yieldparam tmpfile [Tempfile] The temp file that can be written to.
|
1225
|
+
# @return The value returned by the block.
|
1226
|
+
def atomic_create_and_write_file(filename, perms = 0666)
|
1227
|
+
require 'tempfile'
|
1228
|
+
tmpfile = Tempfile.new(File.basename(filename), File.dirname(filename))
|
1229
|
+
tmpfile.binmode if tmpfile.respond_to?(:binmode)
|
1230
|
+
result = yield tmpfile
|
1231
|
+
tmpfile.close
|
1232
|
+
ATOMIC_WRITE_MUTEX.synchronize do
|
1233
|
+
begin
|
1234
|
+
File.chmod(perms & ~File.umask, tmpfile.path)
|
1235
|
+
rescue Errno::EPERM
|
1236
|
+
# If we don't have permissions to chmod the file, don't let that crash
|
1237
|
+
# the compilation. See issue 1215.
|
1238
|
+
end
|
1239
|
+
File.rename tmpfile.path, filename
|
1240
|
+
end
|
1241
|
+
result
|
1242
|
+
ensure
|
1243
|
+
# close and remove the tempfile if it still exists,
|
1244
|
+
# presumably due to an error during write
|
1245
|
+
tmpfile.close if tmpfile
|
1246
|
+
tmpfile.unlink if tmpfile
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
def load_listen!
|
1250
|
+
if defined?(gem)
|
1251
|
+
begin
|
1252
|
+
gem 'listen', '>= 1.1.0', '< 3.0.0'
|
1253
|
+
require 'listen'
|
1254
|
+
rescue Gem::LoadError
|
1255
|
+
dir = scope("vendor/listen/lib")
|
1256
|
+
$LOAD_PATH.unshift dir
|
1257
|
+
begin
|
1258
|
+
require 'listen'
|
1259
|
+
rescue LoadError => e
|
1260
|
+
if version_geq(RUBY_VERSION, "1.9.3")
|
1261
|
+
version_constraint = "~> 3.0"
|
1262
|
+
else
|
1263
|
+
version_constraint = "~> 1.1"
|
1264
|
+
end
|
1265
|
+
e.message << "\n" <<
|
1266
|
+
"Run \"gem install listen --version '#{version_constraint}'\" to get it."
|
1267
|
+
raise e
|
1268
|
+
end
|
1269
|
+
end
|
1270
|
+
else
|
1271
|
+
begin
|
1272
|
+
require 'listen'
|
1273
|
+
rescue LoadError => e
|
1274
|
+
dir = scope("vendor/listen/lib")
|
1275
|
+
if $LOAD_PATH.include?(dir)
|
1276
|
+
raise e unless File.exist?(scope(".git"))
|
1277
|
+
e.message << "\n" <<
|
1278
|
+
'Run "git submodule update --init" to get the bundled version.'
|
1279
|
+
else
|
1280
|
+
$LOAD_PATH.unshift dir
|
1281
|
+
retry
|
1282
|
+
end
|
1283
|
+
end
|
1284
|
+
end
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
private
|
1288
|
+
|
1289
|
+
def find_encoding_error(str)
|
1290
|
+
encoding = str.encoding
|
1291
|
+
cr = Regexp.quote("\r".encode(encoding).force_encoding('BINARY'))
|
1292
|
+
lf = Regexp.quote("\n".encode(encoding).force_encoding('BINARY'))
|
1293
|
+
ff = Regexp.quote("\f".encode(encoding).force_encoding('BINARY'))
|
1294
|
+
line_break = /#{cr}#{lf}?|#{ff}|#{lf}/
|
1295
|
+
|
1296
|
+
str.force_encoding("binary").split(line_break).each_with_index do |line, i|
|
1297
|
+
begin
|
1298
|
+
line.encode(encoding)
|
1299
|
+
rescue Encoding::UndefinedConversionError => e
|
1300
|
+
raise Sass::SyntaxError.new(
|
1301
|
+
"Invalid #{encoding.name} character #{undefined_conversion_error_char(e)}",
|
1302
|
+
:line => i + 1)
|
1303
|
+
end
|
1304
|
+
end
|
1305
|
+
|
1306
|
+
# We shouldn't get here, but it's possible some weird encoding stuff causes it.
|
1307
|
+
return str, str.encoding
|
1308
|
+
end
|
1309
|
+
|
1310
|
+
# Calculates the memoization table for the Least Common Subsequence algorithm.
|
1311
|
+
# Algorithm from [Wikipedia](http://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Computing_the_length_of_the_LCS)
|
1312
|
+
def lcs_table(x, y)
|
1313
|
+
# This method does not take a block as an explicit parameter for performance reasons.
|
1314
|
+
c = Array.new(x.size) {[]}
|
1315
|
+
x.size.times {|i| c[i][0] = 0}
|
1316
|
+
y.size.times {|j| c[0][j] = 0}
|
1317
|
+
(1...x.size).each do |i|
|
1318
|
+
(1...y.size).each do |j|
|
1319
|
+
c[i][j] =
|
1320
|
+
if yield x[i], y[j]
|
1321
|
+
c[i - 1][j - 1] + 1
|
1322
|
+
else
|
1323
|
+
[c[i][j - 1], c[i - 1][j]].max
|
1324
|
+
end
|
1325
|
+
end
|
1326
|
+
end
|
1327
|
+
c
|
1328
|
+
end
|
1329
|
+
# rubocop:disable ParameterLists
|
1330
|
+
|
1331
|
+
# Computes a single longest common subsequence for arrays x and y.
|
1332
|
+
# Algorithm from [Wikipedia](http://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Reading_out_an_LCS)
|
1333
|
+
def lcs_backtrace(c, x, y, i, j, &block)
|
1334
|
+
# rubocop:enable ParameterList
|
1335
|
+
return [] if i == 0 || j == 0
|
1336
|
+
if (v = yield(x[i], y[j]))
|
1337
|
+
return lcs_backtrace(c, x, y, i - 1, j - 1, &block) << v
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
return lcs_backtrace(c, x, y, i, j - 1, &block) if c[i][j - 1] > c[i - 1][j]
|
1341
|
+
lcs_backtrace(c, x, y, i - 1, j, &block)
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
singleton_methods.each {|method| module_function method}
|
1345
|
+
end
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
require 'sass/util/multibyte_string_scanner'
|
1349
|
+
require 'sass/util/normalized_map'
|
1350
|
+
require 'sass/util/cross_platform_random'
|