brakeman 3.2.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +18 -0
  3. data/bin/brakeman +1 -1
  4. data/bundle/load.rb +14 -0
  5. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/CHANGES.txt +828 -0
  6. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/MIT-LICENSE +20 -0
  7. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/README.txt +102 -0
  8. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/Makefile +6 -0
  9. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench.rb +313 -0
  10. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench_context.yaml +141 -0
  11. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_footer.html +4 -0
  12. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_header.html +52 -0
  13. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +29 -0
  14. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +29 -0
  15. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +29 -0
  16. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/bin/erubis +10 -0
  17. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis +3468 -0
  18. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis-run.rb +132 -0
  19. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/inline-require +179 -0
  20. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView.html +105 -0
  21. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +209 -0
  22. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ERB.html +101 -0
  23. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis.html +362 -0
  24. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +175 -0
  25. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +120 -0
  26. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +174 -0
  27. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +120 -0
  28. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +112 -0
  29. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +327 -0
  30. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +130 -0
  31. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +215 -0
  32. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +120 -0
  33. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +386 -0
  34. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +113 -0
  35. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +344 -0
  36. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +283 -0
  37. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +382 -0
  38. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
  39. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
  40. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +126 -0
  41. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +126 -0
  42. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +126 -0
  43. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +126 -0
  44. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +305 -0
  45. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +126 -0
  46. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +126 -0
  47. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
  48. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +120 -0
  49. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +117 -0
  50. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +132 -0
  51. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +165 -0
  52. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +120 -0
  53. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +120 -0
  54. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +120 -0
  55. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +120 -0
  56. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +120 -0
  57. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +120 -0
  58. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +127 -0
  59. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +120 -0
  60. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +126 -0
  61. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +212 -0
  62. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +131 -0
  63. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +416 -0
  64. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +267 -0
  65. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +120 -0
  66. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +116 -0
  67. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
  68. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +349 -0
  69. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +213 -0
  70. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +305 -0
  71. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
  72. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +359 -0
  73. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +386 -0
  74. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +341 -0
  75. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
  76. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
  77. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +159 -0
  78. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +120 -0
  79. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +119 -0
  80. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +163 -0
  81. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
  82. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +163 -0
  83. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +125 -0
  84. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +266 -0
  85. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +166 -0
  86. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +166 -0
  87. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +166 -0
  88. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
  89. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +122 -0
  90. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +166 -0
  91. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +166 -0
  92. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +155 -0
  93. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +166 -0
  94. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +293 -0
  95. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +163 -0
  96. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +120 -0
  97. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +344 -0
  98. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +350 -0
  99. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +210 -0
  100. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +120 -0
  101. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
  102. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
  103. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +212 -0
  104. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +120 -0
  105. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +244 -0
  106. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +120 -0
  107. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +121 -0
  108. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +227 -0
  109. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +328 -0
  110. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
  111. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +120 -0
  112. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +191 -0
  113. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +173 -0
  114. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +120 -0
  115. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +121 -0
  116. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +174 -0
  117. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +120 -0
  118. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +120 -0
  119. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +298 -0
  120. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +130 -0
  121. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +255 -0
  122. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Kernel.html +155 -0
  123. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/created.rid +1 -0
  124. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/README_txt.html +247 -0
  125. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +107 -0
  126. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +114 -0
  127. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +115 -0
  128. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +115 -0
  129. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +115 -0
  130. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +115 -0
  131. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +115 -0
  132. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +115 -0
  133. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +115 -0
  134. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +115 -0
  135. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +115 -0
  136. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +114 -0
  137. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +117 -0
  138. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +107 -0
  139. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +107 -0
  140. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +115 -0
  141. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +114 -0
  142. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +107 -0
  143. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
  144. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +116 -0
  145. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +107 -0
  146. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +129 -0
  147. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +114 -0
  148. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +107 -0
  149. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +107 -0
  150. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +118 -0
  151. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_class_index.html +129 -0
  152. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_file_index.html +53 -0
  153. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_method_index.html +265 -0
  154. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/index.html +24 -0
  155. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/rdoc-style.css +208 -0
  156. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/docstyle.css +209 -0
  157. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/users-guide.html +3551 -0
  158. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile +58 -0
  159. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ec +42 -0
  160. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp +33 -0
  161. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejava +45 -0
  162. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejs +16 -0
  163. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eperl +16 -0
  164. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ephp +17 -0
  165. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eruby +15 -0
  166. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.escheme +26 -0
  167. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile +54 -0
  168. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ec +42 -0
  169. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejava +45 -0
  170. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejs +16 -0
  171. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eperl +16 -0
  172. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ephp +17 -0
  173. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eruby +15 -0
  174. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.escheme +26 -0
  175. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis.rb +73 -0
  176. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/context.rb +83 -0
  177. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/converter.rb +357 -0
  178. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine.rb +120 -0
  179. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +117 -0
  180. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +113 -0
  181. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +110 -0
  182. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +119 -0
  183. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +126 -0
  184. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +95 -0
  185. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +99 -0
  186. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +125 -0
  187. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +114 -0
  188. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +127 -0
  189. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/enhancer.rb +723 -0
  190. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/error.rb +23 -0
  191. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/evaluator.rb +88 -0
  192. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/generator.rb +85 -0
  193. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helper.rb +47 -0
  194. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +197 -0
  195. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +353 -0
  196. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/local-setting.rb +9 -0
  197. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/main.rb +516 -0
  198. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +58 -0
  199. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/tiny.rb +144 -0
  200. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/util.rb +22 -0
  201. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/setup.rb +1331 -0
  202. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/assert-text-equal.rb +44 -0
  203. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +55 -0
  204. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/array_example.result +9 -0
  205. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +9 -0
  206. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +4 -0
  207. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +6 -0
  208. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +10 -0
  209. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +17 -0
  210. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.rb +6 -0
  211. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.yaml +8 -0
  212. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +14 -0
  213. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.result +3 -0
  214. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +9 -0
  215. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ec +27 -0
  216. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +30 -0
  217. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ejs +20 -0
  218. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eperl +18 -0
  219. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ephp +18 -0
  220. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eruby +6 -0
  221. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.escheme +28 -0
  222. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +6 -0
  223. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.rb +17 -0
  224. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.result +16 -0
  225. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.rb +4 -0
  226. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.result +17 -0
  227. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +14 -0
  228. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +17 -0
  229. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.php +20 -0
  230. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.result +23 -0
  231. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +21 -0
  232. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +10 -0
  233. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +16 -0
  234. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +16 -0
  235. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +15 -0
  236. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +9 -0
  237. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +7 -0
  238. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.rb +10 -0
  239. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.result +27 -0
  240. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +10 -0
  241. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +10 -0
  242. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +6 -0
  243. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.rb +10 -0
  244. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result +22 -0
  245. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example32.result +4 -0
  246. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +8 -0
  247. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +3 -0
  248. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.rb +11 -0
  249. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.result +10 -0
  250. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +5 -0
  251. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +6 -0
  252. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.rb +16 -0
  253. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.result +7 -0
  254. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.rb +12 -0
  255. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.result +7 -0
  256. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +8 -0
  257. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example71.result +13 -0
  258. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example72.result +13 -0
  259. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +6 -0
  260. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +7 -0
  261. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +7 -0
  262. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +3 -0
  263. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb +8 -0
  264. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.result +9 -0
  265. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example91.result +5 -0
  266. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example92.result +4 -0
  267. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_c.result +32 -0
  268. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_java.result +56 -0
  269. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_js.result +22 -0
  270. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +20 -0
  271. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_php.result +19 -0
  272. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +30 -0
  273. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +29 -0
  274. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +8 -0
  275. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +18 -0
  276. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +11 -0
  277. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +38 -0
  278. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +15 -0
  279. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +9 -0
  280. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +8 -0
  281. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +10 -0
  282. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +11 -0
  283. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +13 -0
  284. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +9 -0
  285. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +8 -0
  286. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +6 -0
  287. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +8 -0
  288. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +6 -0
  289. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +14 -0
  290. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +20 -0
  291. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +15 -0
  292. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +9 -0
  293. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +11 -0
  294. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +14 -0
  295. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +19 -0
  296. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +20 -0
  297. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +16 -0
  298. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +6 -0
  299. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +9 -0
  300. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +9 -0
  301. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +6 -0
  302. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +9 -0
  303. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +4 -0
  304. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +3 -0
  305. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +8 -0
  306. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +8 -0
  307. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +9 -0
  308. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stderr.log +3 -0
  309. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +9 -0
  310. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +9 -0
  311. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +4 -0
  312. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +3 -0
  313. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +4 -0
  314. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +4 -0
  315. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-engines.rb +425 -0
  316. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-enhancers.rb +646 -0
  317. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-erubis.rb +887 -0
  318. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-index-cgi.rb +191 -0
  319. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-main.rb +752 -0
  320. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-users-guide.rb +73 -0
  321. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test.rb +45 -0
  322. data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/testutil.rb +111 -0
  323. data/bundle/ruby/2.3.0/gems/haml-4.0.7/CHANGELOG.md +1363 -0
  324. data/bundle/ruby/2.3.0/gems/haml-4.0.7/FAQ.md +157 -0
  325. data/bundle/ruby/2.3.0/gems/haml-4.0.7/MIT-LICENSE +20 -0
  326. data/bundle/ruby/2.3.0/gems/haml-4.0.7/README.md +173 -0
  327. data/bundle/ruby/2.3.0/gems/haml-4.0.7/REFERENCE.md +1294 -0
  328. data/bundle/ruby/2.3.0/gems/haml-4.0.7/Rakefile +134 -0
  329. data/bundle/ruby/2.3.0/gems/haml-4.0.7/bin/haml +9 -0
  330. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml.rb +23 -0
  331. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/buffer.rb +345 -0
  332. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/compiler.rb +540 -0
  333. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/engine.rb +245 -0
  334. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/error.rb +61 -0
  335. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/exec.rb +329 -0
  336. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/filters.rb +404 -0
  337. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb +664 -0
  338. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +58 -0
  339. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +147 -0
  340. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +58 -0
  341. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +29 -0
  342. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +104 -0
  343. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/options.rb +279 -0
  344. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/parser.rb +764 -0
  345. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/railtie.rb +22 -0
  346. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +33 -0
  347. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template.rb +32 -0
  348. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/options.rb +16 -0
  349. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +41 -0
  350. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/util.rb +377 -0
  351. data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/version.rb +3 -0
  352. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/engine_test.rb +2013 -0
  353. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_1.erb +12 -0
  354. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_2.erb +8 -0
  355. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/action_view.erb +62 -0
  356. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/standard.erb +55 -0
  357. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/filters_test.rb +254 -0
  358. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.0.x +5 -0
  359. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.1.x +6 -0
  360. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.2.x +5 -0
  361. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-4.0.x +5 -0
  362. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/LICENSE +14 -0
  363. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/README.md +106 -0
  364. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/lua_haml_spec.lua +38 -0
  365. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/perl_haml_test.pl +81 -0
  366. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/ruby_haml_test.rb +23 -0
  367. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/tests.json +660 -0
  368. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/helper_test.rb +583 -0
  369. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/markaby/standard.mab +52 -0
  370. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/mocks/article.rb +6 -0
  371. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/parser_test.rb +105 -0
  372. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/content_for_layout.xhtml +12 -0
  373. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/eval_suppressed.xhtml +9 -0
  374. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpers.xhtml +70 -0
  375. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpful.xhtml +10 -0
  376. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/just_stuff.xhtml +70 -0
  377. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/list.xhtml +12 -0
  378. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_inner_whitespace.xhtml +40 -0
  379. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_outer_whitespace.xhtml +148 -0
  380. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/original_engine.xhtml +20 -0
  381. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout.xhtml +5 -0
  382. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout_erb.xhtml +5 -0
  383. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partials.xhtml +21 -0
  384. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/render_layout.xhtml +3 -0
  385. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/silent_script.xhtml +74 -0
  386. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/standard.xhtml +162 -0
  387. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/tag_parsing.xhtml +23 -0
  388. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/very_basic.xhtml +5 -0
  389. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/whitespace_handling.xhtml +90 -0
  390. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/template_test.rb +354 -0
  391. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1.haml +9 -0
  392. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1_ugly.haml +9 -0
  393. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2.haml +5 -0
  394. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2_ugly.haml +5 -0
  395. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout.erb +3 -0
  396. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout_for_partial.haml +3 -0
  397. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_partial.haml +8 -0
  398. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area.haml +3 -0
  399. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area_helper.html.haml +4 -0
  400. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view.haml +47 -0
  401. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view_ugly.haml +47 -0
  402. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/breakage.haml +8 -0
  403. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/content_for_layout.haml +8 -0
  404. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/eval_suppressed.haml +11 -0
  405. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpers.haml +55 -0
  406. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpful.haml +11 -0
  407. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/just_stuff.haml +85 -0
  408. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/list.haml +12 -0
  409. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_inner_whitespace.haml +32 -0
  410. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_outer_whitespace.haml +144 -0
  411. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/original_engine.haml +17 -0
  412. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout.haml +3 -0
  413. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout_erb.erb +4 -0
  414. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partialize.haml +1 -0
  415. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partials.haml +12 -0
  416. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/render_layout.haml +2 -0
  417. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/silent_script.haml +45 -0
  418. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard.haml +43 -0
  419. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard_ugly.haml +43 -0
  420. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/tag_parsing.haml +21 -0
  421. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/very_basic.haml +4 -0
  422. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/whitespace_handling.haml +87 -0
  423. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/test_helper.rb +81 -0
  424. data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/util_test.rb +63 -0
  425. data/bundle/ruby/2.3.0/gems/highline-1.7.8/AUTHORS +3 -0
  426. data/bundle/ruby/2.3.0/gems/highline-1.7.8/COPYING +339 -0
  427. data/bundle/ruby/2.3.0/gems/highline-1.7.8/Changelog.md +415 -0
  428. data/bundle/ruby/2.3.0/gems/highline-1.7.8/Gemfile +9 -0
  429. data/bundle/ruby/2.3.0/gems/highline-1.7.8/INSTALL +59 -0
  430. data/bundle/ruby/2.3.0/gems/highline-1.7.8/LICENSE +7 -0
  431. data/bundle/ruby/2.3.0/gems/highline-1.7.8/README.rdoc +74 -0
  432. data/bundle/ruby/2.3.0/gems/highline-1.7.8/Rakefile +30 -0
  433. data/bundle/ruby/2.3.0/gems/highline-1.7.8/TODO +6 -0
  434. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/ansi_colors.rb +38 -0
  435. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb +18 -0
  436. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/basic_usage.rb +75 -0
  437. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/color_scheme.rb +32 -0
  438. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/get_character.rb +12 -0
  439. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb +12 -0
  440. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/menus.rb +65 -0
  441. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/overwrite.rb +19 -0
  442. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/page_and_wrap.rb +322 -0
  443. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/password.rb +7 -0
  444. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb +21 -0
  445. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/trapping_eof.rb +22 -0
  446. data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb +17 -0
  447. data/bundle/ruby/2.3.0/gems/highline-1.7.8/highline.gemspec +37 -0
  448. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb +1048 -0
  449. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/color_scheme.rb +134 -0
  450. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb +16 -0
  451. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/import.rb +41 -0
  452. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/menu.rb +381 -0
  453. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/question.rb +480 -0
  454. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/simulate.rb +48 -0
  455. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/string_extensions.rb +111 -0
  456. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/style.rb +192 -0
  457. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/system_extensions.rb +254 -0
  458. data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/version.rb +4 -0
  459. data/bundle/ruby/2.3.0/gems/highline-1.7.8/setup.rb +1360 -0
  460. data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/highline.css +65 -0
  461. data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/images/logo.png +0 -0
  462. data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/index.html +58 -0
  463. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/string_methods.rb +32 -0
  464. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_color_scheme.rb +96 -0
  465. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_highline.rb +1402 -0
  466. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_import.rb +52 -0
  467. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_menu.rb +439 -0
  468. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_simulator.rb +23 -0
  469. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_extension.rb +33 -0
  470. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_highline.rb +38 -0
  471. data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_style.rb +578 -0
  472. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/History.txt +371 -0
  473. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Manifest.txt +8 -0
  474. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/README.txt +87 -0
  475. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Rakefile +92 -0
  476. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/bin/r2r_show +33 -0
  477. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/lib/ruby2ruby.rb +1159 -0
  478. data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/test/test_ruby2ruby.rb +709 -0
  479. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/History.txt +882 -0
  480. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Manifest.txt +29 -0
  481. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/README.txt +93 -0
  482. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Rakefile +187 -0
  483. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse +96 -0
  484. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse_extract_error +156 -0
  485. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.rb +5773 -0
  486. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.y +1899 -0
  487. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.rb +6171 -0
  488. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.y +2109 -0
  489. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.rb +6723 -0
  490. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.y +2372 -0
  491. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.rb +6764 -0
  492. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.y +2382 -0
  493. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.rb +6804 -0
  494. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.y +2393 -0
  495. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.rb +6905 -0
  496. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.y +2425 -0
  497. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rb +1237 -0
  498. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex +177 -0
  499. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex.rb +317 -0
  500. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.rb +7 -0
  501. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.yy +2506 -0
  502. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser_extras.rb +1460 -0
  503. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_lexer.rb +2723 -0
  504. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser.rb +3502 -0
  505. data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser_extras.rb +228 -0
  506. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/CHANGES.md +149 -0
  507. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Gemfile +11 -0
  508. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/LICENSE.txt +22 -0
  509. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/README.md +191 -0
  510. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Rakefile +26 -0
  511. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bin/safe_yaml +75 -0
  512. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bundle_install_all_ruby_versions.sh +11 -0
  513. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml.rb +94 -0
  514. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/deep.rb +34 -0
  515. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/libyaml_checker.rb +36 -0
  516. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb +181 -0
  517. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb +35 -0
  518. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/hexadecimal.rb +12 -0
  519. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/sexagesimal.rb +26 -0
  520. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_handler.rb +99 -0
  521. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb +52 -0
  522. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/resolver.rb +94 -0
  523. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/safe_to_ruby_visitor.rb +29 -0
  524. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_hack.rb +36 -0
  525. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_node_monkeypatch.rb +43 -0
  526. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_resolver.rb +38 -0
  527. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform.rb +41 -0
  528. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_boolean.rb +21 -0
  529. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_date.rb +13 -0
  530. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_float.rb +33 -0
  531. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_integer.rb +26 -0
  532. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_nil.rb +18 -0
  533. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_symbol.rb +17 -0
  534. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/transformation_map.rb +47 -0
  535. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +3 -0
  536. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/run_specs_all_ruby_versions.sh +38 -0
  537. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/safe_yaml.gemspec +19 -0
  538. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.2.yaml +2 -0
  539. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.3.yaml +2 -0
  540. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue48.txt +20 -0
  541. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue49.yml +0 -0
  542. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/libyaml_checker_spec.rb +69 -0
  543. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/psych_resolver_spec.rb +10 -0
  544. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/resolver_specs.rb +278 -0
  545. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/safe_yaml_spec.rb +731 -0
  546. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/spec_helper.rb +42 -0
  547. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/support/exploitable_back_door.rb +29 -0
  548. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/syck_resolver_spec.rb +10 -0
  549. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb +11 -0
  550. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_date_spec.rb +60 -0
  551. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_float_spec.rb +42 -0
  552. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_integer_spec.rb +64 -0
  553. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_symbol_spec.rb +51 -0
  554. data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/yaml_spec.rb +15 -0
  555. data/bundle/ruby/2.3.0/gems/sass-3.4.22/CODE_OF_CONDUCT.md +10 -0
  556. data/bundle/ruby/2.3.0/gems/sass-3.4.22/CONTRIBUTING.md +125 -0
  557. data/bundle/ruby/2.3.0/gems/sass-3.4.22/MIT-LICENSE +20 -0
  558. data/bundle/ruby/2.3.0/gems/sass-3.4.22/README.md +227 -0
  559. data/bundle/ruby/2.3.0/gems/sass-3.4.22/REVISION +1 -0
  560. data/bundle/ruby/2.3.0/gems/sass-3.4.22/Rakefile +432 -0
  561. data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION +1 -0
  562. data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_DATE +1 -0
  563. data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_NAME +1 -0
  564. data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass +13 -0
  565. data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass-convert +12 -0
  566. data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/scss +13 -0
  567. data/bundle/ruby/2.3.0/gems/sass-3.4.22/extra/update_watch.rb +13 -0
  568. data/bundle/ruby/2.3.0/gems/sass-3.4.22/init.rb +18 -0
  569. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass.rb +109 -0
  570. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores.rb +15 -0
  571. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/base.rb +88 -0
  572. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/chain.rb +34 -0
  573. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/filesystem.rb +60 -0
  574. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/memory.rb +46 -0
  575. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/null.rb +25 -0
  576. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/callbacks.rb +67 -0
  577. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/css.rb +408 -0
  578. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/engine.rb +1218 -0
  579. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/environment.rb +215 -0
  580. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/error.rb +198 -0
  581. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec.rb +9 -0
  582. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb +199 -0
  583. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_convert.rb +283 -0
  584. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_scss.rb +440 -0
  585. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/features.rb +47 -0
  586. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers.rb +23 -0
  587. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/base.rb +182 -0
  588. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/deprecated_path.rb +51 -0
  589. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb +219 -0
  590. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger.rb +12 -0
  591. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/base.rb +30 -0
  592. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/log_level.rb +45 -0
  593. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/media.rb +210 -0
  594. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin.rb +134 -0
  595. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb +582 -0
  596. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/configuration.rb +134 -0
  597. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/generic.rb +15 -0
  598. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/merb.rb +48 -0
  599. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rack.rb +60 -0
  600. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rails.rb +47 -0
  601. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb +199 -0
  602. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/railtie.rb +10 -0
  603. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/repl.rb +57 -0
  604. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/root.rb +7 -0
  605. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script.rb +66 -0
  606. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_lexer.rb +33 -0
  607. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_parser.rb +33 -0
  608. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_variable_warning.rb +52 -0
  609. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/functions.rb +2690 -0
  610. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/lexer.rb +464 -0
  611. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/parser.rb +825 -0
  612. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree.rb +16 -0
  613. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/funcall.rb +313 -0
  614. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/interpolation.rb +223 -0
  615. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/list_literal.rb +104 -0
  616. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/literal.rb +49 -0
  617. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/map_literal.rb +64 -0
  618. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/node.rb +127 -0
  619. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/operation.rb +129 -0
  620. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/selector.rb +26 -0
  621. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/string_interpolation.rb +125 -0
  622. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/unary_operation.rb +69 -0
  623. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/variable.rb +57 -0
  624. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value.rb +11 -0
  625. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/arg_list.rb +36 -0
  626. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/base.rb +241 -0
  627. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/bool.rb +35 -0
  628. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/color.rb +698 -0
  629. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/helpers.rb +272 -0
  630. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/list.rb +113 -0
  631. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/map.rb +70 -0
  632. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/null.rb +44 -0
  633. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/number.rb +561 -0
  634. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/string.rb +145 -0
  635. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss.rb +14 -0
  636. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/css_parser.rb +56 -0
  637. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb +1236 -0
  638. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/rx.rb +140 -0
  639. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/static_parser.rb +366 -0
  640. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector.rb +323 -0
  641. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/abstract_sequence.rb +111 -0
  642. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/comma_sequence.rb +179 -0
  643. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/pseudo.rb +266 -0
  644. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/sequence.rb +636 -0
  645. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple.rb +116 -0
  646. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple_sequence.rb +344 -0
  647. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/shared.rb +76 -0
  648. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/map.rb +211 -0
  649. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/position.rb +39 -0
  650. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/range.rb +41 -0
  651. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/stack.rb +120 -0
  652. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/supports.rb +225 -0
  653. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/at_root_node.rb +83 -0
  654. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/charset_node.rb +22 -0
  655. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/comment_node.rb +82 -0
  656. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/content_node.rb +9 -0
  657. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/css_import_node.rb +68 -0
  658. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/debug_node.rb +18 -0
  659. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/directive_node.rb +59 -0
  660. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/each_node.rb +24 -0
  661. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/error_node.rb +18 -0
  662. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/extend_node.rb +43 -0
  663. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/for_node.rb +36 -0
  664. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/function_node.rb +44 -0
  665. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/if_node.rb +52 -0
  666. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/import_node.rb +75 -0
  667. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/keyframe_rule_node.rb +15 -0
  668. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/media_node.rb +48 -0
  669. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_def_node.rb +38 -0
  670. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_node.rb +52 -0
  671. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/node.rb +240 -0
  672. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/prop_node.rb +170 -0
  673. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/return_node.rb +19 -0
  674. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/root_node.rb +44 -0
  675. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/rule_node.rb +146 -0
  676. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/supports_node.rb +38 -0
  677. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/trace_node.rb +33 -0
  678. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/variable_node.rb +36 -0
  679. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb +72 -0
  680. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/check_nesting.rb +173 -0
  681. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/convert.rb +349 -0
  682. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/cssize.rb +373 -0
  683. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/deep_copy.rb +107 -0
  684. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/extend.rb +70 -0
  685. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb +563 -0
  686. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/set_options.rb +139 -0
  687. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/to_css.rb +409 -0
  688. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/warn_node.rb +18 -0
  689. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/while_node.rb +18 -0
  690. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util.rb +1350 -0
  691. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/cross_platform_random.rb +19 -0
  692. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/multibyte_string_scanner.rb +155 -0
  693. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/normalized_map.rb +129 -0
  694. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/ordered_hash.rb +192 -0
  695. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/subset_map.rb +109 -0
  696. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/test.rb +9 -0
  697. data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/version.rb +124 -0
  698. data/bundle/ruby/2.3.0/gems/sass-3.4.22/rails/init.rb +1 -0
  699. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass-spec.yml +3 -0
  700. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/cache_test.rb +131 -0
  701. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/callbacks_test.rb +61 -0
  702. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/compiler_test.rb +236 -0
  703. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/conversion_test.rb +2171 -0
  704. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css2sass_test.rb +526 -0
  705. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css_variable_test.rb +132 -0
  706. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/data/hsl-rgb.txt +319 -0
  707. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/encoding_test.rb +219 -0
  708. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/engine_test.rb +3441 -0
  709. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/exec_test.rb +96 -0
  710. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/extend_test.rb +1707 -0
  711. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.css +1 -0
  712. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.scss +1 -0
  713. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/functions_test.rb +1974 -0
  714. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/importer_test.rb +421 -0
  715. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/logger_test.rb +58 -0
  716. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/mock_importer.rb +49 -0
  717. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1.css +9 -0
  718. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1_with_line_comments.css +26 -0
  719. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more_import.css +29 -0
  720. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/_more_partial.sass +2 -0
  721. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more1.sass +23 -0
  722. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more_import.sass +11 -0
  723. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/plugin_test.rb +556 -0
  724. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/alt.css +4 -0
  725. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/basic.css +9 -0
  726. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/cached_import_option.css +3 -0
  727. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compact.css +5 -0
  728. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/complex.css +86 -0
  729. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compressed.css +1 -0
  730. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/expanded.css +19 -0
  731. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/filename_fn.css +3 -0
  732. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/if.css +3 -0
  733. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import.css +31 -0
  734. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset.css +5 -0
  735. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_1_8.css +5 -0
  736. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_ibm866.css +5 -0
  737. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_content.css +1 -0
  738. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/line_numbers.css +49 -0
  739. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/mixins.css +95 -0
  740. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/multiline.css +24 -0
  741. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/nested.css +22 -0
  742. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/options.css +1 -0
  743. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/parent_ref.css +13 -0
  744. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/script.css +16 -0
  745. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_import.css +31 -0
  746. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_importee.css +2 -0
  747. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
  748. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/subdir.css +3 -0
  749. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/units.css +11 -0
  750. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn.css +0 -0
  751. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn_imported.css +0 -0
  752. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_conversion_test.rb +357 -0
  753. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_test.rb +1422 -0
  754. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/css_test.rb +1281 -0
  755. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/rx_test.rb +160 -0
  756. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/scss_test.rb +4157 -0
  757. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/test_helper.rb +37 -0
  758. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/source_map_test.rb +1055 -0
  759. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/superselector_test.rb +210 -0
  760. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_cached_import_option_partial.scss +1 -0
  761. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_double_import_loop2.sass +1 -0
  762. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_filename_fn_import.scss +11 -0
  763. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_ibm866.sass +4 -0
  764. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_utf8.sass +4 -0
  765. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_content.sass +3 -0
  766. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_partial.sass +2 -0
  767. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_same_name_different_partiality.scss +1 -0
  768. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/alt.sass +16 -0
  769. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/basic.sass +23 -0
  770. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork1.sass +2 -0
  771. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork2.sass +2 -0
  772. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork3.sass +2 -0
  773. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork4.sass +2 -0
  774. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork5.sass +3 -0
  775. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/cached_import_option.scss +3 -0
  776. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compact.sass +17 -0
  777. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/complex.sass +305 -0
  778. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compressed.sass +15 -0
  779. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/double_import_loop1.sass +1 -0
  780. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/expanded.sass +17 -0
  781. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/filename_fn.scss +18 -0
  782. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/if.sass +11 -0
  783. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import.sass +12 -0
  784. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset.sass +9 -0
  785. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_1_8.sass +6 -0
  786. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_ibm866.sass +11 -0
  787. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_content.sass +4 -0
  788. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.less +2 -0
  789. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.sass +19 -0
  790. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/line_numbers.sass +13 -0
  791. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixin_bork.sass +5 -0
  792. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixins.sass +76 -0
  793. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/multiline.sass +20 -0
  794. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested.sass +25 -0
  795. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork1.sass +2 -0
  796. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork2.sass +2 -0
  797. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork3.sass +2 -0
  798. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork4.sass +2 -0
  799. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_import.sass +2 -0
  800. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_mixin_bork.sass +6 -0
  801. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/options.sass +2 -0
  802. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/parent_ref.sass +25 -0
  803. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.sass +2 -0
  804. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.scss +1 -0
  805. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_partiality.scss +1 -0
  806. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/script.sass +101 -0
  807. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_import.scss +12 -0
  808. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_importee.scss +1 -0
  809. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/single_import_loop.sass +1 -0
  810. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up1.scss +1 -0
  811. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up2.scss +1 -0
  812. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
  813. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
  814. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/subdir.sass +6 -0
  815. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/units.sass +11 -0
  816. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn.sass +3 -0
  817. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn_imported.sass +4 -0
  818. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/test_helper.rb +8 -0
  819. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/multibyte_string_scanner_test.rb +147 -0
  820. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/normalized_map_test.rb +51 -0
  821. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/subset_map_test.rb +91 -0
  822. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util_test.rb +438 -0
  823. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/value_helpers_test.rb +179 -0
  824. data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/test_helper.rb +110 -0
  825. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CHANGELOG.md +1 -0
  826. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CONTRIBUTING.md +38 -0
  827. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Gemfile +20 -0
  828. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Guardfile +8 -0
  829. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/LICENSE +20 -0
  830. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/README.md +349 -0
  831. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Rakefile +5 -0
  832. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Vagrantfile +96 -0
  833. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen.rb +54 -0
  834. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb +327 -0
  835. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/bsd.rb +75 -0
  836. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/darwin.rb +48 -0
  837. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/linux.rb +81 -0
  838. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/polling.rb +58 -0
  839. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/windows.rb +91 -0
  840. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/directory_record.rb +406 -0
  841. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb +323 -0
  842. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/turnstile.rb +32 -0
  843. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/version.rb +3 -0
  844. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/listen.gemspec +28 -0
  845. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapter_spec.rb +149 -0
  846. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/bsd_spec.rb +36 -0
  847. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/darwin_spec.rb +37 -0
  848. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/linux_spec.rb +47 -0
  849. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/polling_spec.rb +68 -0
  850. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/windows_spec.rb +30 -0
  851. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/directory_record_spec.rb +1250 -0
  852. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/listener_spec.rb +258 -0
  853. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/turnstile_spec.rb +56 -0
  854. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen_spec.rb +67 -0
  855. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/spec_helper.rb +25 -0
  856. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/adapter_helper.rb +666 -0
  857. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/directory_record_helper.rb +57 -0
  858. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/fixtures_helper.rb +29 -0
  859. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/listeners_helper.rb +179 -0
  860. data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/platform_helper.rb +15 -0
  861. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/History.txt +278 -0
  862. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Manifest.txt +13 -0
  863. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/README.txt +64 -0
  864. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Rakefile +12 -0
  865. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/composite_sexp_processor.rb +49 -0
  866. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/pt_testcase.rb +3125 -0
  867. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp.rb +338 -0
  868. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp_processor.rb +695 -0
  869. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb +15 -0
  870. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_composite_sexp_processor.rb +69 -0
  871. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_environment.rb +94 -0
  872. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp.rb +356 -0
  873. data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp_processor.rb +373 -0
  874. data/bundle/ruby/2.3.0/gems/slim-3.0.6/CHANGES +426 -0
  875. data/bundle/ruby/2.3.0/gems/slim-3.0.6/Gemfile +69 -0
  876. data/bundle/ruby/2.3.0/gems/slim-3.0.6/LICENSE +21 -0
  877. data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.jp.md +1205 -0
  878. data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.md +1205 -0
  879. data/bundle/ruby/2.3.0/gems/slim-3.0.6/Rakefile +100 -0
  880. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/context.rb +11 -0
  881. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-parser.rb +10 -0
  882. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-render.rb +12 -0
  883. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-benchmarks.rb +119 -0
  884. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-diffbench.rb +21 -0
  885. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.erb +23 -0
  886. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.haml +18 -0
  887. data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.slim +17 -0
  888. data/bundle/ruby/2.3.0/gems/slim-3.0.6/bin/slimrb +6 -0
  889. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/include.md +20 -0
  890. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/include.md +20 -0
  891. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/logic_less.md +137 -0
  892. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/smart.md +102 -0
  893. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/translator.md +28 -0
  894. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/logic_less.md +137 -0
  895. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/smart.md +103 -0
  896. data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/translator.md +28 -0
  897. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim.rb +14 -0
  898. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/code_attributes.rb +67 -0
  899. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/command.rb +128 -0
  900. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/controls.rb +60 -0
  901. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/do_inserter.rb +33 -0
  902. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/embedded.rb +273 -0
  903. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/end_inserter.rb +62 -0
  904. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/engine.rb +41 -0
  905. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/erb_converter.rb +14 -0
  906. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/filter.rb +30 -0
  907. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/grammar.rb +20 -0
  908. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/include.rb +57 -0
  909. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/interpolation.rb +35 -0
  910. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less.rb +5 -0
  911. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/context.rb +127 -0
  912. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/filter.rb +80 -0
  913. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/parser.rb +527 -0
  914. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart.rb +8 -0
  915. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/escaper.rb +42 -0
  916. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/filter.rb +96 -0
  917. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/parser.rb +36 -0
  918. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/builder.rb +101 -0
  919. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/filter.rb +91 -0
  920. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/template.rb +19 -0
  921. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/translator.rb +118 -0
  922. data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/version.rb +5 -0
  923. data/bundle/ruby/2.3.0/gems/slim-3.0.6/slim.gemspec +24 -0
  924. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/helper.rb +211 -0
  925. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_blocks.rb +183 -0
  926. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_escaping.rb +150 -0
  927. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_evaluation.rb +180 -0
  928. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_output.rb +168 -0
  929. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_structure.rb +168 -0
  930. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_commands.rb +223 -0
  931. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_embedded_engines.rb +242 -0
  932. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_encoding.rb +28 -0
  933. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_erb_converter.rb +67 -0
  934. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_attributes.rb +268 -0
  935. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_escaping.rb +65 -0
  936. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_structure.rb +537 -0
  937. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_parser_errors.rb +148 -0
  938. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_pretty.rb +166 -0
  939. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_ruby_errors.rb +207 -0
  940. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_slim_template.rb +77 -0
  941. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_tabs.rb +169 -0
  942. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_text_interpolation.rb +79 -0
  943. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_thread_options.rb +18 -0
  944. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_unicode.rb +16 -0
  945. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/recursive.slim +1 -0
  946. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/slimfile.slim +3 -0
  947. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/subdir/test.slim +1 -0
  948. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/textfile +1 -0
  949. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/test_include.rb +24 -0
  950. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/TESTS.md +1290 -0
  951. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/helper.rb +15 -0
  952. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/run.rb +92 -0
  953. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/logic_less/test_logic_less.rb +295 -0
  954. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/Rakefile +7 -0
  955. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/application_controller.rb +2 -0
  956. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/entries_controller.rb +5 -0
  957. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb +40 -0
  958. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/helpers/application_helper.rb +5 -0
  959. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/models/entry.rb +16 -0
  960. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/entries/edit.html.slim +3 -0
  961. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/layouts/application.html.slim +10 -0
  962. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/_partial.html.slim +1 -0
  963. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/content_for.html.slim +7 -0
  964. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/erb.html.erb +1 -0
  965. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/form_for.html.slim +2 -0
  966. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/helper.html.slim +4 -0
  967. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/integers.html.slim +1 -0
  968. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/no_layout.html.slim +1 -0
  969. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/normal.html.slim +1 -0
  970. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/partial.html.slim +2 -0
  971. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/splat.html.slim +2 -0
  972. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/thread_options.html.slim +1 -0
  973. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/variables.html.slim +1 -0
  974. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/xml.slim +1 -0
  975. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config.ru +4 -0
  976. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/application.rb +44 -0
  977. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/boot.rb +10 -0
  978. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environment.rb +5 -0
  979. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environments/test.rb +34 -0
  980. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/backtrace_silencers.rb +7 -0
  981. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/inflections.rb +10 -0
  982. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/mime_types.rb +5 -0
  983. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/secret_token.rb +7 -0
  984. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/session_store.rb +8 -0
  985. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/locales/en.yml +5 -0
  986. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/routes.rb +60 -0
  987. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/script/rails +6 -0
  988. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/helper.rb +31 -0
  989. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/test_slim.rb +90 -0
  990. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/smart/test_smart_text.rb +296 -0
  991. data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/translator/test_translator.rb +76 -0
  992. data/bundle/ruby/2.3.0/gems/temple-0.7.6/CHANGES +235 -0
  993. data/bundle/ruby/2.3.0/gems/temple-0.7.6/EXPRESSIONS.md +261 -0
  994. data/bundle/ruby/2.3.0/gems/temple-0.7.6/Gemfile +3 -0
  995. data/bundle/ruby/2.3.0/gems/temple-0.7.6/LICENSE +20 -0
  996. data/bundle/ruby/2.3.0/gems/temple-0.7.6/README.md +267 -0
  997. data/bundle/ruby/2.3.0/gems/temple-0.7.6/Rakefile +25 -0
  998. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple.rb +64 -0
  999. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/engine.rb +67 -0
  1000. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/engine.rb +15 -0
  1001. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/parser.rb +40 -0
  1002. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/template.rb +11 -0
  1003. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/trimming.rb +23 -0
  1004. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/exceptions.rb +13 -0
  1005. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filter.rb +9 -0
  1006. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/code_merger.rb +30 -0
  1007. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/control_flow.rb +42 -0
  1008. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/dynamic_inliner.rb +71 -0
  1009. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/encoding.rb +24 -0
  1010. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/eraser.rb +22 -0
  1011. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/escapable.rb +40 -0
  1012. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/multi_flattener.rb +25 -0
  1013. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/remove_bom.rb +13 -0
  1014. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/static_merger.rb +37 -0
  1015. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/validator.rb +15 -0
  1016. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generator.rb +88 -0
  1017. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array.rb +21 -0
  1018. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array_buffer.rb +28 -0
  1019. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/erb.rb +32 -0
  1020. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/rails_output_buffer.rb +35 -0
  1021. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/string_buffer.rb +25 -0
  1022. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/grammar.rb +57 -0
  1023. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_merger.rb +47 -0
  1024. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_remover.rb +35 -0
  1025. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_sorter.rb +21 -0
  1026. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/dispatcher.rb +31 -0
  1027. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/fast.rb +130 -0
  1028. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/filter.rb +21 -0
  1029. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/pretty.rb +103 -0
  1030. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/safe.rb +23 -0
  1031. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/map.rb +105 -0
  1032. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/dispatcher.rb +158 -0
  1033. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/engine_dsl.rb +145 -0
  1034. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/grammar_dsl.rb +170 -0
  1035. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/options.rb +87 -0
  1036. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/template.rb +28 -0
  1037. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/parser.rb +8 -0
  1038. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates.rb +11 -0
  1039. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/rails.rb +26 -0
  1040. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/tilt.rb +46 -0
  1041. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/utils.rb +90 -0
  1042. data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/version.rb +3 -0
  1043. data/bundle/ruby/2.3.0/gems/temple-0.7.6/temple.gemspec +29 -0
  1044. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_code_merger.rb +38 -0
  1045. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_control_flow.rb +90 -0
  1046. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_dynamic_inliner.rb +95 -0
  1047. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_eraser.rb +55 -0
  1048. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_escapable.rb +49 -0
  1049. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_multi_flattener.rb +33 -0
  1050. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_static_merger.rb +41 -0
  1051. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/helper.rb +30 -0
  1052. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_merger.rb +76 -0
  1053. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_remover.rb +43 -0
  1054. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_sorter.rb +48 -0
  1055. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_fast.rb +97 -0
  1056. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_pretty.rb +55 -0
  1057. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_dispatcher.rb +70 -0
  1058. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_grammar_dsl.rb +86 -0
  1059. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_engine.rb +189 -0
  1060. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_erb.rb +61 -0
  1061. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_filter.rb +29 -0
  1062. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_generator.rb +158 -0
  1063. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_grammar.rb +47 -0
  1064. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_map.rb +39 -0
  1065. data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_utils.rb +39 -0
  1066. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Gemfile +4 -0
  1067. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/History.rdoc +48 -0
  1068. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Manifest +27 -0
  1069. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/README.rdoc +240 -0
  1070. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Rakefile +9 -0
  1071. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Todo.rdoc +14 -0
  1072. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/examples/examples.rb +83 -0
  1073. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table.rb +26 -0
  1074. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/cell.rb +92 -0
  1075. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/import.rb +3 -0
  1076. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/row.rb +48 -0
  1077. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/separator.rb +14 -0
  1078. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/style.rb +62 -0
  1079. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table.rb +226 -0
  1080. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table_helper.rb +9 -0
  1081. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/version.rb +5 -0
  1082. data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/terminal-table.gemspec +24 -0
  1083. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/CHANGELOG.md +84 -0
  1084. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/COPYING +18 -0
  1085. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Gemfile +64 -0
  1086. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/HACKING +16 -0
  1087. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/README.md +226 -0
  1088. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Rakefile +105 -0
  1089. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/bin/tilt +122 -0
  1090. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/TEMPLATES.md +524 -0
  1091. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/common.css +14 -0
  1092. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt.rb +159 -0
  1093. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/asciidoc.rb +27 -0
  1094. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/babel.rb +15 -0
  1095. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/bluecloth.rb +24 -0
  1096. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/builder.rb +33 -0
  1097. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/coffee.rb +58 -0
  1098. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/creole.rb +25 -0
  1099. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/csv.rb +65 -0
  1100. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erb.rb +57 -0
  1101. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erubis.rb +43 -0
  1102. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/etanni.rb +27 -0
  1103. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/haml.rb +58 -0
  1104. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/kramdown.rb +25 -0
  1105. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/less.rb +30 -0
  1106. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/liquid.rb +38 -0
  1107. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/mapping.rb +265 -0
  1108. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/markaby.rb +45 -0
  1109. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/maruku.rb +22 -0
  1110. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/nokogiri.rb +36 -0
  1111. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/plain.rb +16 -0
  1112. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/prawn.rb +43 -0
  1113. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/radius.rb +48 -0
  1114. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdiscount.rb +39 -0
  1115. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdoc.rb +40 -0
  1116. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcarpet.rb +83 -0
  1117. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcloth.rb +23 -0
  1118. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/sass.rb +41 -0
  1119. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/string.rb +21 -0
  1120. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/template.rb +295 -0
  1121. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/wikicloth.rb +22 -0
  1122. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/yajl.rb +87 -0
  1123. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/index.txt +2 -0
  1124. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/tilt.1.ronn +59 -0
  1125. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/locals.mab +1 -0
  1126. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby.mab +1 -0
  1127. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby_other_static.mab +1 -0
  1128. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/render_twice.mab +1 -0
  1129. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/scope.mab +1 -0
  1130. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/yielding.mab +2 -0
  1131. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/test_helper.rb +64 -0
  1132. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_asciidoctor_test.rb +50 -0
  1133. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_babeltemplate.rb +33 -0
  1134. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_blueclothtemplate_test.rb +33 -0
  1135. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_buildertemplate_test.rb +59 -0
  1136. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_cache_test.rb +43 -0
  1137. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_coffeescripttemplate_test.rb +141 -0
  1138. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_compilesite_test.rb +51 -0
  1139. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_creoletemplate_test.rb +24 -0
  1140. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_csv_test.rb +77 -0
  1141. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erbtemplate_test.rb +239 -0
  1142. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erubistemplate_test.rb +151 -0
  1143. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_etannitemplate_test.rb +174 -0
  1144. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_hamltemplate_test.rb +166 -0
  1145. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_kramdown_test.rb +20 -0
  1146. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.less +1 -0
  1147. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.rb +42 -0
  1148. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_liquidtemplate_test.rb +78 -0
  1149. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_mapping_test.rb +229 -0
  1150. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markaby_test.rb +88 -0
  1151. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markdown_test.rb +177 -0
  1152. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_marukutemplate_test.rb +36 -0
  1153. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_metadata_test.rb +42 -0
  1154. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_nokogiritemplate_test.rb +87 -0
  1155. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate.prawn +1 -0
  1156. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate_test.rb +75 -0
  1157. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_radiustemplate_test.rb +75 -0
  1158. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdiscounttemplate_test.rb +43 -0
  1159. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdoctemplate_test.rb +29 -0
  1160. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redcarpettemplate_test.rb +54 -0
  1161. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redclothtemplate_test.rb +36 -0
  1162. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_sasstemplate_test.rb +41 -0
  1163. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_stringtemplate_test.rb +171 -0
  1164. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_template_test.rb +308 -0
  1165. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_test.rb +60 -0
  1166. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_wikiclothtemplate_test.rb +32 -0
  1167. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_yajltemplate_test.rb +101 -0
  1168. data/bundle/ruby/2.3.0/gems/tilt-2.0.2/tilt.gemspec +114 -0
  1169. data/lib/brakeman.rb +9 -1
  1170. data/lib/brakeman/call_index.rb +1 -1
  1171. data/lib/brakeman/checks/check_content_tag.rb +1 -1
  1172. data/lib/brakeman/checks/check_cross_site_scripting.rb +1 -1
  1173. data/lib/brakeman/checks/check_execute.rb +4 -0
  1174. data/lib/brakeman/checks/check_forgery_setting.rb +3 -2
  1175. data/lib/brakeman/checks/check_link_to.rb +1 -1
  1176. data/lib/brakeman/checks/check_link_to_href.rb +2 -2
  1177. data/lib/brakeman/checks/check_mass_assignment.rb +1 -1
  1178. data/lib/brakeman/checks/check_redirect.rb +6 -0
  1179. data/lib/brakeman/checks/check_secrets.rb +40 -0
  1180. data/lib/brakeman/checks/check_sql.rb +1 -1
  1181. data/lib/brakeman/processor.rb +6 -6
  1182. data/lib/brakeman/processors/alias_processor.rb +29 -3
  1183. data/lib/brakeman/processors/base_processor.rb +35 -4
  1184. data/lib/brakeman/processors/controller_alias_processor.rb +4 -4
  1185. data/lib/brakeman/processors/haml_template_processor.rb +1 -1
  1186. data/lib/brakeman/processors/lib/basic_processor.rb +18 -0
  1187. data/lib/brakeman/processors/lib/rails2_config_processor.rb +3 -2
  1188. data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -1
  1189. data/lib/brakeman/processors/lib/rails3_config_processor.rb +3 -2
  1190. data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -1
  1191. data/lib/brakeman/processors/template_alias_processor.rb +4 -4
  1192. data/lib/brakeman/processors/template_processor.rb +1 -0
  1193. data/lib/brakeman/report/report_codeclimate.rb +2 -1
  1194. data/lib/brakeman/scanner.rb +1 -1
  1195. data/lib/brakeman/tracker.rb +11 -1
  1196. data/lib/brakeman/tracker/constants.rb +101 -0
  1197. data/lib/brakeman/util.rb +4 -0
  1198. data/lib/brakeman/version.rb +1 -1
  1199. data/lib/brakeman/warning_codes.rb +1 -0
  1200. data/lib/ruby_parser/bm_sexp.rb +6 -0
  1201. metadata +1171 -162
