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