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,219 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ require File.dirname(__FILE__) + '/../test_helper'
4
+ require File.dirname(__FILE__) + '/test_helper'
5
+ require 'sass/util/test'
6
+
7
+ class EncodingTest < MiniTest::Test
8
+ include Sass::Util::Test
9
+
10
+ def test_encoding_error
11
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
12
+
13
+ render("foo\nbar\nb\xFEaz".force_encoding("utf-8"))
14
+ assert(false, "Expected exception")
15
+ rescue Sass::SyntaxError => e
16
+ assert_equal(3, e.sass_line)
17
+ assert_equal('Invalid UTF-8 character "\xFE"', e.message)
18
+ end
19
+
20
+ def test_ascii_incompatible_encoding_error
21
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
22
+
23
+ template = "foo\nbar\nb_z".encode("utf-16le")
24
+ template[9] = "\xFE".force_encoding("utf-16le")
25
+ render(template)
26
+ assert(false, "Expected exception")
27
+ rescue Sass::SyntaxError => e
28
+ assert_equal(3, e.sass_line)
29
+ assert_equal('Invalid UTF-16LE character "\xFE"', e.message)
30
+ end
31
+
32
+ def test_prefers_charset_to_ruby_encoding
33
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
34
+
35
+ assert_renders_encoded(<<CSS, <<SASS.encode("IBM866").force_encoding("UTF-8"))
36
+ @charset "UTF-8";
37
+ fЖЖ {
38
+ a: b; }
39
+ CSS
40
+ @charset "ibm866"
41
+ fЖЖ
42
+ a: b
43
+ SASS
44
+ end
45
+
46
+ def test_uses_ruby_encoding_without_charset
47
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
48
+
49
+ assert_renders_encoded(<<CSS, <<SASS.encode("IBM866"))
50
+ @charset "UTF-8";
51
+ тАЬ {
52
+ a: b; }
53
+ CSS
54
+ тАЬ
55
+ a: b
56
+ SASS
57
+ end
58
+
59
+ def test_multibyte_charset_without_bom_declared_as_binary
60
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
61
+
62
+ engine = Sass::Engine.new(<<SASS.encode("UTF-16LE").force_encoding("BINARY"))
63
+ @charset "utf-16le"
64
+ fóó
65
+ a: b
66
+ SASS
67
+ # Since multibyte encodings' @charset declarations aren't
68
+ # ASCII-compatible, we have to interpret the files as UTF-8 which will
69
+ # inevitably fail.
70
+ assert_raise_message(Sass::SyntaxError, "Invalid UTF-8 character \"\\xF3\"") {engine.render}
71
+ end
72
+
73
+ def test_multibyte_charset_without_bom_declared_as_utf_8
74
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
75
+
76
+ engine = Sass::Engine.new(<<SASS.encode("UTF-16LE").force_encoding("UTF-8"))
77
+ @charset "utf-16le"
78
+ fóó
79
+ a: b
80
+ SASS
81
+ # Since multibyte encodings' @charset declarations aren't
82
+ # ASCII-compatible, we have to interpret the files as UTF-8 which will
83
+ # inevitably fail.
84
+ assert_raise_message(Sass::SyntaxError, "Invalid UTF-8 character \"\\xF3\"") {engine.render}
85
+ end
86
+
87
+ def test_utf_16le_with_bom
88
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
89
+
90
+ assert_renders_encoded(<<CSS, <<SASS.encode("UTF-16LE").force_encoding("BINARY"))
91
+ @charset "UTF-8";
92
+ fóó {
93
+ a: b; }
94
+ CSS
95
+ \uFEFFfóó
96
+ a: b
97
+ SASS
98
+ end
99
+
100
+ def test_utf_16be_with_bom
101
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
102
+
103
+ assert_renders_encoded(<<CSS, <<SASS.encode("UTF-16BE").force_encoding("BINARY"))
104
+ @charset "UTF-8";
105
+ fóó {
106
+ a: b; }
107
+ CSS
108
+ \uFEFFfóó
109
+ a: b
110
+ SASS
111
+ end
112
+
113
+ def test_utf_8_with_bom
114
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
115
+
116
+ assert_renders_encoded(<<CSS, <<SASS.force_encoding("BINARY"))
117
+ @charset "UTF-8";
118
+ fóó {
119
+ a: b; }
120
+ CSS
121
+ \uFEFFfóó
122
+ a: b
123
+ SASS
124
+ end
125
+
126
+ def test_charset_with_multibyte_encoding
127
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
128
+
129
+ engine = Sass::Engine.new(<<SASS)
130
+ @charset "utf-32be"
131
+ fóó
132
+ a: b
133
+ SASS
134
+ # The charset declaration is just false here, so we should get an
135
+ # encoding error.
136
+ assert_raise_message(Sass::SyntaxError, "Invalid UTF-32BE character \"\\xC3\"") {engine.render}
137
+ end
138
+
139
+ def test_charset_with_special_case_encoding
140
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
141
+
142
+ # For some reason, a file with an ASCII-compatible UTF-16 charset
143
+ # declaration is specced to be parsed as UTF-8.
144
+ assert_renders_encoded(<<CSS, <<SASS.force_encoding("BINARY"))
145
+ @charset "UTF-8";
146
+ fóó {
147
+ a: b; }
148
+ CSS
149
+ @charset "utf-16"
150
+ fóó
151
+ a: b
152
+ SASS
153
+ end
154
+
155
+ def test_compressed_output_uses_bom
156
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
157
+
158
+ assert_equal("\uFEFFfóó{a:b}\n", render(<<SASS, :style => :compressed))
159
+ fóó
160
+ a: b
161
+ SASS
162
+ end
163
+
164
+ def test_newline_normalization
165
+ assert_equal("/* foo\nbar\nbaz\nbang\nqux */\n",
166
+ render("/* foo\nbar\r\nbaz\fbang\rqux */", :syntax => :scss))
167
+ end
168
+
169
+ def test_null_normalization
170
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
171
+
172
+ assert_equal(<<CSS, render("/* foo\x00bar\x00baz */", :syntax => :scss))
173
+ #{"@charset \"UTF-8\";\n" unless Sass::Util.ruby1_8?
174
+ }/* foo�bar�baz */
175
+ CSS
176
+ end
177
+
178
+ # Regression
179
+
180
+ def test_multibyte_prop_name
181
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
182
+
183
+ assert_equal(<<CSS, render(<<SASS))
184
+ @charset "UTF-8";
185
+ #bar {
186
+ cölor: blue; }
187
+ CSS
188
+ #bar
189
+ cölor: blue
190
+ SASS
191
+ end
192
+
193
+ def test_multibyte_and_interpolation
194
+ return skip "Can't be run on Ruby 1.8." if Sass::Util.ruby1_8?
195
+
196
+ assert_equal(<<CSS, render(<<SCSS, :syntax => :scss))
197
+ #bar {
198
+ background: a 0%; }
199
+ CSS
200
+ #bar {
201
+ // 
202
+ background: \#{a} 0%;
203
+ }
204
+ SCSS
205
+ end
206
+
207
+ private
208
+
209
+ def assert_renders_encoded(css, sass)
210
+ result = render(sass)
211
+ assert_equal css.encoding, result.encoding
212
+ assert_equal css, result
213
+ end
214
+
215
+ def render(sass, options = {})
216
+ munge_filename options
217
+ Sass::Engine.new(sass, options).render
218
+ end
219
+ end
@@ -0,0 +1,3441 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ require File.dirname(__FILE__) + '/../test_helper'
4
+ require File.dirname(__FILE__) + '/test_helper'
5
+ require 'sass/engine'
6
+ require 'stringio'
7
+ require 'mock_importer'
8
+ require 'pathname'
9
+
10
+ module Sass::Script::Functions::UserFunctions
11
+ def option(name)
12
+ Sass::Script::Value::String.new(@options[name.value.to_sym].to_s)
13
+ end
14
+
15
+ def set_a_variable(name, value)
16
+ environment.set_var(name.value, value)
17
+ return Sass::Script::Value::Null.new
18
+ end
19
+
20
+ def set_a_global_variable(name, value)
21
+ environment.set_global_var(name.value, value)
22
+ return Sass::Script::Value::Null.new
23
+ end
24
+
25
+ def get_a_variable(name)
26
+ environment.var(name.value) || Sass::Script::Value::String.new("undefined")
27
+ end
28
+ end
29
+
30
+ module Sass::Script::Functions
31
+ include Sass::Script::Functions::UserFunctions
32
+ end
33
+
34
+ class SassEngineTest < MiniTest::Test
35
+ FAKE_FILE_NAME = __FILE__.gsub(/rb$/,"sass")
36
+ # A map of erroneous Sass documents to the error messages they should produce.
37
+ # The error messages may be arrays;
38
+ # if so, the second element should be the line number that should be reported for the error.
39
+ # If this isn't provided, the tests will assume the line number should be the last line of the document.
40
+ EXCEPTION_MAP = {
41
+ "$a: 1 + " => 'Invalid CSS after "1 +": expected expression (e.g. 1px, bold), was ""',
42
+ "$a: 1 + 2 +" => 'Invalid CSS after "1 + 2 +": expected expression (e.g. 1px, bold), was ""',
43
+ "$a: 1 + 2 + %" => 'Invalid CSS after "1 + 2 + ": expected expression (e.g. 1px, bold), was "%"',
44
+ "$a: foo(\"bar\"" => 'Invalid CSS after "foo("bar"": expected ")", was ""',
45
+ "$a: 1 }" => 'Invalid CSS after "1 ": expected expression (e.g. 1px, bold), was "}"',
46
+ "$a: 1 }foo\"" => 'Invalid CSS after "1 ": expected expression (e.g. 1px, bold), was "}foo""',
47
+ ":" => 'Invalid property: ":".',
48
+ ": a" => 'Invalid property: ": a".',
49
+ "a\n :b" => <<MSG,
50
+ Invalid property: ":b" (no value).
51
+ If ":b" should be a selector, use "\\:b" instead.
52
+ MSG
53
+ "a\n b:" => 'Invalid property: "b:" (no value).',
54
+ "a\n :b: c" => 'Invalid property: ":b: c".',
55
+ "a\n :b:c d" => 'Invalid property: ":b:c d".',
56
+ "a\n :b c;" => 'Invalid CSS after "c": expected expression (e.g. 1px, bold), was ";"',
57
+ "a\n b: c;" => 'Invalid CSS after "c": expected expression (e.g. 1px, bold), was ";"',
58
+ ".foo ^bar\n a: b" => ['Invalid CSS after ".foo ": expected selector, was "^bar"', 1],
59
+ "a\n @extend .foo ^bar" => 'Invalid CSS after ".foo ": expected selector, was "^bar"',
60
+ "a\n @extend .foo .bar" => "Can't extend .foo .bar: can't extend nested selectors",
61
+ "a\n @extend >" => "Can't extend >: invalid selector",
62
+ "a\n @extend &.foo" => "Can't extend &.foo: can't extend parent selectors",
63
+ "a: b" => 'Properties are only allowed within rules, directives, mixin includes, or other properties.',
64
+ ":a b" => 'Properties are only allowed within rules, directives, mixin includes, or other properties.',
65
+ "$" => 'Invalid variable: "$".',
66
+ "$a" => 'Invalid variable: "$a".',
67
+ "$ a" => 'Invalid variable: "$ a".',
68
+ "$a b" => 'Invalid variable: "$a b".',
69
+ "$a: 1b + 2c" => "Incompatible units: 'c' and 'b'.",
70
+ "$a: 1b < 2c" => "Incompatible units: 'c' and 'b'.",
71
+ "$a: 1b > 2c" => "Incompatible units: 'c' and 'b'.",
72
+ "$a: 1b <= 2c" => "Incompatible units: 'c' and 'b'.",
73
+ "$a: 1b >= 2c" => "Incompatible units: 'c' and 'b'.",
74
+ "a\n b: 1b * 2c" => "2b*c isn't a valid CSS value.",
75
+ "a\n b: 1b % 2c" => "Incompatible units: 'c' and 'b'.",
76
+ "$a: 2px + #ccc" => "Cannot add a number with units (2px) to a color (#ccc).",
77
+ "$a: #ccc + 2px" => "Cannot add a number with units (2px) to a color (#ccc).",
78
+ "& a\n :b c" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 1],
79
+ "a\n :b\n c" => "Illegal nesting: Only properties may be nested beneath properties.",
80
+ "$a: b\n :c d\n" => "Illegal nesting: Nothing may be nested beneath variable declarations.",
81
+ "@import templates/basic\n foo" => "Illegal nesting: Nothing may be nested beneath import directives.",
82
+ "foo\n @import foo.css" => "CSS import directives may only be used at the root of a document.",
83
+ "@if true\n @import foo" => "Import directives may not be used within control directives or mixins.",
84
+ "@if true\n .foo\n @import foo" => "Import directives may not be used within control directives or mixins.",
85
+ "@mixin foo\n @import foo" => "Import directives may not be used within control directives or mixins.",
86
+ "@mixin foo\n .foo\n @import foo" => "Import directives may not be used within control directives or mixins.",
87
+ "@import foo;" => "Invalid @import: expected end of line, was \";\".",
88
+ '$foo: "bar" "baz" !' => %Q{Invalid CSS after ""bar" "baz" ": expected expression (e.g. 1px, bold), was "!"},
89
+ '$foo: "bar" "baz" $' => %Q{Invalid CSS after ""bar" "baz" ": expected expression (e.g. 1px, bold), was "$"}, #'
90
+ "=foo\n :color red\n.bar\n +bang" => "Undefined mixin 'bang'.",
91
+ "=foo\n :color red\n.bar\n +bang_bop" => "Undefined mixin 'bang_bop'.",
92
+ "=foo\n :color red\n.bar\n +bang-bop" => "Undefined mixin 'bang-bop'.",
93
+ ".foo\n =foo\n :color red\n.bar\n +foo" => "Undefined mixin 'foo'.",
94
+ " a\n b: c" => ["Indenting at the beginning of the document is illegal.", 1],
95
+ " \n \n\t\n a\n b: c" => ["Indenting at the beginning of the document is illegal.", 4],
96
+ "a\n b: c\n b: c" => ["Inconsistent indentation: 1 space was used for indentation, but the rest of the document was indented using 2 spaces.", 3],
97
+ "a\n b: c\na\n b: c" => ["Inconsistent indentation: 1 space was used for indentation, but the rest of the document was indented using 2 spaces.", 4],
98
+ "a\n\t\tb: c\n\tb: c" => ["Inconsistent indentation: 1 tab was used for indentation, but the rest of the document was indented using 2 tabs.", 3],
99
+ "a\n b: c\n b: c" => ["Inconsistent indentation: 3 spaces were used for indentation, but the rest of the document was indented using 2 spaces.", 3],
100
+ "a\n b: c\n a\n d: e" => ["Inconsistent indentation: 3 spaces were used for indentation, but the rest of the document was indented using 2 spaces.", 4],
101
+ "a\n b: c\na\n d: e" => ["The line was indented 2 levels deeper than the previous line.", 4],
102
+ "a\n b: c\n a\n d: e" => ["The line was indented 3 levels deeper than the previous line.", 4],
103
+ "a\n \tb: c" => ["Indentation can't use both tabs and spaces.", 2],
104
+ "=a(" => 'Invalid CSS after "(": expected variable (e.g. $foo), was ""',
105
+ "=a(b)" => 'Invalid CSS after "(": expected variable (e.g. $foo), was "b)"',
106
+ "=a(,)" => 'Invalid CSS after "(": expected variable (e.g. $foo), was ",)"',
107
+ "=a($)" => 'Invalid CSS after "(": expected variable (e.g. $foo), was "$)"',
108
+ "=a($foo bar)" => 'Invalid CSS after "($foo ": expected ")", was "bar)"',
109
+ "=foo\n bar: baz\n+foo" => ["Properties are only allowed within rules, directives, mixin includes, or other properties.", 2],
110
+ "a-\#{$b\n c: d" => ['Invalid CSS after "a-#{$b": expected "}", was ""', 1],
111
+ "=a($b: 1, $c)" => "Required argument $c must come before any optional arguments.",
112
+ "=a($b: 1)\n a: $b\ndiv\n +a(1,2)" => "Mixin a takes 1 argument but 2 were passed.",
113
+ "=a($b: 1)\n a: $b\ndiv\n +a(1,$c: 3)" => "Mixin a doesn't have an argument named $c.",
114
+ "=a($b)\n a: $b\ndiv\n +a" => "Mixin a is missing argument $b.",
115
+ "@function foo()\n 1 + 2" => "Functions can only contain variable declarations and control directives.",
116
+ "@function foo()\n foo: bar" => "Functions can only contain variable declarations and control directives.",
117
+ "@function foo()\n foo: bar\n @return 3" => ["Functions can only contain variable declarations and control directives.", 2],
118
+ "@function foo\n @return 1" => ['Invalid CSS after "": expected "(", was ""', 1],
119
+ "@function foo(\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was ""', 1],
120
+ "@function foo(b)\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was "b)"', 1],
121
+ "@function foo(,)\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was ",)"', 1],
122
+ "@function foo($)\n @return 1" => ['Invalid CSS after "(": expected variable (e.g. $foo), was "$)"', 1],
123
+ "@function foo()\n @return" => 'Invalid @return: expected expression.',
124
+ "@function foo()\n @return 1\n $var: val" => 'Illegal nesting: Nothing may be nested beneath return directives.',
125
+ "@function foo($a)\n @return 1\na\n b: foo()" => 'Function foo is missing argument $a.',
126
+ "@function foo()\n @return 1\na\n b: foo(2)" => 'Function foo takes 0 arguments but 1 was passed.',
127
+ "@function foo()\n @return 1\na\n b: foo($a: 1)" => "Function foo doesn't have an argument named $a.",
128
+ "@function foo()\n @return 1\na\n b: foo($a: 1, $b: 2)" => "Function foo doesn't have the following arguments: $a, $b.",
129
+ "@return 1" => '@return may only be used within a function.',
130
+ "@if true\n @return 1" => '@return may only be used within a function.',
131
+ "@mixin foo\n @return 1\n@include foo" => ['@return may only be used within a function.', 2],
132
+ "@else\n a\n b: c" => ["@else must come after @if.", 1],
133
+ "@if false\n@else foo" => "Invalid else directive '@else foo': expected 'if <expr>'.",
134
+ "@if false\n@else if " => "Invalid else directive '@else if': expected 'if <expr>'.",
135
+ "a\n $b: 12\nc\n d: $b" => 'Undefined variable: "$b".',
136
+ "=foo\n $b: 12\nc\n +foo\n d: $b" => 'Undefined variable: "$b".',
137
+ "c\n d: $b-foo" => 'Undefined variable: "$b-foo".',
138
+ "c\n d: $b_foo" => 'Undefined variable: "$b_foo".',
139
+ '@for $a from "foo" to 1' => '"foo" is not an integer.',
140
+ '@for $a from 1 to "2"' => '"2" is not an integer.',
141
+ '@for $a from 1 to "foo"' => '"foo" is not an integer.',
142
+ '@for $a from 1 to 1.232323' => '1.23232 is not an integer.',
143
+ '@for $a from 1px to 3em' => "Incompatible units: 'em' and 'px'.",
144
+ '@if' => "Invalid if directive '@if': expected expression.",
145
+ '@while' => "Invalid while directive '@while': expected expression.",
146
+ '@debug' => "Invalid debug directive '@debug': expected expression.",
147
+ %Q{@debug "a message"\n "nested message"} => "Illegal nesting: Nothing may be nested beneath debug directives.",
148
+ '@error' => "Invalid error directive '@error': expected expression.",
149
+ %Q{@error "a message"\n "nested message"} => "Illegal nesting: Nothing may be nested beneath error directives.",
150
+ '@warn' => "Invalid warn directive '@warn': expected expression.",
151
+ %Q{@warn "a message"\n "nested message"} => "Illegal nesting: Nothing may be nested beneath warn directives.",
152
+ "/* foo\n bar\n baz" => "Inconsistent indentation: previous line was indented by 4 spaces, but this line was indented by 2 spaces.",
153
+ '+foo(1 + 1: 2)' => 'Invalid CSS after "(1 + 1": expected comma, was ": 2)"',
154
+ '+foo($var: )' => 'Invalid CSS after "($var: ": expected mixin argument, was ")"',
155
+ '+foo($var: a, $var: b)' => 'Keyword argument "$var" passed more than once',
156
+ '+foo($var-var: a, $var_var: b)' => 'Keyword argument "$var_var" passed more than once',
157
+ '+foo($var_var: a, $var-var: b)' => 'Keyword argument "$var-var" passed more than once',
158
+ "a\n b: foo(1 + 1: 2)" => 'Invalid CSS after "foo(1 + 1": expected comma, was ": 2)"',
159
+ "a\n b: foo($var: )" => 'Invalid CSS after "foo($var: ": expected function argument, was ")"',
160
+ "a\n b: foo($var: a, $var: b)" => 'Keyword argument "$var" passed more than once',
161
+ "a\n b: foo($var-var: a, $var_var: b)" => 'Keyword argument "$var_var" passed more than once',
162
+ "a\n b: foo($var_var: a, $var-var: b)" => 'Keyword argument "$var-var" passed more than once',
163
+ "@if foo\n @extend .bar" => ["Extend directives may only be used within rules.", 2],
164
+ "$var: true\n@while $var\n @extend .bar\n $var: false" => ["Extend directives may only be used within rules.", 3],
165
+ "@for $i from 0 to 1\n @extend .bar" => ["Extend directives may only be used within rules.", 2],
166
+ "@mixin foo\n @extend .bar\n@include foo" => ["Extend directives may only be used within rules.", 2],
167
+ "foo %\n a: b" => ['Invalid CSS after "foo %": expected placeholder name, was ""', 1],
168
+ "=foo\n @content error" => "Invalid content directive. Trailing characters found: \"error\".",
169
+ "=foo\n @content\n b: c" => "Illegal nesting: Nothing may be nested beneath @content directives.",
170
+ "@content" => '@content may only be used within a mixin.',
171
+ "=simple\n .simple\n color: red\n+simple\n color: blue" => ['Mixin "simple" does not accept a content block.', 4],
172
+ "@import \"foo\" // bar" => "Invalid CSS after \"\"foo\" \": expected media query list, was \"// bar\"",
173
+ "@at-root\n a: b" => "Properties are only allowed within rules, directives, mixin includes, or other properties.",
174
+
175
+ # Regression tests
176
+ "a\n b:\n c\n d" => ["Illegal nesting: Only properties may be nested beneath properties.", 3],
177
+ "& foo\n bar: baz\n blat: bang" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 1],
178
+ "a\n b: c\n& foo\n bar: baz\n blat: bang" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 3],
179
+ "@" => "Invalid directive: '@'.",
180
+ "$r: 20em * #ccc" => ["Cannot multiply a number with units (20em) to a color (#ccc).", 1],
181
+ "$r: #ccc / 1em" => ["Cannot divide a number with units (1em) to a color (#ccc).", 1],
182
+ }
183
+
184
+ def teardown
185
+ clean_up_sassc
186
+ end
187
+
188
+ def test_basic_render
189
+ renders_correctly "basic", { :style => :compact }
190
+ end
191
+
192
+ def test_empty_render
193
+ assert_equal "", render("")
194
+ end
195
+
196
+ def test_multiple_calls_to_render
197
+ sass = Sass::Engine.new("a\n b: c")
198
+ assert_equal sass.render, sass.render
199
+ end
200
+
201
+ def test_alternate_styles
202
+ renders_correctly "expanded", { :style => :expanded }
203
+ renders_correctly "compact", { :style => :compact }
204
+ renders_correctly "nested", { :style => :nested }
205
+ renders_correctly "compressed", { :style => :compressed }
206
+ end
207
+
208
+ def test_compile
209
+ assert_equal "div { hello: world; }\n", Sass.compile("$who: world\ndiv\n hello: $who", :syntax => :sass, :style => :compact)
210
+ assert_equal "div { hello: world; }\n", Sass.compile("$who: world; div { hello: $who }", :style => :compact)
211
+ end
212
+
213
+ def test_compile_file
214
+ FileUtils.mkdir_p(absolutize("tmp"))
215
+ open(absolutize("tmp/test_compile_file.sass"), "w") {|f| f.write("$who: world\ndiv\n hello: $who")}
216
+ open(absolutize("tmp/test_compile_file.scss"), "w") {|f| f.write("$who: world; div { hello: $who }")}
217
+ assert_equal "div { hello: world; }\n", Sass.compile_file(absolutize("tmp/test_compile_file.sass"), :style => :compact)
218
+ assert_equal "div { hello: world; }\n", Sass.compile_file(absolutize("tmp/test_compile_file.scss"), :style => :compact)
219
+ ensure
220
+ FileUtils.rm_rf(absolutize("tmp"))
221
+ end
222
+
223
+ def test_compile_file_to_css_file
224
+ FileUtils.mkdir_p(absolutize("tmp"))
225
+ open(absolutize("tmp/test_compile_file.sass"), "w") {|f| f.write("$who: world\ndiv\n hello: $who")}
226
+ open(absolutize("tmp/test_compile_file.scss"), "w") {|f| f.write("$who: world; div { hello: $who }")}
227
+ Sass.compile_file(absolutize("tmp/test_compile_file.sass"), absolutize("tmp/test_compile_file_sass.css"), :style => :compact)
228
+ Sass.compile_file(absolutize("tmp/test_compile_file.scss"), absolutize("tmp/test_compile_file_scss.css"), :style => :compact)
229
+ assert_equal "div { hello: world; }\n", File.read(absolutize("tmp/test_compile_file_sass.css"))
230
+ assert_equal "div { hello: world; }\n", File.read(absolutize("tmp/test_compile_file_scss.css"))
231
+ ensure
232
+ FileUtils.rm_rf(absolutize("tmp"))
233
+ end
234
+
235
+ def test_flexible_tabulation
236
+ assert_equal("p {\n a: b; }\n p q {\n c: d; }\n",
237
+ render("p\n a: b\n q\n c: d\n"))
238
+ assert_equal("p {\n a: b; }\n p q {\n c: d; }\n",
239
+ render("p\n\ta: b\n\tq\n\t\tc: d\n"))
240
+ end
241
+
242
+ def test_import_same_name_different_ext
243
+ assert_raise_message Sass::SyntaxError, <<ERROR do
244
+ It's not clear which file to import for '@import "same_name_different_ext"'.
245
+ Candidates:
246
+ same_name_different_ext.sass
247
+ same_name_different_ext.scss
248
+ Please delete or rename all but one of these files.
249
+ ERROR
250
+ options = {:load_paths => [File.dirname(__FILE__) + '/templates/']}
251
+ munge_filename options
252
+ Sass::Engine.new("@import 'same_name_different_ext'", options).render
253
+ end
254
+ end
255
+
256
+ def test_import_same_name_different_partiality
257
+ assert_raise_message Sass::SyntaxError, <<ERROR do
258
+ It's not clear which file to import for '@import "same_name_different_partiality"'.
259
+ Candidates:
260
+ _same_name_different_partiality.scss
261
+ same_name_different_partiality.scss
262
+ Please delete or rename all but one of these files.
263
+ ERROR
264
+ options = {:load_paths => [File.dirname(__FILE__) + '/templates/']}
265
+ munge_filename options
266
+ Sass::Engine.new("@import 'same_name_different_partiality'", options).render
267
+ end
268
+ end
269
+
270
+ EXCEPTION_MAP.each do |key, value|
271
+ define_method("test_exception (#{key.inspect})") do
272
+ line = 10
273
+ begin
274
+ silence_warnings {Sass::Engine.new(key, :filename => FAKE_FILE_NAME, :line => line).render}
275
+ rescue Sass::SyntaxError => err
276
+ value = [value] unless value.is_a?(Array)
277
+
278
+ assert_equal(value.first.rstrip, err.message, "Line: #{key}")
279
+ assert_equal(FAKE_FILE_NAME, err.sass_filename)
280
+ assert_equal((value[1] || key.split("\n").length) + line - 1, err.sass_line, "Line: #{key}")
281
+ assert_match(/#{Regexp.escape(FAKE_FILE_NAME)}:[0-9]+/, err.backtrace[0], "Line: #{key}")
282
+ else
283
+ assert(false, "Exception not raised for\n#{key}")
284
+ end
285
+ end
286
+ end
287
+
288
+ def test_exception_line
289
+ to_render = <<SASS
290
+ rule
291
+ :prop val
292
+ // comment!
293
+
294
+ :broken
295
+ SASS
296
+ begin
297
+ Sass::Engine.new(to_render).render
298
+ rescue Sass::SyntaxError => err
299
+ assert_equal(5, err.sass_line)
300
+ else
301
+ assert(false, "Exception not raised for '#{to_render}'!")
302
+ end
303
+ end
304
+
305
+ def test_exception_location
306
+ to_render = <<SASS
307
+ rule
308
+ :prop val
309
+ // comment!
310
+
311
+ :broken
312
+ SASS
313
+ begin
314
+ Sass::Engine.new(to_render, :filename => FAKE_FILE_NAME, :line => (__LINE__-7)).render
315
+ rescue Sass::SyntaxError => err
316
+ assert_equal(FAKE_FILE_NAME, err.sass_filename)
317
+ assert_equal((__LINE__-6), err.sass_line)
318
+ else
319
+ assert(false, "Exception not raised for '#{to_render}'!")
320
+ end
321
+ end
322
+
323
+ def test_imported_exception
324
+ [1, 2, 3, 4].each do |i|
325
+ begin
326
+ Sass::Engine.new("@import bork#{i}", :load_paths => [File.dirname(__FILE__) + '/templates/']).render
327
+ rescue Sass::SyntaxError => err
328
+ assert_equal(2, err.sass_line)
329
+ assert_match(/(\/|^)bork#{i}\.sass$/, err.sass_filename)
330
+
331
+ assert_hash_has(err.sass_backtrace.first,
332
+ :filename => err.sass_filename, :line => err.sass_line)
333
+
334
+ assert_nil(err.sass_backtrace[1][:filename])
335
+ assert_equal(1, err.sass_backtrace[1][:line])
336
+
337
+ assert_match(/(\/|^)bork#{i}\.sass:2$/, err.backtrace.first)
338
+ assert_equal("(sass):1", err.backtrace[1])
339
+ else
340
+ assert(false, "Exception not raised for imported template: bork#{i}")
341
+ end
342
+ end
343
+ end
344
+
345
+ def test_double_imported_exception
346
+ [1, 2, 3, 4].each do |i|
347
+ begin
348
+ Sass::Engine.new("@import nested_bork#{i}", :load_paths => [File.dirname(__FILE__) + '/templates/']).render
349
+ rescue Sass::SyntaxError => err
350
+ assert_equal(2, err.sass_line)
351
+ assert_match(/(\/|^)bork#{i}\.sass$/, err.sass_filename)
352
+
353
+ assert_hash_has(err.sass_backtrace.first,
354
+ :filename => err.sass_filename, :line => err.sass_line)
355
+
356
+ assert_match(/(\/|^)nested_bork#{i}\.sass$/, err.sass_backtrace[1][:filename])
357
+ assert_equal(2, err.sass_backtrace[1][:line])
358
+
359
+ assert_nil(err.sass_backtrace[2][:filename])
360
+ assert_equal(1, err.sass_backtrace[2][:line])
361
+
362
+ assert_match(/(\/|^)bork#{i}\.sass:2$/, err.backtrace.first)
363
+ assert_match(/(\/|^)nested_bork#{i}\.sass:2$/, err.backtrace[1])
364
+ assert_equal("(sass):1", err.backtrace[2])
365
+ else
366
+ assert(false, "Exception not raised for imported template: bork#{i}")
367
+ end
368
+ end
369
+ end
370
+
371
+ def test_selector_tracing
372
+ actual_css = render(<<-SCSS, :syntax => :scss, :trace_selectors => true)
373
+ @mixin mixed {
374
+ .mixed { color: red; }
375
+ }
376
+ .context {
377
+ @include mixed;
378
+ }
379
+ SCSS
380
+ assert_equal(<<CSS,actual_css)
381
+ /* on line 2 of test_selector_tracing_inline.scss, in `mixed'
382
+ from line 5 of test_selector_tracing_inline.scss */
383
+ .context .mixed {
384
+ color: red; }
385
+ CSS
386
+ end
387
+
388
+ def test_mixin_exception
389
+ render(<<SASS)
390
+ =error-mixin($a)
391
+ color: $a * 1em * 1px
392
+
393
+ =outer-mixin($a)
394
+ +error-mixin($a)
395
+
396
+ .error
397
+ +outer-mixin(12)
398
+ SASS
399
+ assert(false, "Exception not raised")
400
+ rescue Sass::SyntaxError => err
401
+ assert_equal(2, err.sass_line)
402
+ assert_equal(filename_for_test, err.sass_filename)
403
+ assert_equal("error-mixin", err.sass_mixin)
404
+
405
+ assert_hash_has(err.sass_backtrace.first, :line => err.sass_line,
406
+ :filename => err.sass_filename, :mixin => err.sass_mixin)
407
+ assert_hash_has(err.sass_backtrace[1], :line => 5,
408
+ :filename => filename_for_test, :mixin => "outer-mixin")
409
+ assert_hash_has(err.sass_backtrace[2], :line => 8,
410
+ :filename => filename_for_test, :mixin => nil)
411
+
412
+ assert_equal("#{filename_for_test}:2:in `error-mixin'", err.backtrace.first)
413
+ assert_equal("#{filename_for_test}:5:in `outer-mixin'", err.backtrace[1])
414
+ assert_equal("#{filename_for_test}:8", err.backtrace[2])
415
+ end
416
+
417
+ def test_mixin_callsite_exception
418
+ render(<<SASS)
419
+ =one-arg-mixin($a)
420
+ color: $a
421
+
422
+ =outer-mixin($a)
423
+ +one-arg-mixin($a, 12)
424
+
425
+ .error
426
+ +outer-mixin(12)
427
+ SASS
428
+ assert(false, "Exception not raised")
429
+ rescue Sass::SyntaxError => err
430
+ assert_hash_has(err.sass_backtrace.first, :line => 5,
431
+ :filename => filename_for_test, :mixin => "one-arg-mixin")
432
+ assert_hash_has(err.sass_backtrace[1], :line => 5,
433
+ :filename => filename_for_test, :mixin => "outer-mixin")
434
+ assert_hash_has(err.sass_backtrace[2], :line => 8,
435
+ :filename => filename_for_test, :mixin => nil)
436
+ end
437
+
438
+ def test_mixin_exception_cssize
439
+ render(<<SASS)
440
+ =parent-ref-mixin
441
+ & foo
442
+ a: b
443
+
444
+ =outer-mixin
445
+ +parent-ref-mixin
446
+
447
+ +outer-mixin
448
+ SASS
449
+ assert(false, "Exception not raised")
450
+ rescue Sass::SyntaxError => err
451
+ assert_hash_has(err.sass_backtrace.first, :line => 2,
452
+ :filename => filename_for_test, :mixin => "parent-ref-mixin")
453
+ assert_hash_has(err.sass_backtrace[1], :line => 6,
454
+ :filename => filename_for_test, :mixin => "outer-mixin")
455
+ assert_hash_has(err.sass_backtrace[2], :line => 8,
456
+ :filename => filename_for_test, :mixin => nil)
457
+ end
458
+
459
+ def test_mixin_and_import_exception
460
+ Sass::Engine.new("@import nested_mixin_bork", :load_paths => [File.dirname(__FILE__) + '/templates/']).render
461
+ assert(false, "Exception not raised")
462
+ rescue Sass::SyntaxError => err
463
+ assert_match(/(\/|^)nested_mixin_bork\.sass$/, err.sass_backtrace.first[:filename])
464
+ assert_hash_has(err.sass_backtrace.first, :mixin => "error-mixin", :line => 4)
465
+
466
+ assert_match(/(\/|^)mixin_bork\.sass$/, err.sass_backtrace[1][:filename])
467
+ assert_hash_has(err.sass_backtrace[1], :mixin => "outer-mixin", :line => 2)
468
+
469
+ assert_match(/(\/|^)mixin_bork\.sass$/, err.sass_backtrace[2][:filename])
470
+ assert_hash_has(err.sass_backtrace[2], :mixin => nil, :line => 5)
471
+
472
+ assert_match(/(\/|^)nested_mixin_bork\.sass$/, err.sass_backtrace[3][:filename])
473
+ assert_hash_has(err.sass_backtrace[3], :mixin => nil, :line => 6)
474
+
475
+ assert_hash_has(err.sass_backtrace[4], :filename => nil, :mixin => nil, :line => 1)
476
+ end
477
+
478
+ def test_recursive_mixin
479
+ assert_equal <<CSS, render(<<SASS)
480
+ .foo .bar .baz {
481
+ color: blue; }
482
+ .foo .bar .qux {
483
+ color: red; }
484
+ .foo .zap {
485
+ color: green; }
486
+ CSS
487
+ @mixin map-to-rule($map-or-color)
488
+ @if type-of($map-or-color) == map
489
+ @each $key, $value in $map-or-color
490
+ .\#{$key}
491
+ @include map-to-rule($value)
492
+ @else
493
+ color: $map-or-color
494
+
495
+ @include map-to-rule((foo: (bar: (baz: blue, qux: red), zap: green)))
496
+ SASS
497
+ end
498
+
499
+ def test_double_import_loop_exception
500
+ importer = MockImporter.new
501
+ importer.add_import("foo", "@import 'bar'")
502
+ importer.add_import("bar", "@import 'foo'")
503
+
504
+ engine = Sass::Engine.new('@import "foo"', :filename => filename_for_test,
505
+ :load_paths => [importer], :importer => importer)
506
+
507
+ assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) {engine.render}
508
+ An @import loop has been found:
509
+ #{filename_for_test} imports foo
510
+ foo imports bar
511
+ bar imports foo
512
+ ERR
513
+ end
514
+
515
+ def test_deep_import_loop_exception
516
+ importer = MockImporter.new
517
+ importer.add_import("foo", "@import 'bar'")
518
+ importer.add_import("bar", "@import 'baz'")
519
+ importer.add_import("baz", "@import 'foo'")
520
+
521
+ engine = Sass::Engine.new('@import "foo"', :filename => filename_for_test,
522
+ :load_paths => [importer], :importer => importer)
523
+
524
+ assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) {engine.render}
525
+ An @import loop has been found:
526
+ #{filename_for_test} imports foo
527
+ foo imports bar
528
+ bar imports baz
529
+ baz imports foo
530
+ ERR
531
+ end
532
+
533
+ def test_exception_css_with_offset
534
+ opts = {:full_exception => true, :line => 362}
535
+ render(("a\n b: c\n" * 10) + "d\n e:\n" + ("f\n g: h\n" * 10), opts)
536
+ rescue Sass::SyntaxError => e
537
+ assert_equal(<<CSS, Sass::SyntaxError.exception_to_css(e, opts[:line]).split("\n")[0..15].join("\n"))
538
+ /*
539
+ Error: Invalid property: "e:" (no value).
540
+ on line 383 of test_exception_css_with_offset_inline.sass
541
+
542
+ 378: a
543
+ 379: b: c
544
+ 380: a
545
+ 381: b: c
546
+ 382: d
547
+ 383: e:
548
+ 384: f
549
+ 385: g: h
550
+ 386: f
551
+ 387: g: h
552
+ 388: f
553
+ CSS
554
+ else
555
+ assert(false, "Exception not raised for test_exception_css_with_offset")
556
+ end
557
+
558
+ def test_exception_css_with_mixins
559
+ render(<<SASS, :full_exception => true)
560
+ =error-mixin($a)
561
+ color: $a * 1em * 1px
562
+
563
+ =outer-mixin($a)
564
+ +error-mixin($a)
565
+
566
+ .error
567
+ +outer-mixin(12)
568
+ SASS
569
+ rescue Sass::SyntaxError => e
570
+ assert_equal(<<CSS, Sass::SyntaxError.exception_to_css(e).split("\n")[0..13].join("\n"))
571
+ /*
572
+ Error: 12em*px isn't a valid CSS value.
573
+ on line 2 of test_exception_css_with_mixins_inline.sass, in `error-mixin'
574
+ from line 5 of test_exception_css_with_mixins_inline.sass, in `outer-mixin'
575
+ from line 8 of test_exception_css_with_mixins_inline.sass
576
+
577
+ 1: =error-mixin($a)
578
+ 2: color: $a * 1em * 1px
579
+ 3:
580
+ 4: =outer-mixin($a)
581
+ 5: +error-mixin($a)
582
+ 6:
583
+ 7: .error
584
+ CSS
585
+ else
586
+ assert(false, "Exception not raised")
587
+ end
588
+
589
+ def test_cssize_exception_css
590
+ render(<<SASS, :full_exception => true)
591
+ .filler
592
+ stuff: "stuff!"
593
+
594
+ a: b
595
+
596
+ .more.filler
597
+ a: b
598
+ SASS
599
+ rescue Sass::SyntaxError => e
600
+ assert_equal(<<CSS, Sass::SyntaxError.exception_to_css(e).split("\n")[0..11].join("\n"))
601
+ /*
602
+ Error: Properties are only allowed within rules, directives, mixin includes, or other properties.
603
+ on line 4 of test_cssize_exception_css_inline.sass
604
+
605
+ 1: .filler
606
+ 2: stuff: "stuff!"
607
+ 3:
608
+ 4: a: b
609
+ 5:
610
+ 6: .more.filler
611
+ 7: a: b
612
+ CSS
613
+ else
614
+ assert(false, "Exception not raised")
615
+ end
616
+
617
+ def test_css_import
618
+ assert_equal("@import url(./fonts.css);\n", render("@import \"./fonts.css\""))
619
+ end
620
+
621
+ def test_http_import
622
+ assert_equal("@import \"http://fonts.googleapis.com/css?family=Droid+Sans\";\n",
623
+ render("@import \"http://fonts.googleapis.com/css?family=Droid+Sans\""))
624
+ end
625
+
626
+ def test_protocol_relative_import
627
+ assert_equal("@import \"//fonts.googleapis.com/css?family=Droid+Sans\";\n",
628
+ render("@import \"//fonts.googleapis.com/css?family=Droid+Sans\""))
629
+ end
630
+
631
+ def test_import_with_interpolation
632
+ assert_equal(<<CSS, render(<<SASS))
633
+ @import url("http://fonts.googleapis.com/css?family=Droid+Sans");
634
+ CSS
635
+ $family: unquote("Droid+Sans")
636
+ @import url("http://fonts.googleapis.com/css?family=\#{$family}")
637
+ SASS
638
+ end
639
+
640
+ def test_import_with_dynamic_media_query
641
+ assert_equal(<<CSS, render(<<SASS))
642
+ @import "foo" print and (-webkit-min-device-pixel-ratio-foo: 25);
643
+ CSS
644
+ $media: print
645
+ $key: -webkit-min-device-pixel-ratio
646
+ $value: 20
647
+ @import "foo" \#{$media} and ($key + "-foo": $value + 5)
648
+ SASS
649
+ end
650
+
651
+ def test_url_import
652
+ assert_equal("@import url(fonts.sass);\n", render("@import url(fonts.sass)"))
653
+ end
654
+
655
+ def test_sass_import
656
+ sassc_file = sassc_path("importee")
657
+ assert !File.exist?(sassc_file)
658
+ renders_correctly "import", { :style => :compact, :load_paths => [File.dirname(__FILE__) + "/templates"] }
659
+ assert File.exist?(sassc_file)
660
+ end
661
+
662
+ def test_sass_pathname_import
663
+ sassc_file = sassc_path("importee")
664
+ assert !File.exist?(sassc_file)
665
+ renders_correctly("import",
666
+ :style => :compact,
667
+ :load_paths => [Pathname.new(File.dirname(__FILE__) + "/templates")])
668
+ assert File.exist?(sassc_file)
669
+ end
670
+
671
+ def test_import_from_global_load_paths
672
+ importer = MockImporter.new
673
+ importer.add_import("imported", "div{color:red}")
674
+ Sass.load_paths << importer
675
+
676
+ assert_equal "div {\n color: red; }\n", Sass::Engine.new('@import "imported"', :importer => importer).render
677
+ ensure
678
+ Sass.load_paths.clear
679
+ end
680
+
681
+ def test_nonexistent_import
682
+ assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) do
683
+ File to import not found or unreadable: nonexistent.sass.
684
+ ERR
685
+ render("@import nonexistent.sass")
686
+ end
687
+ end
688
+
689
+ def test_nonexistent_extensionless_import
690
+ assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) do
691
+ File to import not found or unreadable: nonexistent.
692
+ ERR
693
+ render("@import nonexistent")
694
+ end
695
+ end
696
+
697
+ def test_no_cache
698
+ assert !File.exist?(sassc_path("importee"))
699
+ renders_correctly("import", {
700
+ :style => :compact, :cache => false,
701
+ :load_paths => [File.dirname(__FILE__) + "/templates"],
702
+ })
703
+ assert !File.exist?(sassc_path("importee"))
704
+ end
705
+
706
+ def test_import_in_rule
707
+ assert_equal(<<CSS, render(<<SASS, :load_paths => [File.dirname(__FILE__) + '/templates/']))
708
+ .foo #foo {
709
+ background-color: #baf; }
710
+
711
+ .bar {
712
+ a: b; }
713
+ .bar #foo {
714
+ background-color: #baf; }
715
+ CSS
716
+ .foo
717
+ @import partial
718
+
719
+ .bar
720
+ a: b
721
+ @import partial
722
+ SASS
723
+ end
724
+
725
+ def test_units
726
+ renders_correctly "units"
727
+ end
728
+
729
+ def test_default_function
730
+ assert_equal(<<CSS, render(<<SASS))
731
+ foo {
732
+ bar: url("foo.png"); }
733
+ CSS
734
+ foo
735
+ bar: url("foo.png")
736
+ SASS
737
+ assert_equal("foo {\n bar: url(); }\n", render("foo\n bar: url()\n"));
738
+ end
739
+
740
+ def test_string_minus
741
+ assert_equal("foo {\n bar: baz-boom-bat; }\n", render(%Q{foo\n bar: baz-boom-bat}))
742
+ assert_equal("foo {\n bar: -baz-boom; }\n", render(%Q{foo\n bar: -baz-boom}))
743
+ end
744
+
745
+ def test_string_div
746
+ assert_equal("foo {\n bar: baz/boom/bat; }\n", render(%Q{foo\n bar: baz/boom/bat}))
747
+ assert_equal("foo {\n bar: /baz/boom; }\n", render(%Q{foo\n bar: /baz/boom}))
748
+ end
749
+
750
+ def test_basic_multiline_selector
751
+ assert_equal("#foo #bar,\n#baz #boom {\n foo: bar; }\n",
752
+ render("#foo #bar,\n#baz #boom\n :foo bar"))
753
+ assert_equal("#foo #bar,\n#foo #baz {\n foo: bar; }\n",
754
+ render("#foo\n #bar,\n #baz\n :foo bar"))
755
+ assert_equal("#foo,\n#bar {\n foo: bar; }\n #foo #baz,\n #bar #baz {\n foo: bar; }\n",
756
+ render("#foo,\n#bar\n :foo bar\n #baz\n :foo bar"))
757
+ assert_equal("#foo #bar, #baz #boom { foo: bar; }\n",
758
+ render("#foo #bar,\n#baz #boom\n :foo bar", :style => :compact))
759
+
760
+ assert_equal("#foo #bar,#baz #boom{foo:bar}\n",
761
+ render("#foo #bar,\n#baz #boom\n :foo bar", :style => :compressed))
762
+
763
+ assert_equal("#foo #bar,\n#baz #boom {\n foo: bar; }\n",
764
+ render("#foo #bar,,\n,#baz #boom,\n :foo bar"))
765
+
766
+ assert_equal("#bip #bop {\n foo: bar; }\n",
767
+ render("#bip #bop,, ,\n :foo bar"))
768
+ end
769
+
770
+ def test_complex_multiline_selector
771
+ renders_correctly "multiline"
772
+ end
773
+
774
+ def test_colon_only
775
+ begin
776
+ render("a\n b: c", :property_syntax => :old)
777
+ rescue Sass::SyntaxError => e
778
+ assert_equal("Illegal property syntax: can't use new syntax when :property_syntax => :old is set.",
779
+ e.message)
780
+ assert_equal(2, e.sass_line)
781
+ else
782
+ assert(false, "SyntaxError not raised for :property_syntax => :old")
783
+ end
784
+
785
+ begin
786
+ render("a\n :b c", :property_syntax => :new)
787
+ assert_equal(2, e.sass_line)
788
+ rescue Sass::SyntaxError => e
789
+ assert_equal("Illegal property syntax: can't use old syntax when :property_syntax => :new is set.",
790
+ e.message)
791
+ else
792
+ assert(false, "SyntaxError not raised for :property_syntax => :new")
793
+ end
794
+ end
795
+
796
+ def test_pseudo_elements
797
+ assert_equal(<<CSS, render(<<SASS))
798
+ ::first-line {
799
+ size: 10em; }
800
+ CSS
801
+ ::first-line
802
+ size: 10em
803
+ SASS
804
+ end
805
+
806
+ def test_directive
807
+ assert_equal("@a b;\n", render("@a b"))
808
+
809
+ assert_equal("@a {\n b: c; }\n", render("@a\n :b c"))
810
+ assert_equal("@a { b: c; }\n", render("@a\n :b c", :style => :compact))
811
+ assert_equal("@a {\n b: c;\n}\n", render("@a\n :b c", :style => :expanded))
812
+ assert_equal("@a{b:c}\n", render("@a\n :b c", :style => :compressed))
813
+
814
+ assert_equal("@a {\n b: c;\n d: e; }\n",
815
+ render("@a\n :b c\n :d e"))
816
+ assert_equal("@a { b: c; d: e; }\n",
817
+ render("@a\n :b c\n :d e", :style => :compact))
818
+ assert_equal("@a {\n b: c;\n d: e;\n}\n",
819
+ render("@a\n :b c\n :d e", :style => :expanded))
820
+ assert_equal("@a{b:c;d:e}\n",
821
+ render("@a\n :b c\n :d e", :style => :compressed))
822
+
823
+ assert_equal("@a {\n #b {\n c: d; } }\n",
824
+ render("@a\n #b\n :c d"))
825
+ assert_equal("@a { #b { c: d; } }\n",
826
+ render("@a\n #b\n :c d", :style => :compact))
827
+ assert_equal("@a {\n #b {\n c: d;\n }\n}\n",
828
+ render("@a\n #b\n :c d", :style => :expanded))
829
+ assert_equal("@a{#b{c:d}}\n",
830
+ render("@a\n #b\n :c d", :style => :compressed))
831
+
832
+ assert_equal("@a {\n #b {\n a: b; }\n #b #c {\n d: e; } }\n",
833
+ render("@a\n #b\n :a b\n #c\n :d e"))
834
+ assert_equal("@a { #b { a: b; }\n #b #c { d: e; } }\n",
835
+ render("@a\n #b\n :a b\n #c\n :d e", :style => :compact))
836
+ assert_equal("@a {\n #b {\n a: b;\n }\n #b #c {\n d: e;\n }\n}\n",
837
+ render("@a\n #b\n :a b\n #c\n :d e", :style => :expanded))
838
+ assert_equal("@a{#b{a:b}#b #c{d:e}}\n",
839
+ render("@a\n #b\n :a b\n #c\n :d e", :style => :compressed))
840
+
841
+ assert_equal("@a {\n #foo,\n #bar {\n b: c; } }\n",
842
+ render("@a\n #foo, \n #bar\n :b c"))
843
+ assert_equal("@a { #foo, #bar { b: c; } }\n",
844
+ render("@a\n #foo, \n #bar\n :b c", :style => :compact))
845
+ assert_equal("@a {\n #foo,\n #bar {\n b: c;\n }\n}\n",
846
+ render("@a\n #foo, \n #bar\n :b c", :style => :expanded))
847
+ assert_equal("@a{#foo,#bar{b:c}}\n",
848
+ render("@a\n #foo, \n #bar\n :b c", :style => :compressed))
849
+
850
+ to_render = <<END
851
+ @a
852
+ :b c
853
+ #d
854
+ :e f
855
+ :g h
856
+ END
857
+ rendered = <<END
858
+ @a { b: c;
859
+ #d { e: f; }
860
+ g: h; }
861
+ END
862
+ assert_equal(rendered, render(to_render, :style => :compact))
863
+
864
+ assert_equal("@a{b:c;#d{e:f}g:h}\n", render(to_render, :style => :compressed))
865
+ end
866
+
867
+ def test_property_hacks
868
+ assert_equal(<<CSS, render(<<SASS))
869
+ foo {
870
+ _name: val;
871
+ *name: val;
872
+ #name: val;
873
+ .name: val;
874
+ name/**/: val;
875
+ name/*\\**/: val;
876
+ name: val; }
877
+ CSS
878
+ foo
879
+ _name: val
880
+ *name: val
881
+ #name: val
882
+ .name: val
883
+ name/**/: val
884
+ name/*\\**/: val
885
+ name: val
886
+ SASS
887
+ end
888
+
889
+ def test_properties_with_space_after_colon
890
+ assert_equal <<CSS, render(<<SASS)
891
+ foo {
892
+ bar: baz;
893
+ bizz: bap; }
894
+ CSS
895
+ foo
896
+ bar : baz
897
+ bizz : bap
898
+ SASS
899
+ end
900
+
901
+ def test_line_annotations
902
+ assert_equal(<<CSS, render(<<SASS, :line_comments => true, :style => :compact))
903
+ /* line 2, test_line_annotations_inline.sass */
904
+ foo bar { foo: bar; }
905
+ /* line 5, test_line_annotations_inline.sass */
906
+ foo baz { blip: blop; }
907
+
908
+ /* line 9, test_line_annotations_inline.sass */
909
+ floodle { flop: blop; }
910
+
911
+ /* line 18, test_line_annotations_inline.sass */
912
+ bup { mix: on; }
913
+ /* line 15, test_line_annotations_inline.sass */
914
+ bup mixin { moop: mup; }
915
+
916
+ /* line 22, test_line_annotations_inline.sass */
917
+ bip hop, skip hop { a: b; }
918
+ CSS
919
+ foo
920
+ bar
921
+ foo: bar
922
+
923
+ baz
924
+ blip: blop
925
+
926
+
927
+ floodle
928
+
929
+ flop: blop
930
+
931
+ =mxn
932
+ mix: on
933
+ mixin
934
+ moop: mup
935
+
936
+ bup
937
+ +mxn
938
+
939
+ bip, skip
940
+ hop
941
+ a: b
942
+ SASS
943
+ end
944
+
945
+ def test_line_annotations_with_filename
946
+ renders_correctly "line_numbers", :line_comments => true, :load_paths => [File.dirname(__FILE__) + "/templates"]
947
+ end
948
+
949
+ def test_debug_info
950
+ esc_file_name = Sass::SCSS::RX.escape_ident(Sass::Util.scope("test_debug_info_inline.sass"))
951
+
952
+ assert_equal(<<CSS, render(<<SASS, :debug_info => true, :style => :compact))
953
+ @media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000032}}
954
+ foo bar { foo: bar; }
955
+ @media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000035}}
956
+ foo baz { blip: blop; }
957
+
958
+ @media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000039}}
959
+ floodle { flop: blop; }
960
+
961
+ @media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\0000318}}
962
+ bup { mix: on; }
963
+ @media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\0000315}}
964
+ bup mixin { moop: mup; }
965
+
966
+ @media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\0000322}}
967
+ bip hop, skip hop { a: b; }
968
+ CSS
969
+ foo
970
+ bar
971
+ foo: bar
972
+
973
+ baz
974
+ blip: blop
975
+
976
+
977
+ floodle
978
+
979
+ flop: blop
980
+
981
+ =mxn
982
+ mix: on
983
+ mixin
984
+ moop: mup
985
+
986
+ bup
987
+ +mxn
988
+
989
+ bip, skip
990
+ hop
991
+ a: b
992
+ SASS
993
+ end
994
+
995
+ def test_debug_info_without_filename
996
+ assert_equal(<<CSS, Sass::Engine.new(<<SASS, :debug_info => true).render)
997
+ @media -sass-debug-info{filename{}line{font-family:\\000031}}
998
+ foo {
999
+ a: b; }
1000
+ CSS
1001
+ foo
1002
+ a: b
1003
+ SASS
1004
+ end
1005
+
1006
+ def test_debug_info_with_compressed
1007
+ assert_equal(<<CSS, render(<<SASS, :debug_info => true, :style => :compressed))
1008
+ foo{a:b}
1009
+ CSS
1010
+ foo
1011
+ a: b
1012
+ SASS
1013
+ end
1014
+
1015
+ def test_debug_info_with_line_annotations
1016
+ esc_file_name = Sass::SCSS::RX.escape_ident(Sass::Util.scope("test_debug_info_with_line_annotations_inline.sass"))
1017
+
1018
+ assert_equal(<<CSS, render(<<SASS, :debug_info => true, :line_comments => true))
1019
+ @media -sass-debug-info{filename{font-family:file\\:\\/\\/#{esc_file_name}}line{font-family:\\000031}}
1020
+ foo {
1021
+ a: b; }
1022
+ CSS
1023
+ foo
1024
+ a: b
1025
+ SASS
1026
+ end
1027
+
1028
+ def test_debug_info_in_keyframes
1029
+ assert_equal(<<CSS, render(<<SASS, :debug_info => true))
1030
+ @-webkit-keyframes warm {
1031
+ from {
1032
+ color: black; }
1033
+ to {
1034
+ color: red; } }
1035
+ CSS
1036
+ @-webkit-keyframes warm
1037
+ from
1038
+ color: black
1039
+ to
1040
+ color: red
1041
+ SASS
1042
+ end
1043
+
1044
+ def test_empty_first_line
1045
+ assert_equal("#a {\n b: c; }\n", render("#a\n\n b: c"))
1046
+ end
1047
+
1048
+ def test_escaped_rule
1049
+ assert_equal(":focus {\n a: b; }\n", render("\\:focus\n a: b"))
1050
+ assert_equal("a {\n b: c; }\n a :focus {\n d: e; }\n", render("\\a\n b: c\n \\:focus\n d: e"))
1051
+ end
1052
+
1053
+ def test_cr_newline
1054
+ assert_equal("foo {\n a: b;\n c: d;\n e: f; }\n", render("foo\r a: b\r\n c: d\n\r e: f"))
1055
+ end
1056
+
1057
+ def test_property_with_content_and_nested_props
1058
+ assert_equal(<<CSS, render(<<SASS))
1059
+ foo {
1060
+ a: b;
1061
+ a-c: d;
1062
+ a-c-e: f; }
1063
+ CSS
1064
+ foo
1065
+ a: b
1066
+ c: d
1067
+ e: f
1068
+ SASS
1069
+
1070
+ assert_equal(<<CSS, render(<<SASS))
1071
+ foo {
1072
+ a: b;
1073
+ a-c-e: f; }
1074
+ CSS
1075
+ foo
1076
+ a: b
1077
+ c:
1078
+ e: f
1079
+ SASS
1080
+ end
1081
+
1082
+ def test_guarded_assign
1083
+ assert_equal("foo {\n a: b; }\n", render(%Q{$foo: b\n$foo: c !default\nfoo\n a: $foo}))
1084
+ assert_equal("foo {\n a: b; }\n", render(%Q{$foo: b !default\nfoo\n a: $foo}))
1085
+ assert_equal("foo {\n a: b; }\n", render(%Q{$foo: null\n$foo: b !default\nfoo\n a: $foo}))
1086
+ end
1087
+
1088
+ def test_mixins
1089
+ renders_correctly "mixins", { :style => :expanded }
1090
+ end
1091
+
1092
+ def test_directive_style_mixins
1093
+ assert_equal <<CSS, render(<<SASS)
1094
+ bar {
1095
+ prop: baz; }
1096
+ CSS
1097
+ @mixin foo($arg)
1098
+ prop: $arg
1099
+
1100
+ bar
1101
+ @include foo(baz)
1102
+ SASS
1103
+ end
1104
+
1105
+ def test_mixins_dont_interfere_with_sibling_combinator
1106
+ assert_equal("foo + bar {\n a: b; }\nfoo + baz {\n c: d; }\n",
1107
+ render("foo\n +\n bar\n a: b\n baz\n c: d"))
1108
+ end
1109
+
1110
+ def test_mixin_args
1111
+ assert_equal("blat {\n baz: hi; }\n", render(<<SASS))
1112
+ =foo($bar)
1113
+ baz: $bar
1114
+ blat
1115
+ +foo(hi)
1116
+ SASS
1117
+ assert_equal("blat {\n baz: 3; }\n", render(<<SASS))
1118
+ =foo($a, $b)
1119
+ baz: $a + $b
1120
+ blat
1121
+ +foo(1, 2)
1122
+ SASS
1123
+ assert_equal("blat {\n baz: 4;\n baz: 3;\n baz: 5;\n bang: 3; }\n", render(<<SASS))
1124
+ =foo($c: (6 + 4) / 2)
1125
+ baz: $c
1126
+ $c: 3
1127
+ blat
1128
+ +foo($c + 1)
1129
+ +foo(($c + 3)/2)
1130
+ +foo
1131
+ bang: $c
1132
+ SASS
1133
+ end
1134
+
1135
+ def test_default_values_for_mixin_arguments
1136
+ assert_equal(<<CSS, render(<<SASS))
1137
+ white {
1138
+ color: #FFF; }
1139
+
1140
+ black {
1141
+ color: #000; }
1142
+ CSS
1143
+ =foo($a: #FFF)
1144
+ :color $a
1145
+ white
1146
+ +foo
1147
+ black
1148
+ +foo(#000)
1149
+ SASS
1150
+ assert_equal(<<CSS, render(<<SASS))
1151
+ one {
1152
+ color: #fff;
1153
+ padding: 1px;
1154
+ margin: 4px; }
1155
+
1156
+ two {
1157
+ color: #fff;
1158
+ padding: 2px;
1159
+ margin: 5px; }
1160
+
1161
+ three {
1162
+ color: #fff;
1163
+ padding: 2px;
1164
+ margin: 3px; }
1165
+ CSS
1166
+ $a: 5px
1167
+ =foo($a, $b: 1px, $c: 3px + $b)
1168
+ :color $a
1169
+ :padding $b
1170
+ :margin $c
1171
+ one
1172
+ +foo(#fff)
1173
+ two
1174
+ +foo(#fff, 2px)
1175
+ three
1176
+ +foo(#fff, 2px, 3px)
1177
+ SASS
1178
+ assert_equal(<<CSS, render(<<SASS))
1179
+ one {
1180
+ color: #fff;
1181
+ padding: 1px;
1182
+ margin: 4px; }
1183
+
1184
+ two {
1185
+ color: #fff;
1186
+ padding: 2px;
1187
+ margin: 5px; }
1188
+
1189
+ three {
1190
+ color: #fff;
1191
+ padding: 2px;
1192
+ margin: 3px; }
1193
+ CSS
1194
+ $a: 5px
1195
+ =foo($a, $b: 1px, $c: null)
1196
+ $c: 3px + $b !default
1197
+ color: $a
1198
+ padding: $b
1199
+ margin: $c
1200
+ one
1201
+ +foo(#fff)
1202
+ two
1203
+ +foo(#fff, 2px)
1204
+ three
1205
+ +foo(#fff, 2px, 3px)
1206
+ SASS
1207
+ end
1208
+
1209
+ def test_hyphen_underscore_insensitive_mixins
1210
+ assert_equal(<<CSS, render(<<SASS))
1211
+ a {
1212
+ b: 12;
1213
+ c: foo; }
1214
+ CSS
1215
+ =mixin-hyphen
1216
+ b: 12
1217
+
1218
+ =mixin_under
1219
+ c: foo
1220
+
1221
+ a
1222
+ +mixin_hyphen
1223
+ +mixin-under
1224
+ SASS
1225
+ end
1226
+
1227
+ def test_css_identifier_mixin
1228
+ assert_equal(<<CSS, render(<<SASS))
1229
+ a {
1230
+ foo: 12; }
1231
+ CSS
1232
+ =\\{foo\\(12\\)($a)
1233
+ foo: $a
1234
+
1235
+ a
1236
+ +\\{foo\\(12\\)(12)
1237
+ SASS
1238
+ end
1239
+
1240
+ def test_basic_function
1241
+ assert_equal(<<CSS, render(<<SASS))
1242
+ bar {
1243
+ a: 3; }
1244
+ CSS
1245
+ @function foo()
1246
+ @return 1 + 2
1247
+
1248
+ bar
1249
+ a: foo()
1250
+ SASS
1251
+ end
1252
+
1253
+ def test_function_args
1254
+ assert_equal(<<CSS, render(<<SASS))
1255
+ bar {
1256
+ a: 3; }
1257
+ CSS
1258
+ @function plus($var1, $var2)
1259
+ @return $var1 + $var2
1260
+
1261
+ bar
1262
+ a: plus(1, 2)
1263
+ SASS
1264
+ end
1265
+
1266
+ def test_function_arg_default
1267
+ assert_equal(<<CSS, render(<<SASS))
1268
+ bar {
1269
+ a: 3; }
1270
+ CSS
1271
+ @function plus($var1, $var2: 2)
1272
+ @return $var1 + $var2
1273
+
1274
+ bar
1275
+ a: plus(1)
1276
+ SASS
1277
+ end
1278
+
1279
+ def test_function_arg_keyword
1280
+ assert_equal(<<CSS, render(<<SASS))
1281
+ bar {
1282
+ a: 1bar; }
1283
+ CSS
1284
+ @function plus($var1: 1, $var2: 2)
1285
+ @return $var1 + $var2
1286
+
1287
+ bar
1288
+ a: plus($var2: bar)
1289
+ SASS
1290
+ end
1291
+
1292
+ def test_function_with_missing_argument
1293
+ render(<<SASS)
1294
+ @function plus($var1, $var2)
1295
+ @return $var1 + $var2
1296
+
1297
+ bar
1298
+ a: plus($var2: bar)
1299
+ SASS
1300
+ flunk("Expected exception")
1301
+ rescue Sass::SyntaxError => e
1302
+ assert_equal("Function plus is missing argument $var1.", e.message)
1303
+ end
1304
+
1305
+ def test_function_with_extra_argument
1306
+ render(<<SASS)
1307
+ @function plus($var1, $var2)
1308
+ @return $var1 + $var2
1309
+
1310
+ bar
1311
+ a: plus($var1: foo, $var2: bar, $var3: baz)
1312
+ SASS
1313
+ flunk("Expected exception")
1314
+ rescue Sass::SyntaxError => e
1315
+ assert_equal("Function plus doesn't have an argument named $var3.", e.message)
1316
+ end
1317
+
1318
+ def test_function_with_positional_and_keyword_argument
1319
+ render(<<SASS)
1320
+ @function plus($var1, $var2)
1321
+ @return $var1 + $var2
1322
+
1323
+ bar
1324
+ a: plus(foo, bar, $var2: baz)
1325
+ SASS
1326
+ flunk("Expected exception")
1327
+ rescue Sass::SyntaxError => e
1328
+ assert_equal("Function plus was passed argument $var2 both by position and by name.", e.message)
1329
+ end
1330
+
1331
+ def test_function_with_keyword_before_positional_argument
1332
+ render(<<SASS)
1333
+ @function plus($var1, $var2)
1334
+ @return $var1 + $var2
1335
+
1336
+ bar
1337
+ a: plus($var2: foo, bar)
1338
+ SASS
1339
+ flunk("Expected exception")
1340
+ rescue Sass::SyntaxError => e
1341
+ assert_equal("Positional arguments must come before keyword arguments.", e.message)
1342
+ end
1343
+
1344
+ def test_function_with_if
1345
+ assert_equal(<<CSS, render(<<SASS))
1346
+ bar {
1347
+ a: foo;
1348
+ b: bar; }
1349
+ CSS
1350
+ @function my-if($cond, $val1, $val2)
1351
+ @if $cond
1352
+ @return $val1
1353
+ @else
1354
+ @return $val2
1355
+
1356
+ bar
1357
+ a: my-if(true, foo, bar)
1358
+ b: my-if(false, foo, bar)
1359
+ SASS
1360
+ end
1361
+
1362
+ def test_function_with_var
1363
+ assert_equal(<<CSS, render(<<SASS))
1364
+ bar {
1365
+ a: 1; }
1366
+ CSS
1367
+ @function foo($val1, $val2)
1368
+ $intermediate: $val1 + $val2
1369
+ @return $intermediate/3
1370
+
1371
+ bar
1372
+ a: foo(1, 2)
1373
+ SASS
1374
+ end
1375
+
1376
+ def test_user_defined_function_variable_scope
1377
+ render(<<SASS)
1378
+ bar
1379
+ -no-op: set-a-variable(variable, 5)
1380
+ a: $variable
1381
+ SASS
1382
+ flunk("Exception not raised for test_user_defined_function_variable_scope")
1383
+ rescue Sass::SyntaxError => e
1384
+ assert_equal('Undefined variable: "$variable".', e.message)
1385
+ end
1386
+
1387
+ def test_user_defined_function_can_change_global_variable
1388
+ assert_equal(<<CSS, render(<<SASS))
1389
+ bar {
1390
+ a: 5; }
1391
+ CSS
1392
+ $variable: 0
1393
+ bar
1394
+ $local: 10
1395
+ -no-op: set-a-global-variable(variable, 5)
1396
+ a: $variable
1397
+ SASS
1398
+ end
1399
+
1400
+ def test_user_defined_function_cannot_read_local_variable
1401
+ assert_equal(<<CSS, render(<<SASS))
1402
+ bar {
1403
+ global: 0;
1404
+ local: undefined; }
1405
+ CSS
1406
+ $global: 0
1407
+ bar
1408
+ $local: 10
1409
+ global: get-a-variable(global)
1410
+ local: get-a-variable(local)
1411
+ SASS
1412
+ end
1413
+
1414
+ def test_control_directive_in_nested_property
1415
+ assert_equal(<<CSS, render(<<SASS))
1416
+ foo {
1417
+ a-b: c; }
1418
+ CSS
1419
+ foo
1420
+ a:
1421
+ @if true
1422
+ b: c
1423
+ SASS
1424
+ end
1425
+
1426
+ def test_interpolation
1427
+ assert_equal("a-1 {\n b-2-3: c-3; }\n", render(<<SASS))
1428
+ $a: 1
1429
+ $b: 2
1430
+ $c: 3
1431
+ a-\#{$a}
1432
+ b-\#{$b}-\#{$c}: c-\#{$a + $b}
1433
+ SASS
1434
+ end
1435
+
1436
+ def test_complex_property_interpolation
1437
+ assert_equal(<<CSS, render(<<SASS))
1438
+ a-1 {
1439
+ b-2 3-fizzap18: c-3; }
1440
+ CSS
1441
+ $a: 1
1442
+ $b: 2
1443
+ $c: 3
1444
+ a-\#{$a}
1445
+ b-\#{$b $c}-\#{fizzap + ($c + 15)}: c-\#{$a + $b}
1446
+ SASS
1447
+ end
1448
+
1449
+ def test_if_directive
1450
+ assert_equal("a {\n b: 1; }\n", render(<<SASS))
1451
+ $var: true
1452
+ a
1453
+ @if $var
1454
+ b: 1
1455
+ @if not $var
1456
+ b: 2
1457
+ SASS
1458
+
1459
+ assert_equal("a {\n b: 2; }\n", render(<<SASS))
1460
+ $var: null
1461
+ a
1462
+ @if $var
1463
+ b: 1
1464
+ @if not $var
1465
+ b: 2
1466
+ SASS
1467
+ end
1468
+
1469
+ def test_for
1470
+ assert_equal(<<CSS, render(<<SASS))
1471
+ a-0 {
1472
+ two-i: 0; }
1473
+
1474
+ a-1 {
1475
+ two-i: 2; }
1476
+
1477
+ a-2 {
1478
+ two-i: 4; }
1479
+
1480
+ a-3 {
1481
+ two-i: 6; }
1482
+
1483
+ b-1 {
1484
+ j-1: 0; }
1485
+
1486
+ b-2 {
1487
+ j-1: 1; }
1488
+
1489
+ b-3 {
1490
+ j-1: 2; }
1491
+
1492
+ b-4 {
1493
+ j-1: 3; }
1494
+ CSS
1495
+ $a: 3
1496
+ @for $i from 0 to $a + 1
1497
+ a-\#{$i}
1498
+ two-i: 2 * $i
1499
+
1500
+ @for $j from 1 through 4
1501
+ b-\#{$j}
1502
+ j-1: $j - 1
1503
+ SASS
1504
+ end
1505
+
1506
+ def test_while
1507
+ assert_equal(<<CSS, render(<<SASS))
1508
+ a-5 {
1509
+ blooble: gloop; }
1510
+
1511
+ a-4 {
1512
+ blooble: gloop; }
1513
+
1514
+ a-3 {
1515
+ blooble: gloop; }
1516
+
1517
+ a-2 {
1518
+ blooble: gloop; }
1519
+
1520
+ a-1 {
1521
+ blooble: gloop; }
1522
+ CSS
1523
+ $a: 5
1524
+ @while $a != 0
1525
+ a-\#{$a}
1526
+ blooble: gloop
1527
+ $a: $a - 1 !global
1528
+ SASS
1529
+ end
1530
+
1531
+ def test_else
1532
+ assert_equal(<<CSS, render(<<SASS))
1533
+ a {
1534
+ t1: t;
1535
+ t2: t;
1536
+ t3: t;
1537
+ t4: t; }
1538
+ CSS
1539
+ a
1540
+ @if true
1541
+ t1: t
1542
+ @else
1543
+ f1: f
1544
+
1545
+ @if false
1546
+ f2: f
1547
+ @else
1548
+ t2: t
1549
+
1550
+ @if false
1551
+ f3: f1
1552
+ @else if 1 + 1 == 3
1553
+ f3: f2
1554
+ @else
1555
+ t3: t
1556
+
1557
+ @if false
1558
+ f4: f1
1559
+ @else if 1 + 1 == 2
1560
+ t4: t
1561
+ @else
1562
+ f4: f2
1563
+
1564
+ @if false
1565
+ f5: f1
1566
+ @else if false
1567
+ f5: f2
1568
+ SASS
1569
+ end
1570
+
1571
+ def test_each
1572
+ assert_equal(<<CSS, render(<<SASS))
1573
+ a {
1574
+ b: 1px;
1575
+ b: 2px;
1576
+ b: 3px;
1577
+ b: 4px;
1578
+ c: foo;
1579
+ c: bar;
1580
+ c: baz;
1581
+ c: bang;
1582
+ d: blue; }
1583
+ CSS
1584
+ a
1585
+ @each $number in 1px 2px 3px 4px
1586
+ b: $number
1587
+ @each $str in foo, bar, baz, bang
1588
+ c: $str
1589
+ @each $single in blue
1590
+ d: $single
1591
+ SASS
1592
+ end
1593
+
1594
+ def test_destructuring_each
1595
+ assert_equal <<CSS, render(<<SCSS)
1596
+ a {
1597
+ foo: 1px;
1598
+ bar: 2px;
1599
+ baz: 3px; }
1600
+
1601
+ c {
1602
+ foo: "Value is bar";
1603
+ bar: "Value is baz";
1604
+ bang: "Value is "; }
1605
+ CSS
1606
+ a
1607
+ @each $name, $number in (foo: 1px, bar: 2px, baz: 3px)
1608
+ \#{$name}: $number
1609
+ c
1610
+ @each $key, $value in (foo bar) (bar, baz) bang
1611
+ \#{$key}: "Value is \#{$value}"
1612
+ SCSS
1613
+ end
1614
+
1615
+ def test_variable_reassignment
1616
+ assert_equal(<<CSS, render(<<SASS))
1617
+ a {
1618
+ b: 1;
1619
+ c: 2; }
1620
+ CSS
1621
+ a
1622
+ $a: 1
1623
+ b: $a
1624
+ $a: 2
1625
+ c: $a
1626
+ SASS
1627
+ end
1628
+
1629
+ def test_hyphen_underscore_insensitive_variables
1630
+ assert_equal(<<CSS, render(<<SASS))
1631
+ d {
1632
+ e: 13;
1633
+ f: foobar; }
1634
+ CSS
1635
+ $var-hyphen: 12
1636
+ $var_under: foo
1637
+
1638
+ $var_hyphen: 1 + $var_hyphen
1639
+ $var-under: $var-under + bar
1640
+
1641
+ d
1642
+ e: $var-hyphen
1643
+ f: $var_under
1644
+ SASS
1645
+ end
1646
+
1647
+ def test_css_identifier_variable
1648
+ assert_equal(<<CSS, render(<<SASS))
1649
+ a {
1650
+ b: 12; }
1651
+ CSS
1652
+ $\\{foo\\(12\\): 12
1653
+
1654
+ a
1655
+ b: $\\{foo\\(12\\)
1656
+ SASS
1657
+ end
1658
+
1659
+ def test_important
1660
+ assert_equal(<<CSS, render(<<SASS))
1661
+ a {
1662
+ b: 12px !important; }
1663
+ CSS
1664
+ $foo: 12px
1665
+ a
1666
+ b: $foo !important
1667
+ SASS
1668
+ end
1669
+
1670
+ def test_argument_error
1671
+ assert_raises(Sass::SyntaxError) { render("a\n b: hsl(1)") }
1672
+ end
1673
+
1674
+ def test_comments_at_the_top_of_a_document
1675
+ render(<<SASS)
1676
+ //
1677
+ This is a comment that
1678
+ continues to the second line.
1679
+ foo
1680
+ bar: baz
1681
+ SASS
1682
+ end
1683
+
1684
+ def test_loud_comments_containing_a_comment_close
1685
+ actual_css = render(<<SASS)
1686
+ /*
1687
+ This is a comment that
1688
+ continues to the second line. */
1689
+ foo
1690
+ bar: baz
1691
+ SASS
1692
+ assert_equal(<<CSS, actual_css)
1693
+ /* This is a comment that
1694
+ * continues to the second line. */
1695
+ foo {
1696
+ bar: baz; }
1697
+ CSS
1698
+ end
1699
+
1700
+ def test_loud_comments_with_starred_lines
1701
+ assert_equal(<<CSS, render(<<SASS))
1702
+ /* This is a comment that
1703
+ * continues to the second line.
1704
+ * And even to the third! */
1705
+ CSS
1706
+ /* This is a comment that
1707
+ * continues to the second line.
1708
+ * And even to the third!
1709
+ SASS
1710
+ end
1711
+
1712
+ def test_loud_comments_with_no_space_after_starred_lines
1713
+ assert_equal(<<CSS, render(<<SASS))
1714
+ /*bip bop
1715
+ *beep boop
1716
+ *bap blimp */
1717
+ CSS
1718
+ /*bip bop
1719
+ *beep boop
1720
+ *bap blimp
1721
+ SASS
1722
+ end
1723
+
1724
+ def test_comment_indentation_at_beginning_of_doc
1725
+ assert_equal <<CSS, render(<<SASS)
1726
+ /* foo
1727
+ * bar
1728
+ * baz */
1729
+ foo {
1730
+ a: b; }
1731
+ CSS
1732
+ /* foo
1733
+ bar
1734
+ baz
1735
+ foo
1736
+ a: b
1737
+ SASS
1738
+ end
1739
+
1740
+ def test_unusual_comment_indentation
1741
+ assert_equal <<CSS, render(<<SASS)
1742
+ foo {
1743
+ /* foo
1744
+ * bar
1745
+ * baz */ }
1746
+ CSS
1747
+ foo
1748
+ /* foo
1749
+ bar
1750
+ baz
1751
+ SASS
1752
+ end
1753
+
1754
+ def test_loud_comment_with_close
1755
+ assert_equal <<CSS, render(<<SASS)
1756
+ foo {
1757
+ /* foo
1758
+ * bar */ }
1759
+ CSS
1760
+ foo
1761
+ /* foo
1762
+ bar */
1763
+ SASS
1764
+ end
1765
+
1766
+ def test_loud_comment_with_separate_line_close
1767
+ assert_equal <<CSS, render(<<SASS)
1768
+ foo {
1769
+ /* foo
1770
+ * bar
1771
+ */ }
1772
+ CSS
1773
+ foo
1774
+ /* foo
1775
+ * bar
1776
+ */
1777
+ SASS
1778
+ end
1779
+
1780
+ def test_loud_comment_in_compressed_mode
1781
+ assert_equal <<CSS, render(<<SASS, :style => :compressed)
1782
+ foo{color:blue;/*! foo
1783
+ * bar
1784
+ */}
1785
+ CSS
1786
+ foo
1787
+ color: blue
1788
+ /*! foo
1789
+ * bar
1790
+ */
1791
+ SASS
1792
+ end
1793
+
1794
+ def test_loud_comment_is_evaluated
1795
+ assert_equal <<CSS, render(<<SASS)
1796
+ /*! Hue: 327.21649deg */
1797
+ CSS
1798
+ /*! Hue: \#{hue(#f836a0)}
1799
+ SASS
1800
+ end
1801
+
1802
+ def test_attribute_selector_with_spaces
1803
+ assert_equal(<<CSS, render(<<SASS))
1804
+ a b[foo=bar] {
1805
+ c: d; }
1806
+ CSS
1807
+ a
1808
+ b[foo = bar]
1809
+ c: d
1810
+ SASS
1811
+ end
1812
+
1813
+ def test_quoted_colon
1814
+ assert_equal(<<CSS, render(<<SASS))
1815
+ a b[foo="bar: baz"] {
1816
+ c: d; }
1817
+ CSS
1818
+ a
1819
+ b[foo="bar: baz"]
1820
+ c: d
1821
+ SASS
1822
+ end
1823
+
1824
+ def test_quoted_comma
1825
+ assert_equal(<<CSS, render(<<SASS))
1826
+ a b[foo="bar, baz"] {
1827
+ c: d; }
1828
+ CSS
1829
+ a
1830
+ b[foo="bar, baz"]
1831
+ c: d
1832
+ SASS
1833
+ end
1834
+
1835
+ def test_quoted_ampersand
1836
+ assert_equal(<<CSS, render(<<SASS))
1837
+ a b[foo="bar & baz"] {
1838
+ c: d; }
1839
+ CSS
1840
+ a
1841
+ b[foo="bar & baz"]
1842
+ c: d
1843
+ SASS
1844
+ end
1845
+
1846
+ def test_empty_selector_warning
1847
+ assert_warning(<<END) {render("foo bar")}
1848
+ WARNING on line 1 of test_empty_selector_warning_inline.sass:
1849
+ This selector doesn't have any properties and will not be rendered.
1850
+ END
1851
+ end
1852
+
1853
+ def test_nonprinting_empty_property
1854
+ assert_equal(<<CSS, render(<<SASS))
1855
+ a {
1856
+ c: "";
1857
+ e: f; }
1858
+ CSS
1859
+ $null-value: null
1860
+ $empty-string: ''
1861
+ $empty-list: (null)
1862
+ a
1863
+ b: $null-value
1864
+ c: $empty-string
1865
+ d: $empty-list
1866
+ e: f
1867
+
1868
+ g
1869
+ h: null
1870
+ SASS
1871
+ end
1872
+
1873
+ def test_root_level_pseudo_class_with_new_properties
1874
+ assert_equal(<<CSS, render(<<SASS, :property_syntax => :new))
1875
+ :focus {
1876
+ outline: 0; }
1877
+ CSS
1878
+ :focus
1879
+ outline: 0
1880
+ SASS
1881
+ end
1882
+
1883
+ def test_pseudo_class_with_new_properties
1884
+ assert_equal(<<CSS, render(<<SASS, :property_syntax => :new))
1885
+ p :focus {
1886
+ outline: 0; }
1887
+ CSS
1888
+ p
1889
+ :focus
1890
+ outline: 0
1891
+ SASS
1892
+ end
1893
+
1894
+ def test_nil_option
1895
+ assert_equal(<<CSS, render(<<SASS, :format => nil))
1896
+ foo {
1897
+ a: b; }
1898
+ CSS
1899
+ foo
1900
+ a: b
1901
+ SASS
1902
+ end
1903
+
1904
+ def test_interpolation_in_raw_functions
1905
+ assert_equal(<<CSS, render(<<SASS))
1906
+ foo {
1907
+ filter: progid:Microsoft.foo.bar.Baz(flip=foobar, bang=#00ff00cc); }
1908
+ CSS
1909
+ foo
1910
+ filter: progid:Microsoft.foo.bar.Baz(flip=\#{foo + bar}, bang=#00ff00cc)
1911
+ SASS
1912
+ end
1913
+
1914
+ # SassScript string behavior
1915
+
1916
+ def test_plus_preserves_quotedness
1917
+ assert_equal(<<CSS, render(<<SASS))
1918
+ foo {
1919
+ a: "foo1";
1920
+ b: "1foo";
1921
+ c: foo1;
1922
+ d: 1foo;
1923
+ e: "foobar";
1924
+ f: foobar; }
1925
+ CSS
1926
+ foo
1927
+ a: "foo" + 1
1928
+ b: 1 + "foo"
1929
+ c: foo + 1
1930
+ d: 1 + foo
1931
+ e: "foo" + bar
1932
+ f: foo + "bar"
1933
+ SASS
1934
+ end
1935
+
1936
+ def test_colon_properties_preserve_quotedness
1937
+ assert_equal(<<CSS, render(<<SASS))
1938
+ foo {
1939
+ a: "foo";
1940
+ b: bar;
1941
+ c: "foo" bar;
1942
+ d: foo, "bar"; }
1943
+ CSS
1944
+ foo
1945
+ a: "foo"
1946
+ b: bar
1947
+ c: "foo" bar
1948
+ d: foo, "bar"
1949
+ SASS
1950
+ end
1951
+
1952
+ def test_colon_variables_preserve_quotedness
1953
+ assert_equal(<<CSS, render(<<SASS))
1954
+ foo {
1955
+ a: "foo";
1956
+ b: bar; }
1957
+ CSS
1958
+ $a: "foo"
1959
+ $b: bar
1960
+
1961
+ foo
1962
+ a: $a
1963
+ b: $b
1964
+ SASS
1965
+ end
1966
+
1967
+ def test_colon_args_preserve_quotedness
1968
+ assert_equal(<<CSS, render(<<SASS))
1969
+ foo {
1970
+ a: "foo";
1971
+ b: bar;
1972
+ c: "foo" bar;
1973
+ d: foo, "bar"; }
1974
+ CSS
1975
+ =foo($a: "foo", $b: bar, $c: "foo" bar, $d: (foo, "bar"))
1976
+ foo
1977
+ a: $a
1978
+ b: $b
1979
+ c: $c
1980
+ d: $d
1981
+
1982
+ +foo
1983
+ SASS
1984
+ end
1985
+
1986
+ def test_interpolation_unquotes_strings
1987
+ assert_equal(<<CSS, render(<<SASS))
1988
+ .foo-bar {
1989
+ a: b; }
1990
+ CSS
1991
+ .foo-\#{"bar"}
1992
+ a: b
1993
+ SASS
1994
+
1995
+ assert_equal(<<CSS, render(<<SASS))
1996
+ .foo {
1997
+ a: b c; }
1998
+ CSS
1999
+ .foo
2000
+ a: b \#{"c"}
2001
+ SASS
2002
+ end
2003
+
2004
+ def test_interpolation_unquotes_strings_in_vars
2005
+ assert_equal(<<CSS, render(<<SASS))
2006
+ .foo-bar {
2007
+ a: b; }
2008
+ CSS
2009
+ $var: "bar"
2010
+
2011
+ .foo-\#{$var}
2012
+ a: b
2013
+ SASS
2014
+ end
2015
+
2016
+ def test_interpolation_deep_unquotes_strings
2017
+ assert_equal(<<CSS, render(<<SASS))
2018
+ .foo {
2019
+ a: bar baz; }
2020
+ CSS
2021
+ .foo
2022
+ a: \#{"bar" "baz"}
2023
+ SASS
2024
+ end
2025
+
2026
+ def test_warn_directive
2027
+ expected_warning = <<EXPECTATION
2028
+ WARNING: this is a warning
2029
+ on line 4 of test_warn_directive_inline.sass
2030
+
2031
+ WARNING: this is a mixin warning
2032
+ on line 2 of test_warn_directive_inline.sass, in `foo'
2033
+ from line 7 of test_warn_directive_inline.sass
2034
+ EXPECTATION
2035
+ assert_warning expected_warning do
2036
+ assert_equal <<CSS, render(<<SASS)
2037
+ bar {
2038
+ c: d; }
2039
+ CSS
2040
+ =foo
2041
+ @warn "this is a mixin warning"
2042
+
2043
+ @warn "this is a warning"
2044
+ bar
2045
+ c: d
2046
+ +foo
2047
+ SASS
2048
+ end
2049
+ end
2050
+
2051
+ def test_warn_directive_when_quiet
2052
+ assert_warning "" do
2053
+ assert_equal <<CSS, render(<<SASS, :quiet => true)
2054
+ CSS
2055
+ @warn "this is a warning"
2056
+ SASS
2057
+ end
2058
+ end
2059
+
2060
+ def test_warn_with_imports
2061
+ prefix = Sass::Util.cleanpath(File.dirname(__FILE__)).to_s
2062
+ expected_warning = <<WARN
2063
+ WARNING: In the main file
2064
+ on line 1 of #{prefix}/templates/warn.sass
2065
+
2066
+ WARNING: Imported
2067
+ on line 1 of #{prefix}/templates/warn_imported.sass
2068
+ from line 2 of #{prefix}/templates/warn.sass
2069
+
2070
+ WARNING: In an imported mixin
2071
+ on line 4 of #{prefix}/templates/warn_imported.sass, in `emits-a-warning'
2072
+ from line 3 of #{prefix}/templates/warn.sass
2073
+ WARN
2074
+ assert_warning expected_warning do
2075
+ renders_correctly "warn", :style => :compact, :load_paths => ["#{prefix}/templates"]
2076
+ end
2077
+ end
2078
+
2079
+ def test_media_bubbling
2080
+ assert_equal <<CSS, render(<<SASS)
2081
+ .foo {
2082
+ a: b; }
2083
+ @media bar {
2084
+ .foo {
2085
+ c: d; } }
2086
+ .foo .baz {
2087
+ e: f; }
2088
+ @media bip {
2089
+ .foo .baz {
2090
+ g: h; } }
2091
+
2092
+ .other {
2093
+ i: j; }
2094
+ CSS
2095
+ .foo
2096
+ a: b
2097
+ @media bar
2098
+ c: d
2099
+ .baz
2100
+ e: f
2101
+ @media bip
2102
+ g: h
2103
+
2104
+ .other
2105
+ i: j
2106
+ SASS
2107
+
2108
+ assert_equal <<CSS, render(<<SASS, :style => :compact)
2109
+ .foo { a: b; }
2110
+ @media bar { .foo { c: d; } }
2111
+ .foo .baz { e: f; }
2112
+ @media bip { .foo .baz { g: h; } }
2113
+
2114
+ .other { i: j; }
2115
+ CSS
2116
+ .foo
2117
+ a: b
2118
+ @media bar
2119
+ c: d
2120
+ .baz
2121
+ e: f
2122
+ @media bip
2123
+ g: h
2124
+
2125
+ .other
2126
+ i: j
2127
+ SASS
2128
+
2129
+ assert_equal <<CSS, render(<<SASS, :style => :expanded)
2130
+ .foo {
2131
+ a: b;
2132
+ }
2133
+ @media bar {
2134
+ .foo {
2135
+ c: d;
2136
+ }
2137
+ }
2138
+ .foo .baz {
2139
+ e: f;
2140
+ }
2141
+ @media bip {
2142
+ .foo .baz {
2143
+ g: h;
2144
+ }
2145
+ }
2146
+
2147
+ .other {
2148
+ i: j;
2149
+ }
2150
+ CSS
2151
+ .foo
2152
+ a: b
2153
+ @media bar
2154
+ c: d
2155
+ .baz
2156
+ e: f
2157
+ @media bip
2158
+ g: h
2159
+
2160
+ .other
2161
+ i: j
2162
+ SASS
2163
+ end
2164
+
2165
+ def test_double_media_bubbling
2166
+ assert_equal <<CSS, render(<<SASS)
2167
+ @media bar and (a: b) {
2168
+ .foo {
2169
+ c: d; } }
2170
+ CSS
2171
+ @media bar
2172
+ @media (a: b)
2173
+ .foo
2174
+ c: d
2175
+ SASS
2176
+
2177
+ assert_equal <<CSS, render(<<SASS)
2178
+ @media bar {
2179
+ .foo {
2180
+ a: b; } }
2181
+ @media bar and (a: b) {
2182
+ .foo {
2183
+ c: d; } }
2184
+ CSS
2185
+ .foo
2186
+ @media bar
2187
+ a: b
2188
+ @media (a: b)
2189
+ c: d
2190
+ SASS
2191
+ end
2192
+
2193
+ def test_double_media_bubbling_with_commas
2194
+ assert_equal <<CSS, render(<<SASS)
2195
+ @media (a: b) and (e: f), (c: d) and (e: f), (a: b) and (g: h), (c: d) and (g: h) {
2196
+ .foo {
2197
+ c: d; } }
2198
+ CSS
2199
+ @media (a: b), (c: d)
2200
+ @media (e: f), (g: h)
2201
+ .foo
2202
+ c: d
2203
+ SASS
2204
+ end
2205
+
2206
+ def test_double_media_bubbling_with_surrounding_rules
2207
+ assert_equal <<CSS, render(<<SASS)
2208
+ @media (min-width: 0) {
2209
+ a {
2210
+ a: a; }
2211
+
2212
+ b {
2213
+ before: b;
2214
+ after: b; } }
2215
+ @media (min-width: 0) and (max-width: 5000px) {
2216
+ b {
2217
+ x: x; } }
2218
+
2219
+ @media (min-width: 0) {
2220
+ c {
2221
+ c: c; } }
2222
+ CSS
2223
+ @media (min-width: 0)
2224
+ a
2225
+ a: a
2226
+ b
2227
+ before: b
2228
+ @media (max-width: 5000px)
2229
+ x: x
2230
+ after: b
2231
+ c
2232
+ c: c
2233
+ SASS
2234
+ end
2235
+
2236
+ def test_rule_media_rule_bubbling
2237
+ assert_equal <<CSS, render(<<SASS)
2238
+ @media bar {
2239
+ .foo {
2240
+ a: b;
2241
+ e: f; }
2242
+ .foo .baz {
2243
+ c: d; } }
2244
+ CSS
2245
+ .foo
2246
+ @media bar
2247
+ a: b
2248
+ .baz
2249
+ c: d
2250
+ e: f
2251
+ SASS
2252
+ end
2253
+
2254
+ def test_nested_media_around_properties
2255
+ assert_equal <<CSS, render(<<SASS)
2256
+ .outside {
2257
+ color: red;
2258
+ background: blue; }
2259
+ @media print {
2260
+ .outside {
2261
+ color: black; } }
2262
+ @media print and (a: b) {
2263
+ .outside .inside {
2264
+ border: 1px solid black; } }
2265
+
2266
+ .outside .middle {
2267
+ display: block; }
2268
+ CSS
2269
+ .outside
2270
+ color: red
2271
+ @media print
2272
+ color: black
2273
+ .inside
2274
+ @media (a: b)
2275
+ border: 1px solid black
2276
+ background: blue
2277
+ .middle
2278
+ display: block
2279
+ SASS
2280
+ end
2281
+
2282
+ def test_media_with_parent_references
2283
+ sass_str = <<SASS
2284
+ .outside
2285
+ @media print
2286
+ &.inside
2287
+ border: 1px solid black
2288
+ SASS
2289
+ css_str = <<CSS
2290
+ @media print {
2291
+ .outside.inside {
2292
+ border: 1px solid black; } }
2293
+ CSS
2294
+ assert_equal css_str, render(sass_str)
2295
+ end
2296
+
2297
+ def test_eliminated_media_bubbling
2298
+ assert_equal <<CSS, render(<<SASS)
2299
+ @media screen {
2300
+ a: b; }
2301
+ CSS
2302
+ @media screen
2303
+ a: b
2304
+ @media print
2305
+ c: d
2306
+ SASS
2307
+
2308
+ assert_equal <<CSS, render(<<SASS)
2309
+ @media not print {
2310
+ a: b; }
2311
+ CSS
2312
+ @media not print
2313
+ a: b
2314
+ @media print
2315
+ c: d
2316
+ SASS
2317
+
2318
+ assert_equal <<CSS, render(<<SASS)
2319
+ @media not print {
2320
+ a: b; }
2321
+ CSS
2322
+ @media not print
2323
+ a: b
2324
+ @media not screen
2325
+ c: d
2326
+ SASS
2327
+ end
2328
+
2329
+ def test_non_eliminated_media_bubbling
2330
+ assert_equal <<CSS, render(<<SASS)
2331
+ @media screen {
2332
+ a: b; }
2333
+ @media screen and (a: b) {
2334
+ c: d; }
2335
+ CSS
2336
+ @media screen
2337
+ a: b
2338
+ @media screen and (a: b)
2339
+ c: d
2340
+ SASS
2341
+
2342
+ assert_equal <<CSS, render(<<SASS)
2343
+ @media not print {
2344
+ a: b; }
2345
+ @media screen {
2346
+ c: d; }
2347
+ CSS
2348
+ @media not print
2349
+ a: b
2350
+ @media screen
2351
+ c: d
2352
+ SASS
2353
+
2354
+ assert_equal <<CSS, render(<<SASS)
2355
+ @media only screen {
2356
+ a: b; }
2357
+ @media only screen and (a: b) {
2358
+ c: d; }
2359
+ CSS
2360
+ @media only screen
2361
+ a: b
2362
+ @media screen and (a: b)
2363
+ c: d
2364
+ SASS
2365
+ end
2366
+
2367
+ def test_directive_interpolation
2368
+ assert_equal <<CSS, render(<<SASS)
2369
+ @foo bar12 qux {
2370
+ a: b; }
2371
+ CSS
2372
+ $baz: 12
2373
+ @foo bar\#{$baz} qux
2374
+ a: b
2375
+ SASS
2376
+ end
2377
+
2378
+ def test_media_interpolation
2379
+ assert_equal <<CSS, render(<<SASS)
2380
+ @media bar12 {
2381
+ a: b; }
2382
+ CSS
2383
+ $baz: 12
2384
+ @media bar\#{$baz}
2385
+ a: b
2386
+ SASS
2387
+ end
2388
+
2389
+ def test_variables_in_media
2390
+ assert_equal <<CSS, render(<<SASS)
2391
+ @media screen and (-webkit-min-device-pixel-ratio-foo: 25), only print {
2392
+ a: b; }
2393
+ CSS
2394
+ $media1: screen
2395
+ $media2: print
2396
+ $var: -webkit-min-device-pixel-ratio
2397
+ $val: 20
2398
+ @media \#{$media1} and ($var + "-foo": $val + 5), only \#{$media2}
2399
+ a: b
2400
+ SASS
2401
+ end
2402
+
2403
+ def test_at_root
2404
+ assert_equal <<CSS, render(<<SASS)
2405
+ .bar {
2406
+ a: b; }
2407
+ CSS
2408
+ .foo
2409
+ @at-root
2410
+ .bar
2411
+ a: b
2412
+ SASS
2413
+ end
2414
+
2415
+ def test_at_root_with_selector
2416
+ assert_equal <<CSS, render(<<SASS)
2417
+ .bar {
2418
+ a: b; }
2419
+ CSS
2420
+ .foo
2421
+ @at-root .bar
2422
+ a: b
2423
+ SASS
2424
+ end
2425
+
2426
+ def test_at_root_with_query
2427
+ assert_equal <<CSS, render(<<SASS)
2428
+ .foo .bar {
2429
+ a: b; }
2430
+ CSS
2431
+ .foo
2432
+ @media screen
2433
+ @at-root (without: media)
2434
+ .bar
2435
+ a: b
2436
+ SASS
2437
+ end
2438
+
2439
+ def test_variable_assignment_with_global
2440
+ assert_no_warning {assert_equal(<<CSS, render(<<SASS))}
2441
+ .foo {
2442
+ a: x; }
2443
+
2444
+ .bar {
2445
+ b: x; }
2446
+ CSS
2447
+ $var: 1
2448
+
2449
+ .foo
2450
+ $var: x !global
2451
+ a: $var
2452
+
2453
+ .bar
2454
+ b: $var
2455
+ SASS
2456
+ end
2457
+
2458
+ # Regression tests
2459
+
2460
+ def test_interpolation_in_multiline_selector
2461
+ assert_equal(<<CSS, render(<<SASS))
2462
+ .foo,
2463
+ .bar {
2464
+ a: b; }
2465
+ CSS
2466
+ .foo,
2467
+ \#{".bar"}
2468
+ a: b
2469
+ SASS
2470
+ end
2471
+
2472
+ def test_list_separator_with_arg_list
2473
+ assert_equal(<<CSS, render(<<SASS))
2474
+ .test {
2475
+ separator: comma; }
2476
+ CSS
2477
+ @mixin arglist-test($args...)
2478
+ separator: list-separator($args)
2479
+
2480
+ .test
2481
+ @include arglist-test(this, is, comma, separated)
2482
+ SASS
2483
+ end
2484
+
2485
+ def test_parent_mixin_in_content_nested
2486
+ assert_equal(<<CSS, render(<<SASS))
2487
+ a {
2488
+ b: c; }
2489
+ CSS
2490
+ =foo
2491
+ @content
2492
+
2493
+ =bar
2494
+ +foo
2495
+ +foo
2496
+ a
2497
+ b: c
2498
+
2499
+ +bar
2500
+ SASS
2501
+ end
2502
+
2503
+ def test_supports_bubbles
2504
+ assert_equal <<CSS, render(<<SASS)
2505
+ parent {
2506
+ background: orange; }
2507
+ @supports (perspective: 10px) or (-moz-perspective: 10px) {
2508
+ parent child {
2509
+ background: blue; } }
2510
+ CSS
2511
+ parent
2512
+ background: orange
2513
+ @supports (perspective: 10px) or (-moz-perspective: 10px)
2514
+ child
2515
+ background: blue
2516
+ SASS
2517
+ end
2518
+
2519
+ def test_line_numbers_with_dos_line_endings
2520
+ assert_equal <<CSS, render(<<SASS, :line_comments => true)
2521
+ /* line 5, test_line_numbers_with_dos_line_endings_inline.sass */
2522
+ .foo {
2523
+ a: b; }
2524
+ CSS
2525
+ \r
2526
+ \r
2527
+ \r
2528
+ \r
2529
+ .foo
2530
+ a: b
2531
+ SASS
2532
+ end
2533
+
2534
+ def test_variable_in_media_in_mixin
2535
+ assert_equal <<CSS, render(<<SASS)
2536
+ @media screen and (min-width: 10px) {
2537
+ body {
2538
+ background: red; } }
2539
+ @media screen and (min-width: 20px) {
2540
+ body {
2541
+ background: blue; } }
2542
+ CSS
2543
+ @mixin respond-to($width)
2544
+ @media screen and (min-width: $width)
2545
+ @content
2546
+
2547
+ body
2548
+ @include respond-to(10px)
2549
+ background: red
2550
+ @include respond-to(20px)
2551
+ background: blue
2552
+ SASS
2553
+ end
2554
+
2555
+ def test_interpolated_comment_in_mixin
2556
+ assert_equal <<CSS, render(<<SASS)
2557
+ /*! color: red */
2558
+ .foo {
2559
+ color: red; }
2560
+
2561
+ /*! color: blue */
2562
+ .foo {
2563
+ color: blue; }
2564
+
2565
+ /*! color: green */
2566
+ .foo {
2567
+ color: green; }
2568
+ CSS
2569
+ =foo($var)
2570
+ /*! color: \#{$var}
2571
+ .foo
2572
+ color: $var
2573
+
2574
+ +foo(red)
2575
+ +foo(blue)
2576
+ +foo(green)
2577
+ SASS
2578
+ end
2579
+
2580
+ def test_parens_in_mixins
2581
+ assert_equal(<<CSS, render(<<SASS))
2582
+ .foo {
2583
+ color: #01ff7f;
2584
+ background-color: #000102; }
2585
+ CSS
2586
+ =foo($c1, $c2: rgb(0, 1, 2))
2587
+ color: $c1
2588
+ background-color: $c2
2589
+
2590
+ .foo
2591
+ +foo(rgb(1,255,127))
2592
+ SASS
2593
+ end
2594
+
2595
+ def test_comment_beneath_prop
2596
+ assert_equal(<<RESULT, render(<<SOURCE))
2597
+ .box {
2598
+ border-style: solid; }
2599
+ RESULT
2600
+ .box
2601
+ :border
2602
+ //:color black
2603
+ :style solid
2604
+ SOURCE
2605
+
2606
+ assert_equal(<<RESULT, render(<<SOURCE))
2607
+ .box {
2608
+ /* :color black */
2609
+ border-style: solid; }
2610
+ RESULT
2611
+ .box
2612
+ :border
2613
+ /* :color black
2614
+ :style solid
2615
+ SOURCE
2616
+
2617
+ assert_equal(<<RESULT, render(<<SOURCE, :style => :compressed))
2618
+ .box{border-style:solid}
2619
+ RESULT
2620
+ .box
2621
+ :border
2622
+ /*:color black
2623
+ :style solid
2624
+ SOURCE
2625
+ end
2626
+
2627
+ def test_compressed_comment_beneath_directive
2628
+ assert_equal(<<RESULT, render(<<SOURCE, :style => :compressed))
2629
+ @foo{a:b}
2630
+ RESULT
2631
+ @foo
2632
+ a: b
2633
+ /*b: c
2634
+ SOURCE
2635
+ end
2636
+
2637
+ def test_comment_with_crazy_indentation
2638
+ assert_equal(<<CSS, render(<<SASS))
2639
+ /* This is a loud comment:
2640
+ * Where the indentation is wonky. */
2641
+ .comment {
2642
+ width: 1px; }
2643
+ CSS
2644
+ /*
2645
+ This is a loud comment:
2646
+ Where the indentation is wonky.
2647
+ //
2648
+ This is a silent comment:
2649
+ Where the indentation is wonky.
2650
+ .comment
2651
+ width: 1px
2652
+ SASS
2653
+ end
2654
+
2655
+ def test_plus_with_space
2656
+ assert_equal(<<CSS, render(<<SASS))
2657
+ a + b {
2658
+ color: green; }
2659
+ CSS
2660
+ a
2661
+ + b
2662
+ color: green
2663
+ SASS
2664
+ end
2665
+
2666
+ def test_empty_line_comment
2667
+ assert_equal(<<CSS, render(<<SASS))
2668
+ /* Foo
2669
+ *
2670
+ * Bar */
2671
+ CSS
2672
+ /*
2673
+ Foo
2674
+
2675
+ Bar
2676
+ SASS
2677
+ end
2678
+
2679
+ def test_empty_comment
2680
+ assert_equal(<<CSS, render(<<SASS))
2681
+ /* */
2682
+ a {
2683
+ /* */
2684
+ b: c; }
2685
+ CSS
2686
+ /*
2687
+ a
2688
+ /*
2689
+ b: c
2690
+ SASS
2691
+ end
2692
+
2693
+ def test_options_available_in_environment
2694
+ assert_equal(<<CSS, render(<<SASS))
2695
+ a {
2696
+ b: nested; }
2697
+ CSS
2698
+ a
2699
+ b: option("style")
2700
+ SASS
2701
+ end
2702
+
2703
+ def test_mixin_no_arg_error
2704
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "($bar,": expected variable (e.g. $foo), was ")"') do
2705
+ render(<<SASS)
2706
+ =foo($bar,)
2707
+ bip: bap
2708
+ SASS
2709
+ end
2710
+ end
2711
+
2712
+ def test_import_with_commas_in_url
2713
+ assert_equal <<CSS, render(<<SASS)
2714
+ @import url(foo.css?bar,baz);
2715
+ CSS
2716
+ @import url(foo.css?bar,baz)
2717
+ SASS
2718
+ end
2719
+
2720
+ def test_silent_comment_in_prop_val_after_important
2721
+ assert_equal(<<CSS, render(<<SASS))
2722
+ .advanced {
2723
+ display: none !important; }
2724
+ CSS
2725
+ .advanced
2726
+ display: none !important // yeah, yeah. it's not really a style anyway.
2727
+ SASS
2728
+ end
2729
+
2730
+ def test_mixin_with_keyword_args
2731
+ assert_equal <<CSS, render(<<SASS)
2732
+ .mixed {
2733
+ required: foo;
2734
+ arg1: default-val1;
2735
+ arg2: non-default-val2; }
2736
+ CSS
2737
+ =a-mixin($required, $arg1: default-val1, $arg2: default-val2)
2738
+ required: $required
2739
+ arg1: $arg1
2740
+ arg2: $arg2
2741
+ .mixed
2742
+ +a-mixin(foo, $arg2: non-default-val2)
2743
+ SASS
2744
+ end
2745
+
2746
+ def test_mixin_with_keyword_arg_variable_value
2747
+ assert_equal <<CSS, render(<<SASS)
2748
+ .mixed {
2749
+ required: foo;
2750
+ arg1: default-val1;
2751
+ arg2: a-value; }
2752
+ CSS
2753
+ =a-mixin($required, $arg1: default-val1, $arg2: default-val2)
2754
+ required: $required
2755
+ arg1: $arg1
2756
+ arg2: $arg2
2757
+ .mixed
2758
+ $a-value: a-value
2759
+ +a-mixin(foo, $arg2: $a-value)
2760
+ SASS
2761
+ end
2762
+
2763
+ def test_mixin_keyword_args_handle_variable_underscore_dash_equivalence
2764
+ assert_equal <<CSS, render(<<SASS)
2765
+ .mixed {
2766
+ required: foo;
2767
+ arg1: non-default-val1;
2768
+ arg2: non-default-val2; }
2769
+ CSS
2770
+ =a-mixin($required, $arg-1: default-val1, $arg_2: default-val2)
2771
+ required: $required
2772
+ arg1: $arg_1
2773
+ arg2: $arg-2
2774
+ .mixed
2775
+ +a-mixin(foo, $arg-2: non-default-val2, $arg_1: non-default-val1)
2776
+ SASS
2777
+ end
2778
+
2779
+ def test_passing_required_args_as_a_keyword_arg
2780
+ assert_equal <<CSS, render(<<SASS)
2781
+ .mixed {
2782
+ required: foo;
2783
+ arg1: default-val1;
2784
+ arg2: default-val2; }
2785
+ CSS
2786
+ =a-mixin($required, $arg1: default-val1, $arg2: default-val2)
2787
+ required: $required
2788
+ arg1: $arg1
2789
+ arg2: $arg2
2790
+ .mixed
2791
+ +a-mixin($required: foo)
2792
+ SASS
2793
+ end
2794
+
2795
+ def test_passing_all_as_keyword_args_in_opposite_order
2796
+ assert_equal <<CSS, render(<<SASS)
2797
+ .mixed {
2798
+ required: foo;
2799
+ arg1: non-default-val1;
2800
+ arg2: non-default-val2; }
2801
+ CSS
2802
+ =a-mixin($required, $arg1: default-val1, $arg2: default-val2)
2803
+ required: $required
2804
+ arg1: $arg1
2805
+ arg2: $arg2
2806
+ .mixed
2807
+ +a-mixin($arg2: non-default-val2, $arg1: non-default-val1, $required: foo)
2808
+ SASS
2809
+ end
2810
+
2811
+ def test_function_output_with_comma
2812
+ assert_equal <<CSS, render(<<SASS)
2813
+ foo {
2814
+ a: b(c), d(e); }
2815
+ CSS
2816
+ foo
2817
+ a: b(c), d(e)
2818
+ SASS
2819
+ end
2820
+
2821
+ def test_interpolation_with_comma
2822
+ assert_equal <<CSS, render(<<SASS)
2823
+ foo {
2824
+ a: foo, bar; }
2825
+ CSS
2826
+ $foo: foo
2827
+ foo
2828
+ a: \#{$foo}, bar
2829
+ SASS
2830
+ end
2831
+
2832
+ def test_string_interpolation_with_comma
2833
+ assert_equal <<CSS, render(<<SASS)
2834
+ foo {
2835
+ a: "bip foo bap", bar; }
2836
+ CSS
2837
+ $foo: foo
2838
+ foo
2839
+ a: "bip \#{$foo} bap", bar
2840
+ SASS
2841
+ end
2842
+
2843
+ def test_unknown_directive
2844
+ assert_equal <<CSS, render(<<SASS)
2845
+ @baz {
2846
+ c: d; }
2847
+ CSS
2848
+ @baz
2849
+ c: d
2850
+ SASS
2851
+ end
2852
+
2853
+ def test_loud_comment_interpolations_can_be_escaped
2854
+ assert_equal <<CSS, render(<<SASS)
2855
+ /* \#{foo} */
2856
+ CSS
2857
+ /* \\\#{foo}
2858
+ SASS
2859
+ assert_equal <<CSS, render(<<SASS)
2860
+ /*! \#{foo} */
2861
+ CSS
2862
+ /*! \\\#{foo}
2863
+ SASS
2864
+ end
2865
+
2866
+ def test_selector_compression
2867
+ assert_equal <<CSS, render(<<SASS, :style => :compressed)
2868
+ a>b,c+d,:-moz-any(e,f,g){h:i}
2869
+ CSS
2870
+ a > b, c + d, :-moz-any(e, f, g)
2871
+ h: i
2872
+ SASS
2873
+ end
2874
+
2875
+ def test_comment_like_selector
2876
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "/": expected identifier, was " foo"') {render(<<SASS)}
2877
+ / foo
2878
+ a: b
2879
+ SASS
2880
+ end
2881
+
2882
+ def test_nested_empty_directive
2883
+ assert_equal <<CSS, render(<<SASS)
2884
+ @media screen {
2885
+ .foo {
2886
+ a: b; }
2887
+
2888
+ @unknown-directive; }
2889
+ CSS
2890
+ @media screen
2891
+ .foo
2892
+ a: b
2893
+
2894
+ @unknown-directive
2895
+ SASS
2896
+ end
2897
+
2898
+ def test_original_filename_set
2899
+ importer = MockImporter.new
2900
+ importer.add_import("imported", "div{color:red}")
2901
+
2902
+ original_filename = filename_for_test
2903
+ engine = Sass::Engine.new('@import "imported"; div{color:blue}',
2904
+ :filename => original_filename, :load_paths => [importer], :syntax => :scss, :importer => importer)
2905
+ engine.render
2906
+
2907
+ assert_equal original_filename, engine.options[:original_filename]
2908
+ assert_equal original_filename, importer.engine("imported").options[:original_filename]
2909
+ end
2910
+
2911
+ def test_changing_precision
2912
+ old_precision = Sass::Script::Value::Number.precision
2913
+ begin
2914
+ Sass::Script::Value::Number.precision = 8
2915
+ assert_equal <<CSS, render(<<SASS)
2916
+ div {
2917
+ maximum: 1.00000001;
2918
+ too-much: 1; }
2919
+ CSS
2920
+ div
2921
+ maximum : 1.00000001
2922
+ too-much: 1.000000001
2923
+ SASS
2924
+ ensure
2925
+ Sass::Script::Value::Number.precision = old_precision
2926
+ end
2927
+ end
2928
+
2929
+ def test_content
2930
+ assert_equal <<CSS, render(<<SASS)
2931
+ .children {
2932
+ background-color: red;
2933
+ color: blue;
2934
+ border-color: red; }
2935
+ CSS
2936
+ $color: blue
2937
+ =context($class, $color: red)
2938
+ .\#{$class}
2939
+ background-color: $color
2940
+ @content
2941
+ border-color: $color
2942
+ +context(children)
2943
+ color: $color
2944
+ SASS
2945
+ end
2946
+
2947
+ def test_selector_in_content
2948
+ assert_equal <<CSS, render(<<SASS)
2949
+ .parent {
2950
+ background-color: red;
2951
+ border-color: red; }
2952
+ .parent .children {
2953
+ color: blue; }
2954
+ CSS
2955
+ $color: blue
2956
+ =context($class, $color: red)
2957
+ .\#{$class}
2958
+ background-color: $color
2959
+ @content
2960
+ border-color: $color
2961
+ +context(parent)
2962
+ .children
2963
+ color: $color
2964
+ SASS
2965
+ end
2966
+
2967
+ def test_using_parent_mixin_in_content
2968
+ assert_equal <<CSS, render(<<SASS)
2969
+ .parent {
2970
+ before-color: red;
2971
+ after-color: red; }
2972
+ .parent .sibling {
2973
+ before-color: yellow;
2974
+ after-color: yellow; }
2975
+ .parent .sibling .child {
2976
+ before-color: green;
2977
+ color: blue;
2978
+ after-color: green; }
2979
+ CSS
2980
+ $color: blue
2981
+ =context($class, $color: red)
2982
+ .\#{$class}
2983
+ before-color: $color
2984
+ @content
2985
+ after-color: $color
2986
+ +context(parent)
2987
+ +context(sibling, $color: yellow)
2988
+ +context(child, $color: green)
2989
+ color: $color
2990
+ SASS
2991
+ end
2992
+
2993
+ def test_content_more_than_once
2994
+ assert_equal <<CSS, render(<<SASS)
2995
+ .once {
2996
+ color: blue; }
2997
+
2998
+ .twice {
2999
+ color: blue; }
3000
+ CSS
3001
+ $color: blue
3002
+ =context($class, $color: red)
3003
+ .once
3004
+ @content
3005
+ .twice
3006
+ @content
3007
+ +context(parent)
3008
+ color: $color
3009
+ SASS
3010
+ end
3011
+
3012
+ def test_content_with_variable
3013
+ assert_equal <<CSS, render(<<SASS)
3014
+ .foo {
3015
+ a: 1px; }
3016
+ CSS
3017
+ =foo
3018
+ .foo
3019
+ @content
3020
+ +foo
3021
+ $a: 1px
3022
+ a: $a
3023
+ SASS
3024
+ end
3025
+
3026
+ def test_nested_content_blocks
3027
+ assert_equal <<CSS, render(<<SASS)
3028
+ .foo {
3029
+ a: foo; }
3030
+ .foo .bar {
3031
+ a: bar; }
3032
+ .foo .bar .baz {
3033
+ a: baz; }
3034
+ .foo .bar .baz .outside {
3035
+ a: outside;
3036
+ color: red; }
3037
+ CSS
3038
+ $a: outside
3039
+ =baz($a: baz)
3040
+ .baz
3041
+ a: $a
3042
+ @content
3043
+ =bar($a: bar)
3044
+ .bar
3045
+ a: $a
3046
+ +baz
3047
+ @content
3048
+ =foo($a: foo)
3049
+ .foo
3050
+ a: $a
3051
+ +bar
3052
+ @content
3053
+ +foo
3054
+ .outside
3055
+ a: $a
3056
+ color: red
3057
+ SASS
3058
+ end
3059
+
3060
+ def test_content_not_seen_through_mixin
3061
+ assert_equal <<CSS, render(<<SASS)
3062
+ a foo {
3063
+ mixin: foo;
3064
+ a: b; }
3065
+ a foo bar {
3066
+ mixin: bar; }
3067
+ CSS
3068
+ =foo
3069
+ foo
3070
+ mixin: foo
3071
+ @content
3072
+ +bar
3073
+ =bar
3074
+ bar
3075
+ mixin: bar
3076
+ @content
3077
+ a
3078
+ +foo
3079
+ a: b
3080
+ SASS
3081
+ end
3082
+
3083
+ def test_content_backtrace_for_perform
3084
+ render(<<SASS)
3085
+ =foo
3086
+ @content
3087
+
3088
+ a
3089
+ +foo
3090
+ b: 1em + 2px
3091
+ SASS
3092
+ assert(false, "Expected exception")
3093
+ rescue Sass::SyntaxError => e
3094
+ assert_equal([
3095
+ {:mixin => '@content', :line => 6, :filename => 'test_content_backtrace_for_perform_inline.sass'},
3096
+ {:mixin => 'foo', :line => 2, :filename => 'test_content_backtrace_for_perform_inline.sass'},
3097
+ {:line => 5, :filename => 'test_content_backtrace_for_perform_inline.sass'},
3098
+ ], e.sass_backtrace)
3099
+ end
3100
+
3101
+ def test_content_backtrace_for_cssize
3102
+ render(<<SASS)
3103
+ =foo
3104
+ @content
3105
+
3106
+ a
3107
+ +foo
3108
+ @extend foo bar baz
3109
+ SASS
3110
+ assert(false, "Expected exception")
3111
+ rescue Sass::SyntaxError => e
3112
+ assert_equal([
3113
+ {:mixin => '@content', :line => 6, :filename => 'test_content_backtrace_for_cssize_inline.sass'},
3114
+ {:mixin => 'foo', :line => 2, :filename => 'test_content_backtrace_for_cssize_inline.sass'},
3115
+ {:line => 5, :filename => 'test_content_backtrace_for_cssize_inline.sass'},
3116
+ ], e.sass_backtrace)
3117
+ end
3118
+
3119
+ def test_mixin_with_args_and_varargs_passed_no_var_args
3120
+ assert_equal <<CSS, render(<<SASS, :syntax => :scss)
3121
+ .foo {
3122
+ a: 1;
3123
+ b: 2;
3124
+ c: 3; }
3125
+ CSS
3126
+ @mixin three-or-more-args($a, $b, $c, $rest...) {
3127
+ a: $a;
3128
+ b: $b;
3129
+ c: $c;
3130
+ }
3131
+
3132
+ .foo {
3133
+ @include three-or-more-args($a: 1, $b: 2, $c: 3);
3134
+ }
3135
+ SASS
3136
+
3137
+ end
3138
+
3139
+ def test_debug_inspects_sass_objects
3140
+ assert_warning(<<END) {render("@debug (a: 1, b: 2)")}
3141
+ test_debug_inspects_sass_objects_inline.sass:1 DEBUG: (a: 1, b: 2)
3142
+ END
3143
+ assert_warning(<<END) {render("$map: (a: 1, b: 2); @debug $map", :syntax => :scss)}
3144
+ test_debug_inspects_sass_objects_inline.scss:1 DEBUG: (a: 1, b: 2)
3145
+ END
3146
+ end
3147
+
3148
+ def test_error_throws_sass_objects
3149
+ assert_raise_message(Sass::SyntaxError, "(a: 1, b: 2)") {render("@error (a: 1, b: 2)")}
3150
+ assert_raise_message(Sass::SyntaxError, "(a: 1, b: 2)") do
3151
+ render("$map: (a: 1, b: 2); @error $map", :syntax => :scss)
3152
+ end
3153
+ end
3154
+
3155
+ def test_default_arg_before_splat
3156
+ assert_equal <<CSS, render(<<SASS, :syntax => :scss)
3157
+ .foo-positional {
3158
+ a: 1;
3159
+ b: 2;
3160
+ positional-arguments: 3, 4;
3161
+ keyword-arguments: (); }
3162
+
3163
+ .foo-keywords {
3164
+ a: true;
3165
+ positional-arguments: ();
3166
+ keyword-arguments: (c: c, d: d); }
3167
+ CSS
3168
+ @mixin foo($a: true, $b: null, $arguments...) {
3169
+ a: $a;
3170
+ b: $b;
3171
+ positional-arguments: inspect($arguments);
3172
+ keyword-arguments: inspect(keywords($arguments));
3173
+ }
3174
+ .foo-positional {
3175
+ @include foo(1, 2, 3, 4);
3176
+ }
3177
+ .foo-keywords {
3178
+ @include foo($c: c, $d: d);
3179
+ }
3180
+ SASS
3181
+ end
3182
+
3183
+ def test_keyframes
3184
+ assert_equal <<CSS, render(<<SASS)
3185
+ @keyframes identifier {
3186
+ 0% {
3187
+ top: 0;
3188
+ left: 0; }
3189
+ 30% {
3190
+ top: 50px; }
3191
+ 68%, 72% {
3192
+ left: 50px; }
3193
+ 100% {
3194
+ top: 100px;
3195
+ left: 100%; } }
3196
+ CSS
3197
+ @keyframes identifier
3198
+ 0%
3199
+ top: 0
3200
+ left: 0
3201
+ \#{"30%"}
3202
+ top: 50px
3203
+ 68%, 72%
3204
+ left: 50px
3205
+ 100%
3206
+ top: 100px
3207
+ left: 100%
3208
+ SASS
3209
+ end
3210
+
3211
+ def test_prefixed_keyframes
3212
+ assert_equal <<CSS, render(<<SASS)
3213
+ @-moz-keyframes identifier {
3214
+ 0% {
3215
+ top: 0;
3216
+ left: 0; }
3217
+ 30% {
3218
+ top: 50px; }
3219
+ 68%, 72% {
3220
+ left: 50px; }
3221
+ 100% {
3222
+ top: 100px;
3223
+ left: 100%; } }
3224
+ CSS
3225
+ @-moz-keyframes identifier
3226
+ 0%
3227
+ top: 0
3228
+ left: 0
3229
+ \#{"30%"}
3230
+ top: 50px
3231
+ 68%, 72%
3232
+ left: 50px
3233
+ 100%
3234
+ top: 100px
3235
+ left: 100%
3236
+ SASS
3237
+ end
3238
+
3239
+ def test_uppercase_keyframes
3240
+ assert_equal <<CSS, render(<<SASS)
3241
+ @KEYFRAMES identifier {
3242
+ 0% {
3243
+ top: 0;
3244
+ left: 0; }
3245
+ 30% {
3246
+ top: 50px; }
3247
+ 68%, 72% {
3248
+ left: 50px; }
3249
+ 100% {
3250
+ top: 100px;
3251
+ left: 100%; } }
3252
+ CSS
3253
+ @KEYFRAMES identifier
3254
+ 0%
3255
+ top: 0
3256
+ left: 0
3257
+ \#{"30%"}
3258
+ top: 50px
3259
+ 68%, 72%
3260
+ left: 50px
3261
+ 100%
3262
+ top: 100px
3263
+ left: 100%
3264
+ SASS
3265
+ end
3266
+
3267
+ def test_compressed_unknown_directive
3268
+ assert_equal(<<CSS, render(<<SASS, :style => :compressed))
3269
+ x{@foo;a:b;@bar}
3270
+ CSS
3271
+ x
3272
+ @foo
3273
+ a: b
3274
+ @bar
3275
+ SASS
3276
+ end
3277
+
3278
+ def test_compressed_unknown_directive_in_directive
3279
+ assert_equal(<<CSS, render(<<SASS, :style => :compressed))
3280
+ @x{@foo;a:b;@bar}
3281
+ CSS
3282
+ @x
3283
+ @foo
3284
+ a: b
3285
+ @bar
3286
+ SASS
3287
+ end
3288
+
3289
+ def test_compressed_unknown_directive_with_children_in_directive
3290
+ assert_equal(<<CSS, render(<<SASS, :style => :compressed))
3291
+ @x{@foo{a:b}c:d;@bar{e:f}}
3292
+ CSS
3293
+ @x
3294
+ @foo
3295
+ a: b
3296
+ c: d
3297
+ @bar
3298
+ e: f
3299
+ SASS
3300
+ end
3301
+
3302
+ def test_compressed_rule_in_directive
3303
+ assert_equal(<<CSS, render(<<SASS, :style => :compressed))
3304
+ @x{foo{a:b}c:d;bar{e:f}}
3305
+ CSS
3306
+ @x
3307
+ foo
3308
+ a: b
3309
+ c: d
3310
+ bar
3311
+ e: f
3312
+ SASS
3313
+ end
3314
+
3315
+ def test_import_two_css_files_issue_1806
3316
+ assert_equal(<<CSS, render(<<SASS, :syntax => :scss, :style => :compressed))
3317
+ @import url(\"foo.css\");@import url(\"bar.css\");@import url(\"baz.css\")
3318
+ CSS
3319
+ @import url("foo.css");
3320
+ @import url("bar.css");
3321
+ @import url("baz.css");
3322
+ SASS
3323
+ end
3324
+
3325
+ def test_numeric_formatting_of_integers
3326
+ assert_equal(<<CSS, render(<<SASS, :syntax => :scss, :style => :compressed))
3327
+ a{near:3.00001;plus:3;minus:3;negative:-3}
3328
+ CSS
3329
+ a {
3330
+ near: (3 + 0.00001);
3331
+ plus: (3 + 0.0000001);
3332
+ minus: (3 - 0.0000001);
3333
+ negative: (-3 + 0.0000001);
3334
+ }
3335
+ SASS
3336
+ end
3337
+
3338
+ def test_escaped_semicolons_are_not_compressed
3339
+ assert_equal(<<'CSS', render(<<'SASS', :syntax => :scss, :style => :compressed))
3340
+ div{color:#f00000\9\0\;}
3341
+ CSS
3342
+ div {
3343
+ color: #f00000\9\0\;
3344
+ }
3345
+ SASS
3346
+ end
3347
+
3348
+ def test_compressed_output_of_nth_selectors
3349
+ assert_equal(<<CSS, render(<<SASS, :syntax => :scss, :style => :compressed))
3350
+ :nth-of-type(2n-1),:nth-child(2n-1),:nth(2n-1),:nth-of-type(2n-1),:nth-of-type(2n-1){color:red}:nth-of-type(2n+1),:nth-child(2n+1),:nth(2n+1),:nth-of-type(2n+1),:nth-of-type(2n+1){color:red}
3351
+ CSS
3352
+ :nth-of-type(2n-1), :nth-child(2n- 1), :nth(2n -1), :nth-of-type(2n - 1), :nth-of-type( 2n - 1 ) {
3353
+ color: red }
3354
+ :nth-of-type(2n+1), :nth-child(2n+ 1), :nth(2n +1), :nth-of-type(2n + 1), :nth-of-type( 2n + 1 ) {
3355
+ color: red }
3356
+ SASS
3357
+ end
3358
+
3359
+ def test_descendant_selectors_with_leading_dash
3360
+ assert_equal(<<CSS, render(<<SASS, :syntax => :scss, :style => :compressed))
3361
+ a -b{color:red}
3362
+ CSS
3363
+ a -b {
3364
+ color: red }
3365
+ SASS
3366
+ end
3367
+
3368
+ def test_import_with_supports_clause_interp
3369
+ assert_equal(<<CSS, render(<<'SASS', :style => :compressed))
3370
+ @import url("fallback-layout.css") supports(not (display: flex))
3371
+ CSS
3372
+ $display-type: flex
3373
+ @import url("fallback-layout.css") supports(not (display: #{$display-type}))
3374
+ SASS
3375
+ end
3376
+
3377
+ def test_import_with_supports_clause
3378
+ assert_equal(<<CSS, render(<<SASS, :style => :compressed))
3379
+ @import url("fallback-layout.css") supports(not (display: flex))
3380
+ CSS
3381
+ @import url("fallback-layout.css") supports(not (display: flex))
3382
+ SASS
3383
+ end
3384
+
3385
+ def test_compressed_commas_in_attribute_selectors
3386
+ assert_equal(<<CSS, render(<<SASS, :style => :compressed))
3387
+ .classname[a="1, 2, 3"],.another[b="4, 5, 6"]{color:red}
3388
+ CSS
3389
+ .classname[a="1, 2, 3"], .another[b="4, 5, 6"]
3390
+ color: red
3391
+ SASS
3392
+ end
3393
+
3394
+ private
3395
+
3396
+ def assert_hash_has(hash, expected)
3397
+ expected.each {|k, v| assert_equal(v, hash[k])}
3398
+ end
3399
+
3400
+ def assert_renders_encoded(css, sass)
3401
+ result = render(sass)
3402
+ assert_equal css.encoding, result.encoding
3403
+ assert_equal css, result
3404
+ end
3405
+
3406
+ def render(sass, options = {})
3407
+ munge_filename options
3408
+ options[:importer] ||= MockImporter.new
3409
+ Sass::Engine.new(sass, options).render
3410
+ end
3411
+
3412
+ def renders_correctly(name, options={})
3413
+ sass_file = load_file(name, "sass")
3414
+ css_file = load_file(name, "css")
3415
+ options[:filename] ||= filename(name, "sass")
3416
+ options[:syntax] ||= :sass
3417
+ options[:css_filename] ||= filename(name, "css")
3418
+ css_result = Sass::Engine.new(sass_file, options).render
3419
+ assert_equal css_file, css_result
3420
+ end
3421
+
3422
+ def load_file(name, type = "sass")
3423
+ @result = ''
3424
+ File.new(filename(name, type)).each_line { |l| @result += l }
3425
+ @result
3426
+ end
3427
+
3428
+ def filename(name, type)
3429
+ path = File.dirname(__FILE__) + "/#{type == 'sass' ? 'templates' : 'results'}/#{name}.#{type}"
3430
+ Sass::Util.cleanpath(path).to_s
3431
+ end
3432
+
3433
+ def sassc_path(template)
3434
+ sassc_path = File.join(File.dirname(__FILE__) + "/templates/#{template}.sass")
3435
+ engine = Sass::Engine.new("", :filename => sassc_path,
3436
+ :importer => Sass::Importers::Filesystem.new("."))
3437
+ key = engine.send(:sassc_key)
3438
+ File.join(engine.options[:cache_location], key)
3439
+ end
3440
+ end
3441
+