@@ -0,0 +1,3 @@
1
+ #nested { relative: true; }
2
+
3
+ #subdir { font-size: 20px; font-weight: bold; }
@@ -0,0 +1,11 @@
1
+ b {
2
+ foo: 5px;
3
+ bar: 24px;
4
+ baz: 66.66667%;
5
+ many-units: 32em;
6
+ mm: 15mm;
7
+ pc: 2pc;
8
+ pt: -72pt;
9
+ inches: 2in;
10
+ more-inches: 3.5in;
11
+ mixed: 2.04167in; }
@@ -0,0 +1,357 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ require File.dirname(__FILE__) + '/../test_helper'
4
+ require 'sass/engine'
5
+
6
+ class SassScriptConversionTest < MiniTest::Test
7
+ def test_bool
8
+ assert_renders "true"
9
+ assert_renders "false"
10
+ end
11
+
12
+ def test_color
13
+ assert_renders "#abcdef"
14
+ assert_renders "blue"
15
+ assert_renders "rgba(0, 1, 2, 0.2)"
16
+ assert_renders "#abc"
17
+ assert_renders "#0000ff"
18
+ end
19
+
20
+ def test_number
21
+ assert_renders "10"
22
+ assert_renders "10.35"
23
+ assert_renders "12px"
24
+ assert_renders "12.45px"
25
+
26
+ assert_equal "12.34568", render("12.345678901")
27
+ end
28
+
29
+ def test_string
30
+ assert_renders '"foo"'
31
+ assert_renders '"bar baz"'
32
+ assert_equal '"baz bang"', render("'baz bang'")
33
+ end
34
+
35
+ def test_string_quotes
36
+ assert_equal "'quote\"quote'", render('"quote\\"quote"')
37
+ assert_equal '"quote\'quote"', render("'quote\\'quote'")
38
+ assert_renders '"quote\'quote\\"quote"'
39
+ assert_equal '"quote\'quote\\"quote"', render("'quote\\'quote\"quote'")
40
+ end
41
+
42
+ def test_string_escapes
43
+ assert_renders '"foo\\\\bar"'
44
+ end
45
+
46
+ def test_funcall
47
+ assert_renders "foo(true, blue)"
48
+ assert_renders "hsla(20deg, 30%, 50%, 0.3)"
49
+ assert_renders "blam()"
50
+
51
+ assert_renders "-\xC3\xBFoo(12px)"
52
+ assert_renders "-foo(12px)"
53
+ end
54
+
55
+ def test_funcall_with_keyword_args
56
+ assert_renders "foo(arg1, arg2, $karg1: val, $karg2: val2)"
57
+ assert_renders "foo($karg1: val, $karg2: val2)"
58
+ end
59
+
60
+ def test_funcall_with_hyphen_conversion_keyword_arg
61
+ assert_renders "foo($a-b_c: val)"
62
+ end
63
+
64
+ def test_url
65
+ assert_renders "url(foo.gif)"
66
+ assert_renders "url($var)"
67
+ assert_renders "url(\#{$var}/flip.gif)"
68
+ end
69
+
70
+ def test_variable
71
+ assert_renders "$foo-bar"
72
+ assert_renders "$flaznicate"
73
+ end
74
+
75
+ def test_null
76
+ assert_renders "null"
77
+ end
78
+
79
+ def test_space_list
80
+ assert_renders "foo bar baz"
81
+ assert_renders "foo (bar baz) bip"
82
+ assert_renders "foo (bar, baz) bip"
83
+ end
84
+
85
+ def test_comma_list
86
+ assert_renders "foo, bar, baz"
87
+ assert_renders "foo, (bar, baz), bip"
88
+ assert_renders "foo, bar baz, bip"
89
+ end
90
+
91
+ def test_space_list_adds_parens_for_clarity
92
+ assert_renders "(1 + 1) (2 / 4) (3 * 5)"
93
+ end
94
+
95
+ def test_comma_list_doesnt_add_parens
96
+ assert_renders "1 + 1, 2 / 4, 3 * 5"
97
+ end
98
+
99
+ def test_empty_list
100
+ assert_renders "()"
101
+ end
102
+
103
+ def test_list_in_args
104
+ assert_renders "foo((a, b, c))"
105
+ assert_renders "foo($arg: (a, b, c))"
106
+ assert_renders "foo(a, b, (a, b, c)...)"
107
+ end
108
+
109
+ def test_singleton_list
110
+ assert_renders "(1,)"
111
+ assert_renders "(1 2 3,)"
112
+ assert_renders "((1, 2, 3),)"
113
+ end
114
+
115
+ def test_map
116
+ assert_renders "(foo: bar)"
117
+ assert_renders "(foo: bar, baz: bip)"
118
+ assert_renders "(foo: bar, baz: (bip: bap))"
119
+ end
120
+
121
+ def test_map_in_list
122
+ assert_renders "(foo: bar) baz"
123
+ assert_renders "(foo: bar), (baz: bip)"
124
+ end
125
+
126
+ def test_list_in_map
127
+ assert_renders "(foo: bar baz)"
128
+ assert_renders "(foo: (bar, baz), bip: bop)"
129
+ end
130
+
131
+ def test_selector
132
+ assert_renders "&"
133
+ end
134
+
135
+ def self.test_precedence(outer, inner)
136
+ op_outer = Sass::Script::Lexer::OPERATORS_REVERSE[outer]
137
+ op_inner = Sass::Script::Lexer::OPERATORS_REVERSE[inner]
138
+ class_eval <<RUBY
139
+ def test_precedence_#{outer}_#{inner}
140
+ assert_renders "$foo #{op_outer} $bar #{op_inner} $baz"
141
+ assert_renders "$foo #{op_inner} $bar #{op_outer} $baz"
142
+
143
+ assert_renders "($foo #{op_outer} $bar) #{op_inner} $baz"
144
+ assert_renders "$foo #{op_inner} ($bar #{op_outer} $baz)"
145
+
146
+ assert_equal "$foo #{op_outer} $bar #{op_inner} $baz",
147
+ render("$foo #{op_outer} ($bar #{op_inner} $baz)")
148
+ assert_equal "$foo #{op_inner} $bar #{op_outer} $baz",
149
+ render("($foo #{op_inner} $bar) #{op_outer} $baz")
150
+ end
151
+ RUBY
152
+ end
153
+
154
+ def self.assert_associative(op_name, sibling_name)
155
+ op = separator_for(op_name)
156
+ sibling = separator_for(sibling_name)
157
+ class_eval <<RUBY
158
+ def test_associative_#{op_name}_#{sibling_name}
159
+ assert_renders "$foo#{op}$bar#{op}$baz"
160
+
161
+ assert_equal "$foo#{op}$bar#{op}$baz",
162
+ render("$foo#{op}($bar#{op}$baz)")
163
+ assert_equal "$foo#{op}$bar#{op}$baz",
164
+ render("($foo#{op}$bar)#{op}$baz")
165
+
166
+ assert_equal "$foo#{op}$bar#{sibling}$baz",
167
+ render("$foo#{op}($bar#{sibling}$baz)")
168
+ assert_equal "$foo#{sibling}$bar#{op}$baz",
169
+ render("($foo#{sibling}$bar)#{op}$baz")
170
+ end
171
+ RUBY
172
+ end
173
+
174
+ def self.separator_for(op_name)
175
+ case op_name
176
+ when :comma; ", "
177
+ when :space; " "
178
+ else; " #{Sass::Script::Lexer::OPERATORS_REVERSE[op_name]} "
179
+ end
180
+ end
181
+
182
+ def self.assert_non_associative(op_name, sibling_name)
183
+ op = Sass::Script::Lexer::OPERATORS_REVERSE[op_name]
184
+ sibling = Sass::Script::Lexer::OPERATORS_REVERSE[sibling_name]
185
+ class_eval <<RUBY
186
+ def test_non_associative_#{op_name}_#{sibling_name}
187
+ assert_renders "$foo #{op} $bar #{op} $baz"
188
+
189
+ assert_renders "$foo #{op} ($bar #{op} $baz)"
190
+ assert_equal "$foo #{op} $bar #{op} $baz",
191
+ render("($foo #{op} $bar) #{op} $baz")
192
+
193
+ assert_renders "$foo #{op} ($bar #{sibling} $baz)"
194
+ assert_equal "$foo #{sibling} $bar #{op} $baz",
195
+ render("($foo #{sibling} $bar) #{op} $baz")
196
+ end
197
+ RUBY
198
+ end
199
+
200
+ test_precedence :or, :and
201
+ test_precedence :and, :eq
202
+ test_precedence :and, :neq
203
+ test_precedence :eq, :gt
204
+ test_precedence :eq, :gte
205
+ test_precedence :eq, :lt
206
+ test_precedence :eq, :lte
207
+ test_precedence :gt, :plus
208
+ test_precedence :gt, :minus
209
+ test_precedence :plus, :times
210
+ test_precedence :plus, :div
211
+ test_precedence :plus, :mod
212
+
213
+ assert_associative :plus, :minus
214
+ assert_associative :times, :div
215
+ assert_associative :times, :mod
216
+
217
+ assert_non_associative :minus, :plus
218
+ assert_non_associative :div, :times
219
+ assert_non_associative :mod, :times
220
+ assert_non_associative :gt, :gte
221
+ assert_non_associative :gte, :lt
222
+ assert_non_associative :lt, :lte
223
+ assert_non_associative :lte, :gt
224
+
225
+ def test_comma_precedence
226
+ assert_renders "$foo, $bar, $baz"
227
+
228
+ assert_renders "$foo ($bar, $baz)"
229
+ assert_renders "($foo, $bar) $baz"
230
+
231
+ assert_equal "$foo, $bar $baz", render("$foo, ($bar $baz)")
232
+ assert_equal "$foo $bar, $baz", render("($foo $bar), $baz")
233
+
234
+ assert_equal "$foo, ($bar, $baz)", render("$foo, ($bar, $baz)")
235
+ assert_equal "($foo, $bar), $baz", render("($foo, $bar), $baz")
236
+ end
237
+
238
+ def test_space_precedence
239
+ assert_renders "$foo $bar $baz"
240
+
241
+ assert_renders "$foo or ($bar $baz)"
242
+ assert_renders "($foo $bar) or $baz"
243
+
244
+ assert_renders "$foo ($bar or $baz)"
245
+ assert_renders "($foo or $bar) $baz"
246
+
247
+ assert_equal "$foo ($bar $baz)", render("$foo ($bar $baz)")
248
+ assert_equal "($foo $bar) $baz", render("($foo $bar) $baz")
249
+ end
250
+
251
+ def test_unary_op
252
+ assert_renders "-12px"
253
+ assert_renders '/"foo"'
254
+ assert_renders 'not true'
255
+
256
+ assert_renders "-(foo(12px))"
257
+ assert_renders "-(-foo(12px))"
258
+ assert_renders "-(_foo(12px))"
259
+ assert_renders "-(\xC3\xBFoo(12px))"
260
+ assert_renders "-(blue)"
261
+
262
+ assert_equal 'not true or false', render('(not true) or false')
263
+ assert_equal 'not (true or false)', render('not (true or false)')
264
+ end
265
+
266
+ def test_interpolation
267
+ assert_equal 'unquote("#{$foo}#{$bar}#{$baz}")', render("$foo\#{$bar}$baz")
268
+ assert_equal 'unquote("#{$foo}#{$bar} #{$baz}")', render("$foo\#{$bar} $baz")
269
+ assert_equal 'unquote("#{$foo} #{$bar}#{$baz}")', render("$foo \#{$bar}$baz")
270
+ assert_renders "$foo \#{$bar} $baz"
271
+ assert_renders "$foo \#{$bar}\#{$bang} $baz"
272
+ assert_renders "$foo \#{$bar} \#{$bang} $baz"
273
+ assert_equal 'unquote("#{$bar}#{$baz}")', render("\#{$bar}$baz")
274
+ assert_equal 'unquote("#{$foo}#{$bar}")', render("$foo\#{$bar}")
275
+ assert_renders "\#{$bar}"
276
+ end
277
+
278
+ def test_interpolation_in_function
279
+ assert_renders 'flabnabbit(#{1 + "foo"})'
280
+ assert_equal 'flabnabbit(unquote("#{$foo} #{1 + "foo"}#{$baz}"))',
281
+ render('flabnabbit($foo #{1 + "foo"}$baz)')
282
+ assert_renders 'flabnabbit($foo #{1 + "foo"}#{2 + "bar"} $baz)'
283
+ end
284
+
285
+ def test_interpolation_in_string_function
286
+ assert_renders 'calc(#{1 + "foo"})'
287
+ assert_renders 'calc(foo#{1 + "foo"}baz)'
288
+ end
289
+
290
+ def test_interpolation_near_operators
291
+ assert_renders '#{1 + 2} , #{3 + 4}'
292
+ assert_renders '#{1 + 2}, #{3 + 4}'
293
+ assert_renders '#{1 + 2} ,#{3 + 4}'
294
+ assert_renders '#{1 + 2},#{3 + 4}'
295
+ assert_renders '#{1 + 2}, #{3 + 4}, #{5 + 6}'
296
+ assert_renders '3, #{3 + 4}, 11'
297
+
298
+ assert_renders '3 / #{3 + 4}'
299
+ assert_renders '3 /#{3 + 4}'
300
+ assert_renders '3/ #{3 + 4}'
301
+ assert_renders '3/#{3 + 4}'
302
+
303
+ assert_equal 'unquote("#{1 + 2} * 7")', render('#{1 + 2} * 7')
304
+ assert_equal 'unquote("#{1 + 2}* 7")', render('#{1 + 2}* 7')
305
+ assert_equal 'unquote("#{1 + 2} *7")', render('#{1 + 2} *7')
306
+ assert_equal 'unquote("#{1 + 2}*7")', render('#{1 + 2}*7')
307
+
308
+ assert_renders '-#{1 + 2}'
309
+ assert_equal 'unquote("- #{1 + 2}")', render('- #{1 + 2}')
310
+
311
+ assert_equal 'unquote("5 + #{1 + 2} * #{3 + 4}")', render('5 + #{1 + 2} * #{3 + 4}')
312
+ assert_equal 'unquote("5 +#{1 + 2} * #{3 + 4}")', render('5 +#{1 + 2} * #{3 + 4}')
313
+ assert_equal 'unquote("5+#{1 + 2} * #{3 + 4}")', render('5+#{1 + 2} * #{3 + 4}')
314
+ assert_equal 'unquote("#{1 + 2} * #{3 + 4} + 5")', render('#{1 + 2} * #{3 + 4} + 5')
315
+ assert_equal 'unquote("#{1 + 2} * #{3 + 4}+ 5")', render('#{1 + 2} * #{3 + 4}+ 5')
316
+ assert_equal 'unquote("#{1 + 2} * #{3 + 4}+5")', render('#{1 + 2} * #{3 + 4}+5')
317
+
318
+ assert_equal '5 / unquote("#{1 + 2} + #{3 + 4}")', render('5 / (#{1 + 2} + #{3 + 4})')
319
+ assert_equal '5 / unquote("#{1 + 2} + #{3 + 4}")', render('5 /(#{1 + 2} + #{3 + 4})')
320
+ assert_equal '5 / unquote("#{1 + 2} + #{3 + 4}")', render('5 /( #{1 + 2} + #{3 + 4} )')
321
+ assert_equal 'unquote("#{1 + 2} + #{3 + 4}") / 5', render('(#{1 + 2} + #{3 + 4}) / 5')
322
+ assert_equal 'unquote("#{1 + 2} + #{3 + 4}") / 5', render('(#{1 + 2} + #{3 + 4})/ 5')
323
+ assert_equal 'unquote("#{1 + 2} + #{3 + 4}") / 5', render('( #{1 + 2} + #{3 + 4} )/ 5')
324
+
325
+ assert_equal 'unquote("#{1 + 2} + #{2 + 3}")', render('#{1 + 2} + 2 + 3')
326
+ assert_equal 'unquote("#{1 + 2} +#{2 + 3}")', render('#{1 + 2} +2 + 3')
327
+ end
328
+
329
+ def test_string_interpolation
330
+ assert_renders '"foo#{$bar}baz"'
331
+ assert_renders '"foo #{$bar}baz"'
332
+ assert_renders '"foo#{$bar} baz"'
333
+ assert_renders '"foo #{$bar} baz"'
334
+ assert_renders '"foo #{$bar}#{$bang} baz"'
335
+ assert_renders '"foo #{$bar} #{$bang} baz"'
336
+ assert_renders '"#{$bar}baz"'
337
+ assert_renders '"foo#{$bar}"'
338
+ assert_renders '"#{$bar}"'
339
+
340
+ assert_renders "'\"\#{\"bar\"}\"'"
341
+ assert_renders '"\#{bar}"'
342
+
343
+ assert_equal '"foo#{$bar}baz"', render("'foo\#{$bar}baz'")
344
+ end
345
+
346
+ private
347
+
348
+ def assert_renders(script, options = {})
349
+ assert_equal(script, render(script, options))
350
+ end
351
+
352
+ def render(script, options = {})
353
+ munge_filename(options)
354
+ node = Sass::Script.parse(script, 1, 0, options.merge(:_convert => true))
355
+ node.to_sass
356
+ end
357
+ end
@@ -0,0 +1,1422 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ require File.dirname(__FILE__) + '/../test_helper'
4
+ require 'sass/engine'
5
+
6
+ module Sass::Script::Functions::UserFunctions
7
+ def assert_options(val)
8
+ val.options[:foo]
9
+ Sass::Script::Value::String.new("Options defined!")
10
+ end
11
+
12
+ def arg_error
13
+ assert_options
14
+ end
15
+ end
16
+
17
+ module Sass::Script::Functions
18
+ include Sass::Script::Functions::UserFunctions
19
+ end
20
+
21
+ class SassScriptTest < MiniTest::Test
22
+ include Sass::Script
23
+
24
+ def test_color_clamps_input
25
+ assert_equal 0, Sass::Script::Value::Color.new([1, 2, -1]).blue
26
+ assert_equal 255, Sass::Script::Value::Color.new([256, 2, 3]).red
27
+ end
28
+
29
+ def test_color_clamps_rgba_input
30
+ assert_equal 1, Sass::Script::Value::Color.new([1, 2, 3, 1.1]).alpha
31
+ assert_equal 0, Sass::Script::Value::Color.new([1, 2, 3, -0.1]).alpha
32
+ end
33
+
34
+ def test_color_from_hex
35
+ assert_equal Sass::Script::Value::Color.new([0,0,0]), Sass::Script::Value::Color.from_hex('000000')
36
+ assert_equal Sass::Script::Value::Color.new([0,0,0]), Sass::Script::Value::Color.from_hex('#000000')
37
+ end
38
+
39
+ def test_string_escapes
40
+ assert_equal "'", resolve("\"'\"")
41
+ assert_equal '"', resolve("\"\\\"\"")
42
+ assert_equal "\\", resolve("\"\\\\\"")
43
+ assert_equal "☃", resolve("\"\\2603\"")
44
+ assert_equal "☃f", resolve("\"\\2603 f\"")
45
+ assert_equal "☃x", resolve("\"\\2603x\"")
46
+ assert_equal "\\2603", resolve("\"\\\\2603\"")
47
+ assert_equal "\#{foo}", resolve("\"\\\#{foo}\"")
48
+
49
+ # U+FFFD is the replacement character, "�".
50
+ assert_equal [0xFFFD].pack("U"), resolve("\"\\0\"")
51
+ assert_equal [0xFFFD].pack("U"), resolve("\"\\FFFFFF\"")
52
+ assert_equal [0xFFFD].pack("U"), resolve("\"\\D800\"")
53
+ assert_equal [0xD7FF].pack("U"), resolve("\"\\D7FF\"")
54
+ assert_equal [0xFFFD].pack("U"), resolve("\"\\DFFF\"")
55
+ assert_equal [0xE000].pack("U"), resolve("\"\\E000\"")
56
+ end
57
+
58
+ def test_string_escapes_are_resolved_before_operators
59
+ assert_equal "true", resolve('"abc" == "\61\62\63"')
60
+ end
61
+
62
+ def test_string_quote
63
+ assert_equal '"foo"', resolve_quoted('"foo"')
64
+ assert_equal "'f\"oo'", resolve_quoted('"f\"oo"')
65
+ assert_equal "\"f'oo\"", resolve_quoted("'f\\'oo'")
66
+ assert_equal "\"f'o\\\"o\"", resolve_quoted("'f\\'o\"o'")
67
+ assert_equal '"foo bar"', resolve_quoted('"foo\20 bar"')
68
+ assert_equal '"foo\a bar"', resolve_quoted('"foo\a bar"')
69
+ assert_equal '"x\ay"', resolve_quoted('"x\a y"')
70
+ assert_equal '"\a "', resolve_quoted('"\a\20"')
71
+ assert_equal '"\a abcdef"', resolve_quoted('"\a abcdef"')
72
+ assert_equal '"☃abcdef"', resolve_quoted('"\2603 abcdef"')
73
+ assert_equal '"\\\\"', resolve_quoted('"\\\\"')
74
+ assert_equal '"foobar"', resolve_quoted("\"foo\\\nbar\"")
75
+ assert_equal '"#{foo}"', resolve_quoted("\"\\\#{foo}\"")
76
+ end
77
+
78
+ def test_color_names
79
+ assert_equal "white", resolve("white")
80
+ assert_equal "#ffffff", resolve("#ffffff")
81
+ assert_equal "#fffffe", resolve("white - #000001")
82
+ assert_equal "transparent", resolve("transparent")
83
+ assert_equal "transparent", resolve("rgba(0, 0, 0, 0)")
84
+ end
85
+
86
+ def test_rgba_color_literals
87
+ assert_equal Sass::Script::Value::Color.new([1, 2, 3, 0.75]), eval("rgba(1, 2, 3, 0.75)")
88
+ assert_equal "rgba(1, 2, 3, 0.75)", resolve("rgba(1, 2, 3, 0.75)")
89
+
90
+ assert_equal Sass::Script::Value::Color.new([1, 2, 3, 0]), eval("rgba(1, 2, 3, 0)")
91
+ assert_equal "rgba(1, 2, 3, 0)", resolve("rgba(1, 2, 3, 0)")
92
+
93
+ assert_equal Sass::Script::Value::Color.new([1, 2, 3]), eval("rgba(1, 2, 3, 1)")
94
+ assert_equal Sass::Script::Value::Color.new([1, 2, 3, 1]), eval("rgba(1, 2, 3, 1)")
95
+ assert_equal "#010203", resolve("rgba(1, 2, 3, 1)")
96
+ assert_equal "white", resolve("rgba(255, 255, 255, 1)")
97
+ end
98
+
99
+ def test_rgba_color_math
100
+ assert_equal "rgba(50, 50, 100, 0.35)", resolve("rgba(1, 1, 2, 0.35) * rgba(50, 50, 50, 0.35)")
101
+ assert_equal "rgba(52, 52, 52, 0.25)", resolve("rgba(2, 2, 2, 0.25) + rgba(50, 50, 50, 0.25)")
102
+
103
+ assert_raise_message(Sass::SyntaxError, "Alpha channels must be equal: rgba(1, 2, 3, 0.15) + rgba(50, 50, 50, 0.75)") do
104
+ resolve("rgba(1, 2, 3, 0.15) + rgba(50, 50, 50, 0.75)")
105
+ end
106
+ assert_raise_message(Sass::SyntaxError, "Alpha channels must be equal: #123456 * rgba(50, 50, 50, 0.75)") do
107
+ resolve("#123456 * rgba(50, 50, 50, 0.75)")
108
+ end
109
+ assert_raise_message(Sass::SyntaxError, "Alpha channels must be equal: rgba(50, 50, 50, 0.75) / #123456") do
110
+ resolve("rgba(50, 50, 50, 0.75) / #123456")
111
+ end
112
+ end
113
+
114
+ def test_rgba_number_math
115
+ assert_equal "rgba(49, 49, 49, 0.75)", resolve("rgba(50, 50, 50, 0.75) - 1")
116
+ assert_equal "rgba(100, 100, 100, 0.75)", resolve("rgba(50, 50, 50, 0.75) * 2")
117
+ end
118
+
119
+ def test_rgba_rounding
120
+ assert_equal "rgba(10, 1, 0, 0.12346)", resolve("rgba(10.0, 1.23456789, 0.0, 0.1234567)")
121
+ end
122
+
123
+ def test_rgb_calc
124
+ assert_equal "rgb(calc(255 - 5), 0, 0)", resolve("rgb(calc(255 - 5), 0, 0)")
125
+ end
126
+
127
+ def test_rgba_calc
128
+ assert_equal "rgba(calc(255 - 5), 0, 0, 0.1)",
129
+ resolve("rgba(calc(255 - 5), 0, 0, 0.1)")
130
+ assert_equal "rgba(127, 0, 0, calc(0.1 + 0.5))",
131
+ resolve("rgba(127, 0, 0, calc(0.1 + 0.5))")
132
+ end
133
+
134
+ def test_rgba_shorthand_calc
135
+ assert_equal "rgba(255, 0, 0, calc(0.1 + 0.5))",
136
+ resolve("rgba(red, calc(0.1 + 0.5))")
137
+ end
138
+
139
+ def test_hsl_calc
140
+ assert_equal "hsl(calc(360 * 5 / 6), 50%, 50%)", resolve("hsl(calc(360 * 5 / 6), 50%, 50%)")
141
+ end
142
+
143
+ def test_hsla_calc
144
+ assert_equal "hsla(calc(360 * 5 / 6), 50%, 50%, 0.1)",
145
+ resolve("hsla(calc(360 * 5 / 6), 50%, 50%, 0.1)")
146
+ assert_equal "hsla(270, 50%, 50%, calc(0.1 + 0.1))",
147
+ resolve("hsla(270, 50%, 50%, calc(0.1 + 0.1))")
148
+ end
149
+
150
+ def test_compressed_colors
151
+ assert_equal "#123456", resolve("#123456", :style => :compressed)
152
+ assert_equal "rgba(1,2,3,0.5)", resolve("rgba(1, 2, 3, 0.5)", :style => :compressed)
153
+ assert_equal "#123", resolve("#112233", :style => :compressed)
154
+ assert_equal "#000", resolve("black", :style => :compressed)
155
+ assert_equal "red", resolve("#f00", :style => :compressed)
156
+ assert_equal "blue", resolve("blue", :style => :compressed)
157
+ assert_equal "navy", resolve("#000080", :style => :compressed)
158
+ assert_equal "navy #fff", resolve("#000080 white", :style => :compressed)
159
+ assert_equal "This color is #fff", resolve('"This color is #{ white }"', :style => :compressed)
160
+ assert_equal "transparent", resolve("rgba(0, 0, 0, 0)", :style => :compressed)
161
+ end
162
+
163
+ def test_compressed_comma
164
+ # assert_equal "foo,bar,baz", resolve("foo, bar, baz", :style => :compressed)
165
+ # assert_equal "foo,#baf,baz", resolve("foo, #baf, baz", :style => :compressed)
166
+ assert_equal "foo,#baf,red", resolve("foo, #baf, #f00", :style => :compressed)
167
+ end
168
+
169
+ def test_implicit_strings
170
+ assert_equal Sass::Script::Value::String.new("foo"), eval("foo")
171
+ assert_equal Sass::Script::Value::String.new("foo/bar"), eval("foo/bar")
172
+ end
173
+
174
+ def test_basic_interpolation
175
+ assert_equal "foo3bar", resolve("foo\#{1 + 2}bar")
176
+ assert_equal "foo3 bar", resolve("foo\#{1 + 2} bar")
177
+ assert_equal "foo 3bar", resolve("foo \#{1 + 2}bar")
178
+ assert_equal "foo 3 bar", resolve("foo \#{1 + 2} bar")
179
+ assert_equal "foo 35 bar", resolve("foo \#{1 + 2}\#{2 + 3} bar")
180
+ assert_equal "foo 3 5 bar", resolve("foo \#{1 + 2} \#{2 + 3} bar")
181
+ assert_equal "3bar", resolve("\#{1 + 2}bar")
182
+ assert_equal "foo3", resolve("foo\#{1 + 2}")
183
+ assert_equal "3", resolve("\#{1 + 2}")
184
+ end
185
+
186
+ def test_interpolation_in_function
187
+ assert_equal 'flabnabbit(1foo)', resolve('flabnabbit(#{1 + "foo"})')
188
+ assert_equal 'flabnabbit(foo 1foobaz)', resolve('flabnabbit(foo #{1 + "foo"}baz)')
189
+ assert_equal('flabnabbit(foo 1foo2bar baz)',
190
+ resolve('flabnabbit(foo #{1 + "foo"}#{2 + "bar"} baz)'))
191
+ end
192
+
193
+ def test_interpolation_near_operators
194
+ silence_warnings do
195
+ assert_equal '3 , 7', resolve('#{1 + 2} , #{3 + 4}')
196
+ assert_equal '3, 7', resolve('#{1 + 2}, #{3 + 4}')
197
+ assert_equal '3 ,7', resolve('#{1 + 2} ,#{3 + 4}')
198
+ assert_equal '3,7', resolve('#{1 + 2},#{3 + 4}')
199
+ assert_equal '3, 7, 11', resolve('#{1 + 2}, #{3 + 4}, #{5 + 6}')
200
+ assert_equal '3, 7, 11', resolve('3, #{3 + 4}, 11')
201
+ assert_equal '3, 7, 11', resolve('3, 7, #{5 + 6}')
202
+
203
+ assert_equal '3 / 7', resolve('3 / #{3 + 4}')
204
+ assert_equal '3 /7', resolve('3 /#{3 + 4}')
205
+ assert_equal '3/ 7', resolve('3/ #{3 + 4}')
206
+ assert_equal '3/7', resolve('3/#{3 + 4}')
207
+
208
+ assert_equal '3 * 7', resolve('#{1 + 2} * 7')
209
+ assert_equal '3* 7', resolve('#{1 + 2}* 7')
210
+ assert_equal '3 *7', resolve('#{1 + 2} *7')
211
+ assert_equal '3*7', resolve('#{1 + 2}*7')
212
+
213
+ assert_equal '-3', resolve('-#{1 + 2}')
214
+ assert_equal '- 3', resolve('- #{1 + 2}')
215
+
216
+ assert_equal '5 + 3 * 7', resolve('5 + #{1 + 2} * #{3 + 4}')
217
+ assert_equal '5 +3 * 7', resolve('5 +#{1 + 2} * #{3 + 4}')
218
+ assert_equal '5+3 * 7', resolve('5+#{1 + 2} * #{3 + 4}')
219
+ assert_equal '3 * 7 + 5', resolve('#{1 + 2} * #{3 + 4} + 5')
220
+ assert_equal '3 * 7+ 5', resolve('#{1 + 2} * #{3 + 4}+ 5')
221
+ assert_equal '3 * 7+5', resolve('#{1 + 2} * #{3 + 4}+5')
222
+
223
+ assert_equal '5/3 + 7', resolve('5 / (#{1 + 2} + #{3 + 4})')
224
+ assert_equal '5/3 + 7', resolve('5 /(#{1 + 2} + #{3 + 4})')
225
+ assert_equal '5/3 + 7', resolve('5 /( #{1 + 2} + #{3 + 4} )')
226
+ assert_equal '3 + 7/5', resolve('(#{1 + 2} + #{3 + 4}) / 5')
227
+ assert_equal '3 + 7/5', resolve('(#{1 + 2} + #{3 + 4})/ 5')
228
+ assert_equal '3 + 7/5', resolve('( #{1 + 2} + #{3 + 4} )/ 5')
229
+
230
+ assert_equal '3 + 5', resolve('#{1 + 2} + 2 + 3')
231
+ assert_equal '3 +5', resolve('#{1 + 2} +2 + 3')
232
+ end
233
+ end
234
+
235
+ def test_string_interpolation
236
+ assert_equal "foo bar, baz bang", resolve('"foo #{"bar"}, #{"baz"} bang"')
237
+ assert_equal "foo bar baz bang", resolve('"foo #{"#{"ba" + "r"} baz"} bang"')
238
+ assert_equal 'foo #{bar baz} bang', resolve('"foo \#{#{"ba" + "r"} baz} bang"')
239
+ assert_equal 'foo #{baz bang', resolve('"foo #{"\#{" + "baz"} bang"')
240
+ assert_equal "foo2bar", resolve('\'foo#{1 + 1}bar\'')
241
+ assert_equal "foo2bar", resolve('"foo#{1 + 1}bar"')
242
+ assert_equal "foo1bar5baz4bang", resolve('\'foo#{1 + "bar#{2 + 3}baz" + 4}bang\'')
243
+ end
244
+
245
+ def test_interpolation_in_interpolation
246
+ assert_equal 'foo', resolve('#{#{foo}}')
247
+ assert_equal 'foo', resolve('"#{#{foo}}"')
248
+ assert_equal 'foo', resolve('#{"#{foo}"}')
249
+ assert_equal 'foo', resolve('"#{"#{foo}"}"')
250
+ end
251
+
252
+ def test_interpolation_with_newline
253
+ assert_equal "\nbang", resolve('"#{"\a "}bang"')
254
+ assert_equal "\n\nbang", resolve('"#{"\a "}\a bang"')
255
+ end
256
+
257
+ def test_rule_interpolation
258
+ assert_equal(<<CSS, render(<<SASS))
259
+ foo bar baz bang {
260
+ a: b; }
261
+ CSS
262
+ foo \#{"\#{"ba" + "r"} baz"} bang
263
+ a: b
264
+ SASS
265
+ assert_equal(<<CSS, render(<<SASS))
266
+ foo [bar="\#{bar baz}"] bang {
267
+ a: b; }
268
+ CSS
269
+ foo [bar="\\\#{\#{"ba" + "r"} baz}"] bang
270
+ a: b
271
+ SASS
272
+ assert_equal(<<CSS, render(<<SASS))
273
+ foo [bar="\#{baz"] bang {
274
+ a: b; }
275
+ CSS
276
+ foo [bar="\#{"\\\#{" + "baz"}"] bang
277
+ a: b
278
+ SASS
279
+ end
280
+
281
+ def test_inaccessible_functions
282
+ assert_equal "send(to_s)", resolve("send(to_s)", :line => 2)
283
+ assert_equal "public_instance_methods()", resolve("public_instance_methods()")
284
+ end
285
+
286
+ def test_adding_functions_directly_to_functions_module
287
+ assert !Functions.callable?('nonexistant')
288
+ Functions.class_eval { def nonexistant; end }
289
+ assert Functions.callable?('nonexistant')
290
+ Functions.send :remove_method, :nonexistant
291
+ end
292
+
293
+ def test_default_functions
294
+ assert_equal "url(12)", resolve("url(12)")
295
+ assert_equal 'blam("foo")', resolve('blam("foo")')
296
+ end
297
+
298
+ def test_function_results_have_options
299
+ assert_equal "Options defined!", resolve("assert_options(abs(1))")
300
+ assert_equal "Options defined!", resolve("assert_options(round(1.2))")
301
+ end
302
+
303
+ def test_funcall_requires_no_whitespace_before_lparen
304
+ assert_equal "no-repeat 15px", resolve("no-repeat (7px + 8px)")
305
+ assert_equal "no-repeat(15px)", resolve("no-repeat(7px + 8px)")
306
+ end
307
+
308
+ def test_dynamic_url
309
+ assert_equal "url(foo-bar)", resolve("url($foo)", {}, env('foo' => Sass::Script::Value::String.new("foo-bar")))
310
+ assert_equal "url(foo-bar baz)", resolve("url($foo $bar)", {}, env('foo' => Sass::Script::Value::String.new("foo-bar"), 'bar' => Sass::Script::Value::String.new("baz")))
311
+ assert_equal "url(foo baz)", resolve("url(foo $bar)", {}, env('bar' => Sass::Script::Value::String.new("baz")))
312
+ assert_equal "url(foo bar)", resolve("url(foo bar)")
313
+ end
314
+
315
+ def test_url_with_interpolation
316
+ assert_equal "url(http://sass-lang.com/images/foo-bar)", resolve("url(http://sass-lang.com/images/\#{foo-bar})")
317
+ assert_equal 'url("http://sass-lang.com/images/foo-bar")', resolve("url('http://sass-lang.com/images/\#{foo-bar}')")
318
+ assert_equal 'url("http://sass-lang.com/images/foo-bar")', resolve('url("http://sass-lang.com/images/#{foo-bar}")')
319
+ assert_unquoted "url(http://sass-lang.com/images/\#{foo-bar})"
320
+ end
321
+
322
+ def test_hyphenated_variables
323
+ assert_equal("a-b", resolve("$a-b", {}, env("a-b" => Sass::Script::Value::String.new("a-b"))))
324
+ end
325
+
326
+ def test_ruby_equality
327
+ assert_equal eval('"foo"'), eval('"foo"')
328
+ assert_equal eval('1'), eval('1.0')
329
+ assert_equal eval('1 2 3.0'), eval('1 2 3')
330
+ assert_equal eval('1, 2, 3.0'), eval('1, 2, 3')
331
+ assert_equal eval('(1 2), (3, 4), (5 6)'), eval('(1 2), (3, 4), (5 6)')
332
+ refute_equal eval('1, 2, 3'), eval('1 2 3')
333
+ refute_equal eval('1'), eval('"1"')
334
+ end
335
+
336
+ def test_booleans
337
+ assert_equal "true", resolve("true")
338
+ assert_equal "false", resolve("false")
339
+ end
340
+
341
+ def test_null
342
+ assert_equal "", resolve("null")
343
+ end
344
+
345
+ def test_boolean_ops
346
+ assert_equal "true", resolve("true and true")
347
+ assert_equal "true", resolve("false or true")
348
+ assert_equal "true", resolve("true or false")
349
+ assert_equal "true", resolve("true or true")
350
+ assert_equal "false", resolve("false or false")
351
+ assert_equal "false", resolve("false and true")
352
+ assert_equal "false", resolve("true and false")
353
+ assert_equal "false", resolve("false and false")
354
+
355
+ assert_equal "true", resolve("not false")
356
+ assert_equal "false", resolve("not true")
357
+ assert_equal "true", resolve("not not true")
358
+
359
+ assert_equal "1", resolve("false or 1")
360
+ assert_equal "false", resolve("false and 1")
361
+ assert_equal "2", resolve("2 or 3")
362
+ assert_equal "3", resolve("2 and 3")
363
+
364
+ assert_equal "true", resolve("null or true")
365
+ assert_equal "true", resolve("true or null")
366
+ assert_equal "", resolve("null or null")
367
+ assert_equal "", resolve("null and true")
368
+ assert_equal "", resolve("true and null")
369
+ assert_equal "", resolve("null and null")
370
+
371
+ assert_equal "true", resolve("not null")
372
+
373
+ assert_equal "1", resolve("null or 1")
374
+ assert_equal "", resolve("null and 1")
375
+ end
376
+
377
+ def test_arithmetic_ops
378
+ assert_equal "2", resolve("1 + 1")
379
+ assert_equal "0", resolve("1 - 1")
380
+ assert_equal "8", resolve("2 * 4")
381
+ assert_equal "0.5", resolve("(2 / 4)")
382
+ assert_equal "2", resolve("(4 / 2)")
383
+
384
+ assert_equal "-1", resolve("-1")
385
+ end
386
+
387
+ def test_subtraction_vs_minus_vs_identifier
388
+ assert_equal "0.25em", resolve("1em-.75")
389
+ assert_equal "0.25em", resolve("1em-0.75")
390
+ assert_equal "1em -0.75", resolve("1em -.75")
391
+ assert_equal "1em -0.75", resolve("1em -0.75")
392
+ assert_equal "1em- 0.75", resolve("1em- .75")
393
+ assert_equal "1em- 0.75", resolve("1em- 0.75")
394
+ assert_equal "0.25em", resolve("1em - .75")
395
+ assert_equal "0.25em", resolve("1em - 0.75")
396
+ end
397
+
398
+ def test_string_ops
399
+ assert_equal '"foo" "bar"', resolve('"foo" "bar"')
400
+ assert_equal "true 1", resolve('true 1')
401
+ assert_equal '"foo", "bar"', resolve("'foo' , 'bar'")
402
+ assert_equal "true, 1", resolve('true , 1')
403
+ assert_equal "foobar", resolve('"foo" + "bar"')
404
+ assert_equal "\nfoo\nxyz", resolve('"\a foo" + "\axyz"')
405
+ assert_equal "true1", resolve('true + 1')
406
+ assert_equal '"foo"-"bar"', resolve("'foo' - 'bar'")
407
+ assert_equal "true-1", resolve('true - 1')
408
+ assert_equal '"foo"/"bar"', resolve('"foo" / "bar"')
409
+ assert_equal "true/1", resolve('true / 1')
410
+
411
+ assert_equal '-"bar"', resolve("- 'bar'")
412
+ assert_equal "-true", resolve('- true')
413
+ assert_equal '/"bar"', resolve('/ "bar"')
414
+ assert_equal "/true", resolve('/ true')
415
+ end
416
+
417
+ def test_relational_ops
418
+ assert_equal "false", resolve("1 > 2")
419
+ assert_equal "false", resolve("2 > 2")
420
+ assert_equal "true", resolve("3 > 2")
421
+ assert_equal "false", resolve("1 >= 2")
422
+ assert_equal "true", resolve("2 >= 2")
423
+ assert_equal "true", resolve("3 >= 2")
424
+ assert_equal "true", resolve("1 < 2")
425
+ assert_equal "false", resolve("2 < 2")
426
+ assert_equal "false", resolve("3 < 2")
427
+ assert_equal "true", resolve("1 <= 2")
428
+ assert_equal "true", resolve("2 <= 2")
429
+ assert_equal "false", resolve("3 <= 2")
430
+ end
431
+
432
+ def test_null_ops
433
+ assert_raise_message(Sass::SyntaxError,
434
+ 'Invalid null operation: "null plus 1".') {eval("null + 1")}
435
+ assert_raise_message(Sass::SyntaxError,
436
+ 'Invalid null operation: "null minus 1".') {eval("null - 1")}
437
+ assert_raise_message(Sass::SyntaxError,
438
+ 'Invalid null operation: "null times 1".') {eval("null * 1")}
439
+ assert_raise_message(Sass::SyntaxError,
440
+ 'Invalid null operation: "null div 1".') {eval("null / 1")}
441
+ assert_raise_message(Sass::SyntaxError,
442
+ 'Invalid null operation: "null mod 1".') {eval("null % 1")}
443
+ assert_raise_message(Sass::SyntaxError,
444
+ 'Invalid null operation: "1 plus null".') {eval("1 + null")}
445
+ assert_raise_message(Sass::SyntaxError,
446
+ 'Invalid null operation: "1 minus null".') {eval("1 - null")}
447
+ assert_raise_message(Sass::SyntaxError,
448
+ 'Invalid null operation: "1 times null".') {eval("1 * null")}
449
+ assert_raise_message(Sass::SyntaxError,
450
+ 'Invalid null operation: "1 div null".') {eval("1 / null")}
451
+ assert_raise_message(Sass::SyntaxError,
452
+ 'Invalid null operation: "1 mod null".') {eval("1 % null")}
453
+ assert_raise_message(Sass::SyntaxError,
454
+ 'Invalid null operation: "1 gt null".') {eval("1 > null")}
455
+ assert_raise_message(Sass::SyntaxError,
456
+ 'Invalid null operation: "null lt 1".') {eval("null < 1")}
457
+ assert_raise_message(Sass::SyntaxError,
458
+ 'Invalid null operation: "null plus null".') {eval("null + null")}
459
+ assert_raise_message(Sass::SyntaxError,
460
+ 'Invalid null operation: ""foo" plus null".') {eval("foo + null")}
461
+ end
462
+
463
+ def test_equals
464
+ assert_equal("true", resolve('"foo" == $foo', {},
465
+ env("foo" => Sass::Script::Value::String.new("foo"))))
466
+ assert_equal "true", resolve("1 == 1.0")
467
+ assert_equal "true", resolve("false != true")
468
+ assert_equal "false", resolve("1em == 1px")
469
+ assert_equal "false", resolve("12 != 12")
470
+ assert_equal "true", resolve("(foo bar baz) == (foo bar baz)")
471
+ assert_equal "true", resolve("(foo, bar, baz) == (foo, bar, baz)")
472
+ assert_equal "true", resolve('((1 2), (3, 4), (5 6)) == ((1 2), (3, 4), (5 6))')
473
+ assert_equal "true", resolve('((1 2), (3 4)) == (1 2, 3 4)')
474
+ assert_equal "false", resolve('((1 2) 3) == (1 2 3)')
475
+ assert_equal "false", resolve('(1 (2 3)) == (1 2 3)')
476
+ assert_equal "false", resolve('((1, 2) (3, 4)) == (1, 2 3, 4)')
477
+ assert_equal "false", resolve('(1 2 3) == (1, 2, 3)')
478
+
479
+ assert_equal "true", resolve('null == null')
480
+ assert_equal "false", resolve('"null" == null')
481
+ assert_equal "false", resolve('0 == null')
482
+ assert_equal "false", resolve('() == null')
483
+
484
+ assert_equal "false", resolve('null != null')
485
+ assert_equal "true", resolve('"null" != null')
486
+ assert_equal "true", resolve('0 != null')
487
+ assert_equal "true", resolve('() != null')
488
+ end
489
+
490
+ def test_mod
491
+ assert_equal "5", resolve("29 % 12")
492
+ assert_equal "5px", resolve("29px % 12")
493
+ assert_equal "5px", resolve("29px % 12px")
494
+ end
495
+
496
+ def test_operation_precedence
497
+ assert_equal "false true", resolve("true and false false or true")
498
+ assert_equal "true", resolve("false and true or true and true")
499
+ assert_equal "true", resolve("1 == 2 or 3 == 3")
500
+ assert_equal "true", resolve("1 < 2 == 3 >= 3")
501
+ assert_equal "true", resolve("1 + 3 > 4 - 2")
502
+ assert_equal "11", resolve("1 + 2 * 3 + 4")
503
+ end
504
+
505
+ def test_functions
506
+ assert_equal "#80ff80", resolve("hsl(120, 100%, 75%)")
507
+ assert_equal "#81ff81", resolve("hsl(120, 100%, 75%) + #010001")
508
+ end
509
+
510
+ def test_operator_unit_conversion
511
+ assert_equal "1.1cm", resolve("1cm + 1mm")
512
+ assert_equal "8q", resolve("4q + 1mm")
513
+ assert_equal "40.025cm", resolve("40cm + 1q")
514
+ assert_equal "2in", resolve("1in + 96px")
515
+ assert_equal "true", resolve("2mm < 1cm")
516
+ assert_equal "true", resolve("10mm == 1cm")
517
+ assert_equal "true", resolve("1.1cm == 11mm")
518
+ assert_equal "true", resolve("2mm == 8q")
519
+ assert_equal "false", resolve("2px > 3q")
520
+
521
+ assert_warning(<<WARNING) {assert_equal "true", resolve("1 == 1cm")}
522
+ DEPRECATION WARNING on line 1 of test_operator_unit_conversion_inline.sass:
523
+ The result of `1 == 1cm` will be `false` in future releases of Sass.
524
+ Unitless numbers will no longer be equal to the same numbers with units.
525
+ WARNING
526
+
527
+ assert_warning(<<WARNING) {assert_equal "false", resolve("1 != 1cm")}
528
+ DEPRECATION WARNING on line 1 of test_operator_unit_conversion_inline.sass:
529
+ The result of `1 != 1cm` will be `true` in future releases of Sass.
530
+ Unitless numbers will no longer be equal to the same numbers with units.
531
+ WARNING
532
+ end
533
+
534
+ def test_length_units
535
+ assert_equal "2.54", resolve("(1in/1cm)")
536
+ assert_equal "2.3622", resolve("(1cm/1pc)")
537
+ assert_equal "4.23333", resolve("(1pc/1mm)")
538
+ assert_equal "2.83465", resolve("(1mm/1pt)")
539
+ assert_equal "1.33333", resolve("(1pt/1px)")
540
+ assert_equal "0.01042", resolve("(1px/1in)")
541
+ assert_equal "1.05833", resolve("(1px/1q)")
542
+ assert_equal "0.05906", resolve("(1q/1pc)")
543
+ end
544
+
545
+ def test_angle_units
546
+ assert_equal "1.11111", resolve("(1deg/1grad)")
547
+ assert_equal "0.01571", resolve("(1grad/1rad)")
548
+ assert_equal "0.15915", resolve("(1rad/1turn)")
549
+ assert_equal "360", resolve("(1turn/1deg)")
550
+ end
551
+
552
+ def test_time_units
553
+ assert_equal "1000", resolve("(1s/1ms)")
554
+ end
555
+
556
+ def test_frequency_units
557
+ assert_equal "0.001", resolve("(1Hz/1kHz)")
558
+ end
559
+
560
+ def test_resolution_units
561
+ assert_equal "2.54", resolve("(1dpi/1dpcm)")
562
+ assert_equal "37.79528", resolve("(1dpcm/1dppx)")
563
+ assert_equal "0.01042", resolve("(1dppx/1dpi)")
564
+ end
565
+
566
+ def test_operations_have_options
567
+ assert_equal "Options defined!", resolve("assert_options(1 + 1)")
568
+ assert_equal "Options defined!", resolve("assert_options('bar' + 'baz')")
569
+ end
570
+
571
+ def test_slash_compiles_literally_when_left_alone
572
+ assert_equal "1px/2px", resolve("1px/2px")
573
+ assert_equal "1px/2px/3px/4px", resolve("1px/2px/3px/4px")
574
+
575
+ assert_equal "1px/2px redpx bluepx", resolve("1px/2px redpx bluepx")
576
+ assert_equal "foo 1px/2px/3px bar", resolve("foo 1px/2px/3px bar")
577
+ end
578
+
579
+ def test_slash_divides_with_parens
580
+ assert_equal "0.5", resolve("(1px/2px)")
581
+ assert_equal "0.5", resolve("(1px)/2px")
582
+ assert_equal "0.5", resolve("1px/(2px)")
583
+ end
584
+
585
+ def test_slash_divides_with_other_arithmetic
586
+ assert_equal "0.5px", resolve("1px*1px/2px")
587
+ assert_equal "0.5px", resolve("1px/2px*1px")
588
+ assert_equal "0.5", resolve("0+1px/2px")
589
+ assert_equal "0.5", resolve("1px/2px+0")
590
+ end
591
+
592
+ def test_slash_divides_with_variable
593
+ assert_equal "0.5", resolve("$var/2px", {}, env("var" => eval("1px")))
594
+ assert_equal "0.5", resolve("1px/$var", {}, env("var" => eval("2px")))
595
+ assert_equal "0.5", resolve("$var", {}, env("var" => eval("1px/2px")))
596
+ end
597
+
598
+ # Regression test for issue 1786.
599
+ def test_slash_division_within_list
600
+ assert_equal "1 1/2 1/2", resolve("(1 1/2 1/2)")
601
+ assert_equal "1/2 1/2", resolve("(1/2 1/2)")
602
+ assert_equal "1/2", resolve("(1/2,)")
603
+ end
604
+
605
+ def test_non_ident_colors_with_wrong_number_of_digits
606
+ assert_raise_message(Sass::SyntaxError,
607
+ 'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#1"') {eval("#1")}
608
+ assert_raise_message(Sass::SyntaxError,
609
+ 'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#12"') {eval("#12")}
610
+ assert_raise_message(Sass::SyntaxError,
611
+ 'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#1234"') {eval("#1234")}
612
+ assert_raise_message(Sass::SyntaxError,
613
+ 'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#12345"') {eval("#12345")}
614
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "": expected expression (e.g. ' \
615
+ '1px, bold), was "#1234567"') {eval("#1234567")}
616
+ end
617
+
618
+ def test_case_insensitive_color_names
619
+ assert_equal "BLUE", resolve("BLUE")
620
+ assert_equal "rEd", resolve("rEd")
621
+ assert_equal "#804000", resolve("mix(GrEeN, ReD)")
622
+ end
623
+
624
+ def test_empty_list
625
+ assert_equal "1 2 3", resolve("1 2 () 3")
626
+ assert_equal "1 2 3", resolve("1 2 3 ()")
627
+ assert_equal "1 2 3", resolve("() 1 2 3")
628
+ assert_raise_message(Sass::SyntaxError, "() isn't a valid CSS value.") {resolve("()")}
629
+ assert_raise_message(Sass::SyntaxError, "() isn't a valid CSS value.") {resolve("nth(append((), ()), 1)")}
630
+ end
631
+
632
+ def test_list_with_nulls
633
+ assert_equal "1, 2, 3", resolve("1, 2, null, 3")
634
+ assert_equal "1 2 3", resolve("1 2 null 3")
635
+ assert_equal "1, 2, 3", resolve("1, 2, 3, null")
636
+ assert_equal "1 2 3", resolve("1 2 3 null")
637
+ assert_equal "1, 2, 3", resolve("null, 1, 2, 3")
638
+ assert_equal "1 2 3", resolve("null 1 2 3")
639
+ end
640
+
641
+ def test_map_can_have_trailing_comma
642
+ assert_equal("(foo: 1, bar: 2)", eval("(foo: 1, bar: 2,)").to_sass)
643
+ end
644
+
645
+ def test_list_can_have_trailing_comma
646
+ assert_equal("1, 2, 3", resolve("1, 2, 3,"))
647
+ end
648
+
649
+ def test_trailing_comma_defines_singleton_list
650
+ assert_equal("1 2 3", resolve("nth((1 2 3,), 1)"))
651
+ end
652
+
653
+ def test_map_cannot_have_duplicate_keys
654
+ assert_raise_message(Sass::SyntaxError, 'Duplicate key "foo" in map (foo: bar, foo: baz).') do
655
+ eval("(foo: bar, foo: baz)")
656
+ end
657
+ assert_raise_message(Sass::SyntaxError, 'Duplicate key "foo" in map (foo: bar, fo + o: baz).') do
658
+ eval("(foo: bar, fo + o: baz)")
659
+ end
660
+ assert_raise_message(Sass::SyntaxError, 'Duplicate key "foo" in map (foo: bar, "foo": baz).') do
661
+ eval("(foo: bar, 'foo': baz)")
662
+ end
663
+ assert_raise_message(Sass::SyntaxError, 'Duplicate key 2px in map (2px: bar, 1px + 1px: baz).') do
664
+ eval("(2px: bar, 1px + 1px: baz)")
665
+ end
666
+ assert_raise_message(Sass::SyntaxError, 'Duplicate key #0000ff in map (blue: bar, #00f: baz).') do
667
+ eval("(blue: bar, #00f: baz)")
668
+ end
669
+ end
670
+
671
+ def test_non_duplicate_map_keys
672
+ # These shouldn't throw errors
673
+ eval("(foo: foo, bar: bar)")
674
+ eval("(2px: foo, 2: bar)")
675
+ eval("(2px: foo, 2em: bar)")
676
+ eval("('2px': foo, 2px: bar)")
677
+ end
678
+
679
+ def test_map_syntax_errors
680
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(foo:": expected expression (e.g. 1px, bold), was ")"') do
681
+ eval("(foo:)")
682
+ end
683
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(": expected ")", was ":bar)"') do
684
+ eval("(:bar)")
685
+ end
686
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(foo, bar": expected ")", was ": baz)"') do
687
+ eval("(foo, bar: baz)")
688
+ end
689
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "(foo: bar, baz": expected ":", was ")"') do
690
+ eval("(foo: bar, baz)")
691
+ end
692
+ end
693
+
694
+ def test_deep_argument_error_not_unwrapped
695
+ # JRuby (as of 1.6.7.2) offers no way of distinguishing between
696
+ # argument errors caused by programming errors in a function and
697
+ # argument errors explicitly thrown within that function.
698
+ return if RUBY_PLATFORM =~ /java/
699
+
700
+ # Don't validate the message; it's different on Rubinius.
701
+ assert_raises(ArgumentError) {resolve("arg-error()")}
702
+ end
703
+
704
+ def test_shallow_argument_error_unwrapped
705
+ assert_raise_message(Sass::SyntaxError, "wrong number of arguments (1 for 0) for `arg-error'") {resolve("arg-error(1)")}
706
+ end
707
+
708
+ def test_boolean_ops_short_circuit
709
+ assert_equal "false", resolve("$ie and $ie <= 7", {}, env('ie' => Sass::Script::Value::Bool.new(false)))
710
+ assert_equal "true", resolve("$ie or $undef", {}, env('ie' => Sass::Script::Value::Bool.new(true)))
711
+ end
712
+
713
+ def test_selector
714
+ env = Sass::Environment.new
715
+ assert_equal "true", resolve("& == null", {}, env)
716
+
717
+ env.selector = selector('.foo.bar .baz.bang, .bip.bop')
718
+ assert_equal ".foo.bar .baz.bang, .bip.bop", resolve("&", {}, env)
719
+ assert_equal ".foo.bar .baz.bang", resolve("nth(&, 1)", {}, env)
720
+ assert_equal ".bip.bop", resolve("nth(&, 2)", {}, env)
721
+ assert_equal ".foo.bar", resolve("nth(nth(&, 1), 1)", {}, env)
722
+ assert_equal ".baz.bang", resolve("nth(nth(&, 1), 2)", {}, env)
723
+ assert_equal ".bip.bop", resolve("nth(nth(&, 2), 1)", {}, env)
724
+ assert_equal "string", resolve("type-of(nth(nth(&, 1), 1))", {}, env)
725
+
726
+ env.selector = selector('.foo > .bar')
727
+ assert_equal ".foo > .bar", resolve("&", {}, env)
728
+ assert_equal ".foo > .bar", resolve("nth(&, 1)", {}, env)
729
+ assert_equal ".foo", resolve("nth(nth(&, 1), 1)", {}, env)
730
+ assert_equal ">", resolve("nth(nth(&, 1), 2)", {}, env)
731
+ assert_equal ".bar", resolve("nth(nth(&, 1), 3)", {}, env)
732
+ end
733
+
734
+ def test_selector_with_newlines
735
+ env = Sass::Environment.new
736
+ env.selector = selector(".foo.bar\n.baz.bang,\n\n.bip.bop")
737
+ assert_equal ".foo.bar .baz.bang, .bip.bop", resolve("&", {}, env)
738
+ assert_equal ".foo.bar .baz.bang", resolve("nth(&, 1)", {}, env)
739
+ assert_equal ".bip.bop", resolve("nth(&, 2)", {}, env)
740
+ assert_equal ".foo.bar", resolve("nth(nth(&, 1), 1)", {}, env)
741
+ assert_equal ".baz.bang", resolve("nth(nth(&, 1), 2)", {}, env)
742
+ assert_equal ".bip.bop", resolve("nth(nth(&, 2), 1)", {}, env)
743
+ assert_equal "string", resolve("type-of(nth(nth(&, 1), 1))", {}, env)
744
+ end
745
+
746
+ def test_setting_global_variable_globally
747
+ assert_no_warning {assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))}
748
+ .foo {
749
+ a: 1; }
750
+
751
+ .bar {
752
+ b: 2; }
753
+ CSS
754
+ $var: 1;
755
+
756
+ .foo {
757
+ a: $var;
758
+ }
759
+
760
+ $var: 2;
761
+
762
+ .bar {
763
+ b: $var;
764
+ }
765
+ SCSS
766
+ end
767
+
768
+ def test_setting_global_variable_locally
769
+ assert_no_warning {assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))}
770
+ .bar {
771
+ a: x;
772
+ b: y;
773
+ c: z; }
774
+ CSS
775
+ $var1: 1;
776
+ $var3: 3;
777
+
778
+ .foo {
779
+ $var1: x !global;
780
+ $var2: y !global;
781
+ @each $var3 in _ {
782
+ $var3: z !global;
783
+ }
784
+ }
785
+
786
+ .bar {
787
+ a: $var1;
788
+ b: $var2;
789
+ c: $var3;
790
+ }
791
+ SCSS
792
+ end
793
+
794
+ def test_setting_global_variable_locally_with_default
795
+ assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))
796
+ .bar {
797
+ a: 1;
798
+ b: y;
799
+ c: z; }
800
+ CSS
801
+ $var1: 1;
802
+
803
+ .foo {
804
+ $var1: x !global !default;
805
+ $var2: y !global !default;
806
+ @each $var3 in _ {
807
+ $var3: z !global !default;
808
+ }
809
+ }
810
+
811
+ .bar {
812
+ a: $var1;
813
+ b: $var2;
814
+ c: $var3;
815
+ }
816
+ SCSS
817
+ end
818
+
819
+ def test_setting_local_variable
820
+ assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))
821
+ .a {
822
+ value: inside; }
823
+
824
+ .b {
825
+ value: outside; }
826
+ CSS
827
+ $var: outside;
828
+
829
+ .a {
830
+ $var: inside;
831
+ value: $var;
832
+ }
833
+
834
+ .b {
835
+ value: $var;
836
+ }
837
+ SCSS
838
+ end
839
+
840
+ def test_setting_local_variable_from_inner_scope
841
+ assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))
842
+ .a .b {
843
+ value: inside; }
844
+ .a .c {
845
+ value: inside; }
846
+ CSS
847
+ .a {
848
+ $var: outside;
849
+
850
+ .b {
851
+ $var: inside;
852
+ value: $var;
853
+ }
854
+
855
+ .c {
856
+ value: $var;
857
+ }
858
+ }
859
+ SCSS
860
+ end
861
+
862
+ def test_if_can_assign_to_global_variables
863
+ assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
864
+ .a {
865
+ b: 2; }
866
+ CSS
867
+ $var: 1;
868
+ @if true {$var: 2}
869
+ .a {b: $var}
870
+ SCSS
871
+ end
872
+
873
+ def test_else_can_assign_to_global_variables
874
+ assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
875
+ .a {
876
+ b: 2; }
877
+ CSS
878
+ $var: 1;
879
+ @if false {}
880
+ @else {$var: 2}
881
+ .a {b: $var}
882
+ SCSS
883
+ end
884
+
885
+ def test_for_can_assign_to_global_variables
886
+ assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
887
+ .a {
888
+ b: 2; }
889
+ CSS
890
+ $var: 1;
891
+ @for $i from 1 to 2 {$var: 2}
892
+ .a {b: $var}
893
+ SCSS
894
+ end
895
+
896
+ def test_each_can_assign_to_global_variables
897
+ assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
898
+ .a {
899
+ b: 2; }
900
+ CSS
901
+ $var: 1;
902
+ @each $a in 1 {$var: 2}
903
+ .a {b: $var}
904
+ SCSS
905
+ end
906
+
907
+ def test_while_can_assign_to_global_variables
908
+ assert_equal <<CSS, render(<<SCSS, :syntax => :scss)
909
+ .a {
910
+ b: 2; }
911
+ CSS
912
+ $var: 1;
913
+ @while $var != 2 {$var: 2}
914
+ .a {b: $var}
915
+ SCSS
916
+ end
917
+
918
+ def test_if_doesnt_leak_local_variables
919
+ assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
920
+ render(<<SCSS, :syntax => :scss)
921
+ @if true {$var: 1}
922
+ .a {b: $var}
923
+ SCSS
924
+ end
925
+ end
926
+
927
+ def test_else_doesnt_leak_local_variables
928
+ assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
929
+ render(<<SCSS, :syntax => :scss)
930
+ @if false {}
931
+ @else {$var: 1}
932
+ .a {b: $var}
933
+ SCSS
934
+ end
935
+ end
936
+
937
+ def test_for_doesnt_leak_local_variables
938
+ assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
939
+ render(<<SCSS, :syntax => :scss)
940
+ @for $i from 1 to 2 {$var: 1}
941
+ .a {b: $var}
942
+ SCSS
943
+ end
944
+ end
945
+
946
+ def test_each_doesnt_leak_local_variables
947
+ assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
948
+ render(<<SCSS, :syntax => :scss)
949
+ @each $a in 1 {$var: 1}
950
+ .a {b: $var}
951
+ SCSS
952
+ end
953
+ end
954
+
955
+ def test_while_doesnt_leak_local_variables
956
+ assert_raise_message(Sass::SyntaxError, 'Undefined variable: "$var".') do
957
+ render(<<SCSS, :syntax => :scss)
958
+ $iter: true;
959
+ @while $iter {
960
+ $var: 1;
961
+ $iter: false;
962
+ }
963
+ .a {b: $var}
964
+ SCSS
965
+ end
966
+ end
967
+
968
+ def test_color_format_is_preserved_by_default
969
+ assert_equal "blue", resolve("blue")
970
+ assert_equal "bLuE", resolve("bLuE")
971
+ assert_equal "#00f", resolve("#00f")
972
+ assert_equal "blue #00F", resolve("blue #00F")
973
+ assert_equal "blue", resolve("nth(blue #00F, 1)")
974
+ assert_equal "#00F", resolve("nth(blue #00F, 2)")
975
+ end
976
+
977
+ def test_color_format_isnt_always_preserved_in_compressed_style
978
+ assert_equal "red", resolve("red", :style => :compressed)
979
+ assert_equal "red", resolve("#f00", :style => :compressed)
980
+ assert_equal "red red", resolve("red #f00", :style => :compressed)
981
+ assert_equal "red", resolve("nth(red #f00, 2)", :style => :compressed)
982
+ end
983
+
984
+ def test_color_format_is_sometimes_preserved_in_compressed_style
985
+ assert_equal "ReD", resolve("ReD", :style => :compressed)
986
+ assert_equal "blue", resolve("blue", :style => :compressed)
987
+ assert_equal "#00f", resolve("#00f", :style => :compressed)
988
+ end
989
+
990
+ def test_color_format_isnt_preserved_when_modified
991
+ assert_equal "magenta", resolve("#f00 + #00f")
992
+ end
993
+
994
+ def test_ids
995
+ assert_equal "#foo", resolve("#foo")
996
+ assert_equal "#abcd", resolve("#abcd")
997
+ assert_equal "#abc-def", resolve("#abc-def")
998
+ assert_equal "#abc_def", resolve("#abc_def")
999
+ assert_equal "#uvw-xyz", resolve("#uvw-xyz")
1000
+ assert_equal "#uvw_xyz", resolve("#uvw_xyz")
1001
+ assert_equal "#uvwxyz", resolve("#uvw + xyz")
1002
+ end
1003
+
1004
+ def test_scientific_notation
1005
+ assert_equal "2000", resolve("2e3")
1006
+ assert_equal "2000", resolve("2E3")
1007
+ assert_equal "2000", resolve("2e+3")
1008
+ assert_equal "2000em", resolve("2e3em")
1009
+ assert_equal "25000000000", resolve("2.5e10")
1010
+ assert_equal "0.1234", resolve("1234e-4")
1011
+ assert_equal "12.34", resolve("1.234e1")
1012
+ end
1013
+
1014
+ def test_identifier_units
1015
+ assert_equal "5-foo", resolve("2-foo + 3-foo")
1016
+ assert_equal "5-foo-", resolve("2-foo- + 3-foo-")
1017
+ assert_equal "5-\\u2603", resolve("2-\\u2603 + 3-\\u2603")
1018
+ end
1019
+
1020
+ def test_backslash_newline_in_string
1021
+ assert_equal 'foobar', resolve("\"foo\\\nbar\"")
1022
+ assert_equal 'foobar', resolve("'foo\\\nbar'")
1023
+ end
1024
+
1025
+ def test_unclosed_special_fun
1026
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "calc(foo()": expected ")", was ""') do
1027
+ resolve("calc(foo()")
1028
+ end
1029
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "calc(#{\')\'}": expected ")", was ""') do
1030
+ resolve("calc(\#{')'}")
1031
+ end
1032
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "calc(#{foo": expected "}", was ""') do
1033
+ resolve("calc(\#{foo")
1034
+ end
1035
+ end
1036
+
1037
+ def test_special_fun_with_interpolation
1038
+ assert_equal "calc())", resolve("calc(\#{')'})")
1039
+ assert_equal "calc(# {foo})", resolve("calc(# {foo})")
1040
+ end
1041
+
1042
+ # Regression Tests
1043
+
1044
+ def test_interpolation_after_string
1045
+ assert_equal '"foobar" 2', resolve('"foobar" #{2}')
1046
+ assert_equal "calc(1 + 2) 3", resolve('calc(1 + 2) #{3}')
1047
+ end
1048
+
1049
+ def test_repeatedly_modified_color
1050
+ assert_equal(<<CSS, render(<<SASS))
1051
+ a {
1052
+ link-color: #161C14;
1053
+ link-color-hover: black;
1054
+ link-color-tap: rgba(22, 28, 20, 0.3); }
1055
+ CSS
1056
+ $green: #161C14
1057
+ $link-color: $green
1058
+ $link-color-hover: darken($link-color, 10%)
1059
+ $link-color-tap: rgba($green, 0.3)
1060
+
1061
+ a
1062
+ link-color: $link-color
1063
+ link-color-hover: $link-color-hover
1064
+ link-color-tap: $link-color-tap
1065
+ SASS
1066
+ end
1067
+
1068
+ def test_inspect_divided_numbers
1069
+ assert_equal "1px/2px", resolve("inspect(1px/2px)")
1070
+ assert_equal "0.5", resolve("inspect((1px/2px))")
1071
+ end
1072
+
1073
+ def test_minus_without_whitespace
1074
+ assert_equal "5px", resolve("15px-10px")
1075
+ assert_equal "5px-", resolve("15px--10px-")
1076
+ end
1077
+
1078
+ def test_minus_preceded_by_comment
1079
+ assert_equal "15px -10px", resolve("15px/**/-10px")
1080
+ end
1081
+
1082
+ def test_user_defined_function_forces_division
1083
+ assert_equal(<<CSS, render(<<SASS))
1084
+ a {
1085
+ b: 10px; }
1086
+ CSS
1087
+ @function foo()
1088
+ @return 20px
1089
+
1090
+ a
1091
+ b: (foo() / 2)
1092
+ SASS
1093
+
1094
+ assert_equal(<<CSS, render(<<SASS))
1095
+ a {
1096
+ b: 10px; }
1097
+ CSS
1098
+ @function foo()
1099
+ @return 20px
1100
+
1101
+ a
1102
+ b: foo() / 2
1103
+ SASS
1104
+ end
1105
+
1106
+ def test_funcall_has_higher_precedence_than_color_name
1107
+ assert_equal "teal(12)", resolve("teal(12)")
1108
+ assert_equal "tealbang(12)", resolve("tealbang(12)")
1109
+ assert_equal "teal-bang(12)", resolve("teal-bang(12)")
1110
+ assert_equal "teal\\+bang(12)", resolve("teal\\+bang(12)")
1111
+ end
1112
+
1113
+ def test_funcall_has_higher_precedence_than_true_false_null
1114
+ assert_equal "teal(12)", resolve("teal(12)")
1115
+ assert_equal "tealbang(12)", resolve("tealbang(12)")
1116
+ assert_equal "teal-bang(12)", resolve("teal-bang(12)")
1117
+ assert_equal "teal\\+bang(12)", resolve("teal\\+bang(12)")
1118
+ end
1119
+
1120
+ def test_and_or_not_disallowed_as_function_names
1121
+ %w[and or not].each do |name|
1122
+ assert_raise_message(Sass::SyntaxError, "Invalid function name \"#{name}\".") do
1123
+ render(<<SASS)
1124
+ @function #{name}()
1125
+ @return null
1126
+ SASS
1127
+ end
1128
+ end
1129
+ end
1130
+
1131
+ def test_interpolation_after_hash
1132
+ assert_equal "#2", resolve('"##{1 + 1}"')
1133
+ end
1134
+
1135
+ def test_misplaced_comma_in_funcall
1136
+ assert_raise_message(Sass::SyntaxError,
1137
+ 'Invalid CSS after "foo(bar, ": expected function argument, was ")"') {eval('foo(bar, )')}
1138
+ end
1139
+
1140
+ def test_color_prefixed_identifier
1141
+ assert_equal "tealbang", resolve("tealbang")
1142
+ assert_equal "teal-bang", resolve("teal-bang")
1143
+ end
1144
+
1145
+ def test_op_prefixed_identifier
1146
+ assert_equal "notbang", resolve("notbang")
1147
+ assert_equal "not-bang", resolve("not-bang")
1148
+ assert_equal "or-bang", resolve("or-bang")
1149
+ assert_equal "and-bang", resolve("and-bang")
1150
+ end
1151
+
1152
+ def test_number_initialization
1153
+ assert_equal Sass::Script::Value::Number.new(10, ["px"]), Sass::Script::Value::Number.new(10, "px")
1154
+ assert_equal Sass::Script::Value::Number.new(10, ["px"], ["em"]), Sass::Script::Value::Number.new(10, "px", "em")
1155
+ end
1156
+
1157
+ def test_is_unit
1158
+ assert Sass::Script::Value::Number.new(10, "px").is_unit?("px")
1159
+ assert Sass::Script::Value::Number.new(10).is_unit?(nil)
1160
+ assert !Sass::Script::Value::Number.new(10, "px", "em").is_unit?("px")
1161
+ assert !Sass::Script::Value::Number.new(10, [], "em").is_unit?("em")
1162
+ assert !Sass::Script::Value::Number.new(10, ["px", "em"]).is_unit?("px")
1163
+ end
1164
+
1165
+ def test_rename_redirect
1166
+ assert_no_warning do
1167
+ assert_equal Sass::Script::Value::Base, Sass::Script::Literal
1168
+ assert_equal Sass::Script::Tree::Node, Sass::Script::Node
1169
+ assert_equal Sass::Script::Tree::Operation, Sass::Script::Operation
1170
+ assert_equal Sass::Script::Value::String, Sass::Script::String
1171
+ end
1172
+ end
1173
+
1174
+ def test_number_printing
1175
+ assert_equal "1", resolve("1")
1176
+ assert_equal "1", resolve("1.0")
1177
+ assert_equal "1000000000", resolve("1000000000")
1178
+ assert_equal "0.00001", resolve("0.00001")
1179
+ assert_equal "1.12121", resolve("1.121214")
1180
+ assert_equal "1.12122", resolve("1.121215")
1181
+ assert_equal "Infinity", resolve("(1.0/0.0)")
1182
+ assert_equal "-Infinity", resolve("(-1.0/0.0)")
1183
+ assert_equal "NaN", resolve("(0.0/0.0)")
1184
+ end
1185
+
1186
+ def test_equality_uses_an_epsilon
1187
+ # At least on my machine, this calculation introduces a floating point error:
1188
+ # 29.0 / 7 * 7
1189
+ # => 29.000000000000004
1190
+ assert_equal "true", resolve("29 == (29 / 7 * 7)")
1191
+ end
1192
+
1193
+ def test_compressed_output_of_numbers_with_leading_zeros
1194
+ assert_equal "1.5", resolve("1.5", :style => :compressed)
1195
+ assert_equal ".5", resolve("0.5", :style => :compressed)
1196
+ assert_equal "-.5", resolve("-0.5", :style => :compressed)
1197
+ assert_equal "0.5", resolve("0.5", :style => :compact)
1198
+ end
1199
+
1200
+ def test_interpolation_without_deprecation_warning
1201
+ assert_no_warning {assert_equal "a", resolve('#{a}')}
1202
+ assert_no_warning {assert_equal "abc", resolve('a#{b}c')}
1203
+ assert_no_warning {assert_equal "+ a", resolve('+ #{a}')}
1204
+ assert_no_warning {assert_equal "/ a", resolve('/ #{a}')}
1205
+ assert_no_warning {assert_equal "1 / a", resolve('1 / #{a}')}
1206
+ assert_no_warning {assert_equal "a / b", resolve('#{a} / #{b}')}
1207
+ assert_no_warning {assert_equal "foo(1 = a)", resolve('foo(1 = #{a})')}
1208
+ assert_no_warning {assert_equal "foo(a = b)", resolve('foo(#{a} = #{b})')}
1209
+ assert_no_warning {assert_equal "-a", resolve('-#{a}')}
1210
+ assert_no_warning {assert_equal "1-a", resolve('1-#{a}')}
1211
+ assert_no_warning {assert_equal "a- 1", resolve('#{a}- 1')}
1212
+ assert_no_warning {assert_equal "a-1", resolve('#{a}-1')}
1213
+ assert_no_warning {assert_equal "a-b", resolve('#{a}-#{b}')}
1214
+ assert_no_warning {assert_equal "a1", resolve('#{a}1')}
1215
+ assert_no_warning {assert_equal "ab", resolve('#{a}b')}
1216
+ assert_no_warning {assert_equal "1a", resolve('1#{a}')}
1217
+ assert_no_warning {assert_equal "ba", resolve('b#{a}')}
1218
+ end
1219
+
1220
+ def test_leading_interpolation_with_deprecation_warning
1221
+ assert_equal "ab == 1", resolve_with_interp_warning('#{a + b} == 1')
1222
+ assert_equal "ab != 1", resolve_with_interp_warning('#{a + b} != 1')
1223
+ assert_equal "ab > 1", resolve_with_interp_warning('#{a + b} > 1')
1224
+ assert_equal "ab >= 1", resolve_with_interp_warning('#{a + b} >= 1')
1225
+ assert_equal "ab < 1", resolve_with_interp_warning('#{a + b} < 1')
1226
+ assert_equal "ab <= 1", resolve_with_interp_warning('#{a + b} <= 1')
1227
+ assert_equal "ab + 1", resolve_with_interp_warning('#{a + b} + 1')
1228
+ assert_equal "ab * 1", resolve_with_interp_warning('#{a + b} * 1')
1229
+ assert_equal "ab - 1", resolve_with_interp_warning('#{a + b} - 1')
1230
+ assert_equal "ab % 1", resolve_with_interp_warning('#{a + b} % 1')
1231
+ assert_equal(
1232
+ "abvar",
1233
+ resolve_with_interp_warning(
1234
+ '#{a + b}$var', '"#{a + b}#{$var}"',
1235
+ env('var' => Sass::Script::Value::String.new("var"))))
1236
+ assert_equal(
1237
+ "varab",
1238
+ resolve_with_interp_warning(
1239
+ '$var#{a + b}', '"#{$var}#{a + b}"',
1240
+ env('var' => Sass::Script::Value::String.new("var"))))
1241
+ assert_equal "ab1", resolve_with_interp_warning('#{a + b}(1)', '"#{a + b}1"')
1242
+ assert_equal "1ab", resolve_with_interp_warning('(1)#{a + b}', '"1#{a + b}"')
1243
+ end
1244
+
1245
+ def test_trailing_interpolation_with_deprecation_warning
1246
+ assert_equal "not ab", resolve_with_interp_warning('not #{a + b}')
1247
+ assert_equal "1 and ab", resolve_with_interp_warning('1 and #{a + b}')
1248
+ assert_equal "1 or ab", resolve_with_interp_warning('1 or #{a + b}')
1249
+ assert_equal "1 == ab", resolve_with_interp_warning('1 == #{a + b}')
1250
+ assert_equal "1 != ab", resolve_with_interp_warning('1 != #{a + b}')
1251
+ assert_equal "1 > ab", resolve_with_interp_warning('1 > #{a + b}')
1252
+ assert_equal "1 >= ab", resolve_with_interp_warning('1 >= #{a + b}')
1253
+ assert_equal "1 < ab", resolve_with_interp_warning('1 < #{a + b}')
1254
+ assert_equal "1 <= ab", resolve_with_interp_warning('1 <= #{a + b}')
1255
+ assert_equal "1 + ab", resolve_with_interp_warning('1 + #{a + b}')
1256
+ assert_equal "1 * ab", resolve_with_interp_warning('1 * #{a + b}')
1257
+ assert_equal "1 - ab", resolve_with_interp_warning('1 - #{a + b}')
1258
+ assert_equal "1 % ab", resolve_with_interp_warning('1 % #{a + b}')
1259
+ assert_equal "- ab", resolve_with_interp_warning('- #{a + b}')
1260
+ assert_equal "1- ab", resolve_with_interp_warning('1- #{a + b}')
1261
+ assert_equal "- ab 2 3", resolve_with_interp_warning('- #{a + b} 2 3', '"- #{a + b} #{2 3}"')
1262
+ end
1263
+
1264
+ def test_brackteing_interpolation_with_deprecation_warning
1265
+ assert_equal "ab == cd", resolve_with_interp_warning('#{a + b} == #{c + d}')
1266
+ assert_equal "ab != cd", resolve_with_interp_warning('#{a + b} != #{c + d}')
1267
+ assert_equal "ab > cd", resolve_with_interp_warning('#{a + b} > #{c + d}')
1268
+ assert_equal "ab >= cd", resolve_with_interp_warning('#{a + b} >= #{c + d}')
1269
+ assert_equal "ab < cd", resolve_with_interp_warning('#{a + b} < #{c + d}')
1270
+ assert_equal "ab <= cd", resolve_with_interp_warning('#{a + b} <= #{c + d}')
1271
+ assert_equal "ab + cd", resolve_with_interp_warning('#{a + b} + #{c + d}')
1272
+ assert_equal "ab * cd", resolve_with_interp_warning('#{a + b} * #{c + d}')
1273
+ assert_equal "ab - cd", resolve_with_interp_warning('#{a + b} - #{c + d}')
1274
+ assert_equal "ab % cd", resolve_with_interp_warning('#{a + b} % #{c + d}')
1275
+ end
1276
+
1277
+ def test_interp_warning_formatting
1278
+ resolve_with_interp_warning('#{1} + 1', '"1 + 1"')
1279
+ resolve_with_interp_warning('#{1} + "foo"', '\'1 + "foo"\'')
1280
+ resolve_with_interp_warning('#{1} + \'foo\'', '\'1 + "foo"\'')
1281
+
1282
+ resolve_with_interp_warning('#{1} + "#{a + b}"', '\'1 + "#{a + b}"\'')
1283
+ resolve_with_interp_warning('"#{a + b}" + #{1}', '\'"#{a + b}" + 1\'')
1284
+ resolve_with_interp_warning('"#{a + b}" + #{1} + "#{c + d}"', '\'"#{a + b}" + 1 + "#{c + d}"\'')
1285
+
1286
+ resolve_with_interp_warning('#{1} + "\'"', '"1 + \\"\'\\""')
1287
+ resolve_with_interp_warning('#{1} + \'"\'', '"1 + \'\\"\'"')
1288
+ resolve_with_interp_warning('#{1} + "\'\\""', '"1 + \\"\'\\\\\\"\\""')
1289
+ end
1290
+
1291
+ def test_inactive_lazy_interpolation_deprecation_warning
1292
+ assert_equal '1, 2, 3', assert_no_warning {resolve('1, #{2}, 3')}
1293
+ assert_equal '1, 2, 3', assert_no_warning {resolve('1, 2, #{3}')}
1294
+ assert_equal '1,2,3', assert_no_warning {resolve('1,#{2},3')}
1295
+ assert_equal '1 2 3', assert_no_warning {resolve('#{1} 2 3')}
1296
+ assert_equal '1 2 3', assert_no_warning {resolve('1 #{2} 3')}
1297
+ assert_equal '1 2 3', assert_no_warning {resolve('1 2 #{3}')}
1298
+
1299
+ assert_equal '+1 2 3', assert_no_warning {resolve('+#{1} 2 3')}
1300
+ assert_equal '-1 2 3', assert_no_warning {resolve('-#{1} 2 3')}
1301
+ assert_equal '/1 2 3', assert_no_warning {resolve('/#{1} 2 3')}
1302
+
1303
+ assert_equal '1, 2, 31', assert_no_warning {resolve('(1, #{2}, 3) + 1')}
1304
+ assert_equal '11, 2, 3', assert_no_warning {resolve('1 + (1, #{2}, 3)')}
1305
+
1306
+ assert_equal 'a, b, c', assert_no_warning {resolve('selector-parse((a, #{b}, c))')}
1307
+ end
1308
+
1309
+ def test_active_lazy_interpolation_deprecation_warning
1310
+ assert_equal "1, 2, 3", resolve_with_lazy_interp_warning('quote((1, #{2}, 3))', '"1, 2, 3"')
1311
+ assert_equal "1", resolve_with_lazy_interp_warning('length((1, #{2}, 3))', '"1, 2, 3"')
1312
+ assert_equal "1, 2, 3", resolve_with_lazy_interp_warning('inspect((1, #{2}, 3))', '"1, 2, 3"')
1313
+ assert_equal "string", resolve_with_lazy_interp_warning('type-of((1, #{2}, 3))', '"1, 2, 3"')
1314
+
1315
+ assert_equal "+1 2 3", resolve_with_lazy_interp_warning('quote((+#{1} 2 3))', '"+1 #{2 3}"')
1316
+ assert_equal "/1 2 3", resolve_with_lazy_interp_warning('quote((/#{1} 2 3))', '"/1 #{2 3}"')
1317
+ assert_equal "-1 2 3", resolve_with_lazy_interp_warning('quote((-#{1} 2 3))', '"-1 #{2 3}"')
1318
+ end
1319
+
1320
+ def test_comparison_of_complex_units
1321
+ # Tests for issue #1960
1322
+ assert_warning(<<WARNING) do
1323
+ DEPRECATION WARNING on line 1 of test_comparison_of_complex_units_inline.sass:
1324
+ The result of `10 == 10px` will be `false` in future releases of Sass.
1325
+ Unitless numbers will no longer be equal to the same numbers with units.
1326
+ WARNING
1327
+ assert_equal "true", resolve("10 == 2 * 5px")
1328
+ end
1329
+ assert_warning(<<WARNING) do
1330
+ DEPRECATION WARNING on line 1 of test_comparison_of_complex_units_inline.sass:
1331
+ The result of `10 == 10px*px` will be `false` in future releases of Sass.
1332
+ Unitless numbers will no longer be equal to the same numbers with units.
1333
+ WARNING
1334
+ assert_equal "true", resolve("10 == 2px * 5px")
1335
+ end
1336
+ assert_equal "true", resolve("10px * 1px == 2px * 5px")
1337
+ assert_equal "true", resolve("5px * 1px < 2px * 5px")
1338
+ end
1339
+
1340
+ private
1341
+
1342
+ def resolve_with_lazy_interp_warning(str, contents = nil, environment = env)
1343
+ contents ||= "\"#{str}\""
1344
+ result = assert_warning(<<WARNING) {resolve(str, {}, environment)}
1345
+ DEPRECATION WARNING on line 1 of #{filename_for_test}: \#{} interpolation near operators will be simplified
1346
+ in a future version of Sass. To preserve the current behavior, use quotes:
1347
+
1348
+ unquote(#{contents})
1349
+ WARNING
1350
+ $_sass_deprecated_interp_warnings = nil
1351
+ result
1352
+ end
1353
+
1354
+ def resolve_with_interp_warning(str, contents = nil, environment = env)
1355
+ contents ||= "\"#{str}\""
1356
+ assert_warning(<<WARNING) {resolve(str, {}, environment)}
1357
+ DEPRECATION WARNING on line 1 of #{filename_for_test}: \#{} interpolation near operators will be simplified
1358
+ in a future version of Sass. To preserve the current behavior, use quotes:
1359
+
1360
+ unquote(#{contents})
1361
+
1362
+ You can use the sass-convert command to automatically fix most cases.
1363
+ WARNING
1364
+ end
1365
+
1366
+ def resolve(str, opts = {}, environment = env)
1367
+ munge_filename opts
1368
+ val = eval(str, opts, environment)
1369
+ assert_kind_of Sass::Script::Value::Base, val
1370
+ val.options = opts
1371
+ val.is_a?(Sass::Script::Value::String) ? val.value : val.to_s
1372
+ end
1373
+
1374
+ def resolve_quoted(str, opts = {}, environment = env)
1375
+ munge_filename opts
1376
+ val = eval(str, opts, environment)
1377
+ assert_kind_of Sass::Script::Value::Base, val
1378
+ val.to_s
1379
+ end
1380
+
1381
+ def assert_unquoted(str, opts = {}, environment = env)
1382
+ munge_filename opts
1383
+ val = eval(str, opts, environment)
1384
+ assert_kind_of Sass::Script::Value::String, val
1385
+ assert_equal :identifier, val.type
1386
+ end
1387
+
1388
+ def assert_quoted(str, opts = {}, environment = env)
1389
+ munge_filename opts
1390
+ val = eval(str, opts, environment)
1391
+ assert_kind_of Sass::Script::Value::String, val
1392
+ assert_equal :string, val.type
1393
+ end
1394
+
1395
+ def eval(str, opts = {}, environment = env)
1396
+ munge_filename opts
1397
+ Sass::Script.parse(str, opts.delete(:line) || 1,
1398
+ opts.delete(:offset) || 0, opts).
1399
+ perform(Sass::Environment.new(environment, opts))
1400
+ end
1401
+
1402
+ def render(sass, options = {})
1403
+ munge_filename options
1404
+ Sass::Engine.new(sass, options).render
1405
+ end
1406
+
1407
+ def env(hash = {})
1408
+ env = Sass::Environment.new
1409
+ hash.each {|k, v| env.set_var(k, v)}
1410
+ env
1411
+ end
1412
+
1413
+ def selector(str)
1414
+ parser = Sass::SCSS::StaticParser.new(
1415
+ str, filename_for_test, Sass::Importers::Filesystem.new('.'))
1416
+ parser.parse_selector
1417
+ end
1418
+
1419
+ def test_null_is_a_singleton
1420
+ assert_same Sass::Script::Value::Null.new, Sass::Script::Value::Null.new
1421
+ end
1422
+ end