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,65 @@
|
|
1
|
+
body {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
text-align: center;
|
5
|
+
background: #abc;
|
6
|
+
font: 13px Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
|
7
|
+
}
|
8
|
+
|
9
|
+
#container {
|
10
|
+
margin: 0 auto;
|
11
|
+
margin-top: 10px;
|
12
|
+
position: relative;
|
13
|
+
width: 785px;
|
14
|
+
background: #fff repeat;
|
15
|
+
padding-top: 20px;
|
16
|
+
}
|
17
|
+
|
18
|
+
#container #header {
|
19
|
+
padding-top: 20px;
|
20
|
+
height: 141px;
|
21
|
+
width: 785px;
|
22
|
+
background: url(images/logo.png) center no-repeat;
|
23
|
+
}
|
24
|
+
|
25
|
+
#container #content {
|
26
|
+
text-align: left;
|
27
|
+
margin-left: 230px;
|
28
|
+
width: 500px;
|
29
|
+
}
|
30
|
+
|
31
|
+
#container #sidebar {
|
32
|
+
text-align: left;
|
33
|
+
position: absolute;
|
34
|
+
top: 181px;
|
35
|
+
left: 0;
|
36
|
+
width: 170px;
|
37
|
+
margin-right: 25px;
|
38
|
+
}
|
39
|
+
|
40
|
+
#container #footer {
|
41
|
+
font: 9px Arial;
|
42
|
+
padding: 4px;
|
43
|
+
border-top: 1px solid;
|
44
|
+
color: #aaa;
|
45
|
+
}
|
46
|
+
|
47
|
+
ul {
|
48
|
+
list-style: none;
|
49
|
+
}
|
50
|
+
|
51
|
+
li {
|
52
|
+
border-bottom: 1px solid #e8e8e8;
|
53
|
+
padding-top: 10px;
|
54
|
+
}
|
55
|
+
|
56
|
+
a {
|
57
|
+
text-decoration: none;
|
58
|
+
color: #15528a;
|
59
|
+
}
|
60
|
+
|
61
|
+
pre {
|
62
|
+
padding: 5px;
|
63
|
+
padding-left: 20px;
|
64
|
+
font: 11px Courier;
|
65
|
+
}
|
Binary file
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title> HighLine </title>
|
4
|
+
<style type="text/css"> @import url(highline.css); </style>
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div id="container">
|
8
|
+
<div id="header"></div>
|
9
|
+
<div id="content">
|
10
|
+
<h2>HighLine is about…</h2>
|
11
|
+
|
12
|
+
|
13
|
+
<h3>Saving time.</h3>
|
14
|
+
|
15
|
+
|
16
|
+
<p>Command line interfaces are meant to be easy. So why shouldn’t building
|
17
|
+
them be easy, too? HighLine provides a solid toolset to help you get
|
18
|
+
the job done cleanly so you can focus on the real task at hand,
|
19
|
+
<em>your task.</em></p>
|
20
|
+
|
21
|
+
|
22
|
+
<h3>Clean and intuitive design.</h3>
|
23
|
+
|
24
|
+
|
25
|
+
<p>Want to get a taste for how HighLine is used? Take a look at this simple
|
26
|
+
example, which asks a user for a zip code, automatically does validation,
|
27
|
+
and returns the result:</p>
|
28
|
+
|
29
|
+
|
30
|
+
<pre><code>zip = ask("Zip? ") { |q| q.validate = /\A\d{5}(?:-?\d{4})?\Z/ }</code></pre>
|
31
|
+
|
32
|
+
|
33
|
+
<h3>Hassle-free Installation.</h3>
|
34
|
+
|
35
|
+
|
36
|
+
<p>Installation is easy via RubyGems. Simply enter the command:</p>
|
37
|
+
|
38
|
+
|
39
|
+
<pre><code>sudo gem install highline</code></pre>
|
40
|
+
|
41
|
+
|
42
|
+
<p>and you’ll be on your way! Of course, manual installation is an option,
|
43
|
+
too.</p>
|
44
|
+
</div>
|
45
|
+
<div id="sidebar">
|
46
|
+
<ul>
|
47
|
+
<li><a href="http://rubyforge.org/projects/highline">Project Page</a></li>
|
48
|
+
<li><a href="http://highline.rubyforge.org/doc">Documentation</a></li>
|
49
|
+
<li><a href="https://github.com/JEG2/highline">Source</a></li>
|
50
|
+
<li><a href="mailto:james@grayproductions.net">Contact</a></li>
|
51
|
+
</ul>
|
52
|
+
</div>
|
53
|
+
<div id="footer">
|
54
|
+
Created by James Edward Gray II and Gregory Brown
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# string_methods.rb
|
2
|
+
#
|
3
|
+
# Created by Richard LeBer 2011-06-27
|
4
|
+
#
|
5
|
+
# This is Free Software. See LICENSE and COPYING for details.
|
6
|
+
#
|
7
|
+
# String class convenience methods
|
8
|
+
|
9
|
+
module StringMethods
|
10
|
+
def test_color
|
11
|
+
assert_equal("\e[34mstring\e[0m", @string.color(:blue))
|
12
|
+
assert_equal("\e[1m\e[47mstring\e[0m", @string.color(:bold,:on_white))
|
13
|
+
assert_equal("\e[45mstring\e[0m", @string.on(:magenta))
|
14
|
+
assert_equal("\e[36mstring\e[0m", @string.cyan)
|
15
|
+
assert_equal("\e[41m\e[5mstring\e[0m\e[0m", @string.blink.on_red)
|
16
|
+
assert_equal("\e[38;5;137mstring\e[0m", @string.color(:rgb_906030))
|
17
|
+
assert_equal("\e[38;5;101mstring\e[0m", @string.rgb('606030'))
|
18
|
+
assert_equal("\e[38;5;107mstring\e[0m", @string.rgb('60','90','30'))
|
19
|
+
assert_equal("\e[38;5;107mstring\e[0m", @string.rgb(96,144,48))
|
20
|
+
assert_equal("\e[38;5;173mstring\e[0m", @string.rgb_c06030)
|
21
|
+
assert_equal("\e[48;5;137mstring\e[0m", @string.color(:on_rgb_906030))
|
22
|
+
assert_equal("\e[48;5;101mstring\e[0m", @string.on_rgb('606030'))
|
23
|
+
assert_equal("\e[48;5;107mstring\e[0m", @string.on_rgb('60','90','30'))
|
24
|
+
assert_equal("\e[48;5;107mstring\e[0m", @string.on_rgb(96,144,48))
|
25
|
+
assert_equal("\e[48;5;173mstring\e[0m", @string.on_rgb_c06030)
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_uncolor
|
29
|
+
colored_string = HighLine::String("\e[38;5;137mstring\e[0m")
|
30
|
+
assert_equal "string", colored_string.uncolor
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# tc_color_scheme.rb
|
2
|
+
#
|
3
|
+
# Created by Jeremy Hinegardner on 2007-01-24.
|
4
|
+
# Copyright 2007 Jeremy Hinegardner. All rights reserved.
|
5
|
+
#
|
6
|
+
# This is Free Software. See LICENSE and COPYING for details.
|
7
|
+
|
8
|
+
require "test/unit"
|
9
|
+
|
10
|
+
require "highline"
|
11
|
+
require "stringio"
|
12
|
+
|
13
|
+
class TestColorScheme < Test::Unit::TestCase
|
14
|
+
def setup
|
15
|
+
@input = StringIO.new
|
16
|
+
@output = StringIO.new
|
17
|
+
@terminal = HighLine.new(@input, @output)
|
18
|
+
|
19
|
+
@old_color_scheme = HighLine.color_scheme
|
20
|
+
end
|
21
|
+
|
22
|
+
def teardown
|
23
|
+
HighLine.color_scheme = @old_color_scheme
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_using_color_scheme
|
27
|
+
assert_equal(false,HighLine.using_color_scheme?)
|
28
|
+
|
29
|
+
HighLine.color_scheme = HighLine::ColorScheme.new
|
30
|
+
assert_equal(true,HighLine.using_color_scheme?)
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_scheme
|
34
|
+
HighLine.color_scheme = HighLine::SampleColorScheme.new
|
35
|
+
|
36
|
+
@terminal.say("This should be <%= color('warning yellow', :warning) %>.")
|
37
|
+
assert_equal("This should be \e[1m\e[33mwarning yellow\e[0m.\n",@output.string)
|
38
|
+
@output.rewind
|
39
|
+
|
40
|
+
@terminal.say("This should be <%= color('warning yellow', 'warning') %>.")
|
41
|
+
assert_equal("This should be \e[1m\e[33mwarning yellow\e[0m.\n",@output.string)
|
42
|
+
@output.rewind
|
43
|
+
|
44
|
+
@terminal.say("This should be <%= color('warning yellow', 'WarNing') %>.")
|
45
|
+
assert_equal("This should be \e[1m\e[33mwarning yellow\e[0m.\n",@output.string)
|
46
|
+
@output.rewind
|
47
|
+
|
48
|
+
# Check that keys are available, and as expected
|
49
|
+
assert_equal ["critical", "error", "warning", "notice", "info", "debug", "row_even", "row_odd"].sort,
|
50
|
+
HighLine.color_scheme.keys.sort
|
51
|
+
|
52
|
+
# Color scheme doesn't care if we use symbols or strings, and is case-insensitive
|
53
|
+
warning1 = HighLine.color_scheme[:warning]
|
54
|
+
warning2 = HighLine.color_scheme["warning"]
|
55
|
+
warning3 = HighLine.color_scheme[:wArning]
|
56
|
+
warning4 = HighLine.color_scheme["warniNg"]
|
57
|
+
assert_instance_of HighLine::Style, warning1
|
58
|
+
assert_instance_of HighLine::Style, warning2
|
59
|
+
assert_instance_of HighLine::Style, warning3
|
60
|
+
assert_instance_of HighLine::Style, warning4
|
61
|
+
assert_equal warning1, warning2
|
62
|
+
assert_equal warning1, warning3
|
63
|
+
assert_equal warning1, warning4
|
64
|
+
|
65
|
+
# Nonexistent keys return nil
|
66
|
+
assert_nil HighLine.color_scheme[:nonexistent]
|
67
|
+
|
68
|
+
# Same as above, for definitions
|
69
|
+
defn1 = HighLine.color_scheme.definition(:warning)
|
70
|
+
defn2 = HighLine.color_scheme.definition("warning")
|
71
|
+
defn3 = HighLine.color_scheme.definition(:wArning)
|
72
|
+
defn4 = HighLine.color_scheme.definition("warniNg")
|
73
|
+
assert_instance_of Array, defn1
|
74
|
+
assert_instance_of Array, defn2
|
75
|
+
assert_instance_of Array, defn3
|
76
|
+
assert_instance_of Array, defn4
|
77
|
+
assert_equal [:bold, :yellow], defn1
|
78
|
+
assert_equal [:bold, :yellow], defn2
|
79
|
+
assert_equal [:bold, :yellow], defn3
|
80
|
+
assert_equal [:bold, :yellow], defn4
|
81
|
+
assert_nil HighLine.color_scheme.definition(:nonexistent)
|
82
|
+
|
83
|
+
color_scheme_hash = HighLine.color_scheme.to_hash
|
84
|
+
assert_instance_of Hash, color_scheme_hash
|
85
|
+
assert_equal ["critical", "error", "warning", "notice", "info", "debug", "row_even", "row_odd"].sort,
|
86
|
+
color_scheme_hash.keys.sort
|
87
|
+
assert_instance_of Array, HighLine.color_scheme.definition(:warning)
|
88
|
+
assert_equal [:bold, :yellow], HighLine.color_scheme.definition(:warning)
|
89
|
+
|
90
|
+
# turn it back off, should raise an exception
|
91
|
+
HighLine.color_scheme = @old_color_scheme
|
92
|
+
assert_raises(NameError) {
|
93
|
+
@terminal.say("This should be <%= color('nothing at all', :error) %>.")
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,1402 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# tc_highline.rb
|
3
|
+
#
|
4
|
+
# Created by James Edward Gray II on 2005-04-26.
|
5
|
+
# Copyright 2005 Gray Productions. All rights reserved.
|
6
|
+
#
|
7
|
+
# This is Free Software. See LICENSE and COPYING for details.
|
8
|
+
|
9
|
+
require "test/unit"
|
10
|
+
|
11
|
+
require "highline"
|
12
|
+
require "stringio"
|
13
|
+
require "readline"
|
14
|
+
require "tempfile"
|
15
|
+
|
16
|
+
if HighLine::CHARACTER_MODE == "Win32API"
|
17
|
+
class HighLine
|
18
|
+
# Override Windows' character reading so it's not tied to STDIN.
|
19
|
+
def get_character( input = STDIN )
|
20
|
+
input.getc
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class TestHighLine < Test::Unit::TestCase
|
26
|
+
def setup
|
27
|
+
@input = StringIO.new
|
28
|
+
@output = StringIO.new
|
29
|
+
@terminal = HighLine.new(@input, @output)
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_agree
|
33
|
+
@input << "y\nyes\nYES\nHell no!\nNo\n"
|
34
|
+
@input.rewind
|
35
|
+
|
36
|
+
assert_equal(true, @terminal.agree("Yes or no? "))
|
37
|
+
assert_equal(true, @terminal.agree("Yes or no? "))
|
38
|
+
assert_equal(true, @terminal.agree("Yes or no? "))
|
39
|
+
assert_equal(false, @terminal.agree("Yes or no? "))
|
40
|
+
|
41
|
+
@input.truncate(@input.rewind)
|
42
|
+
@input << "yellow"
|
43
|
+
@input.rewind
|
44
|
+
|
45
|
+
assert_equal(true, @terminal.agree("Yes or no? ", :getc))
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_agree_with_block
|
49
|
+
@input << "\n\n"
|
50
|
+
@input.rewind
|
51
|
+
|
52
|
+
assert_equal(true, @terminal.agree("Yes or no? ") { |q| q.default = "y" })
|
53
|
+
assert_equal(false, @terminal.agree("Yes or no? ") { |q| q.default = "n" })
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_ask
|
57
|
+
name = "James Edward Gray II"
|
58
|
+
@input << name << "\n"
|
59
|
+
@input.rewind
|
60
|
+
|
61
|
+
assert_equal(name, @terminal.ask("What is your name? "))
|
62
|
+
|
63
|
+
assert_raise(EOFError) { @terminal.ask("Any input left? ") }
|
64
|
+
end
|
65
|
+
|
66
|
+
def test_ask_string
|
67
|
+
name = "James Edward Gray II"
|
68
|
+
@input << name << "\n"
|
69
|
+
@input.rewind
|
70
|
+
|
71
|
+
assert_equal(name, @terminal.ask("What is your name? ", String))
|
72
|
+
|
73
|
+
assert_raise(EOFError) { @terminal.ask("Any input left? ", String) }
|
74
|
+
end
|
75
|
+
|
76
|
+
def test_indent
|
77
|
+
text = "Testing...\n"
|
78
|
+
@terminal.indent_level=1
|
79
|
+
@terminal.say(text)
|
80
|
+
assert_equal(' '*3+text, @output.string)
|
81
|
+
|
82
|
+
@output.truncate(@output.rewind)
|
83
|
+
@terminal.indent_level=3
|
84
|
+
@terminal.say(text)
|
85
|
+
assert_equal(' '*9+text, @output.string)
|
86
|
+
|
87
|
+
@output.truncate(@output.rewind)
|
88
|
+
@terminal.indent_level=0
|
89
|
+
@terminal.indent_size=5
|
90
|
+
@terminal.indent(2, text)
|
91
|
+
assert_equal(' '*10+text, @output.string)
|
92
|
+
|
93
|
+
@output.truncate(@output.rewind)
|
94
|
+
@terminal.indent_size=4
|
95
|
+
@terminal.indent {
|
96
|
+
@terminal.say(text)
|
97
|
+
}
|
98
|
+
assert_equal(' '*4+text, @output.string)
|
99
|
+
|
100
|
+
@output.truncate(@output.rewind)
|
101
|
+
@terminal.indent_size=2
|
102
|
+
@terminal.indent(3) { |t|
|
103
|
+
t.say(text)
|
104
|
+
}
|
105
|
+
assert_equal(' '*6+text, @output.string)
|
106
|
+
|
107
|
+
@output.truncate(@output.rewind)
|
108
|
+
@terminal.indent { |t|
|
109
|
+
t.indent {
|
110
|
+
t.indent {
|
111
|
+
t.indent { |tt|
|
112
|
+
tt.say(text)
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
assert_equal(' '*8+text, @output.string)
|
118
|
+
|
119
|
+
text = "Multi\nLine\nIndentation\n"
|
120
|
+
indent = ' '*4
|
121
|
+
@terminal.indent_level=2
|
122
|
+
@output.truncate(@output.rewind)
|
123
|
+
@terminal.say(text)
|
124
|
+
assert_equal("#{indent}Multi\n#{indent}Line\n#{indent}Indentation\n", @output.string)
|
125
|
+
|
126
|
+
@output.truncate(@output.rewind)
|
127
|
+
@terminal.multi_indent = false
|
128
|
+
@terminal.say(text)
|
129
|
+
assert_equal("#{indent}Multi\nLine\nIndentation\n", @output.string)
|
130
|
+
|
131
|
+
@output.truncate(@output.rewind)
|
132
|
+
@terminal.indent(0, text, true)
|
133
|
+
assert_equal("#{indent}Multi\n#{indent}Line\n#{indent}Indentation\n", @output.string)
|
134
|
+
end
|
135
|
+
|
136
|
+
def test_newline
|
137
|
+
@terminal.newline
|
138
|
+
@terminal.newline
|
139
|
+
assert_equal("\n\n", @output.string)
|
140
|
+
end
|
141
|
+
|
142
|
+
def test_bug_fixes
|
143
|
+
# auto-complete bug
|
144
|
+
@input << "ruby\nRuby\n"
|
145
|
+
@input.rewind
|
146
|
+
|
147
|
+
languages = [:Perl, :Python, :Ruby]
|
148
|
+
answer = @terminal.ask( "What is your favorite programming language? ",
|
149
|
+
languages )
|
150
|
+
assert_equal(languages.last, answer)
|
151
|
+
|
152
|
+
@input.truncate(@input.rewind)
|
153
|
+
@input << "ruby\n"
|
154
|
+
@input.rewind
|
155
|
+
|
156
|
+
answer = @terminal.ask( "What is your favorite programming language? ",
|
157
|
+
languages ) do |q|
|
158
|
+
q.case = :capitalize
|
159
|
+
end
|
160
|
+
assert_equal(languages.last, answer)
|
161
|
+
|
162
|
+
# poor auto-complete error message
|
163
|
+
@input.truncate(@input.rewind)
|
164
|
+
@input << "lisp\nruby\n"
|
165
|
+
@input.rewind
|
166
|
+
@output.truncate(@output.rewind)
|
167
|
+
|
168
|
+
answer = @terminal.ask( "What is your favorite programming language? ",
|
169
|
+
languages ) do |q|
|
170
|
+
q.case = :capitalize
|
171
|
+
end
|
172
|
+
assert_equal(languages.last, answer)
|
173
|
+
assert_equal( "What is your favorite programming language? " +
|
174
|
+
"You must choose one of [Perl, Python, Ruby].\n" +
|
175
|
+
"? ", @output.string )
|
176
|
+
end
|
177
|
+
|
178
|
+
def test_case_changes
|
179
|
+
@input << "jeg2\n"
|
180
|
+
@input.rewind
|
181
|
+
|
182
|
+
answer = @terminal.ask("Enter your initials ") do |q|
|
183
|
+
q.case = :up
|
184
|
+
end
|
185
|
+
assert_equal("JEG2", answer)
|
186
|
+
|
187
|
+
@input.truncate(@input.rewind)
|
188
|
+
@input << "cRaZY\n"
|
189
|
+
@input.rewind
|
190
|
+
|
191
|
+
answer = @terminal.ask("Enter a search string: ") do |q|
|
192
|
+
q.case = :down
|
193
|
+
end
|
194
|
+
assert_equal("crazy", answer)
|
195
|
+
end
|
196
|
+
|
197
|
+
def test_character_echo
|
198
|
+
@input << "password\r"
|
199
|
+
@input.rewind
|
200
|
+
|
201
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
202
|
+
q.echo = "*"
|
203
|
+
end
|
204
|
+
assert_equal("password", answer)
|
205
|
+
assert_equal("Please enter your password: ********\n", @output.string)
|
206
|
+
|
207
|
+
@input.truncate(@input.rewind)
|
208
|
+
@input << "2"
|
209
|
+
@input.rewind
|
210
|
+
@output.truncate(@output.rewind)
|
211
|
+
|
212
|
+
answer = @terminal.ask( "Select an option (1, 2 or 3): ",
|
213
|
+
Integer ) do |q|
|
214
|
+
q.echo = "*"
|
215
|
+
q.character = true
|
216
|
+
end
|
217
|
+
assert_equal(2, answer)
|
218
|
+
assert_equal("Select an option (1, 2 or 3): *\n", @output.string)
|
219
|
+
end
|
220
|
+
|
221
|
+
def test_backspace_does_not_enter_prompt
|
222
|
+
@input << "\b\b"
|
223
|
+
@input.rewind
|
224
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
225
|
+
q.echo = "*"
|
226
|
+
end
|
227
|
+
assert_equal("", answer)
|
228
|
+
assert_equal("Please enter your password: \n", @output.string)
|
229
|
+
end
|
230
|
+
|
231
|
+
def test_after_some_chars_backspace_does_not_enter_prompt_when_ascii
|
232
|
+
@input << "apple\b\b\b\b\b\b\b\b\b\b"
|
233
|
+
@input.rewind
|
234
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
235
|
+
q.echo = "*"
|
236
|
+
end
|
237
|
+
assert_equal("", answer)
|
238
|
+
assert_equal("apple".size, @output.string.count("\b"))
|
239
|
+
end
|
240
|
+
|
241
|
+
def test_after_some_chars_backspace_does_not_enter_prompt_when_utf8
|
242
|
+
@input << "maçã\b\b\b\b\b\b\b\b"
|
243
|
+
@input.rewind
|
244
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
245
|
+
q.echo = "*"
|
246
|
+
end
|
247
|
+
assert_equal("", answer)
|
248
|
+
assert_equal("maçã".size, @output.string.count("\b"))
|
249
|
+
end
|
250
|
+
|
251
|
+
def test_readline_mode
|
252
|
+
# Rubinius seems to be ignoring Readline input
|
253
|
+
# and output assignments. This ruins testing.
|
254
|
+
# but it doesn't mean readline is not working
|
255
|
+
# properly on rubinius.
|
256
|
+
|
257
|
+
return if RUBY_ENGINE == "rbx"
|
258
|
+
|
259
|
+
# Creating Tempfiles here because Readline.input
|
260
|
+
# and Readline.output only accepts a File object
|
261
|
+
# as argument (not any duck type as StringIO)
|
262
|
+
|
263
|
+
temp_stdin = Tempfile.new "temp_stdin"
|
264
|
+
temp_stdout = Tempfile.new "temp_stdout"
|
265
|
+
|
266
|
+
Readline.input = @input = File.open(temp_stdin.path, 'w+')
|
267
|
+
Readline.output = @output = File.open(temp_stdout.path, 'w+')
|
268
|
+
|
269
|
+
@terminal = HighLine.new(@input, @output)
|
270
|
+
|
271
|
+
@input << "any input\n"
|
272
|
+
@input.rewind
|
273
|
+
|
274
|
+
answer = @terminal.ask("Prompt: ") do |q|
|
275
|
+
q.readline = true
|
276
|
+
end
|
277
|
+
|
278
|
+
@output.rewind
|
279
|
+
output = @output.read
|
280
|
+
|
281
|
+
assert_equal "any input", answer
|
282
|
+
assert_match "Prompt: any input\n", output
|
283
|
+
|
284
|
+
@input.close
|
285
|
+
@output.close
|
286
|
+
Readline.input = STDIN
|
287
|
+
Readline.output = STDOUT
|
288
|
+
end
|
289
|
+
|
290
|
+
def test_readline_mode_with_limit_set
|
291
|
+
temp_stdin = Tempfile.new "temp_stdin"
|
292
|
+
temp_stdout = Tempfile.new "temp_stdout"
|
293
|
+
|
294
|
+
Readline.input = @input = File.open(temp_stdin.path, 'w+')
|
295
|
+
Readline.output = @output = File.open(temp_stdout.path, 'w+')
|
296
|
+
|
297
|
+
@terminal = HighLine.new(@input, @output)
|
298
|
+
|
299
|
+
@input << "any input\n"
|
300
|
+
@input.rewind
|
301
|
+
|
302
|
+
answer = @terminal.ask("Prompt: ") do |q|
|
303
|
+
q.limit = 50
|
304
|
+
q.readline = true
|
305
|
+
end
|
306
|
+
|
307
|
+
@output.rewind
|
308
|
+
output = @output.read
|
309
|
+
|
310
|
+
assert_equal "any input", answer
|
311
|
+
assert_equal "Prompt: any input\n", output
|
312
|
+
|
313
|
+
@input.close
|
314
|
+
@output.close
|
315
|
+
Readline.input = STDIN
|
316
|
+
Readline.output = STDOUT
|
317
|
+
end
|
318
|
+
|
319
|
+
def test_readline_on_non_echo_question_has_prompt
|
320
|
+
@input << "you can't see me"
|
321
|
+
@input.rewind
|
322
|
+
answer = @terminal.ask("Please enter some hidden text: ") do |q|
|
323
|
+
q.readline = true
|
324
|
+
q.echo = "*"
|
325
|
+
end
|
326
|
+
assert_equal("you can't see me", answer)
|
327
|
+
assert_equal("Please enter some hidden text: ****************\n", @output.string)
|
328
|
+
end
|
329
|
+
|
330
|
+
def test_character_reading
|
331
|
+
# WARNING: This method does NOT cover Unix and Windows savvy testing!
|
332
|
+
@input << "12345"
|
333
|
+
@input.rewind
|
334
|
+
|
335
|
+
answer = @terminal.ask("Enter a single digit: ", Integer) do |q|
|
336
|
+
q.character = :getc
|
337
|
+
end
|
338
|
+
assert_equal(1, answer)
|
339
|
+
end
|
340
|
+
|
341
|
+
def test_frozen_statement
|
342
|
+
@terminal.say('This is a frozen statement'.freeze)
|
343
|
+
assert_equal("This is a frozen statement\n", @output.string)
|
344
|
+
end
|
345
|
+
|
346
|
+
def test_color
|
347
|
+
@terminal.say("This should be <%= BLUE %>blue<%= CLEAR %>!")
|
348
|
+
assert_equal("This should be \e[34mblue\e[0m!\n", @output.string)
|
349
|
+
|
350
|
+
@output.truncate(@output.rewind)
|
351
|
+
|
352
|
+
@terminal.say( "This should be " +
|
353
|
+
"<%= BOLD + ON_WHITE %>bold on white<%= CLEAR %>!" )
|
354
|
+
assert_equal( "This should be \e[1m\e[47mbold on white\e[0m!\n",
|
355
|
+
@output.string )
|
356
|
+
|
357
|
+
@output.truncate(@output.rewind)
|
358
|
+
|
359
|
+
@terminal.say("This should be <%= color('cyan', CYAN) %>!")
|
360
|
+
assert_equal("This should be \e[36mcyan\e[0m!\n", @output.string)
|
361
|
+
|
362
|
+
@output.truncate(@output.rewind)
|
363
|
+
|
364
|
+
@terminal.say( "This should be " +
|
365
|
+
"<%= color('blinking on red', :blink, :on_red) %>!" )
|
366
|
+
assert_equal( "This should be \e[5m\e[41mblinking on red\e[0m!\n",
|
367
|
+
@output.string )
|
368
|
+
|
369
|
+
@output.truncate(@output.rewind)
|
370
|
+
|
371
|
+
@terminal.say("This should be <%= NONE %>none<%= CLEAR %>!")
|
372
|
+
assert_equal("This should be \e[38mnone\e[0m!\n", @output.string)
|
373
|
+
|
374
|
+
@output.truncate(@output.rewind)
|
375
|
+
|
376
|
+
@terminal.say("This should be <%= RGB_906030 %>rgb_906030<%= CLEAR %>!")
|
377
|
+
assert_equal("This should be \e[38;5;137mrgb_906030\e[0m!\n", @output.string)
|
378
|
+
|
379
|
+
@output.truncate(@output.rewind)
|
380
|
+
|
381
|
+
@terminal.say("This should be <%= ON_RGB_C06030 %>on_rgb_c06030<%= CLEAR %>!")
|
382
|
+
assert_equal("This should be \e[48;5;173mon_rgb_c06030\e[0m!\n", @output.string)
|
383
|
+
|
384
|
+
@output.truncate(@output.rewind)
|
385
|
+
|
386
|
+
# Does class method work, too?
|
387
|
+
@terminal.say("This should be <%= HighLine.color('reverse underlined magenta', :reverse, :underline, :magenta) %>!")
|
388
|
+
assert_equal( "This should be \e[7m\e[4m\e[35mreverse underlined magenta\e[0m!\n",
|
389
|
+
@output.string )
|
390
|
+
|
391
|
+
@output.truncate(@output.rewind)
|
392
|
+
|
393
|
+
# turn off color
|
394
|
+
old_setting = HighLine.use_color?
|
395
|
+
assert_nothing_raised(Exception) { HighLine.use_color = false }
|
396
|
+
@terminal.say("This should be <%= color('cyan', CYAN) %>!")
|
397
|
+
assert_equal("This should be cyan!\n", @output.string)
|
398
|
+
HighLine.use_color = old_setting
|
399
|
+
end
|
400
|
+
|
401
|
+
def test_uncolor
|
402
|
+
# instance method
|
403
|
+
assert_equal( "This should be reverse underlined magenta!\n",
|
404
|
+
@terminal.uncolor("This should be \e[7m\e[4m\e[35mreverse underlined magenta\e[0m!\n")
|
405
|
+
)
|
406
|
+
|
407
|
+
@output.truncate(@output.rewind)
|
408
|
+
|
409
|
+
# class method
|
410
|
+
assert_equal( "This should be reverse underlined magenta!\n",
|
411
|
+
HighLine.uncolor("This should be \e[7m\e[4m\e[35mreverse underlined magenta\e[0m!\n")
|
412
|
+
)
|
413
|
+
|
414
|
+
@output.truncate(@output.rewind)
|
415
|
+
|
416
|
+
# RGB color
|
417
|
+
assert_equal( "This should be rgb_906030!\n",
|
418
|
+
@terminal.uncolor("This should be \e[38;5;137mrgb_906030\e[0m!\n")
|
419
|
+
)
|
420
|
+
end
|
421
|
+
|
422
|
+
def test_grey_is_the_same_of_gray
|
423
|
+
@terminal.say("<%= GRAY %>")
|
424
|
+
gray_code = @output.string.dup
|
425
|
+
@output.truncate(@output.rewind)
|
426
|
+
|
427
|
+
@terminal.say("<%= GREY %>")
|
428
|
+
grey_code = @output.string.dup
|
429
|
+
@output.truncate(@output.rewind)
|
430
|
+
|
431
|
+
assert_equal gray_code, grey_code
|
432
|
+
end
|
433
|
+
|
434
|
+
def test_light_is_the_same_as_bright
|
435
|
+
@terminal.say("<%= BRIGHT_BLUE %>")
|
436
|
+
bright_blue_code = @output.string.dup
|
437
|
+
@output.truncate(@output.rewind)
|
438
|
+
|
439
|
+
@terminal.say("<%= LIGHT_BLUE %>")
|
440
|
+
light_blue_code = @output.string.dup
|
441
|
+
@output.truncate(@output.rewind)
|
442
|
+
|
443
|
+
assert_equal bright_blue_code, light_blue_code
|
444
|
+
end
|
445
|
+
|
446
|
+
def test_confirm
|
447
|
+
@input << "junk.txt\nno\nsave.txt\ny\n"
|
448
|
+
@input.rewind
|
449
|
+
|
450
|
+
answer = @terminal.ask("Enter a filename: ") do |q|
|
451
|
+
q.confirm = "Are you sure you want to overwrite <%= @answer %>? "
|
452
|
+
q.responses[:ask_on_error] = :question
|
453
|
+
end
|
454
|
+
assert_equal("save.txt", answer)
|
455
|
+
assert_equal( "Enter a filename: " +
|
456
|
+
"Are you sure you want to overwrite junk.txt? " +
|
457
|
+
"Enter a filename: " +
|
458
|
+
"Are you sure you want to overwrite save.txt? ",
|
459
|
+
@output.string )
|
460
|
+
|
461
|
+
@input.truncate(@input.rewind)
|
462
|
+
@input << "junk.txt\nyes\nsave.txt\nn\n"
|
463
|
+
@input.rewind
|
464
|
+
@output.truncate(@output.rewind)
|
465
|
+
|
466
|
+
answer = @terminal.ask("Enter a filename: ") do |q|
|
467
|
+
q.confirm = "Are you sure you want to overwrite <%= @answer %>? "
|
468
|
+
end
|
469
|
+
assert_equal("junk.txt", answer)
|
470
|
+
assert_equal( "Enter a filename: " +
|
471
|
+
"Are you sure you want to overwrite junk.txt? ",
|
472
|
+
@output.string )
|
473
|
+
end
|
474
|
+
|
475
|
+
def test_defaults
|
476
|
+
@input << "\nNo Comment\n"
|
477
|
+
@input.rewind
|
478
|
+
|
479
|
+
answer = @terminal.ask("Are you sexually active? ") do |q|
|
480
|
+
q.validate = /\Ay(?:es)?|no?|no comment\Z/i
|
481
|
+
end
|
482
|
+
assert_equal("No Comment", answer)
|
483
|
+
|
484
|
+
@input.truncate(@input.rewind)
|
485
|
+
@input << "\nYes\n"
|
486
|
+
@input.rewind
|
487
|
+
@output.truncate(@output.rewind)
|
488
|
+
|
489
|
+
answer = @terminal.ask("Are you sexually active? ") do |q|
|
490
|
+
q.default = "No Comment"
|
491
|
+
q.validate = /\Ay(?:es)?|no?|no comment\Z/i
|
492
|
+
end
|
493
|
+
assert_equal("No Comment", answer)
|
494
|
+
assert_equal( "Are you sexually active? |No Comment| ",
|
495
|
+
@output.string )
|
496
|
+
end
|
497
|
+
|
498
|
+
def test_default_with_String
|
499
|
+
@input << "\n"
|
500
|
+
@input.rewind
|
501
|
+
|
502
|
+
answer = @terminal.ask("Question: ") do |q|
|
503
|
+
q.default = "string"
|
504
|
+
end
|
505
|
+
|
506
|
+
assert_equal "string", answer
|
507
|
+
assert_equal "Question: |string| ", @output.string
|
508
|
+
end
|
509
|
+
|
510
|
+
def test_default_with_Symbol
|
511
|
+
# With a Symbol, it should show up the String version
|
512
|
+
# at prompt, but return the Symbol as answer
|
513
|
+
|
514
|
+
@input << "\n"
|
515
|
+
@input.rewind
|
516
|
+
|
517
|
+
answer = @terminal.ask("Question: ") do |q|
|
518
|
+
q.default = :string
|
519
|
+
end
|
520
|
+
|
521
|
+
assert_equal :string, answer
|
522
|
+
assert_equal "Question: |string| ", @output.string
|
523
|
+
end
|
524
|
+
|
525
|
+
def test_default_with_non_String_objects
|
526
|
+
# With a non-string object, it should not show
|
527
|
+
# any 'default' at prompt line. And should
|
528
|
+
# return the "default" object, without conversion.
|
529
|
+
|
530
|
+
@input << "\n"
|
531
|
+
@input.rewind
|
532
|
+
|
533
|
+
default_non_string_object = Object.new
|
534
|
+
|
535
|
+
answer = @terminal.ask("Question: ") do |q|
|
536
|
+
q.default = default_non_string_object
|
537
|
+
end
|
538
|
+
|
539
|
+
assert_equal default_non_string_object, answer
|
540
|
+
assert_equal "Question: ", @output.string
|
541
|
+
end
|
542
|
+
|
543
|
+
def test_string_preservation
|
544
|
+
@input << "Maybe\nYes\n"
|
545
|
+
@input.rewind
|
546
|
+
|
547
|
+
my_string = "Is that your final answer? "
|
548
|
+
|
549
|
+
@terminal.ask(my_string) { |q| q.default = "Possibly" }
|
550
|
+
@terminal.ask(my_string) { |q| q.default = "Maybe" }
|
551
|
+
|
552
|
+
assert_equal("Is that your final answer? ", my_string)
|
553
|
+
end
|
554
|
+
|
555
|
+
def test_empty
|
556
|
+
@input << "\n"
|
557
|
+
@input.rewind
|
558
|
+
|
559
|
+
answer = @terminal.ask("") do |q|
|
560
|
+
q.default = "yes"
|
561
|
+
q.validate = /\Ay(?:es)?|no?\Z/i
|
562
|
+
end
|
563
|
+
assert_equal("yes", answer)
|
564
|
+
end
|
565
|
+
|
566
|
+
def test_erb
|
567
|
+
@terminal.say( "The integers from 1 to 10 are:\n" +
|
568
|
+
"% (1...10).each do |n|\n" +
|
569
|
+
"\t<%= n %>,\n" +
|
570
|
+
"% end\n" +
|
571
|
+
"\tand 10" )
|
572
|
+
assert_equal( "The integers from 1 to 10 are:\n" +
|
573
|
+
"\t1,\n\t2,\n\t3,\n\t4,\n\t5,\n" +
|
574
|
+
"\t6,\n\t7,\n\t8,\n\t9,\n\tand 10\n",
|
575
|
+
@output.string )
|
576
|
+
end
|
577
|
+
|
578
|
+
def test_files
|
579
|
+
@input << "#{File.basename(__FILE__)[0, 5]}\n"
|
580
|
+
@input.rewind
|
581
|
+
|
582
|
+
assert_equal "tc_hi\n",@input.read
|
583
|
+
@input.rewind
|
584
|
+
|
585
|
+
file = @terminal.ask("Select a file: ", File) do |q|
|
586
|
+
q.directory = File.expand_path(File.dirname(__FILE__))
|
587
|
+
q.glob = "*.rb"
|
588
|
+
end
|
589
|
+
assert_instance_of(File, file)
|
590
|
+
assert_equal("# encoding: utf-8\n", file.gets)
|
591
|
+
file.close
|
592
|
+
|
593
|
+
@input.rewind
|
594
|
+
|
595
|
+
pathname = @terminal.ask("Select a file: ", Pathname) do |q|
|
596
|
+
q.directory = File.expand_path(File.dirname(__FILE__))
|
597
|
+
q.glob = "*.rb"
|
598
|
+
end
|
599
|
+
assert_instance_of(Pathname, pathname)
|
600
|
+
assert_equal(File.size(__FILE__), pathname.size)
|
601
|
+
end
|
602
|
+
|
603
|
+
def test_gather
|
604
|
+
@input << "James\nDana\nStorm\nGypsy\n\n"
|
605
|
+
@input.rewind
|
606
|
+
|
607
|
+
answers = @terminal.ask("Enter four names:") do |q|
|
608
|
+
q.gather = 4
|
609
|
+
end
|
610
|
+
assert_equal(%w{James Dana Storm Gypsy}, answers)
|
611
|
+
assert_equal("\n", @input.gets)
|
612
|
+
assert_equal("Enter four names:\n", @output.string)
|
613
|
+
|
614
|
+
@input.rewind
|
615
|
+
|
616
|
+
answers = @terminal.ask("Enter four names:") do |q|
|
617
|
+
q.gather = ""
|
618
|
+
end
|
619
|
+
assert_equal(%w{James Dana Storm Gypsy}, answers)
|
620
|
+
|
621
|
+
@input.rewind
|
622
|
+
|
623
|
+
answers = @terminal.ask("Enter four names:") do |q|
|
624
|
+
q.gather = /^\s*$/
|
625
|
+
end
|
626
|
+
assert_equal(%w{James Dana Storm Gypsy}, answers)
|
627
|
+
|
628
|
+
@input.truncate(@input.rewind)
|
629
|
+
@input << "29\n49\n30\n"
|
630
|
+
@input.rewind
|
631
|
+
@output.truncate(@output.rewind)
|
632
|
+
|
633
|
+
answers = @terminal.ask("<%= @key %>: ", Integer) do |q|
|
634
|
+
q.gather = { "Age" => 0, "Wife's Age" => 0, "Father's Age" => 0}
|
635
|
+
end
|
636
|
+
assert_equal( { "Age" => 29, "Wife's Age" => 30, "Father's Age" => 49},
|
637
|
+
answers )
|
638
|
+
assert_equal("Age: Father's Age: Wife's Age: ", @output.string)
|
639
|
+
end
|
640
|
+
|
641
|
+
def test_typing_verification
|
642
|
+
@input << "all work and no play makes jack a dull boy\n" * 3
|
643
|
+
@input.rewind
|
644
|
+
|
645
|
+
answer = @terminal.ask("How's work? ") do |q|
|
646
|
+
q.gather = 3
|
647
|
+
q.verify_match = true
|
648
|
+
end
|
649
|
+
assert_equal("all work and no play makes jack a dull boy", answer)
|
650
|
+
|
651
|
+
@input.truncate(@input.rewind)
|
652
|
+
@input << "all play and no work makes jack a mere toy\n"
|
653
|
+
@input << "all work and no play makes jack a dull boy\n" * 5
|
654
|
+
@input.rewind
|
655
|
+
@output.truncate(@output.rewind)
|
656
|
+
|
657
|
+
answer = @terminal.ask("How are things going? ") do |q|
|
658
|
+
q.gather = 3
|
659
|
+
q.verify_match = true
|
660
|
+
q.responses[:mismatch] = 'Typing mismatch!'
|
661
|
+
q.responses[:ask_on_error] = ''
|
662
|
+
end
|
663
|
+
assert_equal("all work and no play makes jack a dull boy", answer)
|
664
|
+
|
665
|
+
# now try using a hash for gather
|
666
|
+
|
667
|
+
@input.truncate(@input.rewind)
|
668
|
+
@input << "Password\nPassword\n"
|
669
|
+
@input.rewind
|
670
|
+
@output.truncate(@output.rewind)
|
671
|
+
|
672
|
+
answer = @terminal.ask("<%= @key %>: ") do |q|
|
673
|
+
q.verify_match = true
|
674
|
+
q.gather = {"Enter a password" => '', "Please type it again" => ''}
|
675
|
+
end
|
676
|
+
assert_equal("Password", answer)
|
677
|
+
|
678
|
+
@input.truncate(@input.rewind)
|
679
|
+
@input << "Password\nMistake\nPassword\nPassword\n"
|
680
|
+
@input.rewind
|
681
|
+
@output.truncate(@output.rewind)
|
682
|
+
|
683
|
+
answer = @terminal.ask("<%= @key %>: ") do |q|
|
684
|
+
q.verify_match = true
|
685
|
+
q.responses[:mismatch] = 'Typing mismatch!'
|
686
|
+
q.responses[:ask_on_error] = ''
|
687
|
+
q.gather = {"Enter a password" => '', "Please type it again" => ''}
|
688
|
+
end
|
689
|
+
|
690
|
+
assert_equal("Password", answer)
|
691
|
+
assert_equal( "Enter a password: " +
|
692
|
+
"Please type it again: " +
|
693
|
+
"Typing mismatch!\n" +
|
694
|
+
"Enter a password: " +
|
695
|
+
"Please type it again: ", @output.string )
|
696
|
+
end
|
697
|
+
|
698
|
+
def test_lists
|
699
|
+
digits = %w{Zero One Two Three Four Five Six Seven Eight Nine}
|
700
|
+
erb_digits = digits.dup
|
701
|
+
erb_digits[erb_digits.index("Five")] = "<%= color('Five', :blue) %%>"
|
702
|
+
|
703
|
+
@terminal.say("<%= list(#{digits.inspect}) %>")
|
704
|
+
assert_equal(digits.map { |d| "#{d}\n" }.join, @output.string)
|
705
|
+
|
706
|
+
@output.truncate(@output.rewind)
|
707
|
+
|
708
|
+
@terminal.say("<%= list(#{digits.inspect}, :inline) %>")
|
709
|
+
assert_equal( digits[0..-2].join(", ") + " or #{digits.last}\n",
|
710
|
+
@output.string )
|
711
|
+
|
712
|
+
@output.truncate(@output.rewind)
|
713
|
+
|
714
|
+
@terminal.say("<%= list(#{digits.inspect}, :inline, ' and ') %>")
|
715
|
+
assert_equal( digits[0..-2].join(", ") + " and #{digits.last}\n",
|
716
|
+
@output.string )
|
717
|
+
|
718
|
+
@output.truncate(@output.rewind)
|
719
|
+
|
720
|
+
@terminal.say("<%= list(#{digits.inspect}, :columns_down, 3) %>")
|
721
|
+
assert_equal( "Zero Four Eight\n" +
|
722
|
+
"One Five Nine \n" +
|
723
|
+
"Two Six \n" +
|
724
|
+
"Three Seven\n",
|
725
|
+
@output.string )
|
726
|
+
|
727
|
+
@output.truncate(@output.rewind)
|
728
|
+
|
729
|
+
@terminal.say("<%= list(#{erb_digits.inspect}, :columns_down, 3) %>")
|
730
|
+
assert_equal( "Zero Four Eight\n" +
|
731
|
+
"One \e[34mFive\e[0m Nine \n" +
|
732
|
+
"Two Six \n" +
|
733
|
+
"Three Seven\n",
|
734
|
+
@output.string )
|
735
|
+
|
736
|
+
colums_of_twenty = ["12345678901234567890"] * 5
|
737
|
+
|
738
|
+
@output.truncate(@output.rewind)
|
739
|
+
|
740
|
+
@terminal.say("<%= list(#{colums_of_twenty.inspect}, :columns_down) %>")
|
741
|
+
assert_equal( "12345678901234567890 12345678901234567890 " +
|
742
|
+
"12345678901234567890\n" +
|
743
|
+
"12345678901234567890 12345678901234567890\n",
|
744
|
+
@output.string )
|
745
|
+
|
746
|
+
@output.truncate(@output.rewind)
|
747
|
+
|
748
|
+
@terminal.say("<%= list(#{digits.inspect}, :columns_across, 3) %>")
|
749
|
+
assert_equal( "Zero One Two \n" +
|
750
|
+
"Three Four Five \n" +
|
751
|
+
"Six Seven Eight\n" +
|
752
|
+
"Nine \n",
|
753
|
+
@output.string )
|
754
|
+
|
755
|
+
colums_of_twenty.pop
|
756
|
+
|
757
|
+
@output.truncate(@output.rewind)
|
758
|
+
|
759
|
+
@terminal.say("<%= list( #{colums_of_twenty.inspect}, :columns_across ) %>")
|
760
|
+
assert_equal( "12345678901234567890 12345678901234567890 " +
|
761
|
+
"12345678901234567890\n" +
|
762
|
+
"12345678901234567890\n",
|
763
|
+
@output.string )
|
764
|
+
|
765
|
+
@output.truncate(@output.rewind)
|
766
|
+
|
767
|
+
wide = %w[0123456789 a b c d e f g h i j k l m n o p q r s t u v w x y z]
|
768
|
+
|
769
|
+
@terminal.say("<%= list( #{wide.inspect}, :uneven_columns_across ) %>")
|
770
|
+
assert_equal( "0123456789 a b c d e f g h i j k l m n o " +
|
771
|
+
"p q r s t u v w\n" +
|
772
|
+
"x y z\n",
|
773
|
+
@output.string )
|
774
|
+
|
775
|
+
@output.truncate(@output.rewind)
|
776
|
+
|
777
|
+
@terminal.say("<%= list( #{wide.inspect}, :uneven_columns_across, 10 ) %>")
|
778
|
+
assert_equal( "0123456789 a b c d e f g h i\n" +
|
779
|
+
"j k l m n o p q r s\n" +
|
780
|
+
"t u v w x y z\n",
|
781
|
+
@output.string )
|
782
|
+
|
783
|
+
@output.truncate(@output.rewind)
|
784
|
+
|
785
|
+
@terminal.say("<%= list( #{wide.inspect}, :uneven_columns_down ) %>")
|
786
|
+
assert_equal( "0123456789 b d f h j l n p r t v x z\n" +
|
787
|
+
"a c e g i k m o q s u w y\n",
|
788
|
+
@output.string )
|
789
|
+
|
790
|
+
@output.truncate(@output.rewind)
|
791
|
+
|
792
|
+
@terminal.say("<%= list( #{wide.inspect}, :uneven_columns_down, 10 ) %>")
|
793
|
+
assert_equal( "0123456789 c f i l o r u x\n" +
|
794
|
+
"a d g j m p s v y\n" +
|
795
|
+
"b e h k n q t w z\n",
|
796
|
+
@output.string )
|
797
|
+
end
|
798
|
+
|
799
|
+
def test_lists_with_zero_items
|
800
|
+
modes = [nil, :rows, :inline, :columns_across, :columns_down]
|
801
|
+
modes.each do |mode|
|
802
|
+
result = @terminal.list([], mode)
|
803
|
+
assert_equal("", result)
|
804
|
+
end
|
805
|
+
end
|
806
|
+
|
807
|
+
def test_lists_with_nil_items
|
808
|
+
modes = [nil]
|
809
|
+
modes.each do |mode|
|
810
|
+
result = @terminal.list([nil], mode)
|
811
|
+
assert_equal("\n", result)
|
812
|
+
end
|
813
|
+
end
|
814
|
+
|
815
|
+
def test_lists_with_one_item
|
816
|
+
items = ['Zero']
|
817
|
+
modes = { nil => "Zero\n",
|
818
|
+
:rows => "Zero\n",
|
819
|
+
:inline => "Zero",
|
820
|
+
:columns_across => "Zero\n",
|
821
|
+
:columns_down => "Zero\n" }
|
822
|
+
|
823
|
+
modes.each do |mode, expected|
|
824
|
+
result = @terminal.list(items, mode)
|
825
|
+
assert_equal(expected, result)
|
826
|
+
end
|
827
|
+
end
|
828
|
+
|
829
|
+
def test_lists_with_two_items
|
830
|
+
items = ['Zero', 'One']
|
831
|
+
modes = { nil => "Zero\nOne\n",
|
832
|
+
:rows => "Zero\nOne\n",
|
833
|
+
:inline => "Zero or One",
|
834
|
+
:columns_across => "Zero One \n",
|
835
|
+
:columns_down => "Zero One \n" }
|
836
|
+
|
837
|
+
modes.each do |mode, expected|
|
838
|
+
result = @terminal.list(items, mode)
|
839
|
+
assert_equal(expected, result)
|
840
|
+
end
|
841
|
+
end
|
842
|
+
|
843
|
+
def test_lists_with_three_items
|
844
|
+
items = ['Zero', 'One', 'Two']
|
845
|
+
modes = { nil => "Zero\nOne\nTwo\n",
|
846
|
+
:rows => "Zero\nOne\nTwo\n",
|
847
|
+
:inline => "Zero, One or Two",
|
848
|
+
:columns_across => "Zero One Two \n",
|
849
|
+
:columns_down => "Zero One Two \n" }
|
850
|
+
|
851
|
+
modes.each do |mode, expected|
|
852
|
+
result = @terminal.list(items, mode)
|
853
|
+
assert_equal(expected, result)
|
854
|
+
end
|
855
|
+
end
|
856
|
+
|
857
|
+
def test_mode
|
858
|
+
assert(%w[Win32API termios ncurses stty jline].include?(HighLine::CHARACTER_MODE),
|
859
|
+
"#{HighLine::CHARACTER_MODE} not in list")
|
860
|
+
end
|
861
|
+
|
862
|
+
class NameClass
|
863
|
+
def self.parse( string )
|
864
|
+
if string =~ /^\s*(\w+),\s*(\w+)\s+(\w+)\s*$/
|
865
|
+
self.new($2, $3, $1)
|
866
|
+
else
|
867
|
+
raise ArgumentError, "Invalid name format."
|
868
|
+
end
|
869
|
+
end
|
870
|
+
|
871
|
+
def initialize(first, middle, last)
|
872
|
+
@first, @middle, @last = first, middle, last
|
873
|
+
end
|
874
|
+
|
875
|
+
attr_reader :first, :middle, :last
|
876
|
+
end
|
877
|
+
|
878
|
+
def test_my_class_conversion
|
879
|
+
@input << "Gray, James Edward\n"
|
880
|
+
@input.rewind
|
881
|
+
|
882
|
+
answer = @terminal.ask("Your name? ", NameClass) do |q|
|
883
|
+
q.validate = lambda do |name|
|
884
|
+
names = name.split(/,\s*/)
|
885
|
+
return false unless names.size == 2
|
886
|
+
return false if names.first =~ /\s/
|
887
|
+
names.last.split.size == 2
|
888
|
+
end
|
889
|
+
end
|
890
|
+
assert_instance_of(NameClass, answer)
|
891
|
+
assert_equal("Gray", answer.last)
|
892
|
+
assert_equal("James", answer.first)
|
893
|
+
assert_equal("Edward", answer.middle)
|
894
|
+
end
|
895
|
+
|
896
|
+
def test_no_echo
|
897
|
+
@input << "password\r"
|
898
|
+
@input.rewind
|
899
|
+
|
900
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
901
|
+
q.echo = false
|
902
|
+
end
|
903
|
+
assert_equal("password", answer)
|
904
|
+
assert_equal("Please enter your password: \n", @output.string)
|
905
|
+
|
906
|
+
@input.rewind
|
907
|
+
@output.truncate(@output.rewind)
|
908
|
+
|
909
|
+
answer = @terminal.ask("Pick a letter or number: ") do |q|
|
910
|
+
q.character = true
|
911
|
+
q.echo = false
|
912
|
+
end
|
913
|
+
assert_equal("p", answer)
|
914
|
+
assert_equal("a", @input.getc.chr)
|
915
|
+
assert_equal("Pick a letter or number: \n", @output.string)
|
916
|
+
end
|
917
|
+
|
918
|
+
def test_correct_string_encoding_when_echo_false
|
919
|
+
@input << "ação\r" # An UTF-8 portuguese word for 'action'
|
920
|
+
@input.rewind
|
921
|
+
|
922
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
923
|
+
q.echo = false
|
924
|
+
end
|
925
|
+
|
926
|
+
assert_equal "ação", answer
|
927
|
+
assert_equal Encoding::default_external, answer.encoding
|
928
|
+
end
|
929
|
+
|
930
|
+
def test_backspace_with_ascii_when_echo_false
|
931
|
+
@input << "password\b\r"
|
932
|
+
@input.rewind
|
933
|
+
|
934
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
935
|
+
q.echo = false
|
936
|
+
end
|
937
|
+
|
938
|
+
assert_not_equal("password", answer)
|
939
|
+
assert_equal("passwor", answer)
|
940
|
+
end
|
941
|
+
|
942
|
+
def test_backspace_with_utf8_when_echo_false
|
943
|
+
@input << "maçã\b\r"
|
944
|
+
@input.rewind
|
945
|
+
|
946
|
+
answer = @terminal.ask("Please enter your password: ") do |q|
|
947
|
+
q.echo = false
|
948
|
+
end
|
949
|
+
|
950
|
+
assert_not_equal("maçã", answer)
|
951
|
+
assert_equal("maç", answer)
|
952
|
+
end
|
953
|
+
|
954
|
+
def test_echoing_with_utf8_when_echo_is_star
|
955
|
+
@input << "maçã\r"
|
956
|
+
@input.rewind
|
957
|
+
|
958
|
+
answer = @terminal.ask("Type: ") do |q|
|
959
|
+
q.echo = "*"
|
960
|
+
end
|
961
|
+
|
962
|
+
assert_equal("Type: ****\n", @output.string)
|
963
|
+
assert_equal("maçã", answer)
|
964
|
+
end
|
965
|
+
|
966
|
+
def test_paging
|
967
|
+
@terminal.page_at = 22
|
968
|
+
|
969
|
+
@input << "\n\n"
|
970
|
+
@input.rewind
|
971
|
+
|
972
|
+
@terminal.say((1..50).map { |n| "This is line #{n}.\n"}.join)
|
973
|
+
assert_equal( (1..22).map { |n| "This is line #{n}.\n"}.join +
|
974
|
+
"\n-- press enter/return to continue or q to stop -- \n\n" +
|
975
|
+
(23..44).map { |n| "This is line #{n}.\n"}.join +
|
976
|
+
"\n-- press enter/return to continue or q to stop -- \n\n" +
|
977
|
+
(45..50).map { |n| "This is line #{n}.\n"}.join,
|
978
|
+
@output.string )
|
979
|
+
end
|
980
|
+
|
981
|
+
def test_statement_lines_count_equal_to_page_at_shouldnt_paginate
|
982
|
+
@terminal.page_at = 6
|
983
|
+
|
984
|
+
@input << "\n"
|
985
|
+
@input.rewind
|
986
|
+
|
987
|
+
list = "a\nb\nc\nd\ne\nf\n"
|
988
|
+
|
989
|
+
@terminal.say(list)
|
990
|
+
assert_equal(list, @output.string)
|
991
|
+
end
|
992
|
+
|
993
|
+
def test_statement_with_one_line_bigger_than_page_at_should_paginate
|
994
|
+
@terminal.page_at = 6
|
995
|
+
|
996
|
+
@input << "\n"
|
997
|
+
@input.rewind
|
998
|
+
|
999
|
+
list = "a\nb\nc\nd\ne\nf\ng\n"
|
1000
|
+
|
1001
|
+
paginated =
|
1002
|
+
"a\nb\nc\nd\ne\nf\n" \
|
1003
|
+
"\n-- press enter/return to continue or q to stop -- \n\n" \
|
1004
|
+
"g\n"
|
1005
|
+
|
1006
|
+
@terminal.say(list)
|
1007
|
+
assert_equal(paginated, @output.string)
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
def test_quiting_paging_shouldnt_raise
|
1011
|
+
# See https://github.com/JEG2/highline/issues/168
|
1012
|
+
|
1013
|
+
@terminal.page_at = 6
|
1014
|
+
|
1015
|
+
@input << "q"
|
1016
|
+
@input.rewind
|
1017
|
+
|
1018
|
+
list = "a\nb\nc\nd\ne\nf\n"
|
1019
|
+
|
1020
|
+
assert_nothing_raised { @terminal.say(list) }
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
def test_range_requirements
|
1024
|
+
@input << "112\n-541\n28\n"
|
1025
|
+
@input.rewind
|
1026
|
+
|
1027
|
+
answer = @terminal.ask("Tell me your age.", Integer) do |q|
|
1028
|
+
q.in = 0..105
|
1029
|
+
end
|
1030
|
+
assert_equal(28, answer)
|
1031
|
+
assert_equal( "Tell me your age.\n" +
|
1032
|
+
"Your answer isn't within the expected range " +
|
1033
|
+
"(included in 0..105).\n" +
|
1034
|
+
"? " +
|
1035
|
+
"Your answer isn't within the expected range " +
|
1036
|
+
"(included in 0..105).\n" +
|
1037
|
+
"? ", @output.string )
|
1038
|
+
|
1039
|
+
@input.truncate(@input.rewind)
|
1040
|
+
@input << "1\n-541\n28\n"
|
1041
|
+
@input.rewind
|
1042
|
+
@output.truncate(@output.rewind)
|
1043
|
+
|
1044
|
+
answer = @terminal.ask("Tell me your age.", Integer) do |q|
|
1045
|
+
q.above = 3
|
1046
|
+
end
|
1047
|
+
assert_equal(28, answer)
|
1048
|
+
assert_equal( "Tell me your age.\n" +
|
1049
|
+
"Your answer isn't within the expected range " +
|
1050
|
+
"(above 3).\n" +
|
1051
|
+
"? " +
|
1052
|
+
"Your answer isn't within the expected range " +
|
1053
|
+
"(above 3).\n" +
|
1054
|
+
"? ", @output.string )
|
1055
|
+
|
1056
|
+
@input.truncate(@input.rewind)
|
1057
|
+
@input << "1\n28\n-541\n"
|
1058
|
+
@input.rewind
|
1059
|
+
@output.truncate(@output.rewind)
|
1060
|
+
|
1061
|
+
answer = @terminal.ask("Lowest numer you can think of?", Integer) do |q|
|
1062
|
+
q.below = 0
|
1063
|
+
end
|
1064
|
+
assert_equal(-541, answer)
|
1065
|
+
assert_equal( "Lowest numer you can think of?\n" +
|
1066
|
+
"Your answer isn't within the expected range " +
|
1067
|
+
"(below 0).\n" +
|
1068
|
+
"? " +
|
1069
|
+
"Your answer isn't within the expected range " +
|
1070
|
+
"(below 0).\n" +
|
1071
|
+
"? ", @output.string )
|
1072
|
+
|
1073
|
+
@input.truncate(@input.rewind)
|
1074
|
+
@input << "1\n-541\n6\n"
|
1075
|
+
@input.rewind
|
1076
|
+
@output.truncate(@output.rewind)
|
1077
|
+
|
1078
|
+
answer = @terminal.ask("Enter a low even number: ", Integer) do |q|
|
1079
|
+
q.above = 0
|
1080
|
+
q.below = 10
|
1081
|
+
q.in = [2, 4, 6, 8]
|
1082
|
+
end
|
1083
|
+
assert_equal(6, answer)
|
1084
|
+
assert_equal( "Enter a low even number: " +
|
1085
|
+
"Your answer isn't within the expected range " +
|
1086
|
+
"(above 0, below 10, and included in [2, 4, 6, 8]).\n" +
|
1087
|
+
"? " +
|
1088
|
+
"Your answer isn't within the expected range " +
|
1089
|
+
"(above 0, below 10, and included in [2, 4, 6, 8]).\n" +
|
1090
|
+
"? ", @output.string )
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
def test_reask
|
1094
|
+
number = 61676
|
1095
|
+
@input << "Junk!\n" << number << "\n"
|
1096
|
+
@input.rewind
|
1097
|
+
|
1098
|
+
answer = @terminal.ask("Favorite number? ", Integer)
|
1099
|
+
assert_kind_of(Integer, number)
|
1100
|
+
assert_instance_of(Fixnum, number)
|
1101
|
+
assert_equal(number, answer)
|
1102
|
+
assert_equal( "Favorite number? " +
|
1103
|
+
"You must enter a valid Integer.\n" +
|
1104
|
+
"? ", @output.string )
|
1105
|
+
|
1106
|
+
@input.rewind
|
1107
|
+
@output.truncate(@output.rewind)
|
1108
|
+
|
1109
|
+
answer = @terminal.ask("Favorite number? ", Integer) do |q|
|
1110
|
+
q.responses[:ask_on_error] = :question
|
1111
|
+
q.responses[:invalid_type] = "Not a valid number!"
|
1112
|
+
end
|
1113
|
+
assert_kind_of(Integer, number)
|
1114
|
+
assert_instance_of(Fixnum, number)
|
1115
|
+
assert_equal(number, answer)
|
1116
|
+
assert_equal( "Favorite number? " +
|
1117
|
+
"Not a valid number!\n" +
|
1118
|
+
"Favorite number? ", @output.string )
|
1119
|
+
|
1120
|
+
@input.truncate(@input.rewind)
|
1121
|
+
@input << "gen\ngene\n"
|
1122
|
+
@input.rewind
|
1123
|
+
@output.truncate(@output.rewind)
|
1124
|
+
|
1125
|
+
answer = @terminal.ask("Select a mode: ", [:generate, :gentle])
|
1126
|
+
assert_instance_of(Symbol, answer)
|
1127
|
+
assert_equal(:generate, answer)
|
1128
|
+
assert_equal( "Select a mode: " +
|
1129
|
+
"Ambiguous choice. " +
|
1130
|
+
"Please choose one of [generate, gentle].\n" +
|
1131
|
+
"? ", @output.string )
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
def test_response_embedding
|
1135
|
+
@input << "112\n-541\n28\n"
|
1136
|
+
@input.rewind
|
1137
|
+
|
1138
|
+
answer = @terminal.ask("Tell me your age.", Integer) do |q|
|
1139
|
+
q.in = 0..105
|
1140
|
+
q.responses[:not_in_range] = "Need a <%= @question.answer_type %>" +
|
1141
|
+
" <%= @question.expected_range %>."
|
1142
|
+
end
|
1143
|
+
assert_equal(28, answer)
|
1144
|
+
assert_equal( "Tell me your age.\n" +
|
1145
|
+
"Need a Integer included in 0..105.\n" +
|
1146
|
+
"? " +
|
1147
|
+
"Need a Integer included in 0..105.\n" +
|
1148
|
+
"? ", @output.string )
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
def test_say
|
1152
|
+
@terminal.say("This will have a newline.")
|
1153
|
+
assert_equal("This will have a newline.\n", @output.string)
|
1154
|
+
|
1155
|
+
@output.truncate(@output.rewind)
|
1156
|
+
|
1157
|
+
@terminal.say("This will also have one newline.\n")
|
1158
|
+
assert_equal("This will also have one newline.\n", @output.string)
|
1159
|
+
|
1160
|
+
@output.truncate(@output.rewind)
|
1161
|
+
|
1162
|
+
@terminal.say("This will not have a newline. ")
|
1163
|
+
assert_equal("This will not have a newline. ", @output.string)
|
1164
|
+
|
1165
|
+
@output.truncate(@output.rewind)
|
1166
|
+
|
1167
|
+
@terminal.say("This will not\n end with a newline. ")
|
1168
|
+
assert_equal("This will not\n end with a newline. ", @output.string)
|
1169
|
+
|
1170
|
+
@output.truncate(@output.rewind)
|
1171
|
+
|
1172
|
+
@terminal.say("This will \nend with a newline.")
|
1173
|
+
assert_equal("This will \nend with a newline.\n", @output.string)
|
1174
|
+
|
1175
|
+
@output.truncate(@output.rewind)
|
1176
|
+
|
1177
|
+
colorized = @terminal.color("This will not have a newline. ", :green)
|
1178
|
+
@terminal.say(colorized)
|
1179
|
+
assert_equal("\e[32mThis will not have a newline. \e[0m", @output.string)
|
1180
|
+
|
1181
|
+
@output.truncate(@output.rewind)
|
1182
|
+
|
1183
|
+
colorized = @terminal.color("This will have a newline.", :green)
|
1184
|
+
@terminal.say(colorized)
|
1185
|
+
assert_equal("\e[32mThis will have a newline.\e[0m\n", @output.string)
|
1186
|
+
|
1187
|
+
@output.truncate(@output.rewind)
|
1188
|
+
|
1189
|
+
assert_nothing_raised { @terminal.say(nil) }
|
1190
|
+
assert_equal("", @output.string)
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
def test_say_handles_non_string_argument
|
1194
|
+
integer = 10
|
1195
|
+
hash = { :a => 20 }
|
1196
|
+
|
1197
|
+
assert_nothing_raised { @terminal.say(integer) }
|
1198
|
+
assert_equal String(integer), @output.string.chomp
|
1199
|
+
|
1200
|
+
@output.truncate(@output.rewind)
|
1201
|
+
|
1202
|
+
assert_nothing_raised { @terminal.say(hash) }
|
1203
|
+
assert_equal String(hash), @output.string.chomp
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
def test_terminal_size
|
1207
|
+
assert_instance_of(Fixnum, @terminal.terminal_size[0])
|
1208
|
+
assert_instance_of(Fixnum, @terminal.terminal_size[1])
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
def test_type_conversion
|
1212
|
+
number = 61676
|
1213
|
+
@input << number << "\n"
|
1214
|
+
@input.rewind
|
1215
|
+
|
1216
|
+
answer = @terminal.ask("Favorite number? ", Integer)
|
1217
|
+
assert_kind_of(Integer, answer)
|
1218
|
+
assert_instance_of(Fixnum, answer)
|
1219
|
+
assert_equal(number, answer)
|
1220
|
+
|
1221
|
+
@input.truncate(@input.rewind)
|
1222
|
+
number = 1_000_000_000_000_000_000_000_000_000_000
|
1223
|
+
@input << number << "\n"
|
1224
|
+
@input.rewind
|
1225
|
+
|
1226
|
+
answer = @terminal.ask("Favorite number? ", Integer)
|
1227
|
+
assert_kind_of(Integer, answer)
|
1228
|
+
assert_instance_of(Bignum, answer)
|
1229
|
+
assert_equal(number, answer)
|
1230
|
+
|
1231
|
+
@input.truncate(@input.rewind)
|
1232
|
+
number = 10.5002
|
1233
|
+
@input << number << "\n"
|
1234
|
+
@input.rewind
|
1235
|
+
|
1236
|
+
answer = @terminal.ask( "Favorite number? ",
|
1237
|
+
lambda { |n| n.to_f.abs.round } )
|
1238
|
+
assert_kind_of(Integer, answer)
|
1239
|
+
assert_instance_of(Fixnum, answer)
|
1240
|
+
assert_equal(11, answer)
|
1241
|
+
|
1242
|
+
@input.truncate(@input.rewind)
|
1243
|
+
animal = :dog
|
1244
|
+
@input << animal << "\n"
|
1245
|
+
@input.rewind
|
1246
|
+
|
1247
|
+
answer = @terminal.ask("Favorite animal? ", Symbol)
|
1248
|
+
assert_instance_of(Symbol, answer)
|
1249
|
+
assert_equal(animal, answer)
|
1250
|
+
|
1251
|
+
@input.truncate(@input.rewind)
|
1252
|
+
@input << "16th June 1976\n"
|
1253
|
+
@input.rewind
|
1254
|
+
|
1255
|
+
answer = @terminal.ask("Enter your birthday.", Date)
|
1256
|
+
assert_instance_of(Date, answer)
|
1257
|
+
assert_equal(16, answer.day)
|
1258
|
+
assert_equal(6, answer.month)
|
1259
|
+
assert_equal(1976, answer.year)
|
1260
|
+
|
1261
|
+
@input.truncate(@input.rewind)
|
1262
|
+
pattern = "^yes|no$"
|
1263
|
+
@input << pattern << "\n"
|
1264
|
+
@input.rewind
|
1265
|
+
|
1266
|
+
answer = @terminal.ask("Give me a pattern to match with: ", Regexp)
|
1267
|
+
assert_instance_of(Regexp, answer)
|
1268
|
+
assert_equal(/#{pattern}/, answer)
|
1269
|
+
|
1270
|
+
@input.truncate(@input.rewind)
|
1271
|
+
@input << "gen\n"
|
1272
|
+
@input.rewind
|
1273
|
+
|
1274
|
+
answer = @terminal.ask("Select a mode: ", [:generate, :run])
|
1275
|
+
assert_instance_of(Symbol, answer)
|
1276
|
+
assert_equal(:generate, answer)
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
def test_validation
|
1280
|
+
@input << "system 'rm -rf /'\n105\n0b101_001\n"
|
1281
|
+
@input.rewind
|
1282
|
+
|
1283
|
+
answer = @terminal.ask("Enter a binary number: ") do |q|
|
1284
|
+
q.validate = /\A(?:0b)?[01_]+\Z/
|
1285
|
+
end
|
1286
|
+
assert_equal("0b101_001", answer)
|
1287
|
+
assert_equal( "Enter a binary number: " +
|
1288
|
+
"Your answer isn't valid " +
|
1289
|
+
"(must match /\\A(?:0b)?[01_]+\\Z/).\n" +
|
1290
|
+
"? " +
|
1291
|
+
"Your answer isn't valid " +
|
1292
|
+
"(must match /\\A(?:0b)?[01_]+\\Z/).\n" +
|
1293
|
+
"? ", @output.string )
|
1294
|
+
|
1295
|
+
@input.truncate(@input.rewind)
|
1296
|
+
@input << "Gray II, James Edward\n" +
|
1297
|
+
"Gray, Dana Ann Leslie\n" +
|
1298
|
+
"Gray, James Edward\n"
|
1299
|
+
@input.rewind
|
1300
|
+
|
1301
|
+
answer = @terminal.ask("Your name? ") do |q|
|
1302
|
+
q.validate = lambda do |name|
|
1303
|
+
names = name.split(/,\s*/)
|
1304
|
+
return false unless names.size == 2
|
1305
|
+
return false if names.first =~ /\s/
|
1306
|
+
names.last.split.size == 2
|
1307
|
+
end
|
1308
|
+
end
|
1309
|
+
assert_equal("Gray, James Edward", answer)
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
def test_whitespace
|
1313
|
+
@input << " A lot\tof \t space\t \there! \n"
|
1314
|
+
@input.rewind
|
1315
|
+
|
1316
|
+
answer = @terminal.ask("Enter a whitespace filled string: ") do |q|
|
1317
|
+
q.whitespace = :chomp
|
1318
|
+
end
|
1319
|
+
assert_equal(" A lot\tof \t space\t \there! ", answer)
|
1320
|
+
|
1321
|
+
@input.rewind
|
1322
|
+
|
1323
|
+
answer = @terminal.ask("Enter a whitespace filled string: ")
|
1324
|
+
assert_equal("A lot\tof \t space\t \there!", answer)
|
1325
|
+
|
1326
|
+
@input.rewind
|
1327
|
+
|
1328
|
+
answer = @terminal.ask("Enter a whitespace filled string: ") do |q|
|
1329
|
+
q.whitespace = :strip_and_collapse
|
1330
|
+
end
|
1331
|
+
assert_equal("A lot of space here!", answer)
|
1332
|
+
|
1333
|
+
@input.rewind
|
1334
|
+
|
1335
|
+
answer = @terminal.ask("Enter a whitespace filled string: ") do |q|
|
1336
|
+
q.whitespace = :remove
|
1337
|
+
end
|
1338
|
+
assert_equal("Alotofspacehere!", answer)
|
1339
|
+
|
1340
|
+
@input.rewind
|
1341
|
+
|
1342
|
+
answer = @terminal.ask("Enter a whitespace filled string: ") do |q|
|
1343
|
+
q.whitespace = :none
|
1344
|
+
end
|
1345
|
+
assert_equal(" A lot\tof \t space\t \there! \n", answer)
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
def test_wrap
|
1349
|
+
@terminal.wrap_at = 80
|
1350
|
+
|
1351
|
+
@terminal.say("This is a very short line.")
|
1352
|
+
assert_equal("This is a very short line.\n", @output.string)
|
1353
|
+
|
1354
|
+
@output.truncate(@output.rewind)
|
1355
|
+
|
1356
|
+
@terminal.say( "This is a long flowing paragraph meant to span " +
|
1357
|
+
"several lines. This text should definitely be " +
|
1358
|
+
"wrapped at the set limit, in the result. Your code " +
|
1359
|
+
"does well with things like this.\n\n" +
|
1360
|
+
" * This is a simple embedded list.\n" +
|
1361
|
+
" * You're code should not mess with this...\n" +
|
1362
|
+
" * Because it's already formatted correctly and " +
|
1363
|
+
"does not\n" +
|
1364
|
+
" exceed the limit!" )
|
1365
|
+
assert_equal( "This is a long flowing paragraph meant to span " +
|
1366
|
+
"several lines. This text should\n" +
|
1367
|
+
"definitely be wrapped at the set limit, in the " +
|
1368
|
+
"result. Your code does well with\n" +
|
1369
|
+
"things like this.\n\n" +
|
1370
|
+
" * This is a simple embedded list.\n" +
|
1371
|
+
" * You're code should not mess with this...\n" +
|
1372
|
+
" * Because it's already formatted correctly and does " +
|
1373
|
+
"not\n" +
|
1374
|
+
" exceed the limit!\n", @output.string )
|
1375
|
+
|
1376
|
+
@output.truncate(@output.rewind)
|
1377
|
+
|
1378
|
+
@terminal.say("-=" * 50)
|
1379
|
+
assert_equal(("-=" * 40 + "\n") + ("-=" * 10 + "\n"), @output.string)
|
1380
|
+
end
|
1381
|
+
|
1382
|
+
def test_track_eof
|
1383
|
+
assert_raise(EOFError) { @terminal.ask("Any input left? ") }
|
1384
|
+
|
1385
|
+
# turn EOF tracking
|
1386
|
+
old_setting = HighLine.track_eof?
|
1387
|
+
assert_nothing_raised(Exception) { HighLine.track_eof = false }
|
1388
|
+
begin
|
1389
|
+
@terminal.ask("And now? ") # this will still blow up, nothing available
|
1390
|
+
rescue
|
1391
|
+
assert_not_equal(EOFError, $!.class) # but HighLine's safe guards are off
|
1392
|
+
end
|
1393
|
+
HighLine.track_eof = old_setting
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
def test_version
|
1397
|
+
assert_not_nil(HighLine::VERSION)
|
1398
|
+
assert_instance_of(String, HighLine::VERSION)
|
1399
|
+
assert(HighLine::VERSION.frozen?)
|
1400
|
+
assert_match(/\A\d+\.\d+\.\d+\Z/, HighLine::VERSION)
|
1401
|
+
end
|
1402
|
+
end
|