zuora_connect_ui 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/zuora_connect_ui.js +1 -0
- data/app/assets/javascripts/zuora_connect_ui/util.js +51 -0
- data/app/assets/stylesheets/_zuora_connect_ui.scss +4 -6
- data/app/assets/stylesheets/zuora_connect_ui/datatables.scss +3 -3
- data/app/helpers/zuora_connect_ui/application_helper.rb +28 -4
- data/app/views/partials/_table.html.erb +16 -7
- data/lib/zuora_connect_ui/version.rb +1 -1
- data/vendor/ruby/2.6.0/cache/autoprefixer-rails-9.6.1.1.gem +0 -0
- data/vendor/ruby/2.6.0/cache/parser-2.6.4.1.gem +0 -0
- data/vendor/ruby/2.6.0/cache/sassc-2.2.0.gem +0 -0
- data/vendor/ruby/2.6.0/cache/zeitwerk-2.1.10.gem +0 -0
- data/vendor/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.2.0/gem.build_complete +0 -0
- data/vendor/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.2.0/gem_make.out +75 -0
- data/vendor/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.2.0/sassc/libsass.so +0 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/CHANGELOG.md +1085 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/Gemfile +10 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/LICENSE +20 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/README.md +237 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/Rakefile +53 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/autoprefixer-rails.gemspec +32 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails.rb +41 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/processor.rb +194 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/railtie.rb +50 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/result.rb +24 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/sprockets.rb +62 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/version.rb +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/rake/autoprefixer_tasks.rb +28 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/Rakefile +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/config/manifest.js +0 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/evaluate.css.erb +1 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/loaded.sass +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/sass.sass +1 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/test.css +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/wrong.css +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/controllers/application_controller.rb +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/controllers/css_controller.rb +6 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config.ru +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/application.rb +16 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/autoprefixer.yml +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/boot.rb +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/environment.rb +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/environments/test.rb +9 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/initializers/secret_token.rb +1 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/routes.rb +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/autoprefixer_spec.rb +121 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/processor_spec.rb +25 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/rails_spec.rb +40 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/railtie_spec.rb +29 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/spec_helper.rb +16 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/vendor/autoprefixer.js +67195 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/CHANGELOG.md +909 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/CONTRIBUTING.md +17 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/Gemfile +10 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/LICENSE.txt +25 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/README.md +301 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/Rakefile +166 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/bin/ruby-parse +7 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/bin/ruby-rewrite +7 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/ci/run_rubocop_specs +14 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/AST_FORMAT.md +1816 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/CUSTOMIZATION.md +37 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/INTERNALS.md +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/css/common.css +68 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/gauntlet_parser.rb +123 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser.rb +82 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/all.rb +12 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ast/node.rb +40 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ast/processor.rb +264 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/base.rb +270 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/builders/default.rb +1741 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/clobbering_error.rb +13 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/color.rb +32 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/context.rb +59 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/current.rb +92 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/deprecation.rb +13 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/diagnostic.rb +163 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/diagnostic/engine.rb +105 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer.rb +23546 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer.rl +2503 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/dedenter.rb +79 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/explanation.rb +55 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/literal.rb +269 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/max_numparam_stack.rb +42 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/stack_state.rb +49 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/macruby.rb +6124 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/macruby.y +2198 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/messages.rb +90 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/meta.rb +33 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/rewriter.rb +105 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby18.rb +5661 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby18.y +1934 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby19.rb +6084 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby19.y +2175 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby20.rb +6511 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby20.y +2353 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby21.rb +6570 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby21.y +2357 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby22.rb +6605 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby22.y +2364 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby23.rb +6624 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby23.y +2370 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby24.rb +6689 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby24.y +2408 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby25.rb +6656 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby25.y +2405 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby26.rb +6670 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby26.y +2413 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby27.rb +6893 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby27.y +2470 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/rubymotion.rb +6078 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/rubymotion.y +2182 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/runner.rb +253 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/runner/ruby_parse.rb +157 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/runner/ruby_rewrite.rb +101 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/buffer.rb +330 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/comment.rb +121 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/comment/associator.rb +210 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map.rb +186 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/collection.rb +18 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/condition.rb +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/constant.rb +32 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/definition.rb +23 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/for.rb +19 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/heredoc.rb +19 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/index.rb +33 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/keyword.rb +20 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/objc_kwarg.rb +19 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/operator.rb +17 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/rescue_body.rb +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/send.rb +36 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/ternary.rb +18 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/variable.rb +31 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/range.rb +310 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/rewriter.rb +513 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/rewriter/action.rb +44 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/tree_rewriter.rb +301 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/tree_rewriter/action.rb +133 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/static_environment.rb +46 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/syntax_error.rb +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/tree_rewriter.rb +134 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/version.rb +5 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/parser.gemspec +51 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/bug_163/fixtures/input.rb +5 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/bug_163/fixtures/output.rb +5 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/bug_163/rewriter.rb +20 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/helper.rb +59 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/parse_helper.rb +316 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/racc_coverage_helper.rb +133 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_base.rb +31 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_current.rb +29 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_diagnostic.rb +96 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_diagnostic_engine.rb +62 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_encoding.rb +99 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_lexer.rb +3659 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_lexer_stack_state.rb +78 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_parse_helper.rb +80 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_parser.rb +7579 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_runner_parse.rb +35 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_runner_rewrite.rb +47 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_buffer.rb +162 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_comment.rb +36 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_comment_associator.rb +367 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_map.rb +15 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_range.rb +172 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_rewriter.rb +541 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_rewriter_action.rb +46 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_tree_rewriter.rb +173 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_static_environment.rb +45 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/using_tree_rewriter/fixtures/input.rb +3 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/using_tree_rewriter/fixtures/output.rb +3 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/using_tree_rewriter/using_tree_rewriter.rb +9 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/CHANGELOG.md +77 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/CODE_OF_CONDUCT.md +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/Gemfile +2 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/LICENSE.txt +22 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/README.md +68 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/Rakefile +53 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/Makefile +271 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/SharedPtr.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast2c.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_fwd_decl.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_sel_cmp.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_sel_unify.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_selectors.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_supports.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_values.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/backtrace.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/base64vlq.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/bind.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/c2ast.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/c99func.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/cencode.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/check_nesting.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/color_maps.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/constants.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/context.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/cssize.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/depend +4 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/emitter.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/environment.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/error_handling.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/eval.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/expand.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/extconf.rb +84 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/extend.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/file.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_colors.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_lists.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_maps.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_miscs.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_numbers.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_selectors.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_strings.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_utils.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/inspect.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/json.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/lexer.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass.so +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/VERSION +1 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/contrib/plugin.cpp +60 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass.h +15 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/base.h +96 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/context.h +170 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/functions.h +139 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/values.h +145 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/version.h +12 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass2scss.h +120 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast.cpp +963 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast.hpp +905 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast2c.cpp +80 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast2c.hpp +39 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_def_macros.hpp +132 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_fwd_decl.cpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_fwd_decl.hpp +341 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_sel_cmp.cpp +909 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_sel_unify.cpp +280 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_selectors.cpp +1475 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_selectors.hpp +568 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_supports.cpp +130 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_supports.hpp +121 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_values.cpp +967 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_values.hpp +489 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/b64/cencode.h +32 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/b64/encode.h +79 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/backtrace.cpp +50 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/backtrace.hpp +29 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/base64vlq.cpp +47 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/base64vlq.hpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/bind.cpp +312 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/bind.hpp +15 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/c2ast.cpp +64 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/c2ast.hpp +14 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/c99func.c +54 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/cencode.c +108 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/check_nesting.cpp +394 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/check_nesting.hpp +66 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/color_maps.cpp +651 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/color_maps.hpp +331 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/constants.cpp +194 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/constants.hpp +194 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/context.cpp +890 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/context.hpp +152 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/cssize.cpp +604 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/cssize.hpp +77 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/debug.hpp +43 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/debugger.hpp +807 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/emitter.cpp +298 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/emitter.hpp +103 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/environment.cpp +260 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/environment.hpp +119 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/error_handling.cpp +212 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/error_handling.hpp +229 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/eval.cpp +1657 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/eval.hpp +112 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/expand.cpp +822 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/expand.hpp +78 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/extend.cpp +2132 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/extend.hpp +86 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/file.cpp +522 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/file.hpp +133 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_colors.cpp +594 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_colors.hpp +85 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_lists.cpp +284 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_lists.hpp +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_maps.cpp +94 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_maps.hpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_miscs.cpp +256 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_miscs.hpp +40 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_numbers.cpp +220 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_numbers.hpp +45 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_selectors.cpp +235 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_selectors.hpp +35 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_strings.cpp +254 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_strings.hpp +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_utils.cpp +156 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_utils.hpp +56 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/inspect.cpp +1087 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/inspect.hpp +99 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/json.cpp +1436 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/json.hpp +117 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/kwd_arg_macros.hpp +28 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/lexer.cpp +184 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/lexer.hpp +315 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/listize.cpp +84 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/listize.hpp +38 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/mapping.hpp +18 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/memory/SharedPtr.cpp +33 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/memory/SharedPtr.hpp +286 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/node.cpp +322 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/node.hpp +118 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/operation.hpp +213 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/operators.cpp +266 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/operators.hpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/output.cpp +339 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/output.hpp +47 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/parser.cpp +3153 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/parser.hpp +402 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/paths.hpp +71 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/plugins.cpp +188 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/plugins.hpp +57 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/position.cpp +184 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/position.hpp +124 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/prelexer.cpp +1780 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/prelexer.hpp +484 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/remove_placeholders.cpp +87 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/remove_placeholders.hpp +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass.cpp +155 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass.hpp +142 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass2scss.cpp +895 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_context.cpp +772 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_context.hpp +129 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_functions.cpp +210 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_functions.hpp +50 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_util.cpp +152 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_util.hpp +256 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_values.cpp +365 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_values.hpp +82 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/source_map.cpp +198 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/source_map.hpp +62 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/subset_map.cpp +58 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/subset_map.hpp +76 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/to_value.cpp +114 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/to_value.hpp +46 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/units.cpp +505 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/units.hpp +110 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8.h +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8/checked.h +336 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8/core.h +332 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8/unchecked.h +235 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8_string.cpp +105 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8_string.hpp +37 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util.cpp +725 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util.hpp +106 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util_string.cpp +75 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util_string.hpp +19 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/values.cpp +140 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/values.hpp +12 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/listize.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/node.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/operators.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/output.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/parser.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/plugins.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/position.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/prelexer.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/remove_placeholders.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass2scss.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_context.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_functions.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_util.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_values.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/source_map.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/subset_map.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/to_value.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/units.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/utf8_string.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/util.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/util_string.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/values.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc.rb +57 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/dependency.rb +17 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/engine.rb +139 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/error.rb +37 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/functions_handler.rb +73 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/import_handler.rb +50 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/importer.rb +31 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/libsass.so +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native.rb +62 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/lib_c.rb +21 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/native_context_api.rb +147 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/native_functions_api.rb +159 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass2scss_api.rb +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass_input_style.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass_output_style.rb +12 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass_value.rb +97 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/string_list.rb +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/sass_2_scss.rb +9 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script.rb +17 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/functions.rb +8 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value.rb +137 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/bool.rb +32 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/color.rb +95 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/list.rb +136 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/map.rb +69 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/number.rb +389 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/string.rb +96 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion.rb +69 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/base.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/bool.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/color.rb +18 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/list.rb +25 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/map.rb +21 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/number.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/string.rb +17 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/util.rb +231 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/util/normalized_map.rb +117 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/version.rb +5 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/sassc.gemspec +69 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/custom_importer_test.rb +127 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/engine_test.rb +314 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/error_test.rb +29 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/fixtures/paths.scss +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/functions_test.rb +323 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/native_test.rb +213 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/output_style_test.rb +107 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/sass_2_scss_test.rb +14 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/test_helper.rb +45 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/README.md +533 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk.rb +12 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/error.rb +10 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/explicit_namespace.rb +80 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/gem_inflector.rb +19 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/inflector.rb +19 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/kernel.rb +33 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb +759 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader/callbacks.rb +71 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/real_mod_name.rb +15 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/registry.rb +147 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/version.rb +5 -0
- data/vendor/ruby/2.6.0/specifications/autoprefixer-rails-9.6.1.1.gemspec +47 -0
- data/vendor/ruby/2.6.0/specifications/parser-2.6.4.1.gemspec +62 -0
- data/vendor/ruby/2.6.0/specifications/sassc-2.2.0.gemspec +60 -0
- data/vendor/ruby/2.6.0/specifications/zeitwerk-2.1.10.gemspec +21 -0
- metadata +441 -4
- data/vendor/assets/anjuna/css/anjuna-application.css +0 -2
- data/vendor/assets/anjuna/css/anjuna-theme.css +0 -2
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'helper'
|
4
|
+
require 'open3'
|
5
|
+
|
6
|
+
class TestRunnerParse < Minitest::Test
|
7
|
+
PATH_TO_RUBY_PARSE = File.expand_path('../bin/ruby-parse', __dir__).freeze
|
8
|
+
|
9
|
+
def assert_prints(argv, expected_output)
|
10
|
+
stdout, stderr, status = Open3.capture3(PATH_TO_RUBY_PARSE, *argv)
|
11
|
+
|
12
|
+
assert_equal 0, status.to_i
|
13
|
+
assert_includes(stdout, expected_output)
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_emit_ruby
|
17
|
+
assert_prints ['--emit-ruby', '-e 123'],
|
18
|
+
's(:int, 123)'
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_emit_json
|
22
|
+
assert_prints ['--emit-json', '-e', '123'],
|
23
|
+
'["int",123]'
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_emit_ruby_empty
|
27
|
+
assert_prints ['--emit-ruby', '-e', ''],
|
28
|
+
"\n"
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_emit_json_empty
|
32
|
+
assert_prints ['--emit-json', '-e', ''],
|
33
|
+
"\n"
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
require 'fileutils'
|
5
|
+
require 'shellwords'
|
6
|
+
require 'open3'
|
7
|
+
|
8
|
+
BASE_DIR = Pathname.new(__FILE__) + '..'
|
9
|
+
require (BASE_DIR + 'helper').expand_path
|
10
|
+
|
11
|
+
class TestRunnerRewrite < Minitest::Test
|
12
|
+
def assert_rewriter_output(path, args, input: 'input.rb', output: 'output.rb', expected_output: '', expected_error: '')
|
13
|
+
@ruby_rewrite = BASE_DIR.expand_path + '../bin/ruby-rewrite'
|
14
|
+
@test_dir = BASE_DIR + path
|
15
|
+
@fixtures_dir = @test_dir + 'fixtures'
|
16
|
+
|
17
|
+
Dir.mktmpdir("parser", BASE_DIR.expand_path.to_s) do |tmp_dir|
|
18
|
+
tmp_dir = Pathname.new(tmp_dir)
|
19
|
+
sample_file = tmp_dir + "#{path}.rb"
|
20
|
+
sample_file_expanded = sample_file.expand_path
|
21
|
+
expected_file = @fixtures_dir + output
|
22
|
+
|
23
|
+
FileUtils.cp(@fixtures_dir + input, sample_file_expanded)
|
24
|
+
stdout, stderr, exit_code = Dir.chdir @test_dir do
|
25
|
+
Open3.capture3 %Q{
|
26
|
+
#{Shellwords.escape(@ruby_rewrite.to_s)} #{args} \
|
27
|
+
#{Shellwords.escape(sample_file_expanded.to_s)}
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
assert_equal expected_output.chomp, stdout.chomp
|
32
|
+
assert_match expected_error.chomp, stderr.chomp
|
33
|
+
assert_equal File.read(expected_file.expand_path), File.read(sample_file)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_rewriter_bug_163
|
38
|
+
assert_rewriter_output('bug_163',
|
39
|
+
'--modify -l rewriter.rb',
|
40
|
+
expected_error: Parser::Rewriter::DEPRECATION_WARNING
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_tree_rewriter
|
45
|
+
assert_rewriter_output('using_tree_rewriter', '-l using_tree_rewriter.rb --modify')
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'helper'
|
4
|
+
|
5
|
+
class TestSourceBuffer < Minitest::Test
|
6
|
+
def setup
|
7
|
+
@buffer = Parser::Source::Buffer.new('(string)')
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_initialize
|
11
|
+
buffer = Parser::Source::Buffer.new(nil)
|
12
|
+
assert_equal '', buffer.name
|
13
|
+
|
14
|
+
buffer = Parser::Source::Buffer.new(Pathname('a/b'))
|
15
|
+
assert_equal 'a/b', buffer.name
|
16
|
+
|
17
|
+
buffer = Parser::Source::Buffer.new('(string)')
|
18
|
+
assert_equal '(string)', buffer.name
|
19
|
+
assert_equal 1, buffer.first_line
|
20
|
+
|
21
|
+
buffer = Parser::Source::Buffer.new('(string)', 5)
|
22
|
+
assert_equal 5, buffer.first_line
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_source_setter
|
26
|
+
@buffer.source = 'foo'
|
27
|
+
assert_equal 'foo', @buffer.source
|
28
|
+
|
29
|
+
assert @buffer.source.frozen?
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_source_double_setter
|
33
|
+
@buffer.source = 'foo'
|
34
|
+
|
35
|
+
assert_raises(ArgumentError) do
|
36
|
+
@buffer.source = 'bar'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_source_setter_encoding_error
|
41
|
+
error = assert_raises EncodingError do
|
42
|
+
@buffer.source = [
|
43
|
+
'# encoding: utf-8',
|
44
|
+
"# \xf9"
|
45
|
+
].join("\n")
|
46
|
+
end
|
47
|
+
|
48
|
+
assert_match /invalid byte sequence in UTF\-8/, error.message
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_read
|
52
|
+
tempfile = Tempfile.new('parser')
|
53
|
+
tempfile.write('foobar')
|
54
|
+
tempfile.flush
|
55
|
+
|
56
|
+
buffer = Parser::Source::Buffer.new(tempfile.path)
|
57
|
+
buffer.read
|
58
|
+
assert_equal 'foobar', buffer.source
|
59
|
+
|
60
|
+
assert buffer.source.frozen?
|
61
|
+
end
|
62
|
+
|
63
|
+
def test_uninitialized
|
64
|
+
assert_raises RuntimeError do
|
65
|
+
@buffer.source
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def test_decompose_position
|
70
|
+
@buffer.source = "1\nfoo\nbar"
|
71
|
+
|
72
|
+
assert_equal [1, 0], @buffer.decompose_position(0)
|
73
|
+
assert_equal [1, 1], @buffer.decompose_position(1)
|
74
|
+
assert_equal [2, 0], @buffer.decompose_position(2)
|
75
|
+
assert_equal [3, 1], @buffer.decompose_position(7)
|
76
|
+
end
|
77
|
+
|
78
|
+
def test_decompose_position_mapped
|
79
|
+
@buffer = Parser::Source::Buffer.new('(string)', 5)
|
80
|
+
@buffer.source = "1\nfoo\nbar"
|
81
|
+
|
82
|
+
assert_equal [5, 0], @buffer.decompose_position(0)
|
83
|
+
assert_equal [6, 0], @buffer.decompose_position(2)
|
84
|
+
end
|
85
|
+
|
86
|
+
def test_line
|
87
|
+
@buffer.source = "1\nfoo\nbar"
|
88
|
+
|
89
|
+
assert_equal '1', @buffer.source_line(1)
|
90
|
+
assert_equal 'foo', @buffer.source_line(2)
|
91
|
+
end
|
92
|
+
|
93
|
+
def test_line_mutate
|
94
|
+
@buffer.source = "1\nfoo\nbar"
|
95
|
+
|
96
|
+
assert_equal '1', @buffer.source_line(1)
|
97
|
+
|
98
|
+
@buffer.source_line(1)[0] = '2'
|
99
|
+
assert_equal '1', @buffer.source_line(1)
|
100
|
+
end
|
101
|
+
|
102
|
+
def test_line_mapped
|
103
|
+
@buffer = Parser::Source::Buffer.new('(string)', 5)
|
104
|
+
@buffer.source = "1\nfoo\nbar"
|
105
|
+
|
106
|
+
assert_equal '1', @buffer.source_line(5)
|
107
|
+
assert_equal 'foo', @buffer.source_line(6)
|
108
|
+
end
|
109
|
+
|
110
|
+
def test_line_range
|
111
|
+
@buffer = Parser::Source::Buffer.new('(string)', 5)
|
112
|
+
@buffer.source = "abc\ndef\nghi\n"
|
113
|
+
|
114
|
+
assert_raises IndexError do
|
115
|
+
@buffer.line_range(4)
|
116
|
+
end
|
117
|
+
assert_equal 'abc', @buffer.line_range(5).source
|
118
|
+
assert_equal 'def', @buffer.line_range(6).source
|
119
|
+
assert_equal 'ghi', @buffer.line_range(7).source
|
120
|
+
assert_equal '', @buffer.line_range(8).source
|
121
|
+
assert_raises IndexError do
|
122
|
+
@buffer.line_range(9)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
def test_source_range
|
127
|
+
@buffer = Parser::Source::Buffer.new('(string)', 5)
|
128
|
+
|
129
|
+
assert_raises RuntimeError do
|
130
|
+
@buffer.source_range
|
131
|
+
end
|
132
|
+
|
133
|
+
@buffer.source = "abc\ndef\nghi\n"
|
134
|
+
|
135
|
+
assert_equal Parser::Source::Range.new(@buffer, 0, @buffer.source.size), @buffer.source_range
|
136
|
+
end
|
137
|
+
|
138
|
+
def test_last_line
|
139
|
+
@buffer.source = "1\nfoo\nbar"
|
140
|
+
assert_equal 3, @buffer.last_line
|
141
|
+
|
142
|
+
@buffer = Parser::Source::Buffer.new('(string)', 5)
|
143
|
+
@buffer.source = ""
|
144
|
+
assert_equal 5, @buffer.last_line
|
145
|
+
|
146
|
+
@buffer = Parser::Source::Buffer.new('(string)', 5)
|
147
|
+
@buffer.source = "abc\n"
|
148
|
+
assert_equal 6, @buffer.last_line
|
149
|
+
end
|
150
|
+
|
151
|
+
def test_source_lines
|
152
|
+
@buffer.source = "1\nfoo\nbar\n"
|
153
|
+
|
154
|
+
assert_equal ['1', 'foo', 'bar', ''], @buffer.source_lines
|
155
|
+
assert @buffer.source_lines.frozen?
|
156
|
+
assert @buffer.source_lines.all?(&:frozen?)
|
157
|
+
|
158
|
+
@buffer = Parser::Source::Buffer.new('(string)', 5)
|
159
|
+
@buffer.source = "foo\nbar"
|
160
|
+
assert_equal ['foo', 'bar'], @buffer.source_lines
|
161
|
+
end
|
162
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'helper'
|
4
|
+
|
5
|
+
class TestSourceComment < Minitest::Test
|
6
|
+
def setup
|
7
|
+
@buf = Parser::Source::Buffer.new('(string)')
|
8
|
+
@buf.source = "# foo\n=begin foo\nbar\n=end baz\n"
|
9
|
+
end
|
10
|
+
|
11
|
+
def range(s, e)
|
12
|
+
Parser::Source::Range.new(@buf, s, e)
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_initialize
|
16
|
+
comment = Parser::Source::Comment.new(range(0, 5))
|
17
|
+
assert comment.frozen?
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_text
|
21
|
+
comment = Parser::Source::Comment.new(range(0, 5))
|
22
|
+
assert_equal '# foo', comment.text
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_inline
|
26
|
+
comment = Parser::Source::Comment.new(range(0, 5))
|
27
|
+
assert_equal :inline, comment.type
|
28
|
+
assert comment.inline?
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_document
|
32
|
+
comment = Parser::Source::Comment.new(range(6, 25))
|
33
|
+
assert_equal :document, comment.type
|
34
|
+
assert comment.document?
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,367 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'helper'
|
4
|
+
require 'parser/ruby18'
|
5
|
+
|
6
|
+
class TestSourceCommentAssociator < Minitest::Test
|
7
|
+
def parse_with_comments(code)
|
8
|
+
parser = Parser::Ruby18.new
|
9
|
+
|
10
|
+
buffer = Parser::Source::Buffer.new('(comments)')
|
11
|
+
buffer.source = code
|
12
|
+
|
13
|
+
parser.parse_with_comments(buffer)
|
14
|
+
end
|
15
|
+
|
16
|
+
def associate(code)
|
17
|
+
ast, comments = parse_with_comments(code)
|
18
|
+
associations = Parser::Source::Comment.associate(ast, comments)
|
19
|
+
|
20
|
+
[ ast, associations ]
|
21
|
+
end
|
22
|
+
|
23
|
+
def associate_locations(code)
|
24
|
+
ast, comments = parse_with_comments(code)
|
25
|
+
associations = Parser::Source::Comment.associate_locations(ast, comments)
|
26
|
+
|
27
|
+
[ ast, associations ]
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_associate
|
31
|
+
ast, associations = associate(<<-END)
|
32
|
+
#!/usr/bin/env ruby
|
33
|
+
# coding: utf-8
|
34
|
+
# class preceeding
|
35
|
+
# another class preceeding
|
36
|
+
class Foo # class keyword line
|
37
|
+
# method foo preceeding
|
38
|
+
def foo
|
39
|
+
puts 'foo'
|
40
|
+
end # method foo decorating
|
41
|
+
# method bar preceeding
|
42
|
+
def bar
|
43
|
+
# expression preceeding
|
44
|
+
1 + # 1 decorating
|
45
|
+
2
|
46
|
+
# method bar sparse
|
47
|
+
end # method bar decorating
|
48
|
+
# class sparse
|
49
|
+
end # class decorating
|
50
|
+
END
|
51
|
+
|
52
|
+
klass_node = ast
|
53
|
+
klass_name_node = klass_node.children[0]
|
54
|
+
foo_node = klass_node.children[2].children[0] # def foo
|
55
|
+
bar_node = klass_node.children[2].children[1] # def bar
|
56
|
+
expr_node = bar_node.children[2] # 1 + 2
|
57
|
+
one_node = expr_node.children[0] # 1
|
58
|
+
|
59
|
+
assert_equal 6, associations.size
|
60
|
+
assert_equal [
|
61
|
+
'# class preceeding',
|
62
|
+
'# another class preceeding',
|
63
|
+
'# class sparse',
|
64
|
+
'# class decorating'
|
65
|
+
], associations[klass_node].map(&:text)
|
66
|
+
assert_equal [
|
67
|
+
'# class keyword line'
|
68
|
+
], associations[klass_name_node].map(&:text)
|
69
|
+
assert_equal [
|
70
|
+
'# method foo preceeding',
|
71
|
+
'# method foo decorating'
|
72
|
+
], associations[foo_node].map(&:text)
|
73
|
+
assert_equal [
|
74
|
+
'# method bar preceeding',
|
75
|
+
'# method bar sparse',
|
76
|
+
'# method bar decorating'
|
77
|
+
], associations[bar_node].map(&:text)
|
78
|
+
assert_equal [
|
79
|
+
'# expression preceeding'
|
80
|
+
], associations[expr_node].map(&:text)
|
81
|
+
assert_equal [
|
82
|
+
'# 1 decorating'
|
83
|
+
], associations[one_node].map(&:text)
|
84
|
+
end
|
85
|
+
|
86
|
+
# The bug below is fixed by using associate_locations
|
87
|
+
def test_associate_dupe_statement
|
88
|
+
ast, associations = associate(<<-END)
|
89
|
+
class Foo
|
90
|
+
def bar
|
91
|
+
f1 # comment on 1st call to f1
|
92
|
+
f2
|
93
|
+
f1 # comment on 2nd call to f1
|
94
|
+
end
|
95
|
+
end
|
96
|
+
END
|
97
|
+
|
98
|
+
klass_node = ast
|
99
|
+
method_node = ast.children[2]
|
100
|
+
body = method_node.children[2]
|
101
|
+
f1_1_node = body.children[0]
|
102
|
+
f1_2_node = body.children[2]
|
103
|
+
|
104
|
+
assert_equal 1, associations.size
|
105
|
+
assert_equal ['# comment on 1st call to f1', '# comment on 2nd call to f1'],
|
106
|
+
associations[f1_1_node].map(&:text)
|
107
|
+
assert_equal ['# comment on 1st call to f1', '# comment on 2nd call to f1'],
|
108
|
+
associations[f1_2_node].map(&:text)
|
109
|
+
end
|
110
|
+
|
111
|
+
def test_associate_locations
|
112
|
+
ast, associations = associate_locations(<<-END)
|
113
|
+
#!/usr/bin/env ruby
|
114
|
+
# coding: utf-8
|
115
|
+
# class preceeding
|
116
|
+
# another class preceeding
|
117
|
+
class Foo # class keyword line
|
118
|
+
# method foo preceeding
|
119
|
+
def foo
|
120
|
+
puts 'foo'
|
121
|
+
end # method foo decorating
|
122
|
+
# method bar preceeding
|
123
|
+
def bar
|
124
|
+
# expression preceeding
|
125
|
+
1 + # 1 decorating
|
126
|
+
2
|
127
|
+
# method bar sparse
|
128
|
+
end # method bar decorating
|
129
|
+
# class sparse
|
130
|
+
end # class decorating
|
131
|
+
END
|
132
|
+
|
133
|
+
klass_node = ast
|
134
|
+
klass_name_node = klass_node.children[0]
|
135
|
+
foo_node = klass_node.children[2].children[0] # def foo
|
136
|
+
bar_node = klass_node.children[2].children[1] # def bar
|
137
|
+
expr_node = bar_node.children[2] # 1 + 2
|
138
|
+
one_node = expr_node.children[0] # 1
|
139
|
+
|
140
|
+
assert_equal 6, associations.size
|
141
|
+
assert_equal [
|
142
|
+
'# class preceeding',
|
143
|
+
'# another class preceeding',
|
144
|
+
'# class sparse',
|
145
|
+
'# class decorating'
|
146
|
+
], associations[klass_node.loc].map(&:text)
|
147
|
+
assert_equal [
|
148
|
+
'# class keyword line'
|
149
|
+
], associations[klass_name_node.loc].map(&:text)
|
150
|
+
assert_equal [
|
151
|
+
'# method foo preceeding',
|
152
|
+
'# method foo decorating'
|
153
|
+
], associations[foo_node.loc].map(&:text)
|
154
|
+
assert_equal [
|
155
|
+
'# method bar preceeding',
|
156
|
+
'# method bar sparse',
|
157
|
+
'# method bar decorating'
|
158
|
+
], associations[bar_node.loc].map(&:text)
|
159
|
+
assert_equal [
|
160
|
+
'# expression preceeding'
|
161
|
+
], associations[expr_node.loc].map(&:text)
|
162
|
+
assert_equal [
|
163
|
+
'# 1 decorating'
|
164
|
+
], associations[one_node.loc].map(&:text)
|
165
|
+
end
|
166
|
+
|
167
|
+
def test_associate_locations_dupe_statement
|
168
|
+
ast, associations = associate_locations(<<-END)
|
169
|
+
class Foo
|
170
|
+
def bar
|
171
|
+
f1 # comment on 1st call to f1
|
172
|
+
f2
|
173
|
+
f1 # comment on 2nd call to f1
|
174
|
+
end
|
175
|
+
end
|
176
|
+
END
|
177
|
+
|
178
|
+
klass_node = ast
|
179
|
+
method_node = ast.children[2]
|
180
|
+
body = method_node.children[2]
|
181
|
+
f1_1_node = body.children[0]
|
182
|
+
f1_2_node = body.children[2]
|
183
|
+
|
184
|
+
assert_equal 2, associations.size
|
185
|
+
assert_equal ['# comment on 1st call to f1'],
|
186
|
+
associations[f1_1_node.loc].map(&:text)
|
187
|
+
assert_equal ['# comment on 2nd call to f1'],
|
188
|
+
associations[f1_2_node.loc].map(&:text)
|
189
|
+
end
|
190
|
+
|
191
|
+
def test_associate_no_body
|
192
|
+
ast, associations = associate(<<-END)
|
193
|
+
# foo
|
194
|
+
class Foo
|
195
|
+
end
|
196
|
+
END
|
197
|
+
|
198
|
+
assert_equal 1, associations.size
|
199
|
+
assert_equal ['# foo'],
|
200
|
+
associations[ast].map(&:text)
|
201
|
+
end
|
202
|
+
|
203
|
+
def test_associate_empty_tree
|
204
|
+
ast, associations = associate("")
|
205
|
+
assert_equal 0, associations.size
|
206
|
+
end
|
207
|
+
|
208
|
+
def test_associate_shebang_only
|
209
|
+
ast, associations = associate(<<-END)
|
210
|
+
#!ruby
|
211
|
+
class Foo
|
212
|
+
end
|
213
|
+
END
|
214
|
+
|
215
|
+
assert_equal 0, associations.size
|
216
|
+
end
|
217
|
+
|
218
|
+
def test_associate_frozen_string_literal
|
219
|
+
ast, associations = associate(<<-END)
|
220
|
+
# frozen_string_literal: true
|
221
|
+
class Foo
|
222
|
+
end
|
223
|
+
END
|
224
|
+
|
225
|
+
assert_equal 0, associations.size
|
226
|
+
end
|
227
|
+
|
228
|
+
def test_associate_frozen_string_literal_dash_star_dash
|
229
|
+
ast, associations = associate(<<-END)
|
230
|
+
# -*- frozen_string_literal: true -*-
|
231
|
+
class Foo
|
232
|
+
end
|
233
|
+
END
|
234
|
+
|
235
|
+
assert_equal 0, associations.size
|
236
|
+
end
|
237
|
+
|
238
|
+
def test_associate_frozen_string_literal_no_space_after_colon
|
239
|
+
ast, associations = associate(<<-END)
|
240
|
+
# frozen_string_literal:true
|
241
|
+
class Foo
|
242
|
+
end
|
243
|
+
END
|
244
|
+
|
245
|
+
assert_equal 0, associations.size
|
246
|
+
end
|
247
|
+
|
248
|
+
def test_associate_warn_indent
|
249
|
+
ast, associations = associate(<<-END)
|
250
|
+
# warn_indent: true
|
251
|
+
class Foo
|
252
|
+
end
|
253
|
+
END
|
254
|
+
|
255
|
+
assert_equal 0, associations.size
|
256
|
+
end
|
257
|
+
|
258
|
+
def test_associate_warn_indent_dash_star_dash
|
259
|
+
ast, associations = associate(<<-END)
|
260
|
+
# -*- warn_indent: true -*-
|
261
|
+
class Foo
|
262
|
+
end
|
263
|
+
END
|
264
|
+
|
265
|
+
assert_equal 0, associations.size
|
266
|
+
end
|
267
|
+
|
268
|
+
def test_associate_warn_past_scope
|
269
|
+
ast, associations = associate(<<-END)
|
270
|
+
# warn_past_scope: true
|
271
|
+
class Foo
|
272
|
+
end
|
273
|
+
END
|
274
|
+
|
275
|
+
assert_equal 0, associations.size
|
276
|
+
end
|
277
|
+
|
278
|
+
def test_associate_warn_past_scope_dash_star_dash
|
279
|
+
ast, associations = associate(<<-END)
|
280
|
+
# -*- warn_past_scope: true -*-
|
281
|
+
class Foo
|
282
|
+
end
|
283
|
+
END
|
284
|
+
|
285
|
+
assert_equal 0, associations.size
|
286
|
+
end
|
287
|
+
|
288
|
+
def test_associate_multiple
|
289
|
+
ast, associations = associate(<<-END)
|
290
|
+
# frozen_string_literal: true; warn_indent: true
|
291
|
+
class Foo
|
292
|
+
end
|
293
|
+
END
|
294
|
+
|
295
|
+
assert_equal 0, associations.size
|
296
|
+
end
|
297
|
+
|
298
|
+
def test_associate_multiple_dash_star_dash
|
299
|
+
ast, associations = associate(<<-END)
|
300
|
+
# -*- frozen_string_literal: true; warn_indent: true -*-
|
301
|
+
class Foo
|
302
|
+
end
|
303
|
+
END
|
304
|
+
|
305
|
+
assert_equal 0, associations.size
|
306
|
+
end
|
307
|
+
|
308
|
+
def test_associate_no_comments
|
309
|
+
ast, associations = associate(<<-END)
|
310
|
+
class Foo
|
311
|
+
end
|
312
|
+
END
|
313
|
+
|
314
|
+
assert_equal 0, associations.size
|
315
|
+
end
|
316
|
+
|
317
|
+
def test_associate_comments_after_root_node
|
318
|
+
ast, associations = associate(<<-END)
|
319
|
+
class Foo
|
320
|
+
end
|
321
|
+
# not associated
|
322
|
+
END
|
323
|
+
|
324
|
+
assert_equal 0, associations.size
|
325
|
+
end
|
326
|
+
|
327
|
+
|
328
|
+
def test_associate_stray_comment
|
329
|
+
ast, associations = associate(<<-END)
|
330
|
+
def foo
|
331
|
+
# foo
|
332
|
+
end
|
333
|
+
END
|
334
|
+
|
335
|
+
assert_equal 1, associations.size
|
336
|
+
assert_equal ['# foo'],
|
337
|
+
associations[ast].map(&:text)
|
338
|
+
end
|
339
|
+
|
340
|
+
def test_associate___ENCODING__
|
341
|
+
ast, associations = associate(<<-END)
|
342
|
+
# foo
|
343
|
+
__ENCODING__
|
344
|
+
END
|
345
|
+
|
346
|
+
assert_equal 1, associations.size
|
347
|
+
assert_equal ['# foo'],
|
348
|
+
associations[ast].map(&:text)
|
349
|
+
end
|
350
|
+
|
351
|
+
def test_associate_inside_heredoc
|
352
|
+
ast, associations = associate(<<-END)
|
353
|
+
<<x
|
354
|
+
\#{
|
355
|
+
foo # bar
|
356
|
+
}
|
357
|
+
x
|
358
|
+
END
|
359
|
+
|
360
|
+
begin_node = ast.children[0]
|
361
|
+
send_node = begin_node.children[0]
|
362
|
+
|
363
|
+
assert_equal 1, associations.size
|
364
|
+
assert_equal ['# bar'],
|
365
|
+
associations[send_node].map(&:text)
|
366
|
+
end
|
367
|
+
end
|