brakeman 4.3.1 → 5.0.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 +294 -107
- data/README.md +49 -13
- data/bin/brakeman +2 -0
- data/bundle/load.rb +14 -14
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/CHANGES.txt +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/MIT-LICENSE +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/README.txt +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis-run.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/inline-require +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/context.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/converter.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/enhancer.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/error.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/evaluator.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/generator.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helper.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/local-setting.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/main.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/tiny.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/util.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/setup.rb +0 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/CHANGELOG.md +1497 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/FAQ.md +147 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/Gemfile +16 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/MIT-LICENSE +20 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/README.md +210 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/REFERENCE.md +1373 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/TODO +24 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/haml.gemspec +45 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml.rb +25 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_builder.rb +164 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_compiler.rb +235 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_parser.rb +150 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/buffer.rb +238 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/compiler.rb +330 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/engine.rb +238 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/error.rb +65 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/escapable.rb +77 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/exec.rb +347 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/filters.rb +399 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/generator.rb +42 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers.rb +709 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/action_view_extensions.rb +60 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/action_view_mods.rb +132 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/action_view_xss_mods.rb +60 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/safe_erubi_template.rb +20 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/safe_erubis_template.rb +33 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/xss_mods.rb +114 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/options.rb +273 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/parser.rb +856 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/plugin.rb +37 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/railtie.rb +48 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/sass_rails_filter.rb +47 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/template.rb +39 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/template/options.rb +27 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_engine.rb +123 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_line_counter.rb +30 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/util.rb +258 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/version.rb +5 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/fulldoc/html/css/common.sass +15 -0
- data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/layout/html/footer.erb +12 -0
- data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/AUTHORS +0 -0
- data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/COPYING +0 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/Changelog.md +620 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/Gemfile +22 -0
- data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/LICENSE +0 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/README.md +202 -0
- data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/TODO +0 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/appveyor.yml +37 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/highline.gemspec +35 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline.rb +650 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/builtin_styles.rb +129 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/color_scheme.rb +151 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/compatibility.rb +23 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/custom_errors.rb +57 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/import.rb +48 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/io_console_compatible.rb +37 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list.rb +177 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list_renderer.rb +261 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu.rb +576 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu/item.rb +32 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/paginator.rb +52 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question.rb +630 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question/answer_converter.rb +103 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question_asker.rb +150 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/simulate.rb +59 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/statement.rb +88 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string.rb +36 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string_extensions.rb +130 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/style.rb +325 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/template_renderer.rb +62 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal.rb +190 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/io_console.rb +36 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/ncurses.rb +38 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/unix_stty.rb +51 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/version.rb +6 -0
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/wrapper.rb +53 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/Gemfile +6 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/LICENSE.txt +22 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/NEWS.md +141 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/README.md +60 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attlistdecl.rb +63 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attribute.rb +205 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/cdata.rb +68 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/child.rb +97 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/comment.rb +80 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/doctype.rb +287 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/document.rb +291 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/attlistdecl.rb +11 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/dtd.rb +47 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/elementdecl.rb +18 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/entitydecl.rb +57 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/notationdecl.rb +40 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/element.rb +1269 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/encoding.rb +51 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/entity.rb +171 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/default.rb +116 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/pretty.rb +142 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/transitive.rb +58 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/functions.rb +447 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/instruction.rb +79 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/light/node.rb +196 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/namespace.rb +59 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/node.rb +76 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/output.rb +30 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parent.rb +166 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parseexception.rb +52 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/baseparser.rb +594 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/lightparser.rb +59 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/pullparser.rb +197 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/sax2parser.rb +273 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/streamparser.rb +61 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/treeparser.rb +101 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/ultralightparser.rb +57 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/xpathparser.rb +675 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/quickpath.rb +266 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/rexml.rb +32 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/sax2listener.rb +98 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/security.rb +28 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/source.rb +298 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/streamlistener.rb +93 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/text.rb +424 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/undefinednamespaceexception.rb +9 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/relaxng.rb +539 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validation.rb +144 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validationexception.rb +10 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmldecl.rb +130 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmltokens.rb +85 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath.rb +81 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath_parser.rb +968 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/rexml.gemspec +84 -0
- data/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/History.rdoc +435 -0
- data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/Manifest.txt +0 -0
- data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/README.rdoc +0 -0
- data/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/lib/ruby2ruby.rb +1309 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/History.rdoc +1162 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/Manifest.txt +39 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/README.rdoc +109 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/compare/normalize.rb +213 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/debugging.md +57 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/rp_extensions.rb +74 -0
- data/bundle/ruby/{2.5.0/gems/ruby_parser-3.11.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/rp_stringscanner.rb +0 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.rb +7062 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.y +2605 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.rb +7140 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.y +2624 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.rb +7160 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.y +2633 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.rb +7175 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.y +2635 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.rb +7204 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.y +2643 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.rb +7204 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.y +2643 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.rb +7224 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.y +2657 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.rb +7224 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.y +2657 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rb +1473 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex +178 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex.rb +363 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser.rb +94 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser.yy +2764 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser_extras.rb +1631 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/munge.rb +222 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/ripper.rb +39 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/History.rdoc +6 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/Manifest.txt +19 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/README.rdoc +54 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy.rb +5 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.rb +5794 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.y +1909 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.rb +6186 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.y +2117 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rb +1412 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex +179 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex.rb +323 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb +30 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser_extras.rb +1388 -0
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/CHANGES.md +154 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/Gemfile +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/LICENSE.txt +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/README.md +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/bundle_install_all_ruby_versions.sh +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/deep.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/libyaml_checker.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/load.rb +0 -0
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +37 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/hexadecimal.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/sexagesimal.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_handler.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_resolver.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/resolver.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -0
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +39 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_hack.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_node_monkeypatch.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_resolver.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_boolean.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_date.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_float.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_integer.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_nil.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_symbol.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/transformation_map.rb +0 -0
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +3 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/run_specs_all_ruby_versions.sh +0 -0
- data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/safe_yaml.gemspec +0 -0
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/History.rdoc +427 -0
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/Manifest.txt +15 -0
- data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/README.rdoc +0 -0
- data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/composite_sexp_processor.rb +0 -0
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/pt_testcase.rb +3128 -0
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp.rb +381 -0
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp_matcher.rb +1100 -0
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp_processor.rb +754 -0
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/strict_sexp.rb +126 -0
- data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/unique.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/CHANGES +460 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/Gemfile +70 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/LICENSE +21 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/README.jp.md +1289 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/README.md +1290 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/code_attributes.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/command.rb +128 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/controls.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/do_inserter.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/embedded.rb +248 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/end_inserter.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/engine.rb +39 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/erb_converter.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/filter.rb +30 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/grammar.rb +23 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/include.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/interpolation.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/logic_less/context.rb +127 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less/filter.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/parser.rb +548 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/escaper.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/filter.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/smart/parser.rb +34 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/splat/builder.rb +107 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/splat/filter.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/template.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/translator.rb +0 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/version.rb +5 -0
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/slim.gemspec +24 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/CHANGES +260 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/EXPRESSIONS.md +262 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/Gemfile +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/LICENSE +0 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/README.md +267 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple.rb +67 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/engine.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/engine.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/parser.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/template.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/trimming.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/exceptions.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filter.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/code_merger.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/control_flow.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/dynamic_inliner.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/encoding.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/eraser.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/escapable.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/multi_flattener.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/remove_bom.rb +0 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/static_analyzer.rb +30 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/static_merger.rb +0 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/string_splitter.rb +130 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/validator.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generator.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array_buffer.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/erb.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/rails_output_buffer.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/string_buffer.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/grammar.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_merger.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_remover.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_sorter.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/dispatcher.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/fast.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/filter.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/pretty.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/safe.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/map.rb +0 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/mixins/dispatcher.rb +161 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/engine_dsl.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/grammar_dsl.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/options.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/template.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/parser.rb +0 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/static_analyzer.rb +77 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates.rb +0 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/templates/rails.rb +26 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates/tilt.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/utils.rb +0 -0
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/version.rb +3 -0
- data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/temple.gemspec +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Gemfile +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/History.rdoc +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/LICENSE.txt +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Manifest +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/README.rdoc +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Todo.rdoc +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/cell.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/import.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/row.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/style.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table_helper.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/version.rb +0 -0
- data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/terminal-table.gemspec +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/COPYING +0 -0
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt.rb +166 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/asciidoc.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/babel.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/bluecloth.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/builder.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/coffee.rb +0 -0
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/commonmarker.rb +78 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/creole.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/csv.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/dummy.rb +0 -0
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/erb.rb +63 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubi.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubis.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/etanni.rb +0 -0
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/haml.rb +86 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/kramdown.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/less.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/liquid.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/livescript.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/mapping.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/markaby.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/maruku.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/nokogiri.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/pandoc.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/plain.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/prawn.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/radius.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdiscount.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdoc.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcarpet.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcloth.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rst-pandoc.rb +0 -0
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/sass.rb +52 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/sigil.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/string.rb +0 -0
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/template.rb +297 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/typescript.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/wikicloth.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/yajl.rb +0 -0
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/CHANGELOG.md +133 -0
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/MIT-LICENSE.txt +22 -0
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/README.md +124 -0
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/data/display_width.marshal.gz +0 -0
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/lib/unicode/display_width.rb +51 -0
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/lib/unicode/display_width/constants.rb +8 -0
- data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.0 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/index.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.0 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/no_string_ext.rb +0 -0
- data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.0 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/string_ext.rb +0 -0
- data/lib/brakeman.rb +42 -3
- data/lib/brakeman/app_tree.rb +81 -22
- data/lib/brakeman/call_index.rb +61 -19
- data/lib/brakeman/checks.rb +23 -15
- data/lib/brakeman/checks/base_check.rb +93 -82
- data/lib/brakeman/checks/check_basic_auth.rb +2 -0
- data/lib/brakeman/checks/check_basic_auth_timing_attack.rb +1 -1
- data/lib/brakeman/checks/check_content_tag.rb +16 -5
- data/lib/brakeman/checks/check_cookie_serialization.rb +22 -0
- data/lib/brakeman/checks/check_create_with.rb +1 -1
- data/lib/brakeman/checks/check_cross_site_scripting.rb +18 -13
- data/lib/brakeman/checks/check_csrf_token_forgery_cve.rb +28 -0
- data/lib/brakeman/checks/check_default_routes.rb +8 -3
- data/lib/brakeman/checks/check_deserialize.rb +71 -2
- 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_dynamic_finders.rb +1 -1
- data/lib/brakeman/checks/check_escape_function.rb +1 -1
- data/lib/brakeman/checks/check_evaluation.rb +0 -1
- data/lib/brakeman/checks/check_execute.rb +89 -9
- data/lib/brakeman/checks/check_file_access.rb +19 -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_force_ssl.rb +27 -0
- data/lib/brakeman/checks/check_forgery_setting.rb +3 -3
- data/lib/brakeman/checks/check_header_dos.rb +5 -5
- data/lib/brakeman/checks/check_i18n_xss.rb +5 -5
- data/lib/brakeman/checks/check_jruby_xml.rb +3 -3
- data/lib/brakeman/checks/check_json_encoding.rb +3 -3
- data/lib/brakeman/checks/check_json_entity_escape.rb +38 -0
- data/lib/brakeman/checks/check_json_parsing.rb +15 -13
- data/lib/brakeman/checks/check_link_to.rb +4 -4
- data/lib/brakeman/checks/check_link_to_href.rb +9 -6
- data/lib/brakeman/checks/check_mail_to.rb +4 -4
- data/lib/brakeman/checks/check_mass_assignment.rb +34 -4
- data/lib/brakeman/checks/check_mime_type_dos.rb +3 -3
- data/lib/brakeman/checks/check_model_attr_accessible.rb +2 -2
- data/lib/brakeman/checks/check_model_attributes.rb +16 -54
- data/lib/brakeman/checks/check_model_serialize.rb +2 -2
- data/lib/brakeman/checks/check_nested_attributes.rb +3 -3
- data/lib/brakeman/checks/check_nested_attributes_bypass.rb +5 -5
- data/lib/brakeman/checks/check_number_to_currency.rb +4 -4
- data/lib/brakeman/checks/check_page_caching_cve.rb +37 -0
- data/lib/brakeman/checks/check_permit_attributes.rb +1 -1
- data/lib/brakeman/checks/check_quote_table_name.rb +2 -2
- data/lib/brakeman/checks/check_regex_dos.rb +2 -2
- 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_reverse_tabnabbing.rb +58 -0
- 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 +4 -4
- data/lib/brakeman/checks/check_secrets.rb +2 -2
- 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_send.rb +0 -1
- data/lib/brakeman/checks/check_session_manipulation.rb +1 -2
- data/lib/brakeman/checks/check_session_settings.rb +16 -13
- data/lib/brakeman/checks/check_simple_format.rb +7 -2
- data/lib/brakeman/checks/check_single_quotes.rb +14 -10
- data/lib/brakeman/checks/check_skip_before_filter.rb +5 -5
- data/lib/brakeman/checks/check_sprockets_path_traversal.rb +39 -0
- data/lib/brakeman/checks/check_sql.rb +47 -49
- 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_template_injection.rb +32 -0
- 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_unsafe_reflection_methods.rb +68 -0
- data/lib/brakeman/checks/check_unscoped_find.rb +1 -1
- data/lib/brakeman/checks/check_validation_regex.rb +2 -2
- data/lib/brakeman/checks/check_verb_confusion.rb +75 -0
- data/lib/brakeman/checks/check_weak_hash.rb +18 -19
- data/lib/brakeman/checks/check_xml_dos.rb +3 -3
- data/lib/brakeman/checks/check_yaml_parsing.rb +11 -19
- data/lib/brakeman/commandline.rb +25 -1
- data/lib/brakeman/differ.rb +16 -33
- data/lib/brakeman/file_parser.rb +25 -21
- data/lib/brakeman/file_path.rb +85 -0
- data/lib/brakeman/format/style.css +8 -0
- data/lib/brakeman/messages.rb +220 -0
- data/lib/brakeman/options.rb +45 -1
- data/lib/brakeman/parsers/haml_embedded.rb +44 -0
- data/lib/brakeman/parsers/slim_embedded.rb +44 -0
- data/lib/brakeman/parsers/template_parser.rb +11 -12
- data/lib/brakeman/processor.rb +5 -6
- data/lib/brakeman/processors/alias_processor.rb +78 -14
- data/lib/brakeman/processors/base_processor.rb +10 -7
- data/lib/brakeman/processors/config_processor.rb +4 -1
- data/lib/brakeman/processors/controller_alias_processor.rb +10 -7
- data/lib/brakeman/processors/controller_processor.rb +10 -14
- data/lib/brakeman/processors/gem_processor.rb +38 -2
- data/lib/brakeman/processors/haml_template_processor.rb +99 -123
- data/lib/brakeman/processors/lib/call_conversion_helper.rb +11 -5
- data/lib/brakeman/processors/lib/file_type_detector.rb +64 -0
- data/lib/brakeman/processors/lib/find_all_calls.rb +57 -18
- data/lib/brakeman/processors/lib/find_call.rb +3 -64
- data/lib/brakeman/processors/lib/module_helper.rb +8 -8
- data/lib/brakeman/processors/lib/processor_helper.rb +3 -3
- data/lib/brakeman/processors/lib/rails2_config_processor.rb +4 -4
- data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -2
- data/lib/brakeman/processors/lib/rails3_config_processor.rb +19 -19
- data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -4
- data/lib/brakeman/processors/lib/rails4_config_processor.rb +18 -0
- data/lib/brakeman/processors/lib/render_helper.rb +10 -3
- data/lib/brakeman/processors/lib/render_path.rb +32 -0
- data/lib/brakeman/processors/library_processor.rb +6 -6
- data/lib/brakeman/processors/model_processor.rb +4 -5
- data/lib/brakeman/processors/output_processor.rb +6 -1
- data/lib/brakeman/processors/slim_template_processor.rb +16 -0
- data/lib/brakeman/processors/template_alias_processor.rb +36 -4
- data/lib/brakeman/processors/template_processor.rb +14 -10
- data/lib/brakeman/report.rb +22 -4
- data/lib/brakeman/report/ignore/config.rb +12 -5
- data/lib/brakeman/report/ignore/interactive.rb +2 -2
- data/lib/brakeman/report/pager.rb +1 -0
- data/lib/brakeman/report/report_base.rb +64 -165
- data/lib/brakeman/report/report_codeclimate.rb +3 -3
- data/lib/brakeman/report/report_csv.rb +38 -44
- data/lib/brakeman/report/report_hash.rb +1 -1
- data/lib/brakeman/report/report_html.rb +36 -33
- data/lib/brakeman/report/report_json.rb +1 -3
- data/lib/brakeman/report/report_junit.rb +104 -0
- data/lib/brakeman/report/report_markdown.rb +13 -7
- data/lib/brakeman/report/report_sarif.rb +114 -0
- data/lib/brakeman/report/report_sonar.rb +38 -0
- data/lib/brakeman/report/report_table.rb +173 -0
- data/lib/brakeman/report/report_tabs.rb +4 -2
- data/lib/brakeman/report/report_text.rb +59 -23
- data/lib/brakeman/rescanner.rb +18 -15
- data/lib/brakeman/scanner.rb +74 -35
- data/lib/brakeman/tracker.rb +44 -8
- data/lib/brakeman/tracker/collection.rb +4 -3
- data/lib/brakeman/tracker/config.rb +119 -47
- data/lib/brakeman/tracker/constants.rb +10 -8
- data/lib/brakeman/tracker/controller.rb +1 -1
- data/lib/brakeman/util.rb +45 -168
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning.rb +46 -19
- data/lib/brakeman/warning_codes.rb +14 -0
- data/lib/ruby_parser/bm_sexp.rb +16 -11
- data/lib/ruby_parser/bm_sexp_processor.rb +1 -0
- metadata +437 -1218
- 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/CHANGELOG.md +0 -1363
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/FAQ.md +0 -157
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/MIT-LICENSE +0 -20
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/README.md +0 -173
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/REFERENCE.md +0 -1294
- 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/lib/haml.rb +0 -23
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/buffer.rb +0 -345
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/compiler.rb +0 -540
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/engine.rb +0 -245
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/error.rb +0 -61
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/exec.rb +0 -329
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/filters.rb +0 -404
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers.rb +0 -664
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +0 -58
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +0 -147
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +0 -58
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +0 -29
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +0 -104
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/options.rb +0 -279
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/parser.rb +0 -764
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/railtie.rb +0 -22
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +0 -33
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template.rb +0 -32
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template/options.rb +0 -16
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +0 -41
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/util.rb +0 -377
- data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/version.rb +0 -3
- 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/Changelog.md +0 -421
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/Gemfile +0 -11
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/INSTALL +0 -59
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/README.rdoc +0 -74
- 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/highline.gemspec +0 -37
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline.rb +0 -1048
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/color_scheme.rb +0 -134
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/compatibility.rb +0 -16
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/import.rb +0 -41
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/menu.rb +0 -381
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/question.rb +0 -480
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/simulate.rb +0 -48
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/string_extensions.rb +0 -111
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/style.rb +0 -192
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/system_extensions.rb +0 -254
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/version.rb +0 -4
- data/bundle/ruby/2.5.0/gems/highline-1.7.10/setup.rb +0 -1360
- 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/History.rdoc +0 -413
- 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/lib/ruby2ruby.rb +0 -1301
- 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/History.rdoc +0 -974
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/Manifest.txt +0 -36
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/README.rdoc +0 -109
- 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/compare/normalize.rb +0 -146
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/rp_extensions.rb +0 -81
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby18_parser.rb +0 -5793
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby18_parser.y +0 -1908
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby19_parser.rb +0 -6185
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby19_parser.y +0 -2116
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby20_parser.rb +0 -6687
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby20_parser.y +0 -2345
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby21_parser.rb +0 -6767
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby21_parser.y +0 -2362
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby22_parser.rb +0 -6803
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby22_parser.y +0 -2376
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby23_parser.rb +0 -6818
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby23_parser.y +0 -2378
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby24_parser.rb +0 -6818
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby24_parser.y +0 -2378
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby25_parser.rb +0 -6818
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby25_parser.y +0 -2378
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_lexer.rb +0 -1346
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_lexer.rex +0 -177
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_lexer.rex.rb +0 -323
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb +0 -88
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.yy +0 -2477
- data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb +0 -1377
- 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/CHANGES.md +0 -149
- 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/lib/safe_yaml/parse/date.rb +0 -35
- data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +0 -3
- 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/CODE_OF_CONDUCT.md +0 -10
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/CONTRIBUTING.md +0 -148
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/MIT-LICENSE +0 -20
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/README.md +0 -227
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/REVISION +0 -1
- 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/VERSION +0 -1
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_DATE +0 -1
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_NAME +0 -1
- 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/extra/sass-spec-ref.sh +0 -32
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/extra/update_watch.rb +0 -13
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/init.rb +0 -18
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass.rb +0 -109
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores.rb +0 -15
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/base.rb +0 -88
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb +0 -34
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/filesystem.rb +0 -60
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/memory.rb +0 -46
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/null.rb +0 -25
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/callbacks.rb +0 -67
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/css.rb +0 -408
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/deprecation.rb +0 -55
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/engine.rb +0 -1226
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/environment.rb +0 -215
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/error.rb +0 -198
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec.rb +0 -9
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/base.rb +0 -199
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_convert.rb +0 -283
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_scss.rb +0 -440
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/features.rb +0 -47
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers.rb +0 -23
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/base.rb +0 -182
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/deprecated_path.rb +0 -51
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/filesystem.rb +0 -219
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger.rb +0 -17
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/base.rb +0 -36
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/delayed.rb +0 -50
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/log_level.rb +0 -45
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/media.rb +0 -210
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin.rb +0 -134
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb +0 -582
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/configuration.rb +0 -134
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/generic.rb +0 -15
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/merb.rb +0 -48
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rack.rb +0 -60
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rails.rb +0 -47
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/staleness_checker.rb +0 -199
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/railtie.rb +0 -10
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/repl.rb +0 -57
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/root.rb +0 -7
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script.rb +0 -66
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_lexer.rb +0 -33
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_parser.rb +0 -33
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_variable_warning.rb +0 -52
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/functions.rb +0 -2693
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/lexer.rb +0 -464
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/parser.rb +0 -832
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree.rb +0 -16
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/funcall.rb +0 -313
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/interpolation.rb +0 -223
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/list_literal.rb +0 -104
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/literal.rb +0 -49
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/map_literal.rb +0 -64
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/node.rb +0 -127
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/operation.rb +0 -156
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/selector.rb +0 -26
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/string_interpolation.rb +0 -125
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/unary_operation.rb +0 -69
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/variable.rb +0 -57
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value.rb +0 -11
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb +0 -36
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/base.rb +0 -241
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/bool.rb +0 -35
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/color.rb +0 -698
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/helpers.rb +0 -272
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/list.rb +0 -113
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/map.rb +0 -70
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/null.rb +0 -44
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/number.rb +0 -563
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/string.rb +0 -138
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss.rb +0 -14
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/css_parser.rb +0 -56
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/parser.rb +0 -1254
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/rx.rb +0 -140
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/static_parser.rb +0 -373
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector.rb +0 -323
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/abstract_sequence.rb +0 -111
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/comma_sequence.rb +0 -191
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/pseudo.rb +0 -266
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/sequence.rb +0 -636
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple.rb +0 -117
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple_sequence.rb +0 -344
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/shared.rb +0 -76
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/map.rb +0 -213
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/position.rb +0 -39
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/range.rb +0 -41
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb +0 -120
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/supports.rb +0 -225
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/at_root_node.rb +0 -83
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/charset_node.rb +0 -22
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/comment_node.rb +0 -82
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/content_node.rb +0 -9
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/css_import_node.rb +0 -68
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/debug_node.rb +0 -18
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/directive_node.rb +0 -59
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/each_node.rb +0 -24
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/error_node.rb +0 -18
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/extend_node.rb +0 -43
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/for_node.rb +0 -36
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/function_node.rb +0 -44
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/if_node.rb +0 -52
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/import_node.rb +0 -75
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/keyframe_rule_node.rb +0 -15
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/media_node.rb +0 -48
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_def_node.rb +0 -38
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_node.rb +0 -52
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/node.rb +0 -240
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/prop_node.rb +0 -170
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/return_node.rb +0 -19
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/root_node.rb +0 -44
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/rule_node.rb +0 -155
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/supports_node.rb +0 -38
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/trace_node.rb +0 -33
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/variable_node.rb +0 -36
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/base.rb +0 -72
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/check_nesting.rb +0 -173
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/convert.rb +0 -351
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/cssize.rb +0 -373
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/deep_copy.rb +0 -107
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/extend.rb +0 -70
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb +0 -564
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/set_options.rb +0 -139
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/to_css.rb +0 -409
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/warn_node.rb +0 -18
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/while_node.rb +0 -18
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util.rb +0 -1375
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/cross_platform_random.rb +0 -19
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/multibyte_string_scanner.rb +0 -155
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/normalized_map.rb +0 -129
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/ordered_hash.rb +0 -192
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/subset_map.rb +0 -109
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/test.rb +0 -9
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/version.rb +0 -124
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/rails/init.rb +0 -1
- 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/sass-3.4.25/vendor/listen/CHANGELOG.md +0 -1
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/CONTRIBUTING.md +0 -38
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Gemfile +0 -20
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Guardfile +0 -8
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/LICENSE +0 -20
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/README.md +0 -349
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Rakefile +0 -5
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Vagrantfile +0 -96
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen.rb +0 -54
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapter.rb +0 -327
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/bsd.rb +0 -75
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/darwin.rb +0 -48
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/linux.rb +0 -81
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/polling.rb +0 -58
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/windows.rb +0 -91
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/directory_record.rb +0 -406
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb +0 -323
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/turnstile.rb +0 -32
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/version.rb +0 -3
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/listen.gemspec +0 -28
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapter_spec.rb +0 -149
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -36
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -37
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -47
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/polling_spec.rb +0 -68
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/windows_spec.rb +0 -30
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/directory_record_spec.rb +0 -1250
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/listener_spec.rb +0 -258
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/turnstile_spec.rb +0 -56
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen_spec.rb +0 -67
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/spec_helper.rb +0 -25
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/adapter_helper.rb +0 -666
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/directory_record_helper.rb +0 -57
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/fixtures_helper.rb +0 -29
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/listeners_helper.rb +0 -179
- data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/platform_helper.rb +0 -15
- data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/History.rdoc +0 -360
- data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/Manifest.txt +0 -14
- 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/lib/pt_testcase.rb +0 -3130
- data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/lib/sexp.rb +0 -1420
- data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/lib/sexp_processor.rb +0 -754
- data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/lib/strict_sexp.rb +0 -126
- 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/CHANGES +0 -431
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/Gemfile +0 -69
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/LICENSE +0 -21
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/README.jp.md +0 -1230
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/README.md +0 -1230
- 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/command.rb +0 -128
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/embedded.rb +0 -273
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/engine.rb +0 -39
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/filter.rb +0 -30
- 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/lib/slim/logic_less/context.rb +0 -127
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/parser.rb +0 -537
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/smart/parser.rb +0 -36
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/splat/builder.rb +0 -101
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/version.rb +0 -5
- data/bundle/ruby/2.5.0/gems/slim-3.0.7/slim.gemspec +0 -24
- 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/CHANGES +0 -240
- data/bundle/ruby/2.5.0/gems/temple-0.7.7/EXPRESSIONS.md +0 -261
- data/bundle/ruby/2.5.0/gems/temple-0.7.7/README.md +0 -267
- 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.rb +0 -66
- 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/filters/string_splitter.rb +0 -130
- data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple/mixins/dispatcher.rb +0 -160
- data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple/templates/rails.rb +0 -26
- 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/CHANGELOG.md +0 -127
- data/bundle/ruby/2.5.0/gems/tilt-2.0.8/Gemfile +0 -65
- data/bundle/ruby/2.5.0/gems/tilt-2.0.8/HACKING +0 -16
- data/bundle/ruby/2.5.0/gems/tilt-2.0.8/README.md +0 -233
- 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.rb +0 -166
- 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/lib/tilt/erb.rb +0 -57
- data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/haml.rb +0 -86
- data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/sass.rb +0 -41
- data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/template.rb +0 -302
- 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/tilt-2.0.8/tilt.gemspec +0 -130
- data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/CHANGELOG.md +0 -113
- data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/MIT-LICENSE.txt +0 -22
- data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/README.md +0 -124
- 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/data/display_width.marshal.gz +0 -0
- data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width.rb +0 -51
- data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width/constants.rb +0 -8
- 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
data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/fixtures/test_staleness_check_across_importers.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
.pear { color: green; }
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "apple";
|
@@ -1,1977 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'minitest/autorun'
|
3
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
4
|
-
require File.dirname(__FILE__) + '/test_helper'
|
5
|
-
require 'sass/script'
|
6
|
-
require 'mock_importer'
|
7
|
-
|
8
|
-
module Sass::Script::Functions
|
9
|
-
def no_kw_args
|
10
|
-
Sass::Script::Value::String.new("no-kw-args")
|
11
|
-
end
|
12
|
-
|
13
|
-
def only_var_args(*args)
|
14
|
-
Sass::Script::Value::String.new("only-var-args("+args.map{|a| a.plus(Sass::Script::Value::Number.new(1)).to_s }.join(", ")+")")
|
15
|
-
end
|
16
|
-
declare :only_var_args, [], :var_args => true
|
17
|
-
|
18
|
-
def only_kw_args(kwargs)
|
19
|
-
Sass::Script::Value::String.new("only-kw-args(" + kwargs.keys.map {|a| a.to_s}.sort.join(", ") + ")")
|
20
|
-
end
|
21
|
-
declare :only_kw_args, [], :var_kwargs => true
|
22
|
-
|
23
|
-
def deprecated_arg_fn(arg1, arg2, arg3 = nil)
|
24
|
-
Sass::Script::Value::List.new([arg1, arg2, arg3 || Sass::Script::Value::Null.new], :space)
|
25
|
-
end
|
26
|
-
declare :deprecated_arg_fn, [:arg1, :arg2, :arg3], :deprecated => [:arg_1, :arg_2, :arg3]
|
27
|
-
declare :deprecated_arg_fn, [:arg1, :arg2], :deprecated => [:arg_1, :arg_2]
|
28
|
-
end
|
29
|
-
|
30
|
-
module Sass::Script::Functions::UserFunctions
|
31
|
-
def call_options_on_new_value
|
32
|
-
str = Sass::Script::Value::String.new("foo")
|
33
|
-
str.options[:foo]
|
34
|
-
str
|
35
|
-
end
|
36
|
-
|
37
|
-
def user_defined
|
38
|
-
Sass::Script::Value::String.new("I'm a user-defined string!")
|
39
|
-
end
|
40
|
-
|
41
|
-
def _preceding_underscore
|
42
|
-
Sass::Script::Value::String.new("I'm another user-defined string!")
|
43
|
-
end
|
44
|
-
|
45
|
-
def fetch_the_variable
|
46
|
-
environment.var('variable')
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
module Sass::Script::Functions
|
51
|
-
include Sass::Script::Functions::UserFunctions
|
52
|
-
end
|
53
|
-
|
54
|
-
class SassFunctionTest < MiniTest::Test
|
55
|
-
# Tests taken from:
|
56
|
-
# http://www.w3.org/Style/CSS/Test/CSS3/Color/20070927/html4/t040204-hsl-h-rotating-b.htm
|
57
|
-
# http://www.w3.org/Style/CSS/Test/CSS3/Color/20070927/html4/t040204-hsl-values-b.htm
|
58
|
-
File.read(File.dirname(__FILE__) + "/data/hsl-rgb.txt").split("\n\n").each do |chunk|
|
59
|
-
hsls, rgbs = chunk.strip.split("====")
|
60
|
-
hsls.strip.split("\n").zip(rgbs.strip.split("\n")) do |hsl, rgb|
|
61
|
-
hsl_method = "test_hsl: #{hsl} = #{rgb}"
|
62
|
-
unless method_defined?(hsl_method)
|
63
|
-
define_method(hsl_method) do
|
64
|
-
assert_equal(evaluate(rgb), evaluate(hsl))
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
rgb_to_hsl_method = "test_rgb_to_hsl: #{rgb} = #{hsl}"
|
69
|
-
unless method_defined?(rgb_to_hsl_method)
|
70
|
-
define_method(rgb_to_hsl_method) do
|
71
|
-
rgb_color = perform(rgb)
|
72
|
-
hsl_color = perform(hsl)
|
73
|
-
|
74
|
-
white = hsl_color.lightness == 100
|
75
|
-
black = hsl_color.lightness == 0
|
76
|
-
grayscale = white || black || hsl_color.saturation == 0
|
77
|
-
|
78
|
-
assert_in_delta(hsl_color.hue, rgb_color.hue, 0.0001,
|
79
|
-
"Hues should be equal") unless grayscale
|
80
|
-
assert_in_delta(hsl_color.saturation, rgb_color.saturation, 0.0001,
|
81
|
-
"Saturations should be equal") unless white || black
|
82
|
-
assert_in_delta(hsl_color.lightness, rgb_color.lightness, 0.0001,
|
83
|
-
"Lightnesses should be equal")
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
def test_hsl_kwargs
|
90
|
-
assert_equal "#33cccc", evaluate("hsl($hue: 180, $saturation: 60%, $lightness: 50%)")
|
91
|
-
end
|
92
|
-
|
93
|
-
def test_hsl_clamps_bounds
|
94
|
-
assert_equal("#1f1f1f", evaluate("hsl(10, -114, 12)"))
|
95
|
-
assert_equal("white", evaluate("hsl(10, 10, 256%)"))
|
96
|
-
end
|
97
|
-
|
98
|
-
def test_hsl_checks_types
|
99
|
-
assert_error_message("$hue: \"foo\" is not a number for `hsl'", "hsl(\"foo\", 10, 12)");
|
100
|
-
assert_error_message("$saturation: \"foo\" is not a number for `hsl'", "hsl(10, \"foo\", 12)");
|
101
|
-
assert_error_message("$lightness: \"foo\" is not a number for `hsl'", "hsl(10, 10, \"foo\")");
|
102
|
-
end
|
103
|
-
|
104
|
-
def test_hsla
|
105
|
-
assert_equal "rgba(51, 204, 204, 0.4)", evaluate("hsla(180, 60%, 50%, 0.4)")
|
106
|
-
assert_equal "#33cccc", evaluate("hsla(180, 60%, 50%, 1)")
|
107
|
-
assert_equal "rgba(51, 204, 204, 0)", evaluate("hsla(180, 60%, 50%, 0)")
|
108
|
-
assert_equal "rgba(51, 204, 204, 0.4)", evaluate("hsla($hue: 180, $saturation: 60%, $lightness: 50%, $alpha: 0.4)")
|
109
|
-
end
|
110
|
-
|
111
|
-
def test_hsla_clamps_bounds
|
112
|
-
assert_equal("#1f1f1f", evaluate("hsla(10, -114, 12, 1)"))
|
113
|
-
assert_equal("rgba(255, 255, 255, 0)", evaluate("hsla(10, 10, 256%, 0)"))
|
114
|
-
assert_equal("rgba(28, 24, 23, 0)", evaluate("hsla(10, 10, 10, -0.1)"))
|
115
|
-
assert_equal("#1c1817", evaluate("hsla(10, 10, 10, 1.1)"))
|
116
|
-
end
|
117
|
-
|
118
|
-
def test_hsla_checks_types
|
119
|
-
assert_error_message("$hue: \"foo\" is not a number for `hsla'", "hsla(\"foo\", 10, 12, 0.3)");
|
120
|
-
assert_error_message("$saturation: \"foo\" is not a number for `hsla'", "hsla(10, \"foo\", 12, 0)");
|
121
|
-
assert_error_message("$lightness: \"foo\" is not a number for `hsla'", "hsla(10, 10, \"foo\", 1)");
|
122
|
-
assert_error_message("$alpha: \"foo\" is not a number for `hsla'", "hsla(10, 10, 10, \"foo\")");
|
123
|
-
end
|
124
|
-
|
125
|
-
def test_hsla_percent_warning
|
126
|
-
assert_warning(<<WARNING) {evaluate("hsla(180, 60%, 50%, 40%)")}
|
127
|
-
DEPRECATION WARNING: Passing a percentage as the alpha value to hsla() will be
|
128
|
-
interpreted differently in future versions of Sass. For now, use 40 instead.
|
129
|
-
WARNING
|
130
|
-
end
|
131
|
-
|
132
|
-
def test_hsla_unit_warning
|
133
|
-
assert_warning(<<WARNING) {evaluate("hsla(180, 60%, 50%, 40em)")}
|
134
|
-
DEPRECATION WARNING: Passing a number with units as the alpha value to hsla() is
|
135
|
-
deprecated and will be an error in future versions of Sass. Use 40 instead.
|
136
|
-
WARNING
|
137
|
-
end
|
138
|
-
|
139
|
-
def test_percentage
|
140
|
-
assert_equal("50%", evaluate("percentage(.5)"))
|
141
|
-
assert_equal("100%", evaluate("percentage(1)"))
|
142
|
-
assert_equal("25%", evaluate("percentage(25px / 100px)"))
|
143
|
-
assert_equal("50%", evaluate("percentage($number: 0.5)"))
|
144
|
-
end
|
145
|
-
|
146
|
-
def test_percentage_checks_types
|
147
|
-
assert_error_message("$number: 25px is not a unitless number for `percentage'", "percentage(25px)")
|
148
|
-
assert_error_message("$number: #cccccc is not a unitless number for `percentage'", "percentage(#ccc)")
|
149
|
-
assert_error_message("$number: \"string\" is not a unitless number for `percentage'", %Q{percentage("string")})
|
150
|
-
end
|
151
|
-
|
152
|
-
def test_round
|
153
|
-
assert_equal("5", evaluate("round(4.8)"))
|
154
|
-
assert_equal("5px", evaluate("round(4.8px)"))
|
155
|
-
assert_equal("5px", evaluate("round(5.49px)"))
|
156
|
-
assert_equal("5px", evaluate("round($number: 5.49px)"))
|
157
|
-
assert_equal("-6", evaluate("round(-5.5)"))
|
158
|
-
end
|
159
|
-
|
160
|
-
def test_round_checks_types
|
161
|
-
assert_error_message("$value: #cccccc is not a number for `round'", "round(#ccc)")
|
162
|
-
end
|
163
|
-
|
164
|
-
def test_floor
|
165
|
-
assert_equal("4", evaluate("floor(4.8)"))
|
166
|
-
assert_equal("4px", evaluate("floor(4.8px)"))
|
167
|
-
assert_equal("4px", evaluate("floor($number: 4.8px)"))
|
168
|
-
end
|
169
|
-
|
170
|
-
def test_floor_checks_types
|
171
|
-
assert_error_message("$value: \"foo\" is not a number for `floor'", "floor(\"foo\")")
|
172
|
-
end
|
173
|
-
|
174
|
-
def test_ceil
|
175
|
-
assert_equal("5", evaluate("ceil(4.1)"))
|
176
|
-
assert_equal("5px", evaluate("ceil(4.8px)"))
|
177
|
-
assert_equal("5px", evaluate("ceil($number: 4.8px)"))
|
178
|
-
end
|
179
|
-
|
180
|
-
def test_ceil_checks_types
|
181
|
-
assert_error_message("$value: \"a\" is not a number for `ceil'", "ceil(\"a\")")
|
182
|
-
end
|
183
|
-
|
184
|
-
def test_abs
|
185
|
-
assert_equal("5", evaluate("abs(-5)"))
|
186
|
-
assert_equal("5px", evaluate("abs(-5px)"))
|
187
|
-
assert_equal("5", evaluate("abs(5)"))
|
188
|
-
assert_equal("5px", evaluate("abs(5px)"))
|
189
|
-
assert_equal("5px", evaluate("abs($number: 5px)"))
|
190
|
-
end
|
191
|
-
|
192
|
-
def test_abs_checks_types
|
193
|
-
assert_error_message("$value: #aaaaaa is not a number for `abs'", "abs(#aaa)")
|
194
|
-
end
|
195
|
-
|
196
|
-
def test_min
|
197
|
-
assert_equal("1", evaluate("min(1, 2, 3)"))
|
198
|
-
assert_equal("1", evaluate("min(3px, 2px, 1)"))
|
199
|
-
assert_equal("4em", evaluate("min(4em)"))
|
200
|
-
assert_equal("10cm", evaluate("min(10cm, 6in)"))
|
201
|
-
assert_equal("1q", evaluate("min(1cm, 1q)"))
|
202
|
-
|
203
|
-
assert_error_message("#aaaaaa is not a number for `min'", "min(#aaa)")
|
204
|
-
assert_error_message("Incompatible units: 'px' and 'em'.", "min(3em, 4em, 1px)")
|
205
|
-
end
|
206
|
-
|
207
|
-
def test_max
|
208
|
-
assert_equal("3", evaluate("max(1, 2, 3)"))
|
209
|
-
assert_equal("3", evaluate("max(3, 2px, 1px)"))
|
210
|
-
assert_equal("4em", evaluate("max(4em)"))
|
211
|
-
assert_equal("6in", evaluate("max(10cm, 6in)"))
|
212
|
-
assert_equal("11mm", evaluate("max(11mm, 10q)"))
|
213
|
-
|
214
|
-
assert_error_message("#aaaaaa is not a number for `max'", "max(#aaa)")
|
215
|
-
assert_error_message("Incompatible units: 'px' and 'em'.", "max(3em, 4em, 1px)")
|
216
|
-
end
|
217
|
-
|
218
|
-
def test_rgb
|
219
|
-
assert_equal("#123456", evaluate("rgb(18, 52, 86)"))
|
220
|
-
assert_equal("#beaded", evaluate("rgb(190, 173, 237)"))
|
221
|
-
assert_equal("springgreen", evaluate("rgb(0, 255, 127)"))
|
222
|
-
assert_equal("springgreen", evaluate("rgb($red: 0, $green: 255, $blue: 127)"))
|
223
|
-
end
|
224
|
-
|
225
|
-
def test_rgb_percent
|
226
|
-
assert_equal("#123457", evaluate("rgb(7.1%, 20.4%, 34%)"))
|
227
|
-
assert_equal("#beaded", evaluate("rgb(74.7%, 173, 93%)"))
|
228
|
-
assert_equal("#beaded", evaluate("rgb(190, 68%, 237)"))
|
229
|
-
assert_equal("#00ff80", evaluate("rgb(0%, 100%, 50%)"))
|
230
|
-
end
|
231
|
-
|
232
|
-
def test_rgb_clamps_bounds
|
233
|
-
assert_equal("#ff0101", evaluate("rgb(256, 1, 1)"))
|
234
|
-
assert_equal("#01ff01", evaluate("rgb(1, 256, 1)"))
|
235
|
-
assert_equal("#0101ff", evaluate("rgb(1, 1, 256)"))
|
236
|
-
assert_equal("#01ffff", evaluate("rgb(1, 256, 257)"))
|
237
|
-
assert_equal("#000101", evaluate("rgb(-1, 1, 1)"))
|
238
|
-
end
|
239
|
-
|
240
|
-
def test_rgb_clamps_percent_bounds
|
241
|
-
assert_equal("red", evaluate("rgb(100.1%, 0, 0)"))
|
242
|
-
assert_equal("black", evaluate("rgb(0, -0.1%, 0)"))
|
243
|
-
assert_equal("blue", evaluate("rgb(0, 0, 101%)"))
|
244
|
-
end
|
245
|
-
|
246
|
-
def test_rgb_tests_types
|
247
|
-
assert_error_message("$red: \"foo\" is not a number for `rgb'", "rgb(\"foo\", 10, 12)");
|
248
|
-
assert_error_message("$green: \"foo\" is not a number for `rgb'", "rgb(10, \"foo\", 12)");
|
249
|
-
assert_error_message("$blue: \"foo\" is not a number for `rgb'", "rgb(10, 10, \"foo\")");
|
250
|
-
end
|
251
|
-
|
252
|
-
def test_rgba
|
253
|
-
assert_equal("rgba(18, 52, 86, 0.5)", evaluate("rgba(18, 52, 86, 0.5)"))
|
254
|
-
assert_equal("#beaded", evaluate("rgba(190, 173, 237, 1)"))
|
255
|
-
assert_equal("rgba(0, 255, 127, 0)", evaluate("rgba(0, 255, 127, 0)"))
|
256
|
-
assert_equal("rgba(0, 255, 127, 0)", evaluate("rgba($red: 0, $green: 255, $blue: 127, $alpha: 0)"))
|
257
|
-
end
|
258
|
-
|
259
|
-
def test_rgba_clamps_bounds
|
260
|
-
assert_equal("rgba(255, 1, 1, 0.3)", evaluate("rgba(256, 1, 1, 0.3)"))
|
261
|
-
assert_equal("rgba(1, 255, 1, 0.3)", evaluate("rgba(1, 256, 1, 0.3)"))
|
262
|
-
assert_equal("rgba(1, 1, 255, 0.3)", evaluate("rgba(1, 1, 256, 0.3)"))
|
263
|
-
assert_equal("rgba(1, 255, 255, 0.3)", evaluate("rgba(1, 256, 257, 0.3)"))
|
264
|
-
assert_equal("rgba(0, 1, 1, 0.3)", evaluate("rgba(-1, 1, 1, 0.3)"))
|
265
|
-
assert_equal("rgba(1, 1, 1, 0)", evaluate("rgba(1, 1, 1, -0.2)"))
|
266
|
-
assert_equal("#010101", evaluate("rgba(1, 1, 1, 1.2)"))
|
267
|
-
end
|
268
|
-
|
269
|
-
def test_rgba_tests_types
|
270
|
-
assert_error_message("$red: \"foo\" is not a number for `rgba'", "rgba(\"foo\", 10, 12, 0.2)");
|
271
|
-
assert_error_message("$green: \"foo\" is not a number for `rgba'", "rgba(10, \"foo\", 12, 0.1)");
|
272
|
-
assert_error_message("$blue: \"foo\" is not a number for `rgba'", "rgba(10, 10, \"foo\", 0)");
|
273
|
-
assert_error_message("$alpha: \"foo\" is not a number for `rgba'", "rgba(10, 10, 10, \"foo\")");
|
274
|
-
end
|
275
|
-
|
276
|
-
def test_rgba_with_color
|
277
|
-
assert_equal "rgba(16, 32, 48, 0.5)", evaluate("rgba(#102030, 0.5)")
|
278
|
-
assert_equal "rgba(0, 0, 255, 0.5)", evaluate("rgba(blue, 0.5)")
|
279
|
-
assert_equal "rgba(0, 0, 255, 0.5)", evaluate("rgba($color: blue, $alpha: 0.5)")
|
280
|
-
end
|
281
|
-
|
282
|
-
def test_rgba_with_color_tests_types
|
283
|
-
assert_error_message("$color: \"foo\" is not a color for `rgba'", "rgba(\"foo\", 0.2)");
|
284
|
-
assert_error_message("$alpha: \"foo\" is not a number for `rgba'", "rgba(blue, \"foo\")");
|
285
|
-
end
|
286
|
-
|
287
|
-
def test_rgba_tests_num_args
|
288
|
-
assert_error_message("wrong number of arguments (0 for 4) for `rgba'", "rgba()");
|
289
|
-
assert_error_message("wrong number of arguments (1 for 4) for `rgba'", "rgba(blue)");
|
290
|
-
assert_error_message("wrong number of arguments (3 for 4) for `rgba'", "rgba(1, 2, 3)");
|
291
|
-
assert_error_message("wrong number of arguments (5 for 4) for `rgba'", "rgba(1, 2, 3, 0.4, 5)");
|
292
|
-
end
|
293
|
-
|
294
|
-
def test_rgba_percent_warning
|
295
|
-
assert_warning(<<WARNING) {evaluate("rgba(1, 2, 3, 40%)")}
|
296
|
-
DEPRECATION WARNING: Passing a percentage as the alpha value to rgba() will be
|
297
|
-
interpreted differently in future versions of Sass. For now, use 40 instead.
|
298
|
-
WARNING
|
299
|
-
end
|
300
|
-
|
301
|
-
def test_rgba_unit_warning
|
302
|
-
assert_warning(<<WARNING) {evaluate("rgba(1, 2, 3, 40em)")}
|
303
|
-
DEPRECATION WARNING: Passing a number with units as the alpha value to rgba() is
|
304
|
-
deprecated and will be an error in future versions of Sass. Use 40 instead.
|
305
|
-
WARNING
|
306
|
-
end
|
307
|
-
|
308
|
-
def test_red
|
309
|
-
assert_equal("18", evaluate("red(#123456)"))
|
310
|
-
assert_equal("18", evaluate("red($color: #123456)"))
|
311
|
-
end
|
312
|
-
|
313
|
-
def test_red_exception
|
314
|
-
assert_error_message("$color: 12 is not a color for `red'", "red(12)")
|
315
|
-
end
|
316
|
-
|
317
|
-
def test_green
|
318
|
-
assert_equal("52", evaluate("green(#123456)"))
|
319
|
-
assert_equal("52", evaluate("green($color: #123456)"))
|
320
|
-
end
|
321
|
-
|
322
|
-
def test_green_exception
|
323
|
-
assert_error_message("$color: 12 is not a color for `green'", "green(12)")
|
324
|
-
end
|
325
|
-
|
326
|
-
def test_blue
|
327
|
-
assert_equal("86", evaluate("blue(#123456)"))
|
328
|
-
assert_equal("86", evaluate("blue($color: #123456)"))
|
329
|
-
end
|
330
|
-
|
331
|
-
def test_blue_exception
|
332
|
-
assert_error_message("$color: 12 is not a color for `blue'", "blue(12)")
|
333
|
-
end
|
334
|
-
|
335
|
-
def test_hue
|
336
|
-
assert_equal("18deg", evaluate("hue(hsl(18, 50%, 20%))"))
|
337
|
-
assert_equal("18deg", evaluate("hue($color: hsl(18, 50%, 20%))"))
|
338
|
-
end
|
339
|
-
|
340
|
-
def test_hue_exception
|
341
|
-
assert_error_message("$color: 12 is not a color for `hue'", "hue(12)")
|
342
|
-
end
|
343
|
-
|
344
|
-
def test_saturation
|
345
|
-
assert_equal("52%", evaluate("saturation(hsl(20, 52%, 20%))"))
|
346
|
-
assert_equal("52%", evaluate("saturation(hsl(20, 52, 20%))"))
|
347
|
-
assert_equal("52%", evaluate("saturation($color: hsl(20, 52, 20%))"))
|
348
|
-
end
|
349
|
-
|
350
|
-
def test_saturation_exception
|
351
|
-
assert_error_message("$color: 12 is not a color for `saturation'", "saturation(12)")
|
352
|
-
end
|
353
|
-
|
354
|
-
def test_lightness
|
355
|
-
assert_equal("86%", evaluate("lightness(hsl(120, 50%, 86%))"))
|
356
|
-
assert_equal("86%", evaluate("lightness(hsl(120, 50%, 86))"))
|
357
|
-
assert_equal("86%", evaluate("lightness($color: hsl(120, 50%, 86))"))
|
358
|
-
end
|
359
|
-
|
360
|
-
def test_lightness_exception
|
361
|
-
assert_error_message("$color: 12 is not a color for `lightness'", "lightness(12)")
|
362
|
-
end
|
363
|
-
|
364
|
-
def test_alpha
|
365
|
-
assert_equal("1", evaluate("alpha(#123456)"))
|
366
|
-
assert_equal("0.34", evaluate("alpha(rgba(0, 1, 2, 0.34))"))
|
367
|
-
assert_equal("0", evaluate("alpha(hsla(0, 1, 2, 0))"))
|
368
|
-
assert_equal("0", evaluate("alpha($color: hsla(0, 1, 2, 0))"))
|
369
|
-
end
|
370
|
-
|
371
|
-
def test_alpha_exception
|
372
|
-
assert_error_message("$color: 12 is not a color for `alpha'", "alpha(12)")
|
373
|
-
end
|
374
|
-
|
375
|
-
def test_opacity
|
376
|
-
assert_equal("1", evaluate("opacity(#123456)"))
|
377
|
-
assert_equal("0.34", evaluate("opacity(rgba(0, 1, 2, 0.34))"))
|
378
|
-
assert_equal("0", evaluate("opacity(hsla(0, 1, 2, 0))"))
|
379
|
-
assert_equal("0", evaluate("opacity($color: hsla(0, 1, 2, 0))"))
|
380
|
-
assert_equal("opacity(20%)", evaluate("opacity(20%)"))
|
381
|
-
end
|
382
|
-
|
383
|
-
def test_opacity_exception
|
384
|
-
assert_error_message("$color: \"foo\" is not a color for `opacity'", "opacity(foo)")
|
385
|
-
end
|
386
|
-
|
387
|
-
def test_opacify
|
388
|
-
assert_equal("rgba(0, 0, 0, 0.75)", evaluate("opacify(rgba(0, 0, 0, 0.5), 0.25)"))
|
389
|
-
assert_equal("rgba(0, 0, 0, 0.3)", evaluate("opacify(rgba(0, 0, 0, 0.2), 0.1)"))
|
390
|
-
assert_equal("rgba(0, 0, 0, 0.7)", evaluate("fade-in(rgba(0, 0, 0, 0.2), 0.5px)"))
|
391
|
-
assert_equal("black", evaluate("fade_in(rgba(0, 0, 0, 0.2), 0.8)"))
|
392
|
-
assert_equal("black", evaluate("opacify(rgba(0, 0, 0, 0.2), 1)"))
|
393
|
-
assert_equal("rgba(0, 0, 0, 0.2)", evaluate("opacify(rgba(0, 0, 0, 0.2), 0%)"))
|
394
|
-
assert_equal("rgba(0, 0, 0, 0.2)", evaluate("opacify($color: rgba(0, 0, 0, 0.2), $amount: 0%)"))
|
395
|
-
assert_equal("rgba(0, 0, 0, 0.2)", evaluate("fade-in($color: rgba(0, 0, 0, 0.2), $amount: 0%)"))
|
396
|
-
end
|
397
|
-
|
398
|
-
def test_opacify_tests_bounds
|
399
|
-
assert_error_message("Amount -0.001 must be between 0 and 1 for `opacify'",
|
400
|
-
"opacify(rgba(0, 0, 0, 0.2), -0.001)")
|
401
|
-
assert_error_message("Amount 1.001 must be between 0 and 1 for `opacify'",
|
402
|
-
"opacify(rgba(0, 0, 0, 0.2), 1.001)")
|
403
|
-
end
|
404
|
-
|
405
|
-
def test_opacify_tests_types
|
406
|
-
assert_error_message("$color: \"foo\" is not a color for `opacify'", "opacify(\"foo\", 10%)")
|
407
|
-
assert_error_message("$amount: \"foo\" is not a number for `opacify'", "opacify(#fff, \"foo\")")
|
408
|
-
end
|
409
|
-
|
410
|
-
def test_transparentize
|
411
|
-
assert_equal("rgba(0, 0, 0, 0.3)", evaluate("transparentize(rgba(0, 0, 0, 0.5), 0.2)"))
|
412
|
-
assert_equal("rgba(0, 0, 0, 0.1)", evaluate("transparentize(rgba(0, 0, 0, 0.2), 0.1)"))
|
413
|
-
assert_equal("rgba(0, 0, 0, 0.2)", evaluate("fade-out(rgba(0, 0, 0, 0.5), 0.3px)"))
|
414
|
-
assert_equal("transparent", evaluate("fade_out(rgba(0, 0, 0, 0.2), 0.2)"))
|
415
|
-
assert_equal("transparent", evaluate("transparentize(rgba(0, 0, 0, 0.2), 1)"))
|
416
|
-
assert_equal("rgba(0, 0, 0, 0.2)", evaluate("transparentize(rgba(0, 0, 0, 0.2), 0)"))
|
417
|
-
assert_equal("rgba(0, 0, 0, 0.2)", evaluate("transparentize($color: rgba(0, 0, 0, 0.2), $amount: 0)"))
|
418
|
-
assert_equal("rgba(0, 0, 0, 0.2)", evaluate("fade-out($color: rgba(0, 0, 0, 0.2), $amount: 0)"))
|
419
|
-
end
|
420
|
-
|
421
|
-
def test_transparentize_tests_bounds
|
422
|
-
assert_error_message("Amount -0.001 must be between 0 and 1 for `transparentize'",
|
423
|
-
"transparentize(rgba(0, 0, 0, 0.2), -0.001)")
|
424
|
-
assert_error_message("Amount 1.001 must be between 0 and 1 for `transparentize'",
|
425
|
-
"transparentize(rgba(0, 0, 0, 0.2), 1.001)")
|
426
|
-
end
|
427
|
-
|
428
|
-
def test_transparentize_tests_types
|
429
|
-
assert_error_message("$color: \"foo\" is not a color for `transparentize'", "transparentize(\"foo\", 10%)")
|
430
|
-
assert_error_message("$amount: \"foo\" is not a number for `transparentize'", "transparentize(#fff, \"foo\")")
|
431
|
-
end
|
432
|
-
|
433
|
-
def test_lighten
|
434
|
-
assert_equal("#4d4d4d", evaluate("lighten(hsl(0, 0, 0), 30%)"))
|
435
|
-
assert_equal("#ee0000", evaluate("lighten(#800, 20%)"))
|
436
|
-
assert_equal("white", evaluate("lighten(#fff, 20%)"))
|
437
|
-
assert_equal("white", evaluate("lighten(#800, 100%)"))
|
438
|
-
assert_equal("#880000", evaluate("lighten(#800, 0%)"))
|
439
|
-
assert_equal("rgba(238, 0, 0, 0.5)", evaluate("lighten(rgba(136, 0, 0, 0.5), 20%)"))
|
440
|
-
assert_equal("rgba(238, 0, 0, 0.5)", evaluate("lighten($color: rgba(136, 0, 0, 0.5), $amount: 20%)"))
|
441
|
-
end
|
442
|
-
|
443
|
-
def test_lighten_tests_bounds
|
444
|
-
assert_error_message("Amount -0.001 must be between 0% and 100% for `lighten'",
|
445
|
-
"lighten(#123, -0.001)")
|
446
|
-
assert_error_message("Amount 100.001 must be between 0% and 100% for `lighten'",
|
447
|
-
"lighten(#123, 100.001)")
|
448
|
-
end
|
449
|
-
|
450
|
-
def test_lighten_tests_types
|
451
|
-
assert_error_message("$color: \"foo\" is not a color for `lighten'", "lighten(\"foo\", 10%)")
|
452
|
-
assert_error_message("$amount: \"foo\" is not a number for `lighten'", "lighten(#fff, \"foo\")")
|
453
|
-
end
|
454
|
-
|
455
|
-
def test_darken
|
456
|
-
assert_equal("#ff6a00", evaluate("darken(hsl(25, 100, 80), 30%)"))
|
457
|
-
assert_equal("#220000", evaluate("darken(#800, 20%)"))
|
458
|
-
assert_equal("black", evaluate("darken(#000, 20%)"))
|
459
|
-
assert_equal("black", evaluate("darken(#800, 100%)"))
|
460
|
-
assert_equal("#880000", evaluate("darken(#800, 0%)"))
|
461
|
-
assert_equal("rgba(34, 0, 0, 0.5)", evaluate("darken(rgba(136, 0, 0, 0.5), 20%)"))
|
462
|
-
assert_equal("rgba(34, 0, 0, 0.5)", evaluate("darken($color: rgba(136, 0, 0, 0.5), $amount: 20%)"))
|
463
|
-
end
|
464
|
-
|
465
|
-
def test_darken_tests_bounds
|
466
|
-
assert_error_message("Amount -0.001 must be between 0% and 100% for `darken'",
|
467
|
-
"darken(#123, -0.001)")
|
468
|
-
assert_error_message("Amount 100.001 must be between 0% and 100% for `darken'",
|
469
|
-
"darken(#123, 100.001)")
|
470
|
-
end
|
471
|
-
|
472
|
-
def test_darken_tests_types
|
473
|
-
assert_error_message("$color: \"foo\" is not a color for `darken'", "darken(\"foo\", 10%)")
|
474
|
-
assert_error_message("$amount: \"foo\" is not a number for `darken'", "darken(#fff, \"foo\")")
|
475
|
-
end
|
476
|
-
|
477
|
-
def test_saturate
|
478
|
-
assert_equal("#d9f2d9", evaluate("saturate(hsl(120, 30, 90), 20%)"))
|
479
|
-
assert_equal("#9e3f3f", evaluate("saturate(#855, 20%)"))
|
480
|
-
assert_equal("black", evaluate("saturate(#000, 20%)"))
|
481
|
-
assert_equal("white", evaluate("saturate(#fff, 20%)"))
|
482
|
-
assert_equal("#33ff33", evaluate("saturate(#8a8, 100%)"))
|
483
|
-
assert_equal("#88aa88", evaluate("saturate(#8a8, 0%)"))
|
484
|
-
assert_equal("rgba(158, 63, 63, 0.5)", evaluate("saturate(rgba(136, 85, 85, 0.5), 20%)"))
|
485
|
-
assert_equal("rgba(158, 63, 63, 0.5)", evaluate("saturate($color: rgba(136, 85, 85, 0.5), $amount: 20%)"))
|
486
|
-
assert_equal("saturate(50%)", evaluate("saturate(50%)"))
|
487
|
-
end
|
488
|
-
|
489
|
-
def test_saturate_tests_bounds
|
490
|
-
assert_error_message("Amount -0.001 must be between 0% and 100% for `saturate'",
|
491
|
-
"saturate(#123, -0.001)")
|
492
|
-
assert_error_message("Amount 100.001 must be between 0% and 100% for `saturate'",
|
493
|
-
"saturate(#123, 100.001)")
|
494
|
-
end
|
495
|
-
|
496
|
-
def test_saturate_tests_types
|
497
|
-
assert_error_message("$color: \"foo\" is not a color for `saturate'", "saturate(\"foo\", 10%)")
|
498
|
-
assert_error_message("$amount: \"foo\" is not a number for `saturate'", "saturate(#fff, \"foo\")")
|
499
|
-
end
|
500
|
-
|
501
|
-
def test_desaturate
|
502
|
-
assert_equal("#e3e8e3", evaluate("desaturate(hsl(120, 30, 90), 20%)"))
|
503
|
-
assert_equal("#726b6b", evaluate("desaturate(#855, 20%)"))
|
504
|
-
assert_equal("black", evaluate("desaturate(#000, 20%)"))
|
505
|
-
assert_equal("white", evaluate("desaturate(#fff, 20%)"))
|
506
|
-
assert_equal("#999999", evaluate("desaturate(#8a8, 100%)"))
|
507
|
-
assert_equal("#88aa88", evaluate("desaturate(#8a8, 0%)"))
|
508
|
-
assert_equal("rgba(114, 107, 107, 0.5)", evaluate("desaturate(rgba(136, 85, 85, 0.5), 20%)"))
|
509
|
-
assert_equal("rgba(114, 107, 107, 0.5)", evaluate("desaturate($color: rgba(136, 85, 85, 0.5), $amount: 20%)"))
|
510
|
-
end
|
511
|
-
|
512
|
-
def test_desaturate_tests_bounds
|
513
|
-
assert_error_message("Amount -0.001 must be between 0% and 100% for `desaturate'",
|
514
|
-
"desaturate(#123, -0.001)")
|
515
|
-
assert_error_message("Amount 100.001 must be between 0% and 100% for `desaturate'",
|
516
|
-
"desaturate(#123, 100.001)")
|
517
|
-
end
|
518
|
-
|
519
|
-
def test_desaturate_tests_types
|
520
|
-
assert_error_message("$color: \"foo\" is not a color for `desaturate'", "desaturate(\"foo\", 10%)")
|
521
|
-
assert_error_message("$amount: \"foo\" is not a number for `desaturate'", "desaturate(#fff, \"foo\")")
|
522
|
-
end
|
523
|
-
|
524
|
-
def test_adjust_hue
|
525
|
-
assert_equal("#deeded", evaluate("adjust-hue(hsl(120, 30, 90), 60deg)"))
|
526
|
-
assert_equal("#ededde", evaluate("adjust-hue(hsl(120, 30, 90), -60deg)"))
|
527
|
-
assert_equal("#886a11", evaluate("adjust-hue(#811, 45deg)"))
|
528
|
-
assert_equal("black", evaluate("adjust-hue(#000, 45deg)"))
|
529
|
-
assert_equal("white", evaluate("adjust-hue(#fff, 45deg)"))
|
530
|
-
assert_equal("#88aa88", evaluate("adjust-hue(#8a8, 360deg)"))
|
531
|
-
assert_equal("#88aa88", evaluate("adjust-hue(#8a8, 0deg)"))
|
532
|
-
assert_equal("rgba(136, 106, 17, 0.5)", evaluate("adjust-hue(rgba(136, 17, 17, 0.5), 45deg)"))
|
533
|
-
assert_equal("rgba(136, 106, 17, 0.5)", evaluate("adjust-hue($color: rgba(136, 17, 17, 0.5), $degrees: 45deg)"))
|
534
|
-
end
|
535
|
-
|
536
|
-
def test_adjust_hue_tests_types
|
537
|
-
assert_error_message("$color: \"foo\" is not a color for `adjust-hue'", "adjust-hue(\"foo\", 10%)")
|
538
|
-
assert_error_message("$degrees: \"foo\" is not a number for `adjust-hue'", "adjust-hue(#fff, \"foo\")")
|
539
|
-
end
|
540
|
-
|
541
|
-
def test_adjust_color
|
542
|
-
# HSL
|
543
|
-
assert_equal(evaluate("hsl(180, 30, 90)"),
|
544
|
-
evaluate("adjust-color(hsl(120, 30, 90), $hue: 60deg)"))
|
545
|
-
assert_equal(evaluate("hsl(120, 50, 90)"),
|
546
|
-
evaluate("adjust-color(hsl(120, 30, 90), $saturation: 20%)"))
|
547
|
-
assert_equal(evaluate("hsl(120, 30, 60)"),
|
548
|
-
evaluate("adjust-color(hsl(120, 30, 90), $lightness: -30%)"))
|
549
|
-
# RGB
|
550
|
-
assert_equal(evaluate("rgb(15, 20, 30)"),
|
551
|
-
evaluate("adjust-color(rgb(10, 20, 30), $red: 5)"))
|
552
|
-
assert_equal(evaluate("rgb(10, 15, 30)"),
|
553
|
-
evaluate("adjust-color(rgb(10, 20, 30), $green: -5)"))
|
554
|
-
assert_equal(evaluate("rgb(10, 20, 40)"),
|
555
|
-
evaluate("adjust-color(rgb(10, 20, 30), $blue: 10)"))
|
556
|
-
# Alpha
|
557
|
-
assert_equal(evaluate("hsla(120, 30, 90, 0.65)"),
|
558
|
-
evaluate("adjust-color(hsl(120, 30, 90), $alpha: -0.35)"))
|
559
|
-
assert_equal(evaluate("rgba(10, 20, 30, 0.9)"),
|
560
|
-
evaluate("adjust-color(rgba(10, 20, 30, 0.4), $alpha: 0.5)"))
|
561
|
-
|
562
|
-
# HSL composability
|
563
|
-
assert_equal(evaluate("hsl(180, 20, 90)"),
|
564
|
-
evaluate("adjust-color(hsl(120, 30, 90), $hue: 60deg, $saturation: -10%)"))
|
565
|
-
assert_equal(evaluate("hsl(180, 20, 95)"),
|
566
|
-
evaluate("adjust-color(hsl(120, 30, 90), $hue: 60deg, $saturation: -10%, $lightness: 5%)"))
|
567
|
-
assert_equal(evaluate("hsla(120, 20, 95, 0.3)"),
|
568
|
-
evaluate("adjust-color(hsl(120, 30, 90), $saturation: -10%, $lightness: 5%, $alpha: -0.7)"))
|
569
|
-
|
570
|
-
# RGB composability
|
571
|
-
assert_equal(evaluate("rgb(15, 20, 29)"),
|
572
|
-
evaluate("adjust-color(rgb(10, 20, 30), $red: 5, $blue: -1)"))
|
573
|
-
assert_equal(evaluate("rgb(15, 45, 29)"),
|
574
|
-
evaluate("adjust-color(rgb(10, 20, 30), $red: 5, $green: 25, $blue: -1)"))
|
575
|
-
assert_equal(evaluate("rgba(10, 25, 29, 0.7)"),
|
576
|
-
evaluate("adjust-color(rgb(10, 20, 30), $green: 5, $blue: -1, $alpha: -0.3)"))
|
577
|
-
|
578
|
-
# HSL range restriction
|
579
|
-
assert_equal(evaluate("hsl(120, 30, 90)"),
|
580
|
-
evaluate("adjust-color(hsl(120, 30, 90), $hue: 720deg)"))
|
581
|
-
assert_equal(evaluate("hsl(120, 0, 90)"),
|
582
|
-
evaluate("adjust-color(hsl(120, 30, 90), $saturation: -90%)"))
|
583
|
-
assert_equal(evaluate("hsl(120, 30, 100)"),
|
584
|
-
evaluate("adjust-color(hsl(120, 30, 90), $lightness: 30%)"))
|
585
|
-
|
586
|
-
# RGB range restriction
|
587
|
-
assert_equal(evaluate("rgb(255, 20, 30)"),
|
588
|
-
evaluate("adjust-color(rgb(10, 20, 30), $red: 250)"))
|
589
|
-
assert_equal(evaluate("rgb(10, 0, 30)"),
|
590
|
-
evaluate("adjust-color(rgb(10, 20, 30), $green: -30)"))
|
591
|
-
assert_equal(evaluate("rgb(10, 20, 0)"),
|
592
|
-
evaluate("adjust-color(rgb(10, 20, 30), $blue: -40)"))
|
593
|
-
end
|
594
|
-
|
595
|
-
def test_adjust_color_tests_types
|
596
|
-
assert_error_message("$color: \"foo\" is not a color for `adjust-color'", "adjust-color(foo, $hue: 10)")
|
597
|
-
# HSL
|
598
|
-
assert_error_message("$hue: \"foo\" is not a number for `adjust-color'",
|
599
|
-
"adjust-color(blue, $hue: foo)")
|
600
|
-
assert_error_message("$saturation: \"foo\" is not a number for `adjust-color'",
|
601
|
-
"adjust-color(blue, $saturation: foo)")
|
602
|
-
assert_error_message("$lightness: \"foo\" is not a number for `adjust-color'",
|
603
|
-
"adjust-color(blue, $lightness: foo)")
|
604
|
-
# RGB
|
605
|
-
assert_error_message("$red: \"foo\" is not a number for `adjust-color'",
|
606
|
-
"adjust-color(blue, $red: foo)")
|
607
|
-
assert_error_message("$green: \"foo\" is not a number for `adjust-color'",
|
608
|
-
"adjust-color(blue, $green: foo)")
|
609
|
-
assert_error_message("$blue: \"foo\" is not a number for `adjust-color'",
|
610
|
-
"adjust-color(blue, $blue: foo)")
|
611
|
-
# Alpha
|
612
|
-
assert_error_message("$alpha: \"foo\" is not a number for `adjust-color'",
|
613
|
-
"adjust-color(blue, $alpha: foo)")
|
614
|
-
end
|
615
|
-
|
616
|
-
def test_adjust_color_tests_arg_range
|
617
|
-
# HSL
|
618
|
-
assert_error_message("$saturation: Amount 101% must be between -100% and 100% for `adjust-color'",
|
619
|
-
"adjust-color(blue, $saturation: 101%)")
|
620
|
-
assert_error_message("$saturation: Amount -101% must be between -100% and 100% for `adjust-color'",
|
621
|
-
"adjust-color(blue, $saturation: -101%)")
|
622
|
-
assert_error_message("$lightness: Amount 101% must be between -100% and 100% for `adjust-color'",
|
623
|
-
"adjust-color(blue, $lightness: 101%)")
|
624
|
-
assert_error_message("$lightness: Amount -101% must be between -100% and 100% for `adjust-color'",
|
625
|
-
"adjust-color(blue, $lightness: -101%)")
|
626
|
-
# RGB
|
627
|
-
assert_error_message("$red: Amount 256 must be between -255 and 255 for `adjust-color'",
|
628
|
-
"adjust-color(blue, $red: 256)")
|
629
|
-
assert_error_message("$red: Amount -256 must be between -255 and 255 for `adjust-color'",
|
630
|
-
"adjust-color(blue, $red: -256)")
|
631
|
-
assert_error_message("$green: Amount 256 must be between -255 and 255 for `adjust-color'",
|
632
|
-
"adjust-color(blue, $green: 256)")
|
633
|
-
assert_error_message("$green: Amount -256 must be between -255 and 255 for `adjust-color'",
|
634
|
-
"adjust-color(blue, $green: -256)")
|
635
|
-
assert_error_message("$blue: Amount 256 must be between -255 and 255 for `adjust-color'",
|
636
|
-
"adjust-color(blue, $blue: 256)")
|
637
|
-
assert_error_message("$blue: Amount -256 must be between -255 and 255 for `adjust-color'",
|
638
|
-
"adjust-color(blue, $blue: -256)")
|
639
|
-
# Alpha
|
640
|
-
assert_error_message("$alpha: Amount 1.1 must be between -1 and 1 for `adjust-color'",
|
641
|
-
"adjust-color(blue, $alpha: 1.1)")
|
642
|
-
assert_error_message("$alpha: Amount -1.1 must be between -1 and 1 for `adjust-color'",
|
643
|
-
"adjust-color(blue, $alpha: -1.1)")
|
644
|
-
end
|
645
|
-
|
646
|
-
def test_adjust_color_argument_errors
|
647
|
-
assert_error_message("Unknown argument $hoo (260deg) for `adjust-color'",
|
648
|
-
"adjust-color(blue, $hoo: 260deg)")
|
649
|
-
assert_error_message("Cannot specify HSL and RGB values for a color at the same time for `adjust-color'",
|
650
|
-
"adjust-color(blue, $hue: 120deg, $red: 10)");
|
651
|
-
assert_error_message("10px is not a keyword argument for `adjust_color'",
|
652
|
-
"adjust-color(blue, 10px)")
|
653
|
-
assert_error_message("10px is not a keyword argument for `adjust_color'",
|
654
|
-
"adjust-color(blue, 10px, 20px)")
|
655
|
-
assert_error_message("10px is not a keyword argument for `adjust_color'",
|
656
|
-
"adjust-color(blue, 10px, $hue: 180deg)")
|
657
|
-
end
|
658
|
-
|
659
|
-
def test_scale_color
|
660
|
-
# HSL
|
661
|
-
assert_equal(evaluate("hsl(120, 51, 90)"),
|
662
|
-
evaluate("scale-color(hsl(120, 30, 90), $saturation: 30%)"))
|
663
|
-
assert_equal(evaluate("hsl(120, 30, 76.5)"),
|
664
|
-
evaluate("scale-color(hsl(120, 30, 90), $lightness: -15%)"))
|
665
|
-
# RGB
|
666
|
-
assert_equal(evaluate("rgb(157, 20, 30)"),
|
667
|
-
evaluate("scale-color(rgb(10, 20, 30), $red: 60%)"))
|
668
|
-
assert_equal(evaluate("rgb(10, 38.8, 30)"),
|
669
|
-
evaluate("scale-color(rgb(10, 20, 30), $green: 8%)"))
|
670
|
-
assert_equal(evaluate("rgb(10, 20, 20)"),
|
671
|
-
evaluate("scale-color(rgb(10, 20, 30), $blue: -(1/3)*100%)"))
|
672
|
-
# Alpha
|
673
|
-
assert_equal(evaluate("hsla(120, 30, 90, 0.86)"),
|
674
|
-
evaluate("scale-color(hsl(120, 30, 90), $alpha: -14%)"))
|
675
|
-
assert_equal(evaluate("rgba(10, 20, 30, 0.82)"),
|
676
|
-
evaluate("scale-color(rgba(10, 20, 30, 0.8), $alpha: 10%)"))
|
677
|
-
|
678
|
-
# HSL composability
|
679
|
-
assert_equal(evaluate("hsl(120, 51, 76.5)"),
|
680
|
-
evaluate("scale-color(hsl(120, 30, 90), $saturation: 30%, $lightness: -15%)"))
|
681
|
-
assert_equal(evaluate("hsla(120, 51, 90, 0.2)"),
|
682
|
-
evaluate("scale-color(hsl(120, 30, 90), $saturation: 30%, $alpha: -80%)"))
|
683
|
-
|
684
|
-
# RGB composability
|
685
|
-
assert_equal(evaluate("rgb(157, 38.8, 30)"),
|
686
|
-
evaluate("scale-color(rgb(10, 20, 30), $red: 60%, $green: 8%)"))
|
687
|
-
assert_equal(evaluate("rgb(157, 38.8, 20)"),
|
688
|
-
evaluate("scale-color(rgb(10, 20, 30), $red: 60%, $green: 8%, $blue: -(1/3)*100%)"))
|
689
|
-
assert_equal(evaluate("rgba(10, 38.8, 20, 0.55)"),
|
690
|
-
evaluate("scale-color(rgba(10, 20, 30, 0.5), $green: 8%, $blue: -(1/3)*100%, $alpha: 10%)"))
|
691
|
-
|
692
|
-
# Extremes
|
693
|
-
assert_equal(evaluate("hsl(120, 100, 90)"),
|
694
|
-
evaluate("scale-color(hsl(120, 30, 90), $saturation: 100%)"))
|
695
|
-
assert_equal(evaluate("hsl(120, 30, 90)"),
|
696
|
-
evaluate("scale-color(hsl(120, 30, 90), $saturation: 0%)"))
|
697
|
-
assert_equal(evaluate("hsl(120, 0, 90)"),
|
698
|
-
evaluate("scale-color(hsl(120, 30, 90), $saturation: -100%)"))
|
699
|
-
end
|
700
|
-
|
701
|
-
def test_scale_color_tests_types
|
702
|
-
assert_error_message("$color: \"foo\" is not a color for `scale-color'", "scale-color(foo, $red: 10%)")
|
703
|
-
# HSL
|
704
|
-
assert_error_message("$saturation: \"foo\" is not a number for `scale-color'",
|
705
|
-
"scale-color(blue, $saturation: foo)")
|
706
|
-
assert_error_message("$lightness: \"foo\" is not a number for `scale-color'",
|
707
|
-
"scale-color(blue, $lightness: foo)")
|
708
|
-
# RGB
|
709
|
-
assert_error_message("$red: \"foo\" is not a number for `scale-color'",
|
710
|
-
"scale-color(blue, $red: foo)")
|
711
|
-
assert_error_message("$green: \"foo\" is not a number for `scale-color'",
|
712
|
-
"scale-color(blue, $green: foo)")
|
713
|
-
assert_error_message("$blue: \"foo\" is not a number for `scale-color'",
|
714
|
-
"scale-color(blue, $blue: foo)")
|
715
|
-
# Alpha
|
716
|
-
assert_error_message("$alpha: \"foo\" is not a number for `scale-color'",
|
717
|
-
"scale-color(blue, $alpha: foo)")
|
718
|
-
end
|
719
|
-
|
720
|
-
def test_scale_color_argument_errors
|
721
|
-
# Range
|
722
|
-
assert_error_message("$saturation: Amount 101% must be between -100% and 100% for `scale-color'",
|
723
|
-
"scale-color(blue, $saturation: 101%)")
|
724
|
-
assert_error_message("$red: Amount -101% must be between -100% and 100% for `scale-color'",
|
725
|
-
"scale-color(blue, $red: -101%)")
|
726
|
-
assert_error_message("$alpha: Amount -101% must be between -100% and 100% for `scale-color'",
|
727
|
-
"scale-color(blue, $alpha: -101%)")
|
728
|
-
|
729
|
-
# Unit
|
730
|
-
assert_error_message("Expected $saturation to have a unit of % but got 80 for `scale-color'",
|
731
|
-
"scale-color(blue, $saturation: 80)")
|
732
|
-
assert_error_message("Expected $alpha to have a unit of % but got 0.5 for `scale-color'",
|
733
|
-
"scale-color(blue, $alpha: 0.5)")
|
734
|
-
|
735
|
-
# Unknown argument
|
736
|
-
assert_error_message("Unknown argument $hue (80%) for `scale-color'", "scale-color(blue, $hue: 80%)")
|
737
|
-
|
738
|
-
# Non-keyword arg
|
739
|
-
assert_error_message("10px is not a keyword argument for `scale_color'", "scale-color(blue, 10px)")
|
740
|
-
|
741
|
-
# HSL/RGB
|
742
|
-
assert_error_message("Cannot specify HSL and RGB values for a color at the same time for `scale-color'",
|
743
|
-
"scale-color(blue, $lightness: 10%, $red: 20%)");
|
744
|
-
end
|
745
|
-
|
746
|
-
def test_change_color
|
747
|
-
# HSL
|
748
|
-
assert_equal(evaluate("hsl(195, 30, 90)"),
|
749
|
-
evaluate("change-color(hsl(120, 30, 90), $hue: 195deg)"))
|
750
|
-
assert_equal(evaluate("hsl(120, 50, 90)"),
|
751
|
-
evaluate("change-color(hsl(120, 30, 90), $saturation: 50%)"))
|
752
|
-
assert_equal(evaluate("hsl(120, 30, 40)"),
|
753
|
-
evaluate("change-color(hsl(120, 30, 90), $lightness: 40%)"))
|
754
|
-
# RGB
|
755
|
-
assert_equal(evaluate("rgb(123, 20, 30)"),
|
756
|
-
evaluate("change-color(rgb(10, 20, 30), $red: 123)"))
|
757
|
-
assert_equal(evaluate("rgb(10, 234, 30)"),
|
758
|
-
evaluate("change-color(rgb(10, 20, 30), $green: 234)"))
|
759
|
-
assert_equal(evaluate("rgb(10, 20, 198)"),
|
760
|
-
evaluate("change-color(rgb(10, 20, 30), $blue: 198)"))
|
761
|
-
# Alpha
|
762
|
-
assert_equal(evaluate("rgba(10, 20, 30, 0.76)"),
|
763
|
-
evaluate("change-color(rgb(10, 20, 30), $alpha: 0.76)"))
|
764
|
-
|
765
|
-
# HSL composability
|
766
|
-
assert_equal(evaluate("hsl(56, 30, 47)"),
|
767
|
-
evaluate("change-color(hsl(120, 30, 90), $hue: 56deg, $lightness: 47%)"))
|
768
|
-
assert_equal(evaluate("hsla(56, 30, 47, 0.9)"),
|
769
|
-
evaluate("change-color(hsl(120, 30, 90), $hue: 56deg, $lightness: 47%, $alpha: 0.9)"))
|
770
|
-
end
|
771
|
-
|
772
|
-
def test_change_color_tests_types
|
773
|
-
assert_error_message("$color: \"foo\" is not a color for `change-color'", "change-color(foo, $red: 10%)")
|
774
|
-
# HSL
|
775
|
-
assert_error_message("$saturation: \"foo\" is not a number for `change-color'",
|
776
|
-
"change-color(blue, $saturation: foo)")
|
777
|
-
assert_error_message("$lightness: \"foo\" is not a number for `change-color'",
|
778
|
-
"change-color(blue, $lightness: foo)")
|
779
|
-
# RGB
|
780
|
-
assert_error_message("$red: \"foo\" is not a number for `change-color'", "change-color(blue, $red: foo)")
|
781
|
-
assert_error_message("$green: \"foo\" is not a number for `change-color'", "change-color(blue, $green: foo)")
|
782
|
-
assert_error_message("$blue: \"foo\" is not a number for `change-color'", "change-color(blue, $blue: foo)")
|
783
|
-
# Alpha
|
784
|
-
assert_error_message("$alpha: \"foo\" is not a number for `change-color'", "change-color(blue, $alpha: foo)")
|
785
|
-
end
|
786
|
-
|
787
|
-
def test_change_color_argument_errors
|
788
|
-
# Range
|
789
|
-
assert_error_message("Saturation 101% must be between 0% and 100% for `change-color'",
|
790
|
-
"change-color(blue, $saturation: 101%)")
|
791
|
-
assert_error_message("Lightness 101% must be between 0% and 100% for `change-color'",
|
792
|
-
"change-color(blue, $lightness: 101%)")
|
793
|
-
assert_error_message("Red value -1 must be between 0 and 255 for `change-color'",
|
794
|
-
"change-color(blue, $red: -1)")
|
795
|
-
assert_error_message("Green value 256 must be between 0 and 255 for `change-color'",
|
796
|
-
"change-color(blue, $green: 256)")
|
797
|
-
assert_error_message("Blue value 500 must be between 0 and 255 for `change-color'",
|
798
|
-
"change-color(blue, $blue: 500)")
|
799
|
-
|
800
|
-
# Unknown argument
|
801
|
-
assert_error_message("Unknown argument $hoo (80%) for `change-color'", "change-color(blue, $hoo: 80%)")
|
802
|
-
|
803
|
-
# Non-keyword arg
|
804
|
-
assert_error_message("10px is not a keyword argument for `change_color'", "change-color(blue, 10px)")
|
805
|
-
|
806
|
-
# HSL/RGB
|
807
|
-
assert_error_message("Cannot specify HSL and RGB values for a color at the same time for `change-color'",
|
808
|
-
"change-color(blue, $lightness: 10%, $red: 120)");
|
809
|
-
end
|
810
|
-
|
811
|
-
def test_ie_hex_str
|
812
|
-
assert_equal("#FFAA11CC", evaluate('ie-hex-str(#aa11cc)'))
|
813
|
-
assert_equal("#FFAA11CC", evaluate('ie-hex-str(#a1c)'))
|
814
|
-
assert_equal("#FFAA11CC", evaluate('ie-hex-str(#A1c)'))
|
815
|
-
assert_equal("#80FF0000", evaluate('ie-hex-str(rgba(255, 0, 0, 0.5))'))
|
816
|
-
end
|
817
|
-
|
818
|
-
def test_mix
|
819
|
-
assert_equal("purple", evaluate("mix(#f00, #00f)"))
|
820
|
-
assert_equal("gray", evaluate("mix(#f00, #0ff)"))
|
821
|
-
assert_equal("#809155", evaluate("mix(#f70, #0aa)"))
|
822
|
-
assert_equal("#4000bf", evaluate("mix(#f00, #00f, 25%)"))
|
823
|
-
assert_equal("rgba(64, 0, 191, 0.75)", evaluate("mix(rgba(255, 0, 0, 0.5), #00f)"))
|
824
|
-
assert_equal("red", evaluate("mix(#f00, #00f, 100%)"))
|
825
|
-
assert_equal("blue", evaluate("mix(#f00, #00f, 0%)"))
|
826
|
-
assert_equal("rgba(255, 0, 0, 0.5)", evaluate("mix(#f00, transparentize(#00f, 1))"))
|
827
|
-
assert_equal("rgba(0, 0, 255, 0.5)", evaluate("mix(transparentize(#f00, 1), #00f)"))
|
828
|
-
assert_equal("red", evaluate("mix(#f00, transparentize(#00f, 1), 100%)"))
|
829
|
-
assert_equal("blue", evaluate("mix(transparentize(#f00, 1), #00f, 0%)"))
|
830
|
-
assert_equal("rgba(0, 0, 255, 0)", evaluate("mix(#f00, transparentize(#00f, 1), 0%)"))
|
831
|
-
assert_equal("rgba(255, 0, 0, 0)", evaluate("mix(transparentize(#f00, 1), #00f, 100%)"))
|
832
|
-
assert_equal("rgba(255, 0, 0, 0)", evaluate("mix($color1: transparentize(#f00, 1), $color2: #00f, $weight: 100%)"))
|
833
|
-
end
|
834
|
-
|
835
|
-
def test_mix_tests_types
|
836
|
-
assert_error_message("$color1: \"foo\" is not a color for `mix'", "mix(\"foo\", #f00, 10%)")
|
837
|
-
assert_error_message("$color2: \"foo\" is not a color for `mix'", "mix(#f00, \"foo\", 10%)")
|
838
|
-
assert_error_message("$weight: \"foo\" is not a number for `mix'", "mix(#f00, #baf, \"foo\")")
|
839
|
-
end
|
840
|
-
|
841
|
-
def test_mix_tests_bounds
|
842
|
-
assert_error_message("Weight -0.001 must be between 0% and 100% for `mix'",
|
843
|
-
"mix(#123, #456, -0.001)")
|
844
|
-
assert_error_message("Weight 100.001 must be between 0% and 100% for `mix'",
|
845
|
-
"mix(#123, #456, 100.001)")
|
846
|
-
end
|
847
|
-
|
848
|
-
def test_grayscale
|
849
|
-
assert_equal("#bbbbbb", evaluate("grayscale(#abc)"))
|
850
|
-
assert_equal("gray", evaluate("grayscale(#f00)"))
|
851
|
-
assert_equal("gray", evaluate("grayscale(#00f)"))
|
852
|
-
assert_equal("white", evaluate("grayscale(white)"))
|
853
|
-
assert_equal("black", evaluate("grayscale(black)"))
|
854
|
-
assert_equal("black", evaluate("grayscale($color: black)"))
|
855
|
-
|
856
|
-
assert_equal("grayscale(2)", evaluate("grayscale(2)"))
|
857
|
-
assert_equal("grayscale(-5px)", evaluate("grayscale(-5px)"))
|
858
|
-
end
|
859
|
-
|
860
|
-
def tets_grayscale_tests_types
|
861
|
-
assert_error_message("$color: \"foo\" is not a color for `grayscale'", "grayscale(\"foo\")")
|
862
|
-
end
|
863
|
-
|
864
|
-
def test_complement
|
865
|
-
assert_equal("#ccbbaa", evaluate("complement(#abc)"))
|
866
|
-
assert_equal("cyan", evaluate("complement(red)"))
|
867
|
-
assert_equal("red", evaluate("complement(cyan)"))
|
868
|
-
assert_equal("white", evaluate("complement(white)"))
|
869
|
-
assert_equal("black", evaluate("complement(black)"))
|
870
|
-
assert_equal("black", evaluate("complement($color: black)"))
|
871
|
-
end
|
872
|
-
|
873
|
-
def tets_complement_tests_types
|
874
|
-
assert_error_message("$color: \"foo\" is not a color for `complement'", "complement(\"foo\")")
|
875
|
-
end
|
876
|
-
|
877
|
-
def test_invert
|
878
|
-
assert_equal("#112233", evaluate("invert(#edc)"))
|
879
|
-
assert_equal("rgba(245, 235, 225, 0.5)", evaluate("invert(rgba(10, 20, 30, 0.5))"))
|
880
|
-
assert_equal("invert(20%)", evaluate("invert(20%)"))
|
881
|
-
end
|
882
|
-
|
883
|
-
def test_invert_tests_types
|
884
|
-
assert_error_message("$color: \"foo\" is not a color for `invert'", "invert(\"foo\")")
|
885
|
-
end
|
886
|
-
|
887
|
-
def test_unquote
|
888
|
-
assert_equal('foo', evaluate('unquote("foo")'))
|
889
|
-
assert_equal('foo', evaluate('unquote(foo)'))
|
890
|
-
assert_equal('foo', evaluate('unquote($string: foo)'))
|
891
|
-
assert_warning <<MESSAGE do
|
892
|
-
DEPRECATION WARNING: Passing blue, a non-string value, to unquote()
|
893
|
-
will be an error in future versions of Sass.
|
894
|
-
MESSAGE
|
895
|
-
assert_equal('blue', evaluate('unquote(blue)'))
|
896
|
-
end
|
897
|
-
end
|
898
|
-
|
899
|
-
def test_quote
|
900
|
-
assert_equal('"foo"', evaluate('quote(foo)'))
|
901
|
-
assert_equal('"foo"', evaluate('quote("foo")'))
|
902
|
-
assert_equal('"foo"', evaluate('quote($string: "foo")'))
|
903
|
-
end
|
904
|
-
|
905
|
-
def test_quote_tests_type
|
906
|
-
assert_error_message("$string: #ff0000 is not a string for `quote'", "quote(#f00)")
|
907
|
-
end
|
908
|
-
|
909
|
-
def test_str_length
|
910
|
-
assert_equal('3', evaluate('str-length(foo)'))
|
911
|
-
end
|
912
|
-
|
913
|
-
def test_str_length_requires_a_string
|
914
|
-
assert_error_message("$string: #ff0000 is not a string for `str-length'", "str-length(#f00)")
|
915
|
-
end
|
916
|
-
|
917
|
-
def test_str_insert
|
918
|
-
assert_equal('Xabcd', evaluate('str-insert(abcd, X, 0)'))
|
919
|
-
assert_equal('Xabcd', evaluate('str-insert(abcd, X, 1)'))
|
920
|
-
assert_equal('abcXd', evaluate('str-insert(abcd, X, 4)'))
|
921
|
-
assert_equal('abcdX', evaluate('str-insert(abcd, X, 100)'))
|
922
|
-
assert_equal('Xabcd', evaluate('str-insert(abcd, X, -100)'))
|
923
|
-
assert_equal('aXbcd', evaluate('str-insert(abcd, X, -4)'))
|
924
|
-
assert_equal('abcdX', evaluate('str-insert(abcd, X, -1)'))
|
925
|
-
end
|
926
|
-
|
927
|
-
def test_str_insert_maintains_quote_of_primary_string
|
928
|
-
assert_equal('"Xfoo"', evaluate('str-insert("foo", X, 1)'))
|
929
|
-
assert_equal('"Xfoo"', evaluate('str-insert("foo", "X", 1)'))
|
930
|
-
assert_equal('Xfoo', evaluate('str-insert(foo, "X", 1)'))
|
931
|
-
end
|
932
|
-
|
933
|
-
def test_str_insert_asserts_types
|
934
|
-
assert_error_message("$string: #ff0000 is not a string for `str-insert'", "str-insert(#f00, X, 1)")
|
935
|
-
assert_error_message("$insert: #ff0000 is not a string for `str-insert'", "str-insert(foo, #f00, 1)")
|
936
|
-
assert_error_message("$index: #ff0000 is not a number for `str-insert'", "str-insert(foo, X, #f00)")
|
937
|
-
assert_error_message("Expected $index to be unitless but got 10px for `str-insert'", "str-insert(foo, X, 10px)")
|
938
|
-
end
|
939
|
-
|
940
|
-
def test_str_index
|
941
|
-
assert_equal('1', evaluate('str-index(abcd, a)'))
|
942
|
-
assert_equal('1', evaluate('str-index(abcd, ab)'))
|
943
|
-
assert_equal(Sass::Script::Value::Null.new, perform('str-index(abcd, X)'))
|
944
|
-
assert_equal('3', evaluate('str-index(abcd, c)'))
|
945
|
-
end
|
946
|
-
|
947
|
-
def test_str_index_asserts_types
|
948
|
-
assert_error_message("$string: #ff0000 is not a string for `str-index'", "str-index(#f00, X)")
|
949
|
-
assert_error_message("$substring: #ff0000 is not a string for `str-index'", "str-index(asdf, #f00)")
|
950
|
-
end
|
951
|
-
|
952
|
-
def test_to_lower_case
|
953
|
-
assert_equal('abcd', evaluate('to-lower-case(ABCD)'))
|
954
|
-
assert_equal('"abcd"', evaluate('to-lower-case("ABCD")'))
|
955
|
-
assert_error_message("$string: #ff0000 is not a string for `to-lower-case'", "to-lower-case(#f00)")
|
956
|
-
end
|
957
|
-
|
958
|
-
def test_to_upper_case
|
959
|
-
assert_equal('ABCD', evaluate('to-upper-case(abcd)'))
|
960
|
-
assert_equal('"ABCD"', evaluate('to-upper-case("abcd")'))
|
961
|
-
assert_error_message("$string: #ff0000 is not a string for `to-upper-case'", "to-upper-case(#f00)")
|
962
|
-
end
|
963
|
-
|
964
|
-
def test_str_slice
|
965
|
-
assert_equal('bc', evaluate('str-slice(abcd,2,3)')) # in the middle of the string
|
966
|
-
assert_equal('a', evaluate('str-slice(abcd,1,1)')) # when start = end
|
967
|
-
assert_equal('ab', evaluate('str-slice(abcd,1,2)')) # for completeness
|
968
|
-
assert_equal('abcd', evaluate('str-slice(abcd,1,4)')) # at the end points
|
969
|
-
assert_equal('abcd', evaluate('str-slice(abcd,0,4)')) # when start is before the start of the string
|
970
|
-
assert_equal('', evaluate('str-slice(abcd,1,0)')) # when end is before the start of the string
|
971
|
-
assert_equal('abcd', evaluate('str-slice(abcd,1,100)')) # when end is past the end of the string
|
972
|
-
assert_equal('', evaluate('str-slice(abcd,2,1)')) # when end is before start
|
973
|
-
assert_equal('"bc"', evaluate('str-slice("abcd",2,3)')) # when used with a quoted string
|
974
|
-
assert_equal('bcd', evaluate('str-slice(abcd,2)')) # when end is omitted, you get the remainder of the string
|
975
|
-
assert_equal('cd', evaluate('str-slice(abcd,-2)')) # when start is negative, it counts from the beginning
|
976
|
-
assert_equal('bc', evaluate('str-slice(abcd,2,-2)')) # when end is negative it counts in from the end
|
977
|
-
assert_equal('', evaluate('str-slice(abcd,3,-3)')) # when end is negative and comes before the start
|
978
|
-
assert_equal('bc', evaluate('str-slice(abcd,-3,-2)')) # when both are negative
|
979
|
-
assert_error_message("$string: #ff0000 is not a string for `str-slice'", "str-slice(#f00,2,3)")
|
980
|
-
assert_error_message("$start-at: #ff0000 is not a number for `str-slice'", "str-slice(abcd,#f00,3)")
|
981
|
-
assert_error_message("$end-at: #ff0000 is not a number for `str-slice'", "str-slice(abcd,2,#f00)")
|
982
|
-
assert_error_message("Expected $end-at to be unitless but got 3px for `str-slice'", "str-slice(abcd,2,3px)")
|
983
|
-
assert_error_message("Expected $start-at to be unitless but got 2px for `str-slice'", "str-slice(abcd,2px,3)")
|
984
|
-
end
|
985
|
-
|
986
|
-
def test_user_defined_function
|
987
|
-
assert_equal("I'm a user-defined string!", evaluate("user_defined()"))
|
988
|
-
end
|
989
|
-
|
990
|
-
def test_user_defined_function_with_preceding_underscore
|
991
|
-
assert_equal("I'm another user-defined string!", evaluate("_preceding_underscore()"))
|
992
|
-
assert_equal("I'm another user-defined string!", evaluate("-preceding-underscore()"))
|
993
|
-
end
|
994
|
-
|
995
|
-
def test_user_defined_function_using_environment
|
996
|
-
environment = env('variable' => Sass::Script::Value::String.new('The variable'))
|
997
|
-
assert_equal("The variable", evaluate("fetch_the_variable()", environment))
|
998
|
-
end
|
999
|
-
|
1000
|
-
def test_options_on_new_values_fails
|
1001
|
-
assert_error_message(<<MSG, "call-options-on-new-value()")
|
1002
|
-
The #options attribute is not set on this Sass::Script::Value::String.
|
1003
|
-
This error is probably occurring because #to_s was called
|
1004
|
-
on this value within a custom Sass function without first
|
1005
|
-
setting the #options attribute.
|
1006
|
-
MSG
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
def test_type_of
|
1010
|
-
assert_equal("string", evaluate("type-of(\"asdf\")"))
|
1011
|
-
assert_equal("string", evaluate("type-of(asdf)"))
|
1012
|
-
assert_equal("number", evaluate("type-of(1px)"))
|
1013
|
-
assert_equal("bool", evaluate("type-of(true)"))
|
1014
|
-
assert_equal("color", evaluate("type-of(#fff)"))
|
1015
|
-
assert_equal("color", evaluate("type-of($value: #fff)"))
|
1016
|
-
assert_equal("null", evaluate("type-of(null)"))
|
1017
|
-
assert_equal("list", evaluate("type-of(1 2 3)"))
|
1018
|
-
assert_equal("list", evaluate("type-of((1, 2, 3))"))
|
1019
|
-
assert_equal("list", evaluate("type-of(())"))
|
1020
|
-
assert_equal("map", evaluate("type-of((foo: bar))"))
|
1021
|
-
end
|
1022
|
-
|
1023
|
-
def test_feature_exists
|
1024
|
-
assert_raises ArgumentError do
|
1025
|
-
Sass.add_feature("my-test-feature")
|
1026
|
-
end
|
1027
|
-
Sass.add_feature("-my-test-feature")
|
1028
|
-
assert_equal("true", evaluate("feature-exists(-my-test-feature)"))
|
1029
|
-
assert_equal("false", evaluate("feature-exists(whatisthisidontevenknow)"))
|
1030
|
-
assert_equal("true", evaluate("feature-exists($feature: -my-test-feature)"))
|
1031
|
-
ensure
|
1032
|
-
Sass::Features::KNOWN_FEATURES.delete("-my-test-feature")
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
def test_unit
|
1036
|
-
assert_equal(%Q{""}, evaluate("unit(100)"))
|
1037
|
-
assert_equal(%Q{"px"}, evaluate("unit(100px)"))
|
1038
|
-
assert_equal(%Q{"em*px"}, evaluate("unit(10px * 5em)"))
|
1039
|
-
assert_equal(%Q{"em*px"}, evaluate("unit(5em * 10px)"))
|
1040
|
-
assert_equal(%Q{"em/rem"}, evaluate("unit(10px * 5em / 30cm / 1rem)"))
|
1041
|
-
assert_equal(%Q{"em*vh/cm*rem"}, evaluate("unit(10vh * 5em / 30cm / 1rem)"))
|
1042
|
-
assert_equal(%Q{"px"}, evaluate("unit($number: 100px)"))
|
1043
|
-
assert_error_message("$number: #ff0000 is not a number for `unit'", "unit(#f00)")
|
1044
|
-
end
|
1045
|
-
|
1046
|
-
def test_unitless
|
1047
|
-
assert_equal(%Q{true}, evaluate("unitless(100)"))
|
1048
|
-
assert_equal(%Q{false}, evaluate("unitless(100px)"))
|
1049
|
-
assert_equal(%Q{false}, evaluate("unitless($number: 100px)"))
|
1050
|
-
assert_error_message("$number: #ff0000 is not a number for `unitless'", "unitless(#f00)")
|
1051
|
-
end
|
1052
|
-
|
1053
|
-
def test_comparable
|
1054
|
-
assert_equal(%Q{true}, evaluate("comparable(2px, 1px)"))
|
1055
|
-
assert_equal(%Q{true}, evaluate("comparable(10cm, 3mm)"))
|
1056
|
-
assert_equal(%Q{false}, evaluate("comparable(100px, 3em)"))
|
1057
|
-
assert_equal(%Q{false}, evaluate("comparable($number1: 100px, $number2: 3em)"))
|
1058
|
-
end
|
1059
|
-
|
1060
|
-
def test_comparable_checks_types
|
1061
|
-
assert_error_message("$number1: #ff0000 is not a number for `comparable'", "comparable(#f00, 1px)")
|
1062
|
-
assert_error_message("$number2: #ff0000 is not a number for `comparable'", "comparable(1px, #f00)")
|
1063
|
-
end
|
1064
|
-
|
1065
|
-
def test_length
|
1066
|
-
assert_equal("5", evaluate("length(1 2 3 4 5)"))
|
1067
|
-
assert_equal("4", evaluate("length((foo, bar, baz, bip))"))
|
1068
|
-
assert_equal("3", evaluate("length((foo, bar, baz bip))"))
|
1069
|
-
assert_equal("3", evaluate("length((foo, bar, (baz, bip)))"))
|
1070
|
-
assert_equal("1", evaluate("length(#f00)"))
|
1071
|
-
assert_equal("0", evaluate("length(())"))
|
1072
|
-
assert_equal("4", evaluate("length(1 2 () 3)"))
|
1073
|
-
|
1074
|
-
assert_equal("2", evaluate("length((foo: bar, bar: baz))"))
|
1075
|
-
end
|
1076
|
-
|
1077
|
-
def test_nth
|
1078
|
-
assert_equal("1", evaluate("nth(1 2 3, 1)"))
|
1079
|
-
assert_equal("2", evaluate("nth(1 2 3, 2)"))
|
1080
|
-
assert_equal("3", evaluate("nth(1 2 3, -1)"))
|
1081
|
-
assert_equal("1", evaluate("nth(1 2 3, -3)"))
|
1082
|
-
assert_equal("3", evaluate("nth((1, 2, 3), 3)"))
|
1083
|
-
assert_equal("3", evaluate("nth($list: (1, 2, 3), $n: 3)"))
|
1084
|
-
assert_equal("foo", evaluate("nth(foo, 1)"))
|
1085
|
-
assert_equal("bar baz", evaluate("nth(foo (bar baz) bang, 2)"))
|
1086
|
-
assert_error_message("List index 0 must be a non-zero integer for `nth'", "nth(foo, 0)")
|
1087
|
-
assert_error_message("List index is -10 but list is only 1 item long for `nth'", "nth(foo, -10)")
|
1088
|
-
assert_error_message("List index 1.5 must be a non-zero integer for `nth'", "nth(foo, 1.5)")
|
1089
|
-
assert_error_message("List index is 5 but list is only 4 items long for `nth'", "nth(1 2 3 4, 5)")
|
1090
|
-
assert_error_message("List index is 2 but list is only 1 item long for `nth'", "nth(foo, 2)")
|
1091
|
-
assert_error_message("List index is 1 but list has no items for `nth'", "nth((), 1)")
|
1092
|
-
assert_error_message("$n: \"foo\" is not a number for `nth'", "nth(1 2 3, foo)")
|
1093
|
-
|
1094
|
-
assert_equal("foo bar", evaluate("nth((foo: bar, bar: baz), 1)"))
|
1095
|
-
assert_equal("bar baz", evaluate("nth((foo: bar, bar: baz), 2)"))
|
1096
|
-
end
|
1097
|
-
|
1098
|
-
def test_set_nth
|
1099
|
-
assert_equal("a 2 3", evaluate("set-nth(1 2 3, 1, a)"))
|
1100
|
-
assert_equal("1 a 3", evaluate("set-nth(1 2 3, 2, a)"))
|
1101
|
-
assert_equal("1 2 a", evaluate("set-nth(1 2 3, -1, a)"))
|
1102
|
-
assert_equal("a 2 3", evaluate("set-nth(1 2 3, -3, a)"))
|
1103
|
-
assert_equal("a 2 3", evaluate("set-nth($list: 1 2 3, $n: -3, $value: a)"))
|
1104
|
-
assert_equal("1, 2, a", evaluate("set-nth((1, 2, 3), 3, a)"))
|
1105
|
-
assert_equal("a", evaluate("set-nth(foo, 1, a)"))
|
1106
|
-
assert_equal("foo, a b, baz", evaluate("set-nth((foo, bar, baz), 2, (a b))"))
|
1107
|
-
assert_error_message("List index 0 must be a non-zero integer for `set-nth'", "set-nth(foo, 0, a)")
|
1108
|
-
assert_error_message("List index is -10 but list is only 1 item long for `set-nth'", "set-nth(foo, -10, a)")
|
1109
|
-
assert_error_message("List index 1.5 must be a non-zero integer for `set-nth'", "set-nth(foo, 1.5, a)")
|
1110
|
-
assert_error_message("List index is 5 but list is only 4 items long for `set-nth'", "set-nth(1 2 3 4, 5, a)")
|
1111
|
-
assert_error_message("List index is 2 but list is only 1 item long for `set-nth'", "set-nth(foo, 2, a)")
|
1112
|
-
assert_error_message("List index is 1 but list has no items for `set-nth'", "set-nth((), 1, a)")
|
1113
|
-
assert_error_message("$n: \"foo\" is not a number for `set-nth'", "set-nth(1 2 3, foo, a)")
|
1114
|
-
end
|
1115
|
-
|
1116
|
-
def test_join
|
1117
|
-
assert_equal("1 2 3", evaluate("join(1 2, 3)"))
|
1118
|
-
assert_equal("1 2 3", evaluate("join(1, 2 3)"))
|
1119
|
-
assert_equal("1 2 3 4", evaluate("join(1 2, 3 4)"))
|
1120
|
-
assert_equal("true", evaluate("(1 2 3 4) == join(1 2, 3 4)"))
|
1121
|
-
assert_equal("false", evaluate("(1 2 (3 4)) == join(1 2, 3 4)"))
|
1122
|
-
assert_equal("1, 2, 3", evaluate("join((1, 2), 3)"))
|
1123
|
-
assert_equal("1, 2, 3", evaluate("join(1, (2, 3))"))
|
1124
|
-
assert_equal("1, 2, 3, 4", evaluate("join((1, 2), (3, 4))"))
|
1125
|
-
assert_equal("true", evaluate("(1, 2, 3, 4) == join((1, 2), (3, 4))"))
|
1126
|
-
assert_equal("false", evaluate("(1, 2, (3, 4)) == join((1, 2), (3, 4))"))
|
1127
|
-
|
1128
|
-
assert_equal("1 2", evaluate("join(1, 2)"))
|
1129
|
-
assert_equal("1 2 3 4", evaluate("join(1 2, (3, 4))"))
|
1130
|
-
assert_equal("1, 2, 3, 4", evaluate("join((1, 2), 3 4)"))
|
1131
|
-
|
1132
|
-
assert_equal("1 2", evaluate("join(1, 2, auto)"))
|
1133
|
-
assert_equal("1, 2, 3, 4", evaluate("join(1 2, 3 4, comma)"))
|
1134
|
-
assert_equal("1 2 3 4", evaluate("join((1, 2), (3, 4), space)"))
|
1135
|
-
assert_equal("1, 2", evaluate("join(1, 2, comma)"))
|
1136
|
-
|
1137
|
-
assert_equal("1 2", evaluate("join(1 2, ())"))
|
1138
|
-
assert_equal("1, 2", evaluate("join((1, 2), ())"))
|
1139
|
-
assert_equal("true", evaluate("(1 2) == join(1 2, ())"))
|
1140
|
-
assert_equal("true", evaluate("(1, 2) == join((1, 2), ())"))
|
1141
|
-
assert_equal("false", evaluate("(1 2 ()) == join(1 2, ())"))
|
1142
|
-
assert_equal("false", evaluate("(1, 2, ()) == join((1, 2), ())"))
|
1143
|
-
|
1144
|
-
assert_equal("1 2", evaluate("join((), 1 2)"))
|
1145
|
-
assert_equal("1, 2", evaluate("join((), (1, 2))"))
|
1146
|
-
assert_equal("true", evaluate("(1 2) == join((), 1 2)"))
|
1147
|
-
assert_equal("true", evaluate("(1, 2) == join((), (1, 2))"))
|
1148
|
-
assert_equal("false", evaluate("(1 2 ()) == join((), 1 2)"))
|
1149
|
-
assert_equal("false", evaluate("(1, 2, ()) == join((), (1, 2))"))
|
1150
|
-
|
1151
|
-
assert_error_message("Separator name must be space, comma, or auto for `join'", "join(1, 2, baboon)")
|
1152
|
-
assert_error_message("$separator: 12 is not a string for `join'", "join(1, 2, 12)")
|
1153
|
-
|
1154
|
-
assert_equal("foo bar, bar baz, baz bip, bip bop",
|
1155
|
-
perform("join((foo: bar, bar: baz), (baz: bip, bip: bop))").to_sass)
|
1156
|
-
assert_equal("(foo bar) (bar baz) (baz bip) (bip bop)",
|
1157
|
-
perform("join((foo: bar, bar: baz), (baz: bip, bip: bop), space)").to_sass)
|
1158
|
-
assert_equal("foo bar (baz bip) (bip bop)",
|
1159
|
-
perform("join(foo bar, (baz: bip, bip: bop))").to_sass)
|
1160
|
-
assert_equal("foo bar, bar baz, bip, bop",
|
1161
|
-
perform("join((foo: bar, bar: baz), bip bop)").to_sass)
|
1162
|
-
assert_equal("baz bip, bip bop",
|
1163
|
-
perform("join((), (baz: bip, bip: bop))").to_sass)
|
1164
|
-
assert_equal("foo bar, bar baz",
|
1165
|
-
perform("join((foo: bar, bar: baz), ())").to_sass)
|
1166
|
-
end
|
1167
|
-
|
1168
|
-
def test_append
|
1169
|
-
assert_equal("1 2 3", evaluate("append(1 2, 3)"))
|
1170
|
-
assert_equal("1 2 3 4", evaluate("append(1 2, 3 4)"))
|
1171
|
-
assert_equal("false", evaluate("(1 2 3 4) == append(1 2, 3 4)"))
|
1172
|
-
assert_equal("true", evaluate("(1 2 (3 4)) == append(1 2, 3 4)"))
|
1173
|
-
assert_equal("1, 2, 3", evaluate("append((1, 2), 3)"))
|
1174
|
-
assert_equal("1, 2, 3, 4", evaluate("append((1, 2), (3, 4))"))
|
1175
|
-
assert_equal("false", evaluate("(1, 2, 3, 4) == append((1, 2), (3, 4))"))
|
1176
|
-
assert_equal("true", evaluate("(1, 2, (3, 4)) == append((1, 2), (3, 4))"))
|
1177
|
-
|
1178
|
-
assert_equal("1 2", evaluate("append(1, 2)"))
|
1179
|
-
assert_equal("1 2 3, 4", evaluate("append(1 2, (3, 4))"))
|
1180
|
-
assert_equal("true", evaluate("(1 2 (3, 4)) == append(1 2, (3, 4))"))
|
1181
|
-
assert_equal("1, 2, 3 4", evaluate("append((1, 2), 3 4)"))
|
1182
|
-
assert_equal("true", evaluate("(1, 2, 3 4) == append((1, 2), 3 4)"))
|
1183
|
-
|
1184
|
-
assert_equal("1 2", evaluate("append(1, 2, auto)"))
|
1185
|
-
assert_equal("1, 2, 3 4", evaluate("append(1 2, 3 4, comma)"))
|
1186
|
-
assert_equal("1 2 3, 4", evaluate("append((1, 2), (3, 4), space)"))
|
1187
|
-
assert_equal("1, 2", evaluate("append(1, 2, comma)"))
|
1188
|
-
|
1189
|
-
assert_equal("1 2", evaluate("append(1 2, ())"))
|
1190
|
-
assert_equal("1, 2", evaluate("append((1, 2), ())"))
|
1191
|
-
assert_equal("true", evaluate("(1 2 ()) == append(1 2, ())"))
|
1192
|
-
assert_equal("true", evaluate("(1, 2, ()) == append((1, 2), ())"))
|
1193
|
-
|
1194
|
-
assert_equal("1 2", evaluate("append((), 1 2)"))
|
1195
|
-
assert_equal("1, 2", evaluate("append((), (1, 2))"))
|
1196
|
-
assert_equal("false", evaluate("(1 2) == append((), 1 2)"))
|
1197
|
-
assert_equal("true", evaluate("(1 2) == nth(append((), 1 2), 1)"))
|
1198
|
-
|
1199
|
-
assert_error_message("Separator name must be space, comma, or auto for `append'", "append(1, 2, baboon)")
|
1200
|
-
assert_error_message("$separator: 12 is not a string for `append'", "append(1, 2, 12)")
|
1201
|
-
|
1202
|
-
assert_equal("1 2 (foo: bar)", perform("append(1 2, (foo: bar))").to_sass)
|
1203
|
-
assert_equal("foo bar, bar baz, 1", perform("append((foo: bar, bar: baz), 1)").to_sass)
|
1204
|
-
assert_equal("foo bar, bar baz, (baz: bip)",
|
1205
|
-
perform("append((foo: bar, bar: baz), (baz: bip))").to_sass)
|
1206
|
-
end
|
1207
|
-
|
1208
|
-
def test_zip
|
1209
|
-
assert_equal("1 3 5, 2 4 6", evaluate("zip(1 2, 3 4, 5 6)"))
|
1210
|
-
assert_equal("1 4 7, 2 5 8", evaluate("zip(1 2 3, 4 5 6, 7 8)"))
|
1211
|
-
assert_equal("1 2 3", evaluate("zip(1, 2, 3)"))
|
1212
|
-
assert_equal("(foo bar) 1 3, (bar baz) 2 4",
|
1213
|
-
perform("zip((foo: bar, bar: baz), 1 2, 3 4)").to_sass)
|
1214
|
-
end
|
1215
|
-
|
1216
|
-
def test_index
|
1217
|
-
null = Sass::Script::Value::Null.new
|
1218
|
-
assert_equal("1", evaluate("index(1px solid blue, 1px)"))
|
1219
|
-
assert_equal("2", evaluate("index(1px solid blue, solid)"))
|
1220
|
-
assert_equal("3", evaluate("index(1px solid blue, #00f)"))
|
1221
|
-
assert_equal("1", evaluate("index(1px, 1px)"))
|
1222
|
-
assert_equal(null, perform("index(1px solid blue, 1em)"))
|
1223
|
-
assert_equal(null, perform("index(1px solid blue, notfound)"))
|
1224
|
-
assert_equal(null, perform("index(1px, #00f)"))
|
1225
|
-
|
1226
|
-
assert_equal("1", evaluate("index((foo: bar, bar: baz), (foo bar))"))
|
1227
|
-
assert_equal(null, perform("index((foo: bar, bar: baz), (foo: bar))"))
|
1228
|
-
end
|
1229
|
-
|
1230
|
-
def test_list_separator
|
1231
|
-
assert_equal("space", evaluate("list-separator(1 2 3 4 5)"))
|
1232
|
-
assert_equal("comma", evaluate("list-separator((foo, bar, baz, bip))"))
|
1233
|
-
assert_equal("comma", evaluate("list-separator((foo, bar, baz bip))"))
|
1234
|
-
assert_equal("comma", evaluate("list-separator((foo, bar, (baz, bip)))"))
|
1235
|
-
assert_equal("space", evaluate("list-separator(#f00)"))
|
1236
|
-
assert_equal("space", evaluate("list-separator(())"))
|
1237
|
-
assert_equal("space", evaluate("list-separator(1 2 () 3)"))
|
1238
|
-
|
1239
|
-
assert_equal("comma", evaluate("list-separator((foo: bar, bar: baz))"))
|
1240
|
-
end
|
1241
|
-
|
1242
|
-
def test_if
|
1243
|
-
assert_equal("1px", evaluate("if(true, 1px, 2px)"))
|
1244
|
-
assert_equal("2px", evaluate("if(false, 1px, 2px)"))
|
1245
|
-
assert_equal("2px", evaluate("if(null, 1px, 2px)"))
|
1246
|
-
assert_equal("1px", evaluate("if(true, 1px, $broken)"))
|
1247
|
-
assert_equal("1px", evaluate("if(false, $broken, 1px)"))
|
1248
|
-
assert_equal("1px", evaluate("if(false, $if-true: $broken, $if-false: 1px)"))
|
1249
|
-
assert_equal("1px", evaluate("if(true, $if-true: 1px, $if-false: $broken)"))
|
1250
|
-
assert_equal(<<CSS, render(<<SCSS))
|
1251
|
-
.if {
|
1252
|
-
result: yay; }
|
1253
|
-
CSS
|
1254
|
-
.if {
|
1255
|
-
$something: yay;
|
1256
|
-
result: if(true, $if-true: $something, $if-false: $broken);
|
1257
|
-
}
|
1258
|
-
SCSS
|
1259
|
-
assert_equal(<<CSS, render(<<SCSS))
|
1260
|
-
.if {
|
1261
|
-
result: 1px; }
|
1262
|
-
CSS
|
1263
|
-
.if {
|
1264
|
-
$splat: 1px, 2px;
|
1265
|
-
result: if(true, $splat...);
|
1266
|
-
}
|
1267
|
-
SCSS
|
1268
|
-
end
|
1269
|
-
|
1270
|
-
def test_counter
|
1271
|
-
assert_equal("counter(foo)", evaluate("counter(foo)"))
|
1272
|
-
assert_equal('counter(item,".")', evaluate('counter(item, ".")'))
|
1273
|
-
assert_equal('counter(item,".")', evaluate('counter(item,".")'))
|
1274
|
-
end
|
1275
|
-
|
1276
|
-
def test_counters
|
1277
|
-
assert_equal("counters(foo)", evaluate("counters(foo)"))
|
1278
|
-
assert_equal('counters(item,".")', evaluate('counters(item, ".")'))
|
1279
|
-
assert_equal('counters(item,".")', evaluate('counters(item,".")'))
|
1280
|
-
end
|
1281
|
-
|
1282
|
-
def test_keyword_args_rgb
|
1283
|
-
assert_equal(%Q{white}, evaluate("rgb($red: 255, $green: 255, $blue: 255)"))
|
1284
|
-
end
|
1285
|
-
|
1286
|
-
def test_keyword_args_rgba
|
1287
|
-
assert_equal(%Q{rgba(255, 255, 255, 0.5)}, evaluate("rgba($red: 255, $green: 255, $blue: 255, $alpha: 0.5)"))
|
1288
|
-
assert_equal(%Q{rgba(255, 255, 255, 0.5)}, evaluate("rgba($color: #fff, $alpha: 0.5)"))
|
1289
|
-
end
|
1290
|
-
|
1291
|
-
def test_keyword_args_rgba_with_extra_args
|
1292
|
-
evaluate("rgba($red: 255, $green: 255, $blue: 255, $alpha: 0.5, $extra: error)")
|
1293
|
-
flunk("Expected exception")
|
1294
|
-
rescue Sass::SyntaxError => e
|
1295
|
-
assert_equal("Function rgba doesn't have an argument named $extra", e.message)
|
1296
|
-
end
|
1297
|
-
|
1298
|
-
def test_keyword_args_must_have_signature
|
1299
|
-
evaluate("no-kw-args($fake: value)")
|
1300
|
-
flunk("Expected exception")
|
1301
|
-
rescue Sass::SyntaxError => e
|
1302
|
-
assert_equal("Function no_kw_args doesn't support keyword arguments", e.message)
|
1303
|
-
end
|
1304
|
-
|
1305
|
-
def test_keyword_args_with_missing_argument
|
1306
|
-
evaluate("rgb($red: 255, $green: 255)")
|
1307
|
-
flunk("Expected exception")
|
1308
|
-
rescue Sass::SyntaxError => e
|
1309
|
-
assert_equal("Function rgb requires an argument named $blue", e.message)
|
1310
|
-
end
|
1311
|
-
|
1312
|
-
def test_keyword_args_with_extra_argument
|
1313
|
-
evaluate("rgb($red: 255, $green: 255, $blue: 255, $purple: 255)")
|
1314
|
-
flunk("Expected exception")
|
1315
|
-
rescue Sass::SyntaxError => e
|
1316
|
-
assert_equal("Function rgb doesn't have an argument named $purple", e.message)
|
1317
|
-
end
|
1318
|
-
|
1319
|
-
def test_keyword_args_with_positional_and_keyword_argument
|
1320
|
-
evaluate("rgb(255, 255, 255, $red: 255)")
|
1321
|
-
flunk("Expected exception")
|
1322
|
-
rescue Sass::SyntaxError => e
|
1323
|
-
assert_equal("Function rgb was passed argument $red both by position and by name", e.message)
|
1324
|
-
end
|
1325
|
-
|
1326
|
-
def test_keyword_args_with_keyword_before_positional_argument
|
1327
|
-
evaluate("rgb($red: 255, 255, 255)")
|
1328
|
-
flunk("Expected exception")
|
1329
|
-
rescue Sass::SyntaxError => e
|
1330
|
-
assert_equal("Positional arguments must come before keyword arguments.", e.message)
|
1331
|
-
end
|
1332
|
-
|
1333
|
-
def test_only_var_args
|
1334
|
-
assert_equal "only-var-args(2px, 3px, 4px)", evaluate("only-var-args(1px, 2px, 3px)")
|
1335
|
-
end
|
1336
|
-
|
1337
|
-
def test_only_kw_args
|
1338
|
-
assert_equal "only-kw-args(a, b, c)", evaluate("only-kw-args($a: 1, $b: 2, $c: 3)")
|
1339
|
-
end
|
1340
|
-
|
1341
|
-
def test_unique_id
|
1342
|
-
last_id, current_id = nil, evaluate("unique-id()")
|
1343
|
-
|
1344
|
-
50.times do
|
1345
|
-
last_id, current_id = current_id, evaluate("unique-id()")
|
1346
|
-
assert_match(/u[a-z0-9]{8}/, current_id)
|
1347
|
-
refute_equal last_id, current_id
|
1348
|
-
end
|
1349
|
-
end
|
1350
|
-
|
1351
|
-
def test_map_get
|
1352
|
-
assert_equal "1", evaluate("map-get((foo: 1, bar: 2), foo)")
|
1353
|
-
assert_equal "2", evaluate("map-get((foo: 1, bar: 2), bar)")
|
1354
|
-
assert_equal "null", perform("map-get((foo: 1, bar: 2), baz)").to_sass
|
1355
|
-
assert_equal "null", perform("map-get((), foo)").to_sass
|
1356
|
-
end
|
1357
|
-
|
1358
|
-
def test_map_get_checks_type
|
1359
|
-
assert_error_message("$map: 12 is not a map for `map-get'", "map-get(12, bar)")
|
1360
|
-
end
|
1361
|
-
|
1362
|
-
def test_map_merge
|
1363
|
-
assert_equal("(foo: 1, bar: 2, baz: 3)",
|
1364
|
-
perform("map-merge((foo: 1, bar: 2), (baz: 3))").to_sass)
|
1365
|
-
assert_equal("(foo: 1, bar: 2)",
|
1366
|
-
perform("map-merge((), (foo: 1, bar: 2))").to_sass)
|
1367
|
-
assert_equal("(foo: 1, bar: 2)",
|
1368
|
-
perform("map-merge((foo: 1, bar: 2), ())").to_sass)
|
1369
|
-
end
|
1370
|
-
|
1371
|
-
def test_map_merge_checks_type
|
1372
|
-
assert_error_message("$map1: 12 is not a map for `map-merge'", "map-merge(12, (foo: 1))")
|
1373
|
-
assert_error_message("$map2: 12 is not a map for `map-merge'", "map-merge((foo: 1), 12)")
|
1374
|
-
end
|
1375
|
-
|
1376
|
-
def test_map_remove
|
1377
|
-
assert_equal("(foo: 1, baz: 3)",
|
1378
|
-
perform("map-remove((foo: 1, bar: 2, baz: 3), bar)").to_sass)
|
1379
|
-
assert_equal("(foo: 1, baz: 3)",
|
1380
|
-
perform("map-remove($map: (foo: 1, bar: 2, baz: 3), $key: bar)").to_sass)
|
1381
|
-
assert_equal("()",
|
1382
|
-
perform("map-remove((foo: 1, bar: 2, baz: 3), foo, bar, baz)").to_sass)
|
1383
|
-
assert_equal("()", perform("map-remove((), foo)").to_sass)
|
1384
|
-
assert_equal("()", perform("map-remove((), foo, bar)").to_sass)
|
1385
|
-
end
|
1386
|
-
|
1387
|
-
def test_map_remove_checks_type
|
1388
|
-
assert_error_message("$map: 12 is not a map for `map-remove'", "map-remove(12, foo)")
|
1389
|
-
end
|
1390
|
-
|
1391
|
-
def test_map_keys
|
1392
|
-
assert_equal("foo, bar",
|
1393
|
-
perform("map-keys((foo: 1, bar: 2))").to_sass)
|
1394
|
-
assert_equal("()", perform("map-keys(())").to_sass)
|
1395
|
-
end
|
1396
|
-
|
1397
|
-
def test_map_keys_checks_type
|
1398
|
-
assert_error_message("$map: 12 is not a map for `map-keys'", "map-keys(12)")
|
1399
|
-
end
|
1400
|
-
|
1401
|
-
def test_map_values
|
1402
|
-
assert_equal("1, 2", perform("map-values((foo: 1, bar: 2))").to_sass)
|
1403
|
-
assert_equal("1, 2, 2",
|
1404
|
-
perform("map-values((foo: 1, bar: 2, baz: 2))").to_sass)
|
1405
|
-
assert_equal("()", perform("map-values(())").to_sass)
|
1406
|
-
end
|
1407
|
-
|
1408
|
-
def test_map_values_checks_type
|
1409
|
-
assert_error_message("$map: 12 is not a map for `map-values'", "map-values(12)")
|
1410
|
-
end
|
1411
|
-
|
1412
|
-
def test_map_has_key
|
1413
|
-
assert_equal "true", evaluate("map-has-key((foo: 1, bar: 1), foo)")
|
1414
|
-
assert_equal "false", evaluate("map-has-key((foo: 1, bar: 1), baz)")
|
1415
|
-
assert_equal "false", evaluate("map-has-key((), foo)")
|
1416
|
-
end
|
1417
|
-
|
1418
|
-
def test_map_has_key_checks_type
|
1419
|
-
assert_error_message("$map: 12 is not a map for `map-has-key'", "map-has-key(12, foo)")
|
1420
|
-
end
|
1421
|
-
|
1422
|
-
def test_keywords
|
1423
|
-
# The actual functionality is tested in tests where real arglists are passed.
|
1424
|
-
assert_error_message("$args: 12 is not a variable argument list for `keywords'", "keywords(12)")
|
1425
|
-
assert_error_message(
|
1426
|
-
"$args: (1 2 3) is not a variable argument list for `keywords'", "keywords(1 2 3)")
|
1427
|
-
end
|
1428
|
-
|
1429
|
-
def test_partial_list_of_pairs_doesnt_work_as_a_map
|
1430
|
-
assert_raises(Sass::SyntaxError) {evaluate("map-get((foo bar, baz bang, bip), 1)")}
|
1431
|
-
assert_raises(Sass::SyntaxError) {evaluate("map-get((foo bar, baz bang, bip bap bop), 1)")}
|
1432
|
-
assert_raises(Sass::SyntaxError) {evaluate("map-get((foo bar), 1)")}
|
1433
|
-
end
|
1434
|
-
|
1435
|
-
def test_assert_unit
|
1436
|
-
ctx = Sass::Script::Functions::EvaluationContext.new(Sass::Environment.new(nil, {}))
|
1437
|
-
ctx.assert_unit Sass::Script::Value::Number.new(10, ["px"], []), "px"
|
1438
|
-
ctx.assert_unit Sass::Script::Value::Number.new(10, [], []), nil
|
1439
|
-
|
1440
|
-
begin
|
1441
|
-
ctx.assert_unit Sass::Script::Value::Number.new(10, [], []), "px"
|
1442
|
-
fail
|
1443
|
-
rescue ArgumentError => e
|
1444
|
-
assert_equal "Expected 10 to have a unit of px", e.message
|
1445
|
-
end
|
1446
|
-
|
1447
|
-
begin
|
1448
|
-
ctx.assert_unit Sass::Script::Value::Number.new(10, ["px"], []), nil
|
1449
|
-
fail
|
1450
|
-
rescue ArgumentError => e
|
1451
|
-
assert_equal "Expected 10px to be unitless", e.message
|
1452
|
-
end
|
1453
|
-
|
1454
|
-
begin
|
1455
|
-
ctx.assert_unit Sass::Script::Value::Number.new(10, [], []), "px", "arg"
|
1456
|
-
fail
|
1457
|
-
rescue ArgumentError => e
|
1458
|
-
assert_equal "Expected $arg to have a unit of px but got 10", e.message
|
1459
|
-
end
|
1460
|
-
|
1461
|
-
begin
|
1462
|
-
ctx.assert_unit Sass::Script::Value::Number.new(10, ["px"], []), nil, "arg"
|
1463
|
-
fail
|
1464
|
-
rescue ArgumentError => e
|
1465
|
-
assert_equal "Expected $arg to be unitless but got 10px", e.message
|
1466
|
-
end
|
1467
|
-
end
|
1468
|
-
|
1469
|
-
def test_call_with_positional_arguments
|
1470
|
-
assert_equal evaluate("lighten(blue, 5%)"), evaluate("call(lighten, blue, 5%)")
|
1471
|
-
end
|
1472
|
-
|
1473
|
-
def test_call_with_keyword_arguments
|
1474
|
-
assert_equal(
|
1475
|
-
evaluate("lighten($color: blue, $amount: 5%)"),
|
1476
|
-
evaluate("call(lighten, $color: blue, $amount: 5%)"))
|
1477
|
-
end
|
1478
|
-
|
1479
|
-
def test_call_with_keyword_and_positional_arguments
|
1480
|
-
assert_equal(
|
1481
|
-
evaluate("lighten(blue, $amount: 5%)"),
|
1482
|
-
evaluate("call(lighten, blue, $amount: 5%)"))
|
1483
|
-
end
|
1484
|
-
|
1485
|
-
def test_call_with_dynamic_name
|
1486
|
-
assert_equal(
|
1487
|
-
evaluate("lighten($color: blue, $amount: 5%)"),
|
1488
|
-
evaluate("call($fn, $color: blue, $amount: 5%)",
|
1489
|
-
env("fn" => Sass::Script::String.new("lighten"))))
|
1490
|
-
end
|
1491
|
-
|
1492
|
-
def test_call_uses_local_scope
|
1493
|
-
assert_equal <<CSS, render(<<SCSS)
|
1494
|
-
.first-scope {
|
1495
|
-
a: local; }
|
1496
|
-
|
1497
|
-
.second-scope {
|
1498
|
-
a: global; }
|
1499
|
-
CSS
|
1500
|
-
@function foo() {@return global}
|
1501
|
-
|
1502
|
-
.first-scope {
|
1503
|
-
@function foo() {@return local}
|
1504
|
-
a: call(foo);
|
1505
|
-
}
|
1506
|
-
|
1507
|
-
.second-scope {
|
1508
|
-
a: call(foo);
|
1509
|
-
}
|
1510
|
-
SCSS
|
1511
|
-
end
|
1512
|
-
|
1513
|
-
def test_call_unknown_function
|
1514
|
-
assert_equal evaluate("unknown(red, blue)"), evaluate("call(unknown, red, blue)")
|
1515
|
-
end
|
1516
|
-
|
1517
|
-
def test_call_with_non_string_argument
|
1518
|
-
assert_error_message "$name: 3px is not a string for `call'", "call(3px)"
|
1519
|
-
end
|
1520
|
-
|
1521
|
-
def test_errors_in_called_function
|
1522
|
-
assert_error_message "$color: 3px is not a color for `lighten'", "call(lighten, 3px, 5%)"
|
1523
|
-
end
|
1524
|
-
|
1525
|
-
def test_variable_exists
|
1526
|
-
assert_equal <<CSS, render(<<SCSS)
|
1527
|
-
.test {
|
1528
|
-
false: false;
|
1529
|
-
true: true;
|
1530
|
-
true: true;
|
1531
|
-
true: true;
|
1532
|
-
true: true; }
|
1533
|
-
CSS
|
1534
|
-
$global-var: has-value;
|
1535
|
-
.test {
|
1536
|
-
false: variable-exists(foo);
|
1537
|
-
$foo: has-value;
|
1538
|
-
true: variable-exists(foo);
|
1539
|
-
true: variable-exists($name: foo);
|
1540
|
-
true: variable-exists(global-var);
|
1541
|
-
true: variable-exists($name: global-var);
|
1542
|
-
}
|
1543
|
-
SCSS
|
1544
|
-
end
|
1545
|
-
|
1546
|
-
def test_variable_exists_checks_type
|
1547
|
-
assert_error_message("$name: 1 is not a string for `variable-exists'", "variable-exists(1)")
|
1548
|
-
end
|
1549
|
-
|
1550
|
-
def test_global_variable_exists
|
1551
|
-
assert_equal <<CSS, render(<<SCSS)
|
1552
|
-
.test {
|
1553
|
-
false: false;
|
1554
|
-
false: false;
|
1555
|
-
true: true;
|
1556
|
-
true: true;
|
1557
|
-
false: false;
|
1558
|
-
true: true;
|
1559
|
-
true: true; }
|
1560
|
-
CSS
|
1561
|
-
$g: something;
|
1562
|
-
$h: null;
|
1563
|
-
$false: global-variable-exists(foo);
|
1564
|
-
$true: global-variable-exists(g);
|
1565
|
-
$named: global-variable-exists($name: g);
|
1566
|
-
.test {
|
1567
|
-
$foo: locally-defined;
|
1568
|
-
false: global-variable-exists(foo);
|
1569
|
-
false: global-variable-exists(foo2);
|
1570
|
-
true: global-variable-exists(g);
|
1571
|
-
true: global-variable-exists(h);
|
1572
|
-
false: $false;
|
1573
|
-
true: $true;
|
1574
|
-
true: $named;
|
1575
|
-
}
|
1576
|
-
SCSS
|
1577
|
-
end
|
1578
|
-
|
1579
|
-
def test_global_variable_exists_checks_type
|
1580
|
-
assert_error_message("$name: 1 is not a string for `global-variable-exists'",
|
1581
|
-
"global-variable-exists(1)")
|
1582
|
-
end
|
1583
|
-
|
1584
|
-
def test_function_exists
|
1585
|
-
# built-ins
|
1586
|
-
assert_equal "true", evaluate("function-exists(lighten)")
|
1587
|
-
# with named argument
|
1588
|
-
assert_equal "true", evaluate("function-exists($name: lighten)")
|
1589
|
-
# user-defined
|
1590
|
-
assert_equal <<CSS, render(<<SCSS)
|
1591
|
-
.test {
|
1592
|
-
foo-exists: true;
|
1593
|
-
bar-exists: false; }
|
1594
|
-
CSS
|
1595
|
-
@function foo() { @return "foo" }
|
1596
|
-
.test {
|
1597
|
-
foo-exists: function-exists(foo);
|
1598
|
-
bar-exists: function-exists(bar);
|
1599
|
-
}
|
1600
|
-
SCSS
|
1601
|
-
end
|
1602
|
-
|
1603
|
-
def test_function_exists_checks_type
|
1604
|
-
assert_error_message("$name: 1 is not a string for `function-exists'", "function-exists(1)")
|
1605
|
-
end
|
1606
|
-
|
1607
|
-
def test_mixin_exists
|
1608
|
-
assert_equal "false", evaluate("mixin-exists(foo)")
|
1609
|
-
# with named argument
|
1610
|
-
assert_equal "false", evaluate("mixin-exists($name: foo)")
|
1611
|
-
assert_equal <<CSS, render(<<SCSS)
|
1612
|
-
.test {
|
1613
|
-
foo-exists: true;
|
1614
|
-
bar-exists: false; }
|
1615
|
-
CSS
|
1616
|
-
@mixin foo() { foo: exists }
|
1617
|
-
.test {
|
1618
|
-
foo-exists: mixin-exists(foo);
|
1619
|
-
bar-exists: mixin-exists(bar);
|
1620
|
-
}
|
1621
|
-
SCSS
|
1622
|
-
end
|
1623
|
-
|
1624
|
-
def test_mixin_exists_checks_type
|
1625
|
-
assert_error_message("$name: 1 is not a string for `mixin-exists'", "mixin-exists(1)")
|
1626
|
-
end
|
1627
|
-
|
1628
|
-
def test_inspect
|
1629
|
-
assert_equal "()", evaluate("inspect(())")
|
1630
|
-
assert_equal "null", evaluate("inspect(null)")
|
1631
|
-
assert_equal "1px null 3px", evaluate("inspect(1px null 3px)")
|
1632
|
-
assert_equal "(a: 1, b: 2)", evaluate("inspect((a: 1, b: 2))")
|
1633
|
-
assert_equal "(a: 1, b: (c: 2))", evaluate("inspect((a: 1, b: (c: 2)))")
|
1634
|
-
assert_equal "(a: 1, b: (2, 3))", evaluate("inspect((a: 1, b: (2, 3)))")
|
1635
|
-
assert_equal "(a: 1, b: 2 3)", evaluate("inspect((a: 1, b: 2 3))")
|
1636
|
-
end
|
1637
|
-
|
1638
|
-
def test_random
|
1639
|
-
Sass::Script::Functions.random_seed = 1
|
1640
|
-
assert_equal "0.41702", evaluate("random()")
|
1641
|
-
assert_equal "13", evaluate("random(100)")
|
1642
|
-
end
|
1643
|
-
|
1644
|
-
def test_random_works_without_a_seed
|
1645
|
-
if Sass::Script::Functions.instance_variable_defined?("@random_number_generator")
|
1646
|
-
Sass::Script::Functions.send(:remove_instance_variable, "@random_number_generator")
|
1647
|
-
end
|
1648
|
-
|
1649
|
-
result = perform("random()")
|
1650
|
-
assert_kind_of Sass::Script::Number, result
|
1651
|
-
assert result.value >= 0, "Random number was below 0"
|
1652
|
-
assert result.value <= 1, "Random number was above 1"
|
1653
|
-
end
|
1654
|
-
|
1655
|
-
def test_random_with_limit_one
|
1656
|
-
# Passing 1 as the limit should always return 1, since limit calls return
|
1657
|
-
# integers from 1 to the argument, so when the argument is 1, its a predicatble
|
1658
|
-
# outcome
|
1659
|
-
assert "1", evaluate("random(1)")
|
1660
|
-
end
|
1661
|
-
|
1662
|
-
def test_random_with_limit_too_low
|
1663
|
-
assert_error_message("$limit 0 must be greater than or equal to 1 for `random'", "random(0)")
|
1664
|
-
end
|
1665
|
-
|
1666
|
-
def test_random_with_non_integer_limit
|
1667
|
-
assert_error_message("Expected $limit to be an integer but got 1.5 for `random'", "random(1.5)")
|
1668
|
-
end
|
1669
|
-
|
1670
|
-
# Regression test for #1638.
|
1671
|
-
def test_random_with_float_integer_limit
|
1672
|
-
result = perform("random(1.0)")
|
1673
|
-
assert_kind_of Sass::Script::Number, result
|
1674
|
-
assert result.value >= 0, "Random number was below 0"
|
1675
|
-
assert result.value <= 1, "Random number was above 1"
|
1676
|
-
end
|
1677
|
-
|
1678
|
-
# This could *possibly* fail, but exceedingly unlikely
|
1679
|
-
def test_random_is_semi_unique
|
1680
|
-
if Sass::Script::Functions.instance_variable_defined?("@random_number_generator")
|
1681
|
-
Sass::Script::Functions.send(:remove_instance_variable, "@random_number_generator")
|
1682
|
-
end
|
1683
|
-
refute_equal evaluate("random()"), evaluate("random()")
|
1684
|
-
end
|
1685
|
-
|
1686
|
-
def test_deprecated_arg_names
|
1687
|
-
assert_warning <<WARNING do
|
1688
|
-
DEPRECATION WARNING: The `$arg-1' argument for `deprecated-arg-fn()' has been renamed to `$arg1'.
|
1689
|
-
DEPRECATION WARNING: The `$arg-2' argument for `deprecated-arg-fn()' has been renamed to `$arg2'.
|
1690
|
-
WARNING
|
1691
|
-
assert_equal("1 2 3",
|
1692
|
-
evaluate("deprecated-arg-fn($arg-1: 1, $arg-2: 2, $arg3: 3)"))
|
1693
|
-
end
|
1694
|
-
|
1695
|
-
assert_warning <<WARNING do
|
1696
|
-
DEPRECATION WARNING: The `$arg-1' argument for `deprecated-arg-fn()' has been renamed to `$arg1'.
|
1697
|
-
DEPRECATION WARNING: The `$arg-2' argument for `deprecated-arg-fn()' has been renamed to `$arg2'.
|
1698
|
-
WARNING
|
1699
|
-
assert_equal("1 2",
|
1700
|
-
evaluate("deprecated-arg-fn($arg-1: 1, $arg-2: 2)"))
|
1701
|
-
end
|
1702
|
-
|
1703
|
-
assert_warning <<WARNING do
|
1704
|
-
DEPRECATION WARNING: The `$arg_1' argument for `deprecated-arg-fn()' has been renamed to `$arg1'.
|
1705
|
-
DEPRECATION WARNING: The `$arg_2' argument for `deprecated-arg-fn()' has been renamed to `$arg2'.
|
1706
|
-
WARNING
|
1707
|
-
assert_equal("1 2",
|
1708
|
-
evaluate("deprecated-arg-fn($arg_1: 1, $arg_2: 2)"))
|
1709
|
-
end
|
1710
|
-
end
|
1711
|
-
|
1712
|
-
def test_non_deprecated_arg_names
|
1713
|
-
assert_equal("1 2 3", evaluate("deprecated-arg-fn($arg1: 1, $arg2: 2, $arg3: 3)"))
|
1714
|
-
assert_equal("1 2", evaluate("deprecated-arg-fn($arg1: 1, $arg2: 2)"))
|
1715
|
-
end
|
1716
|
-
|
1717
|
-
## Selector Functions
|
1718
|
-
|
1719
|
-
def test_selector_argument_parsing
|
1720
|
-
assert_equal("true", evaluate("selector-parse('.foo') == (join(('.foo',), (), space),)"))
|
1721
|
-
assert_equal("true", evaluate("selector-parse('.foo .bar') == ('.foo' '.bar',)"))
|
1722
|
-
assert_equal("true",
|
1723
|
-
evaluate("selector-parse('.foo .bar, .baz .bang') == ('.foo' '.bar', '.baz' '.bang')"))
|
1724
|
-
|
1725
|
-
assert_equal(".foo %bar", evaluate("selector-parse('.foo %bar')"))
|
1726
|
-
|
1727
|
-
assert_equal("true",
|
1728
|
-
evaluate("selector-parse(('.foo', '.bar')) == selector-parse('.foo, .bar')"))
|
1729
|
-
assert_equal("true",
|
1730
|
-
evaluate("selector-parse('.foo' '.bar') == selector-parse('.foo .bar')"))
|
1731
|
-
|
1732
|
-
assert_equal("true", evaluate("selector-parse(('.foo' '.bar', '.baz' '.bang')) == " +
|
1733
|
-
"selector-parse('.foo .bar, .baz .bang')"))
|
1734
|
-
assert_equal("true", evaluate("selector-parse(('.foo .bar', '.baz .bang')) == " +
|
1735
|
-
"selector-parse('.foo .bar, .baz .bang')"))
|
1736
|
-
|
1737
|
-
# This may throw an error in the future.
|
1738
|
-
assert_equal("true", evaluate("selector-parse(('.foo, .bar' '.baz, .bang')) == " +
|
1739
|
-
"selector-parse('.foo, .bar .baz, .bang')"))
|
1740
|
-
end
|
1741
|
-
|
1742
|
-
def test_selector_argument_validation
|
1743
|
-
assert_error_message("$selector: 12 is not a valid selector: it must be a string,\n" +
|
1744
|
-
"a list of strings, or a list of lists of strings for `selector-parse'", "selector-parse(12)")
|
1745
|
-
assert_error_message("$selector: (((\".foo\" \".bar\"), \".baz\") (\".bang\", \".qux\")) is not a valid selector: it must be a string,\n" +
|
1746
|
-
"a list of strings, or a list of lists of strings for `selector-parse'",
|
1747
|
-
"selector-parse(('.foo' '.bar', '.baz') ('.bang', '.qux'))")
|
1748
|
-
assert_error_message("$selector: \".#\" is not a valid selector: Invalid CSS after \".\": " +
|
1749
|
-
"expected class name, was \"#\" for `selector-parse'", "selector-parse('.#')")
|
1750
|
-
assert_error_message("$selector: \"&.foo\" is not a valid selector: Invalid CSS after \"\": " +
|
1751
|
-
"expected selector, was \"&.foo\" for `selector-parse'", "selector-parse('&.foo')")
|
1752
|
-
end
|
1753
|
-
|
1754
|
-
def test_selector_nest
|
1755
|
-
assert_equal(".foo", evaluate("selector-nest('.foo')"))
|
1756
|
-
assert_equal(".foo .bar", evaluate("selector-nest('.foo', '.bar')"))
|
1757
|
-
assert_equal(".foo .bar .baz", evaluate("selector-nest('.foo', '.bar', '.baz')"))
|
1758
|
-
assert_equal(".a .foo .b .bar", evaluate("selector-nest('.a .foo', '.b .bar')"))
|
1759
|
-
assert_equal(".foo.bar", evaluate("selector-nest('.foo', '&.bar')"))
|
1760
|
-
assert_equal(".baz .foo.bar", evaluate("selector-nest('.foo', '&.bar', '.baz &')"))
|
1761
|
-
end
|
1762
|
-
|
1763
|
-
def test_selector_nest_checks_types
|
1764
|
-
assert_error_message("$selectors: 12 is not a valid selector: it must be a string,\n" +
|
1765
|
-
"a list of strings, or a list of lists of strings for `selector-nest'",
|
1766
|
-
"selector-nest(12)")
|
1767
|
-
assert_error_message("$selectors: 12 is not a valid selector: it must be a string,\n" +
|
1768
|
-
"a list of strings, or a list of lists of strings for `selector-nest'",
|
1769
|
-
"selector-nest('.foo', 12)")
|
1770
|
-
end
|
1771
|
-
|
1772
|
-
def test_selector_nest_argument_validation
|
1773
|
-
assert_error_message("$selectors: At least one selector must be passed for `selector-nest'",
|
1774
|
-
"selector-nest()")
|
1775
|
-
end
|
1776
|
-
|
1777
|
-
def test_selector_append
|
1778
|
-
assert_equal(".foo.bar", evaluate("selector-append('.foo', '.bar')"))
|
1779
|
-
assert_equal(".a .foo.b .bar", evaluate("selector-append('.a .foo', '.b .bar')"))
|
1780
|
-
assert_equal(".foo-suffix", evaluate("selector-append('.foo', '-suffix')"))
|
1781
|
-
assert_equal(".foo.bar, .foo-suffix", evaluate("selector-append('.foo', '.bar, -suffix')"))
|
1782
|
-
assert_equal(".foo--suffix", evaluate("selector-append('.foo', '--suffix')"))
|
1783
|
-
assert_equal(".foo.bar, .foo--suffix", evaluate("selector-append('.foo', '.bar, --suffix')"))
|
1784
|
-
end
|
1785
|
-
|
1786
|
-
def test_selector_append_checks_types
|
1787
|
-
assert_error_message("$selectors: 12 is not a valid selector: it must be a string,\n" +
|
1788
|
-
"a list of strings, or a list of lists of strings for `selector-append'",
|
1789
|
-
"selector-append(12)")
|
1790
|
-
assert_error_message("$selectors: 12 is not a valid selector: it must be a string,\n" +
|
1791
|
-
"a list of strings, or a list of lists of strings for `selector-append'",
|
1792
|
-
"selector-append('.foo', 12)")
|
1793
|
-
end
|
1794
|
-
|
1795
|
-
def test_selector_append_errors
|
1796
|
-
assert_error_message("$selectors: At least one selector must be passed for `selector-append'",
|
1797
|
-
"selector-append()")
|
1798
|
-
assert_error_message("Can't append \"> .bar\" to \".foo\" for `selector-append'",
|
1799
|
-
"selector-append('.foo', '> .bar')")
|
1800
|
-
assert_error_message("Can't append \"*.bar\" to \".foo\" for `selector-append'",
|
1801
|
-
"selector-append('.foo', '*.bar')")
|
1802
|
-
assert_error_message("Can't append \"ns|suffix\" to \".foo\" for `selector-append'",
|
1803
|
-
"selector-append('.foo', 'ns|suffix')")
|
1804
|
-
end
|
1805
|
-
|
1806
|
-
def test_selector_extend
|
1807
|
-
assert_equal(".foo .x, .foo .a .bar, .a .foo .bar",
|
1808
|
-
evaluate("selector-extend('.foo .x', '.x', '.a .bar')"))
|
1809
|
-
assert_equal(".foo .x, .foo .bang, .x.bar, .bar.bang",
|
1810
|
-
evaluate("selector-extend('.foo .x, .x.bar', '.x', '.bang')"))
|
1811
|
-
assert_equal(".y .x, .foo .x, .y .foo, .foo .foo",
|
1812
|
-
evaluate("selector-extend('.y .x', '.x, .y', '.foo')"))
|
1813
|
-
assert_equal(".foo .x, .foo .bar, .foo .bang",
|
1814
|
-
evaluate("selector-extend('.foo .x', '.x', '.bar, .bang')"))
|
1815
|
-
assert_equal(".foo.x, .foo",
|
1816
|
-
evaluate("selector-extend('.foo.x', '.x', '.foo')"))
|
1817
|
-
end
|
1818
|
-
|
1819
|
-
def test_selector_extend_checks_types
|
1820
|
-
assert_error_message("$selector: 12 is not a valid selector: it must be a string,\n" +
|
1821
|
-
"a list of strings, or a list of lists of strings for `selector-extend'",
|
1822
|
-
"selector-extend(12, '.foo', '.bar')")
|
1823
|
-
assert_error_message("$extendee: 12 is not a valid selector: it must be a string,\n" +
|
1824
|
-
"a list of strings, or a list of lists of strings for `selector-extend'",
|
1825
|
-
"selector-extend('.foo', 12, '.bar')")
|
1826
|
-
assert_error_message("$extender: 12 is not a valid selector: it must be a string,\n" +
|
1827
|
-
"a list of strings, or a list of lists of strings for `selector-extend'",
|
1828
|
-
"selector-extend('.foo', '.bar', 12)")
|
1829
|
-
end
|
1830
|
-
|
1831
|
-
def test_selector_extend_errors
|
1832
|
-
assert_error_message("Can't extend .bar .baz: can't extend nested selectors for " +
|
1833
|
-
"`selector-extend'", "selector-extend('.foo', '.bar .baz', '.bang')")
|
1834
|
-
assert_error_message("Can't extend >: invalid selector for `selector-extend'",
|
1835
|
-
"selector-extend('.foo', '>', '.bang')")
|
1836
|
-
assert_error_message(".bang > can't extend: invalid selector for `selector-extend'",
|
1837
|
-
"selector-extend('.foo', '.bar', '.bang >')")
|
1838
|
-
end
|
1839
|
-
|
1840
|
-
def test_selector_replace
|
1841
|
-
assert_equal(".bar", evaluate("selector-replace('.foo', '.foo', '.bar')"))
|
1842
|
-
assert_equal(".foo.baz", evaluate("selector-replace('.foo.bar', '.bar', '.baz')"))
|
1843
|
-
assert_equal(".a .foo.baz", evaluate("selector-replace('.foo.bar', '.bar', '.a .baz')"))
|
1844
|
-
|
1845
|
-
# These shouldn't warn since we still support componud targets for selector
|
1846
|
-
# functions.
|
1847
|
-
assert_no_warning {assert_equal(".foo.bar", evaluate("selector-replace('.foo.bar', '.baz.bar', '.qux')"))}
|
1848
|
-
assert_no_warning {assert_equal(".bar.qux", evaluate("selector-replace('.foo.bar.baz', '.foo.baz', '.qux')"))}
|
1849
|
-
|
1850
|
-
assert_equal(":not(.bar)", evaluate("selector-replace(':not(.foo)', '.foo', '.bar')"))
|
1851
|
-
assert_equal(".bar", evaluate("selector-replace(':not(.foo)', ':not(.foo)', '.bar')"))
|
1852
|
-
end
|
1853
|
-
|
1854
|
-
def test_selector_replace_checks_types
|
1855
|
-
assert_error_message("$selector: 12 is not a valid selector: it must be a string,\n" +
|
1856
|
-
"a list of strings, or a list of lists of strings for `selector-replace'",
|
1857
|
-
"selector-replace(12, '.foo', '.bar')")
|
1858
|
-
assert_error_message("$original: 12 is not a valid selector: it must be a string,\n" +
|
1859
|
-
"a list of strings, or a list of lists of strings for `selector-replace'",
|
1860
|
-
"selector-replace('.foo', 12, '.bar')")
|
1861
|
-
assert_error_message("$replacement: 12 is not a valid selector: it must be a string,\n" +
|
1862
|
-
"a list of strings, or a list of lists of strings for `selector-replace'",
|
1863
|
-
"selector-replace('.foo', '.bar', 12)")
|
1864
|
-
end
|
1865
|
-
|
1866
|
-
def test_selector_replace_errors
|
1867
|
-
assert_error_message("Can't extend .bar .baz: can't extend nested selectors for " +
|
1868
|
-
"`selector-replace'", "selector-replace('.foo', '.bar .baz', '.bang')")
|
1869
|
-
assert_error_message("Can't extend >: invalid selector for `selector-replace'",
|
1870
|
-
"selector-replace('.foo', '>', '.bang')")
|
1871
|
-
assert_error_message(".bang > can't extend: invalid selector for `selector-replace'",
|
1872
|
-
"selector-replace('.foo', '.bar', '.bang >')")
|
1873
|
-
end
|
1874
|
-
|
1875
|
-
def test_selector_unify
|
1876
|
-
assert_equal(".foo", evaluate("selector-unify('.foo', '.foo')"))
|
1877
|
-
assert_equal(".foo.bar", evaluate("selector-unify('.foo', '.bar')"))
|
1878
|
-
assert_equal(".foo.bar.baz", evaluate("selector-unify('.foo.bar', '.bar.baz')"))
|
1879
|
-
assert_equal(".a .b .foo.bar, .b .a .foo.bar", evaluate("selector-unify('.a .foo', '.b .bar')"))
|
1880
|
-
assert_equal(".a .foo.bar", evaluate("selector-unify('.a .foo', '.a .bar')"))
|
1881
|
-
assert_equal("", evaluate("selector-unify('p', 'a')"))
|
1882
|
-
assert_equal("", evaluate("selector-unify('.foo >', '.bar')"))
|
1883
|
-
assert_equal("", evaluate("selector-unify('.foo', '.bar >')"))
|
1884
|
-
assert_equal(".foo.baz, .foo.bang, .bar.baz, .bar.bang",
|
1885
|
-
evaluate("selector-unify('.foo, .bar', '.baz, .bang')"))
|
1886
|
-
end
|
1887
|
-
|
1888
|
-
def test_selector_unify_checks_types
|
1889
|
-
assert_error_message("$selector1: 12 is not a valid selector: it must be a string,\n" +
|
1890
|
-
"a list of strings, or a list of lists of strings for `selector-unify'",
|
1891
|
-
"selector-unify(12, '.foo')")
|
1892
|
-
assert_error_message("$selector2: 12 is not a valid selector: it must be a string,\n" +
|
1893
|
-
"a list of strings, or a list of lists of strings for `selector-unify'",
|
1894
|
-
"selector-unify('.foo', 12)")
|
1895
|
-
end
|
1896
|
-
|
1897
|
-
def test_simple_selectors
|
1898
|
-
assert_equal('(.foo,)', evaluate("inspect(simple-selectors('.foo'))"))
|
1899
|
-
assert_equal('.foo, .bar', evaluate("inspect(simple-selectors('.foo.bar'))"))
|
1900
|
-
assert_equal('.foo, .bar, :pseudo("flip, flap")',
|
1901
|
-
evaluate("inspect(simple-selectors('.foo.bar:pseudo(\"flip, flap\")'))"))
|
1902
|
-
end
|
1903
|
-
|
1904
|
-
def test_simple_selectors_checks_types
|
1905
|
-
assert_error_message("$selector: 12 is not a string for `simple-selectors'",
|
1906
|
-
"simple-selectors(12)")
|
1907
|
-
end
|
1908
|
-
|
1909
|
-
def test_simple_selectors_errors
|
1910
|
-
assert_error_message("$selector: \".foo .bar\" is not a compound selector for `simple-selectors'",
|
1911
|
-
"simple-selectors('.foo .bar')")
|
1912
|
-
assert_error_message("$selector: \".foo,.bar\" is not a compound selector for `simple-selectors'",
|
1913
|
-
"simple-selectors('.foo,.bar')")
|
1914
|
-
assert_error_message("$selector: \".#\" is not a valid selector: Invalid CSS after \".\": " +
|
1915
|
-
"expected class name, was \"#\" for `simple-selectors'", "simple-selectors('.#')")
|
1916
|
-
end
|
1917
|
-
|
1918
|
-
def test_is_superselector
|
1919
|
-
assert_equal("true", evaluate("is-superselector('.foo', '.foo.bar')"))
|
1920
|
-
assert_equal("false", evaluate("is-superselector('.foo.bar', '.foo')"))
|
1921
|
-
assert_equal("true", evaluate("is-superselector('.foo', '.foo')"))
|
1922
|
-
assert_equal("true", evaluate("is-superselector('.bar', '.foo .bar')"))
|
1923
|
-
assert_equal("false", evaluate("is-superselector('.foo .bar', '.bar')"))
|
1924
|
-
assert_equal("true", evaluate("is-superselector('.foo .bar', '.foo > .bar')"))
|
1925
|
-
assert_equal("false", evaluate("is-superselector('.foo > .bar', '.foo .bar')"))
|
1926
|
-
end
|
1927
|
-
|
1928
|
-
def test_is_superselector_checks_types
|
1929
|
-
assert_error_message("$super: 12 is not a valid selector: it must be a string,\n" +
|
1930
|
-
"a list of strings, or a list of lists of strings for `is-superselector'",
|
1931
|
-
"is-superselector(12, '.foo')")
|
1932
|
-
assert_error_message("$sub: 12 is not a valid selector: it must be a string,\n" +
|
1933
|
-
"a list of strings, or a list of lists of strings for `is-superselector'",
|
1934
|
-
"is-superselector('.foo', 12)")
|
1935
|
-
end
|
1936
|
-
|
1937
|
-
## Regression Tests
|
1938
|
-
|
1939
|
-
def test_inspect_nested_empty_lists
|
1940
|
-
assert_equal "() ()", evaluate("inspect(() ())")
|
1941
|
-
end
|
1942
|
-
|
1943
|
-
def test_saturation_bounds
|
1944
|
-
assert_equal "#fbfdff", evaluate("hsl(hue(#fbfdff), saturation(#fbfdff), lightness(#fbfdff))")
|
1945
|
-
end
|
1946
|
-
|
1947
|
-
private
|
1948
|
-
def env(hash = {}, parent = nil)
|
1949
|
-
env = Sass::Environment.new(parent)
|
1950
|
-
hash.each {|k, v| env.set_var(k, v)}
|
1951
|
-
env
|
1952
|
-
end
|
1953
|
-
|
1954
|
-
def evaluate(value, environment = env)
|
1955
|
-
result = perform(value, environment)
|
1956
|
-
assert_kind_of Sass::Script::Value::Base, result
|
1957
|
-
return result.to_s
|
1958
|
-
end
|
1959
|
-
|
1960
|
-
def perform(value, environment = env)
|
1961
|
-
Sass::Script::Parser.parse(value, 0, 0).perform(environment)
|
1962
|
-
end
|
1963
|
-
|
1964
|
-
def render(sass, options = {})
|
1965
|
-
options[:syntax] ||= :scss
|
1966
|
-
munge_filename options
|
1967
|
-
options[:importer] ||= MockImporter.new
|
1968
|
-
Sass::Engine.new(sass, options).render
|
1969
|
-
end
|
1970
|
-
|
1971
|
-
def assert_error_message(message, value)
|
1972
|
-
evaluate(value)
|
1973
|
-
flunk("Error message expected but not raised: #{message}")
|
1974
|
-
rescue Sass::SyntaxError => e
|
1975
|
-
assert_equal(message, e.message)
|
1976
|
-
end
|
1977
|
-
end
|