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,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Zeitwerk
|
4
|
+
require_relative "zeitwerk/real_mod_name"
|
5
|
+
require_relative "zeitwerk/loader"
|
6
|
+
require_relative "zeitwerk/registry"
|
7
|
+
require_relative "zeitwerk/explicit_namespace"
|
8
|
+
require_relative "zeitwerk/inflector"
|
9
|
+
require_relative "zeitwerk/gem_inflector"
|
10
|
+
require_relative "zeitwerk/kernel"
|
11
|
+
require_relative "zeitwerk/error"
|
12
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
module Zeitwerk
|
2
|
+
# Centralizes the logic for the trace point used to detect the creation of
|
3
|
+
# explicit namespaces, needed to descend into matching subdirectories right
|
4
|
+
# after the constant has been defined.
|
5
|
+
#
|
6
|
+
# The implementation assumes an explicit namespace is managed by one loader.
|
7
|
+
# Loaders that reopen namespaces owned by other projects are responsible for
|
8
|
+
# loading their constant before setup. This is documented.
|
9
|
+
module ExplicitNamespace # :nodoc: all
|
10
|
+
class << self
|
11
|
+
include RealModName
|
12
|
+
|
13
|
+
# Maps constant paths that correspond to explicit namespaces according to
|
14
|
+
# the file system, to the loader responsible for them.
|
15
|
+
#
|
16
|
+
# @private
|
17
|
+
# @return [{String => Zeitwerk::Loader}]
|
18
|
+
attr_reader :cpaths
|
19
|
+
|
20
|
+
# @private
|
21
|
+
# @return [Mutex]
|
22
|
+
attr_reader :mutex
|
23
|
+
|
24
|
+
# @private
|
25
|
+
# @return [TracePoint]
|
26
|
+
attr_reader :tracer
|
27
|
+
|
28
|
+
# Asserts `cpath` corresponds to an explicit namespace for which `loader`
|
29
|
+
# is responsible.
|
30
|
+
#
|
31
|
+
# @private
|
32
|
+
# @param cpath [String]
|
33
|
+
# @param loader [Zeitwerk::Loader]
|
34
|
+
# @return [void]
|
35
|
+
def register(cpath, loader)
|
36
|
+
mutex.synchronize do
|
37
|
+
cpaths[cpath] = loader
|
38
|
+
# We check enabled? because, looking at the C source code, enabling an
|
39
|
+
# enabled tracer does not seem to be a simple no-op.
|
40
|
+
tracer.enable unless tracer.enabled?
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# @private
|
45
|
+
# @param loader [Zeitwerk::Loader]
|
46
|
+
# @return [void]
|
47
|
+
def unregister(loader)
|
48
|
+
cpaths.delete_if { |_cpath, l| l == loader }
|
49
|
+
disable_tracer_if_unneeded
|
50
|
+
end
|
51
|
+
|
52
|
+
def disable_tracer_if_unneeded
|
53
|
+
mutex.synchronize do
|
54
|
+
tracer.disable if cpaths.empty?
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def tracepoint_class_callback(event)
|
59
|
+
# If the class is a singleton class, we won't do anything with it so we
|
60
|
+
# can bail out immediately. This is several orders of magnitude faster
|
61
|
+
# than accessing its name.
|
62
|
+
return if event.self.singleton_class?
|
63
|
+
|
64
|
+
# Note that it makes sense to compute the hash code unconditionally,
|
65
|
+
# because the trace point is disabled if cpaths is empty.
|
66
|
+
if loader = cpaths.delete(real_mod_name(event.self))
|
67
|
+
loader.on_namespace_loaded(event.self)
|
68
|
+
disable_tracer_if_unneeded
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
@cpaths = {}
|
74
|
+
@mutex = Mutex.new
|
75
|
+
|
76
|
+
# We go through a method instead of defining a block mainly to have a better
|
77
|
+
# label when profiling.
|
78
|
+
@tracer = TracePoint.new(:class, &method(:tracepoint_class_callback))
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Zeitwerk
|
4
|
+
class GemInflector < Inflector # :nodoc:
|
5
|
+
# @param root_file [String]
|
6
|
+
def initialize(root_file)
|
7
|
+
namespace = File.basename(root_file, ".rb")
|
8
|
+
lib_dir = File.dirname(root_file)
|
9
|
+
@version_file = File.join(lib_dir, namespace, "version.rb")
|
10
|
+
end
|
11
|
+
|
12
|
+
# @param basename [String]
|
13
|
+
# @param abspath [String]
|
14
|
+
# @return [String]
|
15
|
+
def camelize(basename, abspath)
|
16
|
+
(basename == "version" && abspath == @version_file) ? "VERSION" : super
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Zeitwerk
|
4
|
+
class Inflector # :nodoc:
|
5
|
+
# Very basic snake case -> camel case conversion.
|
6
|
+
#
|
7
|
+
# inflector = Zeitwerk::Inflector.new
|
8
|
+
# inflector.camelize("post", ...) # => "Post"
|
9
|
+
# inflector.camelize("users_controller", ...) # => "UsersController"
|
10
|
+
# inflector.camelize("api", ...) # => "Api"
|
11
|
+
#
|
12
|
+
# @param basename [String]
|
13
|
+
# @param _abspath [String]
|
14
|
+
# @return [String]
|
15
|
+
def camelize(basename, _abspath)
|
16
|
+
basename.split('_').map!(&:capitalize).join
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Kernel
|
4
|
+
module_function
|
5
|
+
|
6
|
+
# We cannot decorate with prepend + super because Kernel has already been
|
7
|
+
# included in Object, and changes in ancestors don't get propagated into
|
8
|
+
# already existing ancestor chains.
|
9
|
+
alias_method :zeitwerk_original_require, :require
|
10
|
+
|
11
|
+
# @param path [String]
|
12
|
+
# @return [Boolean]
|
13
|
+
def require(path)
|
14
|
+
if loader = Zeitwerk::Registry.loader_for(path)
|
15
|
+
if path.end_with?(".rb")
|
16
|
+
zeitwerk_original_require(path).tap do |required|
|
17
|
+
loader.on_file_autoloaded(path) if required
|
18
|
+
end
|
19
|
+
else
|
20
|
+
loader.on_dir_autoloaded(path)
|
21
|
+
end
|
22
|
+
else
|
23
|
+
zeitwerk_original_require(path).tap do |required|
|
24
|
+
if required
|
25
|
+
realpath = $LOADED_FEATURES.last
|
26
|
+
if loader = Zeitwerk::Registry.loader_for(realpath)
|
27
|
+
loader.on_file_autoloaded(realpath)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,759 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "set"
|
4
|
+
require "securerandom"
|
5
|
+
|
6
|
+
module Zeitwerk
|
7
|
+
class Loader
|
8
|
+
require_relative "loader/callbacks"
|
9
|
+
include Callbacks
|
10
|
+
include RealModName
|
11
|
+
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :tag
|
14
|
+
|
15
|
+
# @return [#camelize]
|
16
|
+
attr_accessor :inflector
|
17
|
+
|
18
|
+
# @return [#call, #debug, nil]
|
19
|
+
attr_accessor :logger
|
20
|
+
|
21
|
+
# Absolute paths of the root directories. Stored in a hash to preserve
|
22
|
+
# order, easily handle duplicates, and also be able to have a fast lookup,
|
23
|
+
# needed for detecting nested paths.
|
24
|
+
#
|
25
|
+
# "/Users/fxn/blog/app/assets" => true,
|
26
|
+
# "/Users/fxn/blog/app/channels" => true,
|
27
|
+
# ...
|
28
|
+
#
|
29
|
+
# This is a private collection maintained by the loader. The public
|
30
|
+
# interface for it is `push_dir` and `dirs`.
|
31
|
+
#
|
32
|
+
# @private
|
33
|
+
# @return [{String => true}]
|
34
|
+
attr_reader :root_dirs
|
35
|
+
|
36
|
+
# Absolute paths of files or directories that have to be preloaded.
|
37
|
+
#
|
38
|
+
# @private
|
39
|
+
# @return [<String>]
|
40
|
+
attr_reader :preloads
|
41
|
+
|
42
|
+
# Absolute paths of files, directories, of glob patterns to be totally
|
43
|
+
# ignored.
|
44
|
+
#
|
45
|
+
# @private
|
46
|
+
# @return [Set<String>]
|
47
|
+
attr_reader :ignored_glob_patterns
|
48
|
+
|
49
|
+
# The actual collection of absolute file and directory names at the time the
|
50
|
+
# ignored glob patterns were expanded. Computed on setup, and recomputed on
|
51
|
+
# reload.
|
52
|
+
#
|
53
|
+
# @private
|
54
|
+
# @return [Set<String>]
|
55
|
+
attr_reader :ignored_paths
|
56
|
+
|
57
|
+
# Maps real absolute paths for which an autoload has been set ---and not
|
58
|
+
# executed--- to their corresponding parent class or module and constant
|
59
|
+
# name.
|
60
|
+
#
|
61
|
+
# "/Users/fxn/blog/app/models/user.rb" => [Object, :User],
|
62
|
+
# "/Users/fxn/blog/app/models/hotel/pricing.rb" => [Hotel, :Pricing]
|
63
|
+
# ...
|
64
|
+
#
|
65
|
+
# @private
|
66
|
+
# @return [{String => (Module, Symbol)}]
|
67
|
+
attr_reader :autoloads
|
68
|
+
|
69
|
+
# We keep track of autoloaded directories to remove them from the registry
|
70
|
+
# at the end of eager loading.
|
71
|
+
#
|
72
|
+
# Files are removed as they are autoloaded, but directories need to wait due
|
73
|
+
# to concurrency (see why in Zeitwerk::Loader::Callbacks#on_dir_autoloaded).
|
74
|
+
#
|
75
|
+
# @private
|
76
|
+
# @return [<String>]
|
77
|
+
attr_reader :autoloaded_dirs
|
78
|
+
|
79
|
+
# Stores metadata needed for unloading. Its entries look like this:
|
80
|
+
#
|
81
|
+
# "Admin::Role" => [".../admin/role.rb", [Admin, :Role]]
|
82
|
+
#
|
83
|
+
# The cpath as key helps implementing unloadable_cpath? The real file name
|
84
|
+
# is stored in order to be able to delete it from $LOADED_FEATURES, and the
|
85
|
+
# pair [Module, Symbol] is used to remove_const the constant from the class
|
86
|
+
# or module object.
|
87
|
+
#
|
88
|
+
# If reloading is enabled, this hash is filled as constants are autoloaded
|
89
|
+
# or eager loaded. Otherwise, the collection remains empty.
|
90
|
+
#
|
91
|
+
# @private
|
92
|
+
# @return [{String => (String, (Module, Symbol))}]
|
93
|
+
attr_reader :to_unload
|
94
|
+
|
95
|
+
# Maps constant paths of namespaces to arrays of corresponding directories.
|
96
|
+
#
|
97
|
+
# For example, given this mapping:
|
98
|
+
#
|
99
|
+
# "Admin" => [
|
100
|
+
# "/Users/fxn/blog/app/controllers/admin",
|
101
|
+
# "/Users/fxn/blog/app/models/admin",
|
102
|
+
# ...
|
103
|
+
# ]
|
104
|
+
#
|
105
|
+
# when `Admin` gets defined we know that it plays the role of a namespace and
|
106
|
+
# that its children are spread over those directories. We'll visit them to set
|
107
|
+
# up the corresponding autoloads.
|
108
|
+
#
|
109
|
+
# @private
|
110
|
+
# @return [{String => <String>}]
|
111
|
+
attr_reader :lazy_subdirs
|
112
|
+
|
113
|
+
# Absolute paths of files or directories not to be eager loaded.
|
114
|
+
#
|
115
|
+
# @private
|
116
|
+
# @return [Set<String>]
|
117
|
+
attr_reader :eager_load_exclusions
|
118
|
+
|
119
|
+
# @private
|
120
|
+
# @return [Mutex]
|
121
|
+
attr_reader :mutex
|
122
|
+
|
123
|
+
# @private
|
124
|
+
# @return [Mutex]
|
125
|
+
attr_reader :mutex2
|
126
|
+
|
127
|
+
def initialize
|
128
|
+
@initialized_at = Time.now
|
129
|
+
|
130
|
+
@tag = SecureRandom.hex(3)
|
131
|
+
@inflector = Inflector.new
|
132
|
+
@logger = self.class.default_logger
|
133
|
+
|
134
|
+
@root_dirs = {}
|
135
|
+
@preloads = []
|
136
|
+
@ignored_glob_patterns = Set.new
|
137
|
+
@ignored_paths = Set.new
|
138
|
+
@autoloads = {}
|
139
|
+
@autoloaded_dirs = []
|
140
|
+
@to_unload = {}
|
141
|
+
@lazy_subdirs = {}
|
142
|
+
@eager_load_exclusions = Set.new
|
143
|
+
|
144
|
+
# TODO: find a better name for these mutexes.
|
145
|
+
@mutex = Mutex.new
|
146
|
+
@mutex2 = Mutex.new
|
147
|
+
@setup = false
|
148
|
+
@eager_loaded = false
|
149
|
+
|
150
|
+
@reloading_enabled = false
|
151
|
+
|
152
|
+
Registry.register_loader(self)
|
153
|
+
end
|
154
|
+
|
155
|
+
# Sets a tag for the loader, useful for logging.
|
156
|
+
#
|
157
|
+
# @return [void]
|
158
|
+
def tag=(tag)
|
159
|
+
@tag = tag.to_s
|
160
|
+
end
|
161
|
+
|
162
|
+
# Absolute paths of the root directories. This is a read-only collection,
|
163
|
+
# please push here via `push_dir`.
|
164
|
+
#
|
165
|
+
# @return [<String>]
|
166
|
+
def dirs
|
167
|
+
root_dirs.keys.freeze
|
168
|
+
end
|
169
|
+
|
170
|
+
# Pushes `path` to the list of root directories.
|
171
|
+
#
|
172
|
+
# Raises `Zeitwerk::Error` if `path` does not exist, or if another loader in
|
173
|
+
# the same process already manages that directory or one of its ascendants
|
174
|
+
# or descendants.
|
175
|
+
#
|
176
|
+
# @param path [<String, Pathname>]
|
177
|
+
# @raise [Zeitwerk::Error]
|
178
|
+
# @return [void]
|
179
|
+
def push_dir(path)
|
180
|
+
abspath = File.expand_path(path)
|
181
|
+
if dir?(abspath)
|
182
|
+
raise_if_conflicting_directory(abspath)
|
183
|
+
root_dirs[abspath] = true
|
184
|
+
else
|
185
|
+
raise Error, "the root directory #{abspath} does not exist"
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# You need to call this method before setup in order to be able to reload.
|
190
|
+
# There is no way to undo this, either you want to reload or you don't.
|
191
|
+
#
|
192
|
+
# @raise [Zeitwerk::Error]
|
193
|
+
# @return [void]
|
194
|
+
def enable_reloading
|
195
|
+
mutex.synchronize do
|
196
|
+
break if @reloading_enabled
|
197
|
+
|
198
|
+
if @setup
|
199
|
+
raise Error, "cannot enable reloading after setup"
|
200
|
+
else
|
201
|
+
@reloading_enabled = true
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# @return [Boolean]
|
207
|
+
def reloading_enabled?
|
208
|
+
@reloading_enabled
|
209
|
+
end
|
210
|
+
|
211
|
+
# Files or directories to be preloaded instead of lazy loaded.
|
212
|
+
#
|
213
|
+
# @param paths [<String, Pathname, <String, Pathname>>]
|
214
|
+
# @return [void]
|
215
|
+
def preload(*paths)
|
216
|
+
mutex.synchronize do
|
217
|
+
expand_paths(paths).each do |abspath|
|
218
|
+
preloads << abspath
|
219
|
+
do_preload_abspath(abspath) if @setup
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# Configure files, directories, or glob patterns to be totally ignored.
|
225
|
+
#
|
226
|
+
# @param paths [<String, Pathname, <String, Pathname>>]
|
227
|
+
# @return [void]
|
228
|
+
def ignore(*glob_patterns)
|
229
|
+
glob_patterns = expand_paths(glob_patterns)
|
230
|
+
mutex.synchronize do
|
231
|
+
ignored_glob_patterns.merge(glob_patterns)
|
232
|
+
ignored_paths.merge(expand_glob_patterns(glob_patterns))
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Sets autoloads in the root namespace and preloads files, if any.
|
237
|
+
#
|
238
|
+
# @return [void]
|
239
|
+
def setup
|
240
|
+
mutex.synchronize do
|
241
|
+
break if @setup
|
242
|
+
|
243
|
+
actual_root_dirs.each { |root_dir| set_autoloads_in_dir(root_dir, Object) }
|
244
|
+
do_preload
|
245
|
+
|
246
|
+
@setup = true
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
# Removes loaded constants and configured autoloads.
|
251
|
+
#
|
252
|
+
# The objects the constants stored are no longer reachable through them. In
|
253
|
+
# addition, since said objects are normally not referenced from anywhere
|
254
|
+
# else, they are eligible for garbage collection, which would effectively
|
255
|
+
# unload them.
|
256
|
+
#
|
257
|
+
# @private
|
258
|
+
# @return [void]
|
259
|
+
def unload
|
260
|
+
mutex.synchronize do
|
261
|
+
# We are going to keep track of the files that were required by our
|
262
|
+
# autoloads to later remove them from $LOADED_FEATURES, thus making them
|
263
|
+
# loadable by Kernel#require again.
|
264
|
+
#
|
265
|
+
# Directories are not stored in $LOADED_FEATURES, keeping track of files
|
266
|
+
# is enough.
|
267
|
+
unloaded_files = Set.new
|
268
|
+
|
269
|
+
autoloads.each do |realpath, (parent, cname)|
|
270
|
+
if parent.autoload?(cname)
|
271
|
+
unload_autoload(parent, cname)
|
272
|
+
else
|
273
|
+
# Could happen if loaded with require_relative. That is unsupported,
|
274
|
+
# and the constant path would escape unloadable_cpath? This is just
|
275
|
+
# defensive code to clean things up as much as we are able to.
|
276
|
+
unload_cref(parent, cname) if cdef?(parent, cname)
|
277
|
+
unloaded_files.add(realpath) if ruby?(realpath)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
to_unload.each_value do |(realpath, (parent, cname))|
|
282
|
+
unload_cref(parent, cname) if cdef?(parent, cname)
|
283
|
+
unloaded_files.add(realpath) if ruby?(realpath)
|
284
|
+
end
|
285
|
+
|
286
|
+
unless unloaded_files.empty?
|
287
|
+
# Bootsnap decorates Kernel#require to speed it up using a cache and
|
288
|
+
# this optimization does not check if $LOADED_FEATURES has the file.
|
289
|
+
#
|
290
|
+
# To make it aware of changes, the gem defines singleton methods in
|
291
|
+
# $LOADED_FEATURES:
|
292
|
+
#
|
293
|
+
# https://github.com/Shopify/bootsnap/blob/master/lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
|
294
|
+
#
|
295
|
+
# Rails applications may depend on bootsnap, so for unloading to work
|
296
|
+
# in that setting it is preferable that we restrict our API choice to
|
297
|
+
# one of those methods.
|
298
|
+
$LOADED_FEATURES.reject! { |file| unloaded_files.member?(file) }
|
299
|
+
end
|
300
|
+
|
301
|
+
autoloads.clear
|
302
|
+
autoloaded_dirs.clear
|
303
|
+
to_unload.clear
|
304
|
+
lazy_subdirs.clear
|
305
|
+
|
306
|
+
Registry.on_unload(self)
|
307
|
+
ExplicitNamespace.unregister(self)
|
308
|
+
|
309
|
+
@setup = false
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# Unloads all loaded code, and calls setup again so that the loader is able
|
314
|
+
# to pick any changes in the file system.
|
315
|
+
#
|
316
|
+
# This method is not thread-safe, please see how this can be achieved by
|
317
|
+
# client code in the README of the project.
|
318
|
+
#
|
319
|
+
# @raise [Zeitwerk::Error]
|
320
|
+
# @return [void]
|
321
|
+
def reload
|
322
|
+
if reloading_enabled?
|
323
|
+
unload
|
324
|
+
recompute_ignored_paths
|
325
|
+
setup
|
326
|
+
else
|
327
|
+
raise ReloadingDisabledError, "can't reload, please call loader.enable_reloading before setup"
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# Eager loads all files in the root directories, recursively. Files do not
|
332
|
+
# need to be in `$LOAD_PATH`, absolute file names are used. Ignored files
|
333
|
+
# are not eager loaded. You can opt-out specifically in specific files and
|
334
|
+
# directories with `do_not_eager_load`.
|
335
|
+
#
|
336
|
+
# @return [void]
|
337
|
+
def eager_load
|
338
|
+
mutex.synchronize do
|
339
|
+
break if @eager_loaded
|
340
|
+
|
341
|
+
queue = actual_root_dirs.reject { |dir| eager_load_exclusions.member?(dir) }
|
342
|
+
queue.map! { |dir| [Object, dir] }
|
343
|
+
while to_eager_load = queue.shift
|
344
|
+
namespace, dir = to_eager_load
|
345
|
+
|
346
|
+
ls(dir) do |basename, abspath|
|
347
|
+
next if eager_load_exclusions.member?(abspath)
|
348
|
+
|
349
|
+
if ruby?(abspath)
|
350
|
+
if cref = autoloads[File.realpath(abspath)]
|
351
|
+
cref[0].const_get(cref[1], false)
|
352
|
+
end
|
353
|
+
elsif dir?(abspath) && !root_dirs.key?(abspath)
|
354
|
+
cname = inflector.camelize(basename, abspath)
|
355
|
+
queue << [namespace.const_get(cname, false), abspath]
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
autoloaded_dirs.each do |autoloaded_dir|
|
361
|
+
Registry.unregister_autoload(autoloaded_dir)
|
362
|
+
end
|
363
|
+
autoloaded_dirs.clear
|
364
|
+
|
365
|
+
@eager_loaded = true
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
# Let eager load ignore the given files or directories. The constants
|
370
|
+
# defined in those files are still autoloadable.
|
371
|
+
#
|
372
|
+
# @param paths [<String, Pathname, <String, Pathname>>]
|
373
|
+
# @return [void]
|
374
|
+
def do_not_eager_load(*paths)
|
375
|
+
mutex.synchronize { eager_load_exclusions.merge(expand_paths(paths)) }
|
376
|
+
end
|
377
|
+
|
378
|
+
# Says if the given constant path would be unloaded on reload. This
|
379
|
+
# predicate returns `false` if reloading is disabled.
|
380
|
+
#
|
381
|
+
# @param cpath [String]
|
382
|
+
# @return [Boolean]
|
383
|
+
def unloadable_cpath?(cpath)
|
384
|
+
to_unload.key?(cpath)
|
385
|
+
end
|
386
|
+
|
387
|
+
# Returns an array with the constant paths that would be unloaded on reload.
|
388
|
+
# This predicate returns an empty array if reloading is disabled.
|
389
|
+
#
|
390
|
+
# @return [<String>]
|
391
|
+
def unloadable_cpaths
|
392
|
+
to_unload.keys.freeze
|
393
|
+
end
|
394
|
+
|
395
|
+
# Logs to `$stdout`, handy shortcut for debugging.
|
396
|
+
#
|
397
|
+
# @return [void]
|
398
|
+
def log!
|
399
|
+
@logger = ->(msg) { puts msg }
|
400
|
+
end
|
401
|
+
|
402
|
+
# @private
|
403
|
+
# @param dir [String]
|
404
|
+
# @return [Boolean]
|
405
|
+
def manages?(dir)
|
406
|
+
dir = dir + "/"
|
407
|
+
ignored_paths.each do |ignored_path|
|
408
|
+
return false if dir.start_with?(ignored_path + "/")
|
409
|
+
end
|
410
|
+
|
411
|
+
root_dirs.each_key do |root_dir|
|
412
|
+
return true if root_dir.start_with?(dir) || dir.start_with?(root_dir + "/")
|
413
|
+
end
|
414
|
+
|
415
|
+
false
|
416
|
+
end
|
417
|
+
|
418
|
+
# --- Class methods ---------------------------------------------------------------------------
|
419
|
+
|
420
|
+
class << self
|
421
|
+
# @return [#call, #debug, nil]
|
422
|
+
attr_accessor :default_logger
|
423
|
+
|
424
|
+
# @private
|
425
|
+
# @return [Mutex]
|
426
|
+
attr_accessor :mutex
|
427
|
+
|
428
|
+
# This is a shortcut for
|
429
|
+
#
|
430
|
+
# require "zeitwerk"
|
431
|
+
# loader = Zeitwerk::Loader.new
|
432
|
+
# loader.tag = File.basename(__FILE__, ".rb")
|
433
|
+
# loader.inflector = Zeitwerk::GemInflector.new
|
434
|
+
# loader.push_dir(__dir__)
|
435
|
+
#
|
436
|
+
# except that this method returns the same object in subsequent calls from
|
437
|
+
# the same file, in the unlikely case the gem wants to be able to reload.
|
438
|
+
#
|
439
|
+
# @return [Zeitwerk::Loader]
|
440
|
+
def for_gem
|
441
|
+
called_from = caller_locations(1, 1).first.path
|
442
|
+
Registry.loader_for_gem(called_from)
|
443
|
+
end
|
444
|
+
|
445
|
+
# Broadcasts `eager_load` to all loaders.
|
446
|
+
#
|
447
|
+
# @return [void]
|
448
|
+
def eager_load_all
|
449
|
+
Registry.loaders.each(&:eager_load)
|
450
|
+
end
|
451
|
+
|
452
|
+
# Returns an array with the absolute paths of the root directories of all
|
453
|
+
# registered loaders. This is a read-only collection.
|
454
|
+
#
|
455
|
+
# @return [<String>]
|
456
|
+
def all_dirs
|
457
|
+
Registry.loaders.flat_map(&:dirs).freeze
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
self.mutex = Mutex.new
|
462
|
+
|
463
|
+
private # -------------------------------------------------------------------------------------
|
464
|
+
|
465
|
+
# @return [<String>]
|
466
|
+
def actual_root_dirs
|
467
|
+
root_dirs.keys.delete_if do |root_dir|
|
468
|
+
!dir?(root_dir) || ignored_paths.member?(root_dir)
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
# @param dir [String]
|
473
|
+
# @param parent [Module]
|
474
|
+
# @return [void]
|
475
|
+
def set_autoloads_in_dir(dir, parent)
|
476
|
+
ls(dir) do |basename, abspath|
|
477
|
+
begin
|
478
|
+
if ruby?(basename)
|
479
|
+
basename.slice!(-3, 3)
|
480
|
+
cname = inflector.camelize(basename, abspath).to_sym
|
481
|
+
autoload_file(parent, cname, abspath)
|
482
|
+
elsif dir?(abspath)
|
483
|
+
# In a Rails application, `app/models/concerns` is a subdirectory of
|
484
|
+
# `app/models`, but both of them are root directories.
|
485
|
+
#
|
486
|
+
# To resolve the ambiguity file name -> constant path this introduces,
|
487
|
+
# the `app/models/concerns` directory is totally ignored as a namespace,
|
488
|
+
# it counts only as root. The guard checks that.
|
489
|
+
unless root_dirs.key?(abspath)
|
490
|
+
cname = inflector.camelize(basename, abspath).to_sym
|
491
|
+
autoload_subdir(parent, cname, abspath)
|
492
|
+
end
|
493
|
+
end
|
494
|
+
rescue ::NameError => error
|
495
|
+
path_type = ruby?(abspath) ? "file" : "directory"
|
496
|
+
|
497
|
+
raise NameError, <<~MESSAGE
|
498
|
+
#{error.message} inferred by #{inflector.class} from #{path_type}
|
499
|
+
|
500
|
+
#{abspath}
|
501
|
+
|
502
|
+
Possible ways to address this:
|
503
|
+
|
504
|
+
* Tell Zeitwerk to ignore this particular #{path_type}.
|
505
|
+
* Tell Zeitwerk to ignore one of its parent directories.
|
506
|
+
* Rename the #{path_type} to comply with the naming conventions.
|
507
|
+
* Modify the inflector to handle this case.
|
508
|
+
MESSAGE
|
509
|
+
end
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
513
|
+
# @param parent [Module]
|
514
|
+
# @param cname [Symbol]
|
515
|
+
# @param subdir [String]
|
516
|
+
# @return [void]
|
517
|
+
def autoload_subdir(parent, cname, subdir)
|
518
|
+
if autoload_path = autoload_for?(parent, cname)
|
519
|
+
cpath = cpath(parent, cname)
|
520
|
+
register_explicit_namespace(cpath) if ruby?(autoload_path)
|
521
|
+
# We do not need to issue another autoload, the existing one is enough
|
522
|
+
# no matter if it is for a file or a directory. Just remember the
|
523
|
+
# subdirectory has to be visited if the namespace is used.
|
524
|
+
(lazy_subdirs[cpath] ||= []) << subdir
|
525
|
+
elsif !cdef?(parent, cname)
|
526
|
+
# First time we find this namespace, set an autoload for it.
|
527
|
+
(lazy_subdirs[cpath(parent, cname)] ||= []) << subdir
|
528
|
+
set_autoload(parent, cname, subdir)
|
529
|
+
else
|
530
|
+
# For whatever reason the constant that corresponds to this namespace has
|
531
|
+
# already been defined, we have to recurse.
|
532
|
+
set_autoloads_in_dir(subdir, parent.const_get(cname))
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
# @param parent [Module]
|
537
|
+
# @param cname [Symbol]
|
538
|
+
# @param file [String]
|
539
|
+
# @return [void]
|
540
|
+
def autoload_file(parent, cname, file)
|
541
|
+
if autoload_path = autoload_for?(parent, cname)
|
542
|
+
# First autoload for a Ruby file wins, just ignore subsequent ones.
|
543
|
+
if ruby?(autoload_path)
|
544
|
+
log("file #{file} is ignored because #{autoload_path} has precedence") if logger
|
545
|
+
else
|
546
|
+
promote_namespace_from_implicit_to_explicit(
|
547
|
+
dir: autoload_path,
|
548
|
+
file: file,
|
549
|
+
parent: parent,
|
550
|
+
cname: cname
|
551
|
+
)
|
552
|
+
end
|
553
|
+
elsif cdef?(parent, cname)
|
554
|
+
log("file #{file} is ignored because #{cpath(parent, cname)} is already defined") if logger
|
555
|
+
else
|
556
|
+
set_autoload(parent, cname, file)
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
560
|
+
# @param dir [String] directory that would have autovivified a module
|
561
|
+
# @param file [String] the file where the namespace is explictly defined
|
562
|
+
# @param parent [Module]
|
563
|
+
# @param cname [Symbol]
|
564
|
+
# @return [void]
|
565
|
+
def promote_namespace_from_implicit_to_explicit(dir:, file:, parent:, cname:)
|
566
|
+
autoloads.delete(dir)
|
567
|
+
Registry.unregister_autoload(dir)
|
568
|
+
|
569
|
+
set_autoload(parent, cname, file)
|
570
|
+
register_explicit_namespace(cpath(parent, cname))
|
571
|
+
end
|
572
|
+
|
573
|
+
# @param parent [Module]
|
574
|
+
# @param cname [Symbol]
|
575
|
+
# @param abspath [String]
|
576
|
+
# @return [void]
|
577
|
+
def set_autoload(parent, cname, abspath)
|
578
|
+
# $LOADED_FEATURES stores real paths since Ruby 2.4.4. We set and save the
|
579
|
+
# real path to be able to delete it from $LOADED_FEATURES on unload, and to
|
580
|
+
# be able to do a lookup later in Kernel#require for manual require calls.
|
581
|
+
realpath = File.realpath(abspath)
|
582
|
+
parent.autoload(cname, realpath)
|
583
|
+
if logger
|
584
|
+
if ruby?(realpath)
|
585
|
+
log("autoload set for #{cpath(parent, cname)}, to be loaded from #{realpath}")
|
586
|
+
else
|
587
|
+
log("autoload set for #{cpath(parent, cname)}, to be autovivified from #{realpath}")
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
autoloads[realpath] = [parent, cname]
|
592
|
+
Registry.register_autoload(self, realpath)
|
593
|
+
|
594
|
+
# See why in the documentation of Zeitwerk::Registry.inceptions.
|
595
|
+
unless parent.autoload?(cname)
|
596
|
+
Registry.register_inception(cpath(parent, cname), realpath, self)
|
597
|
+
end
|
598
|
+
end
|
599
|
+
|
600
|
+
# @param parent [Module]
|
601
|
+
# @param cname [Symbol]
|
602
|
+
# @return [String, nil]
|
603
|
+
def autoload_for?(parent, cname)
|
604
|
+
strict_autoload_path(parent, cname) || Registry.inception?(cpath(parent, cname))
|
605
|
+
end
|
606
|
+
|
607
|
+
# The autoload? predicate takes into account the ancestor chain of the
|
608
|
+
# receiver, like const_defined? and other methods in the constants API do.
|
609
|
+
#
|
610
|
+
# For example, given
|
611
|
+
#
|
612
|
+
# class A
|
613
|
+
# autoload :X, "x.rb"
|
614
|
+
# end
|
615
|
+
#
|
616
|
+
# class B < A
|
617
|
+
# end
|
618
|
+
#
|
619
|
+
# B.autoload?(:X) returns "x.rb".
|
620
|
+
#
|
621
|
+
# We need a way to strictly check in parent ignoring ancestors.
|
622
|
+
#
|
623
|
+
# @param parent [Module]
|
624
|
+
# @param cname [Symbol]
|
625
|
+
# @return [String, nil]
|
626
|
+
def strict_autoload_path(parent, cname)
|
627
|
+
parent.autoload?(cname) if cdef?(parent, cname)
|
628
|
+
end
|
629
|
+
|
630
|
+
# This method is called this way because I prefer `preload` to be the method
|
631
|
+
# name to configure preloads in the public interface.
|
632
|
+
#
|
633
|
+
# @return [void]
|
634
|
+
def do_preload
|
635
|
+
preloads.each do |abspath|
|
636
|
+
do_preload_abspath(abspath)
|
637
|
+
end
|
638
|
+
end
|
639
|
+
|
640
|
+
# @param abspath [String]
|
641
|
+
# @return [void]
|
642
|
+
def do_preload_abspath(abspath)
|
643
|
+
if ruby?(abspath)
|
644
|
+
do_preload_file(abspath)
|
645
|
+
elsif dir?(abspath)
|
646
|
+
do_preload_dir(abspath)
|
647
|
+
end
|
648
|
+
end
|
649
|
+
|
650
|
+
# @param dir [String]
|
651
|
+
# @return [void]
|
652
|
+
def do_preload_dir(dir)
|
653
|
+
ls(dir) do |_basename, abspath|
|
654
|
+
do_preload_abspath(abspath)
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
658
|
+
# @param file [String]
|
659
|
+
# @return [Boolean]
|
660
|
+
def do_preload_file(file)
|
661
|
+
log("preloading #{file}") if logger
|
662
|
+
require file
|
663
|
+
end
|
664
|
+
|
665
|
+
# @param parent [Module]
|
666
|
+
# @param cname [Symbol]
|
667
|
+
# @return [String]
|
668
|
+
def cpath(parent, cname)
|
669
|
+
parent.equal?(Object) ? cname.to_s : "#{real_mod_name(parent)}::#{cname}"
|
670
|
+
end
|
671
|
+
|
672
|
+
# @param dir [String]
|
673
|
+
# @yieldparam path [String, String]
|
674
|
+
# @return [void]
|
675
|
+
def ls(dir)
|
676
|
+
Dir.foreach(dir) do |basename|
|
677
|
+
next if basename.start_with?(".")
|
678
|
+
abspath = File.join(dir, basename)
|
679
|
+
yield basename, abspath unless ignored_paths.member?(abspath)
|
680
|
+
end
|
681
|
+
end
|
682
|
+
|
683
|
+
# @param path [String]
|
684
|
+
# @return [Boolean]
|
685
|
+
def ruby?(path)
|
686
|
+
path.end_with?(".rb")
|
687
|
+
end
|
688
|
+
|
689
|
+
# @param path [String]
|
690
|
+
# @return [Boolean]
|
691
|
+
def dir?(path)
|
692
|
+
File.directory?(path)
|
693
|
+
end
|
694
|
+
|
695
|
+
# @param paths [<String, Pathname, <String, Pathname>>]
|
696
|
+
# @return [<String>]
|
697
|
+
def expand_paths(paths)
|
698
|
+
paths.flatten.map! { |path| File.expand_path(path) }
|
699
|
+
end
|
700
|
+
|
701
|
+
# @param glob_patterns [<String>]
|
702
|
+
# @return [<String>]
|
703
|
+
def expand_glob_patterns(glob_patterns)
|
704
|
+
# Note that Dir.glob works with regular file names just fine. That is,
|
705
|
+
# glob patterns technically need no wildcards.
|
706
|
+
glob_patterns.flat_map { |glob_pattern| Dir.glob(glob_pattern) }
|
707
|
+
end
|
708
|
+
|
709
|
+
# @return [void]
|
710
|
+
def recompute_ignored_paths
|
711
|
+
ignored_paths.replace(expand_glob_patterns(ignored_glob_patterns))
|
712
|
+
end
|
713
|
+
|
714
|
+
# @param message [String]
|
715
|
+
# @return [void]
|
716
|
+
def log(message)
|
717
|
+
method_name = logger.respond_to?(:debug) ? :debug : :call
|
718
|
+
logger.send(method_name, "Zeitwerk@#{tag}: #{message}")
|
719
|
+
end
|
720
|
+
|
721
|
+
def cdef?(parent, cname)
|
722
|
+
parent.const_defined?(cname, false)
|
723
|
+
end
|
724
|
+
|
725
|
+
def register_explicit_namespace(cpath)
|
726
|
+
ExplicitNamespace.register(cpath, self)
|
727
|
+
end
|
728
|
+
|
729
|
+
def raise_if_conflicting_directory(dir)
|
730
|
+
self.class.mutex.synchronize do
|
731
|
+
Registry.loaders.each do |loader|
|
732
|
+
if loader != self && loader.manages?(dir)
|
733
|
+
require "pp"
|
734
|
+
raise Error,
|
735
|
+
"loader\n\n#{pretty_inspect}\n\nwants to manage directory #{dir}," \
|
736
|
+
" which is already managed by\n\n#{loader.pretty_inspect}\n"
|
737
|
+
EOS
|
738
|
+
end
|
739
|
+
end
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
743
|
+
# @param parent [Module]
|
744
|
+
# @param cname [Symbol]
|
745
|
+
# @return [void]
|
746
|
+
def unload_autoload(parent, cname)
|
747
|
+
parent.send(:remove_const, cname)
|
748
|
+
log("autoload for #{cpath(parent, cname)} removed") if logger
|
749
|
+
end
|
750
|
+
|
751
|
+
# @param parent [Module]
|
752
|
+
# @param cname [Symbol]
|
753
|
+
# @return [void]
|
754
|
+
def unload_cref(parent, cname)
|
755
|
+
parent.send(:remove_const, cname)
|
756
|
+
log("#{cpath(parent, cname)} unloaded") if logger
|
757
|
+
end
|
758
|
+
end
|
759
|
+
end
|