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,86 @@
|
|
1
|
+
#ifndef SASS_EXTEND_H
|
2
|
+
#define SASS_EXTEND_H
|
3
|
+
|
4
|
+
#include <string>
|
5
|
+
#include <set>
|
6
|
+
|
7
|
+
#include "ast.hpp"
|
8
|
+
#include "node.hpp"
|
9
|
+
#include "eval.hpp"
|
10
|
+
#include "operation.hpp"
|
11
|
+
#include "subset_map.hpp"
|
12
|
+
#include "ast_fwd_decl.hpp"
|
13
|
+
|
14
|
+
namespace Sass {
|
15
|
+
|
16
|
+
Node subweave(Node& one, Node& two);
|
17
|
+
|
18
|
+
class Extend : public Operation_CRTP<void, Extend> {
|
19
|
+
|
20
|
+
Subset_Map& subset_map;
|
21
|
+
Eval* eval;
|
22
|
+
|
23
|
+
private:
|
24
|
+
|
25
|
+
std::unordered_map<
|
26
|
+
Selector_List_Obj, // key
|
27
|
+
Selector_List_Obj, // value
|
28
|
+
HashNodes, // hasher
|
29
|
+
CompareNodes // compare
|
30
|
+
> memoizeList;
|
31
|
+
|
32
|
+
std::unordered_map<
|
33
|
+
Complex_Selector_Obj, // key
|
34
|
+
Node, // value
|
35
|
+
HashNodes, // hasher
|
36
|
+
CompareNodes // compare
|
37
|
+
> memoizeComplex;
|
38
|
+
|
39
|
+
/* this turned out to be too much overhead
|
40
|
+
re-evaluate once we store an ast selector
|
41
|
+
std::unordered_map<
|
42
|
+
Compound_Selector_Obj, // key
|
43
|
+
Node, // value
|
44
|
+
HashNodes, // hasher
|
45
|
+
CompareNodes // compare
|
46
|
+
> memoizeCompound;
|
47
|
+
*/
|
48
|
+
|
49
|
+
void extendObjectWithSelectorAndBlock(Ruleset* pObject);
|
50
|
+
Node extendComplexSelector(Complex_Selector* sel, CompoundSelectorSet& seen, bool isReplace, bool isOriginal);
|
51
|
+
Node extendCompoundSelector(Compound_Selector* sel, CompoundSelectorSet& seen, bool isReplace);
|
52
|
+
bool complexSelectorHasExtension(Complex_Selector* selector, CompoundSelectorSet& seen);
|
53
|
+
Node trim(Node& seqses, bool isReplace);
|
54
|
+
Node weave(Node& path);
|
55
|
+
|
56
|
+
public:
|
57
|
+
void setEval(Eval& eval);
|
58
|
+
Selector_List* extendSelectorList(Selector_List_Obj pSelectorList, bool isReplace, bool& extendedSomething, CompoundSelectorSet& seen);
|
59
|
+
Selector_List* extendSelectorList(Selector_List_Obj pSelectorList, bool isReplace = false) {
|
60
|
+
bool extendedSomething = false;
|
61
|
+
CompoundSelectorSet seen;
|
62
|
+
return extendSelectorList(pSelectorList, isReplace, extendedSomething, seen);
|
63
|
+
}
|
64
|
+
Selector_List* extendSelectorList(Selector_List_Obj pSelectorList, CompoundSelectorSet& seen) {
|
65
|
+
bool isReplace = false;
|
66
|
+
bool extendedSomething = false;
|
67
|
+
return extendSelectorList(pSelectorList, isReplace, extendedSomething, seen);
|
68
|
+
}
|
69
|
+
Extend(Subset_Map&);
|
70
|
+
~Extend() { }
|
71
|
+
|
72
|
+
void operator()(Block*);
|
73
|
+
void operator()(Ruleset*);
|
74
|
+
void operator()(Supports_Block*);
|
75
|
+
void operator()(Media_Block*);
|
76
|
+
void operator()(Directive*);
|
77
|
+
|
78
|
+
// ignore missed types
|
79
|
+
template <typename U>
|
80
|
+
void fallback(U x) {}
|
81
|
+
|
82
|
+
};
|
83
|
+
|
84
|
+
}
|
85
|
+
|
86
|
+
#endif
|
@@ -0,0 +1,522 @@
|
|
1
|
+
// sass.hpp must go before all system headers to get the
|
2
|
+
// __EXTENSIONS__ fix on Solaris.
|
3
|
+
#include "sass.hpp"
|
4
|
+
|
5
|
+
#ifdef _WIN32
|
6
|
+
# ifdef __MINGW32__
|
7
|
+
# ifndef off64_t
|
8
|
+
# define off64_t _off64_t /* Workaround for http://sourceforge.net/p/mingw/bugs/2024/ */
|
9
|
+
# endif
|
10
|
+
# endif
|
11
|
+
# include <direct.h>
|
12
|
+
# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
13
|
+
#else
|
14
|
+
# include <unistd.h>
|
15
|
+
#endif
|
16
|
+
#include <cctype>
|
17
|
+
#include <cstdio>
|
18
|
+
#include <vector>
|
19
|
+
#include <algorithm>
|
20
|
+
#include <sys/stat.h>
|
21
|
+
#include "file.hpp"
|
22
|
+
#include "context.hpp"
|
23
|
+
#include "prelexer.hpp"
|
24
|
+
#include "utf8_string.hpp"
|
25
|
+
#include "sass_functions.hpp"
|
26
|
+
#include "error_handling.hpp"
|
27
|
+
#include "util.hpp"
|
28
|
+
#include "sass2scss.h"
|
29
|
+
|
30
|
+
#ifdef _WIN32
|
31
|
+
# include <windows.h>
|
32
|
+
|
33
|
+
# ifdef _MSC_VER
|
34
|
+
# include <codecvt>
|
35
|
+
inline static std::string wstring_to_string(const std::wstring& wstr)
|
36
|
+
{
|
37
|
+
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> wchar_converter;
|
38
|
+
return wchar_converter.to_bytes(wstr);
|
39
|
+
}
|
40
|
+
# else // mingw(/gcc) does not support C++11's codecvt yet.
|
41
|
+
inline static std::string wstring_to_string(const std::wstring &wstr)
|
42
|
+
{
|
43
|
+
int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL);
|
44
|
+
std::string strTo(size_needed, 0);
|
45
|
+
WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), &strTo[0], size_needed, NULL, NULL);
|
46
|
+
return strTo;
|
47
|
+
}
|
48
|
+
# endif
|
49
|
+
#endif
|
50
|
+
|
51
|
+
namespace Sass {
|
52
|
+
namespace File {
|
53
|
+
|
54
|
+
// return the current directory
|
55
|
+
// always with forward slashes
|
56
|
+
// always with trailing slash
|
57
|
+
std::string get_cwd()
|
58
|
+
{
|
59
|
+
const size_t wd_len = 4096;
|
60
|
+
#ifndef _WIN32
|
61
|
+
char wd[wd_len];
|
62
|
+
char* pwd = getcwd(wd, wd_len);
|
63
|
+
// we should check error for more detailed info (e.g. ENOENT)
|
64
|
+
// http://man7.org/linux/man-pages/man2/getcwd.2.html#ERRORS
|
65
|
+
if (pwd == NULL) throw Exception::OperationError("cwd gone missing");
|
66
|
+
std::string cwd = pwd;
|
67
|
+
#else
|
68
|
+
wchar_t wd[wd_len];
|
69
|
+
wchar_t* pwd = _wgetcwd(wd, wd_len);
|
70
|
+
if (pwd == NULL) throw Exception::OperationError("cwd gone missing");
|
71
|
+
std::string cwd = wstring_to_string(pwd);
|
72
|
+
//convert backslashes to forward slashes
|
73
|
+
replace(cwd.begin(), cwd.end(), '\\', '/');
|
74
|
+
#endif
|
75
|
+
if (cwd[cwd.length() - 1] != '/') cwd += '/';
|
76
|
+
return cwd;
|
77
|
+
}
|
78
|
+
|
79
|
+
// test if path exists and is a file
|
80
|
+
bool file_exists(const std::string& path)
|
81
|
+
{
|
82
|
+
#ifdef _WIN32
|
83
|
+
wchar_t resolved[32768];
|
84
|
+
// windows unicode filepaths are encoded in utf16
|
85
|
+
std::string abspath(join_paths(get_cwd(), path));
|
86
|
+
if (!(abspath[0] == '/' && abspath[1] == '/')) {
|
87
|
+
abspath = "//?/" + abspath;
|
88
|
+
}
|
89
|
+
std::wstring wpath(UTF_8::convert_to_utf16(abspath));
|
90
|
+
std::replace(wpath.begin(), wpath.end(), '/', '\\');
|
91
|
+
DWORD rv = GetFullPathNameW(wpath.c_str(), 32767, resolved, NULL);
|
92
|
+
if (rv > 32767) throw Exception::OperationError("Path is too long");
|
93
|
+
if (rv == 0) throw Exception::OperationError("Path could not be resolved");
|
94
|
+
DWORD dwAttrib = GetFileAttributesW(resolved);
|
95
|
+
return (dwAttrib != INVALID_FILE_ATTRIBUTES &&
|
96
|
+
(!(dwAttrib & FILE_ATTRIBUTE_DIRECTORY)));
|
97
|
+
#else
|
98
|
+
struct stat st_buf;
|
99
|
+
return (stat (path.c_str(), &st_buf) == 0) &&
|
100
|
+
(!S_ISDIR (st_buf.st_mode));
|
101
|
+
#endif
|
102
|
+
}
|
103
|
+
|
104
|
+
// return if given path is absolute
|
105
|
+
// works with *nix and windows paths
|
106
|
+
bool is_absolute_path(const std::string& path)
|
107
|
+
{
|
108
|
+
#ifdef _WIN32
|
109
|
+
if (path.length() >= 2 && isalpha(path[0]) && path[1] == ':') return true;
|
110
|
+
#endif
|
111
|
+
size_t i = 0;
|
112
|
+
// check if we have a protocol
|
113
|
+
if (path[i] && Prelexer::is_alpha(path[i])) {
|
114
|
+
// skip over all alphanumeric characters
|
115
|
+
while (path[i] && Prelexer::is_alnum(path[i])) ++i;
|
116
|
+
i = i && path[i] == ':' ? i + 1 : 0;
|
117
|
+
}
|
118
|
+
return path[i] == '/';
|
119
|
+
}
|
120
|
+
|
121
|
+
// helper function to find the last directory seperator
|
122
|
+
inline size_t find_last_folder_separator(const std::string& path, size_t limit = std::string::npos)
|
123
|
+
{
|
124
|
+
size_t pos;
|
125
|
+
size_t pos_p = path.find_last_of('/', limit);
|
126
|
+
#ifdef _WIN32
|
127
|
+
size_t pos_w = path.find_last_of('\\', limit);
|
128
|
+
#else
|
129
|
+
size_t pos_w = std::string::npos;
|
130
|
+
#endif
|
131
|
+
if (pos_p != std::string::npos && pos_w != std::string::npos) {
|
132
|
+
pos = std::max(pos_p, pos_w);
|
133
|
+
}
|
134
|
+
else if (pos_p != std::string::npos) {
|
135
|
+
pos = pos_p;
|
136
|
+
}
|
137
|
+
else {
|
138
|
+
pos = pos_w;
|
139
|
+
}
|
140
|
+
return pos;
|
141
|
+
}
|
142
|
+
|
143
|
+
// return only the directory part of path
|
144
|
+
std::string dir_name(const std::string& path)
|
145
|
+
{
|
146
|
+
size_t pos = find_last_folder_separator(path);
|
147
|
+
if (pos == std::string::npos) return "";
|
148
|
+
else return path.substr(0, pos+1);
|
149
|
+
}
|
150
|
+
|
151
|
+
// return only the filename part of path
|
152
|
+
std::string base_name(const std::string& path)
|
153
|
+
{
|
154
|
+
size_t pos = find_last_folder_separator(path);
|
155
|
+
if (pos == std::string::npos) return path;
|
156
|
+
else return path.substr(pos+1);
|
157
|
+
}
|
158
|
+
|
159
|
+
// do a logical clean up of the path
|
160
|
+
// no physical check on the filesystem
|
161
|
+
std::string make_canonical_path (std::string path)
|
162
|
+
{
|
163
|
+
|
164
|
+
// declarations
|
165
|
+
size_t pos;
|
166
|
+
|
167
|
+
#ifdef _WIN32
|
168
|
+
//convert backslashes to forward slashes
|
169
|
+
replace(path.begin(), path.end(), '\\', '/');
|
170
|
+
#endif
|
171
|
+
|
172
|
+
pos = 0; // remove all self references inside the path string
|
173
|
+
while((pos = path.find("/./", pos)) != std::string::npos) path.erase(pos, 2);
|
174
|
+
|
175
|
+
// remove all leading and trailing self references
|
176
|
+
while(path.length() > 1 && path.substr(0, 2) == "./") path.erase(0, 2);
|
177
|
+
while((pos = path.length()) > 1 && path.substr(pos - 2) == "/.") path.erase(pos - 2);
|
178
|
+
|
179
|
+
|
180
|
+
size_t proto = 0;
|
181
|
+
// check if we have a protocol
|
182
|
+
if (path[proto] && Prelexer::is_alpha(path[proto])) {
|
183
|
+
// skip over all alphanumeric characters
|
184
|
+
while (path[proto] && Prelexer::is_alnum(path[proto++])) {}
|
185
|
+
// then skip over the mandatory colon
|
186
|
+
if (proto && path[proto] == ':') ++ proto;
|
187
|
+
}
|
188
|
+
|
189
|
+
// then skip over start slashes
|
190
|
+
while (path[proto++] == '/') {}
|
191
|
+
|
192
|
+
pos = proto; // collapse multiple delimiters into a single one
|
193
|
+
while((pos = path.find("//", pos)) != std::string::npos) path.erase(pos, 1);
|
194
|
+
|
195
|
+
return path;
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
// join two path segments cleanly together
|
200
|
+
// but only if right side is not absolute yet
|
201
|
+
std::string join_paths(std::string l, std::string r)
|
202
|
+
{
|
203
|
+
|
204
|
+
#ifdef _WIN32
|
205
|
+
// convert Windows backslashes to URL forward slashes
|
206
|
+
replace(l.begin(), l.end(), '\\', '/');
|
207
|
+
replace(r.begin(), r.end(), '\\', '/');
|
208
|
+
#endif
|
209
|
+
|
210
|
+
if (l.empty()) return r;
|
211
|
+
if (r.empty()) return l;
|
212
|
+
|
213
|
+
if (is_absolute_path(r)) return r;
|
214
|
+
if (l[l.length()-1] != '/') l += '/';
|
215
|
+
|
216
|
+
// this does a logical cleanup of the right hand path
|
217
|
+
// Note that this does collapse x/../y sections into y.
|
218
|
+
// This is by design. If /foo on your system is a symlink
|
219
|
+
// to /bar/baz, then /foo/../cd is actually /bar/cd,
|
220
|
+
// not /cd as a naive ../ removal would give you.
|
221
|
+
// will only work on leading double dot dirs on rhs
|
222
|
+
// therefore it is safe if lhs is already resolved cwd
|
223
|
+
while ((r.length() > 3) && ((r.substr(0, 3) == "../") || (r.substr(0, 3)) == "..\\")) {
|
224
|
+
size_t L = l.length(), pos = find_last_folder_separator(l, L - 2);
|
225
|
+
bool is_slash = pos + 2 == L && (l[pos+1] == '/' || l[pos+1] == '\\');
|
226
|
+
bool is_self = pos + 3 == L && (l[pos+1] == '.');
|
227
|
+
if (!is_self && !is_slash) r = r.substr(3);
|
228
|
+
else if (pos == std::string::npos) break;
|
229
|
+
l = l.substr(0, pos == std::string::npos ? pos : pos + 1);
|
230
|
+
}
|
231
|
+
|
232
|
+
return l + r;
|
233
|
+
}
|
234
|
+
|
235
|
+
std::string path_for_console(const std::string& rel_path, const std::string& abs_path, const std::string& orig_path)
|
236
|
+
{
|
237
|
+
// magic algorith goes here!!
|
238
|
+
|
239
|
+
// if the file is outside this directory show the absolute path
|
240
|
+
if (rel_path.substr(0, 3) == "../") {
|
241
|
+
return orig_path;
|
242
|
+
}
|
243
|
+
// this seems to work most of the time
|
244
|
+
return abs_path == orig_path ? abs_path : rel_path;
|
245
|
+
}
|
246
|
+
|
247
|
+
// create an absolute path by resolving relative paths with cwd
|
248
|
+
std::string rel2abs(const std::string& path, const std::string& base, const std::string& cwd)
|
249
|
+
{
|
250
|
+
return make_canonical_path(join_paths(join_paths(cwd + "/", base + "/"), path));
|
251
|
+
}
|
252
|
+
|
253
|
+
// create a path that is relative to the given base directory
|
254
|
+
// path and base will first be resolved against cwd to make them absolute
|
255
|
+
std::string abs2rel(const std::string& path, const std::string& base, const std::string& cwd)
|
256
|
+
{
|
257
|
+
|
258
|
+
std::string abs_path = rel2abs(path, cwd);
|
259
|
+
std::string abs_base = rel2abs(base, cwd);
|
260
|
+
|
261
|
+
size_t proto = 0;
|
262
|
+
// check if we have a protocol
|
263
|
+
if (path[proto] && Prelexer::is_alpha(path[proto])) {
|
264
|
+
// skip over all alphanumeric characters
|
265
|
+
while (path[proto] && Prelexer::is_alnum(path[proto++])) {}
|
266
|
+
// then skip over the mandatory colon
|
267
|
+
if (proto && path[proto] == ':') ++ proto;
|
268
|
+
}
|
269
|
+
|
270
|
+
// distinguish between windows absolute paths and valid protocols
|
271
|
+
// we assume that protocols must at least have two chars to be valid
|
272
|
+
if (proto && path[proto++] == '/' && proto > 3) return path;
|
273
|
+
|
274
|
+
#ifdef _WIN32
|
275
|
+
// absolute link must have a drive letter, and we know that we
|
276
|
+
// can only create relative links if both are on the same drive
|
277
|
+
if (abs_base[0] != abs_path[0]) return abs_path;
|
278
|
+
#endif
|
279
|
+
|
280
|
+
std::string stripped_uri = "";
|
281
|
+
std::string stripped_base = "";
|
282
|
+
|
283
|
+
size_t index = 0;
|
284
|
+
size_t minSize = std::min(abs_path.size(), abs_base.size());
|
285
|
+
for (size_t i = 0; i < minSize; ++i) {
|
286
|
+
#ifdef FS_CASE_SENSITIVE
|
287
|
+
if (abs_path[i] != abs_base[i]) break;
|
288
|
+
#else
|
289
|
+
// compare the charactes in a case insensitive manner
|
290
|
+
// windows fs is only case insensitive in ascii ranges
|
291
|
+
if (tolower(abs_path[i]) != tolower(abs_base[i])) break;
|
292
|
+
#endif
|
293
|
+
if (abs_path[i] == '/') index = i + 1;
|
294
|
+
}
|
295
|
+
for (size_t i = index; i < abs_path.size(); ++i) {
|
296
|
+
stripped_uri += abs_path[i];
|
297
|
+
}
|
298
|
+
for (size_t i = index; i < abs_base.size(); ++i) {
|
299
|
+
stripped_base += abs_base[i];
|
300
|
+
}
|
301
|
+
|
302
|
+
size_t left = 0;
|
303
|
+
size_t directories = 0;
|
304
|
+
for (size_t right = 0; right < stripped_base.size(); ++right) {
|
305
|
+
if (stripped_base[right] == '/') {
|
306
|
+
if (stripped_base.substr(left, 2) != "..") {
|
307
|
+
++directories;
|
308
|
+
}
|
309
|
+
else if (directories > 1) {
|
310
|
+
--directories;
|
311
|
+
}
|
312
|
+
else {
|
313
|
+
directories = 0;
|
314
|
+
}
|
315
|
+
left = right + 1;
|
316
|
+
}
|
317
|
+
}
|
318
|
+
|
319
|
+
std::string result = "";
|
320
|
+
for (size_t i = 0; i < directories; ++i) {
|
321
|
+
result += "../";
|
322
|
+
}
|
323
|
+
result += stripped_uri;
|
324
|
+
|
325
|
+
return result;
|
326
|
+
}
|
327
|
+
|
328
|
+
// Resolution order for ambiguous imports:
|
329
|
+
// (1) filename as given
|
330
|
+
// (2) underscore + given
|
331
|
+
// (3) underscore + given + extension
|
332
|
+
// (4) given + extension
|
333
|
+
// (5) given + _index.scss
|
334
|
+
// (6) given + _index.sass
|
335
|
+
std::vector<Include> resolve_includes(const std::string& root, const std::string& file, const std::vector<std::string>& exts)
|
336
|
+
{
|
337
|
+
std::string filename = join_paths(root, file);
|
338
|
+
// split the filename
|
339
|
+
std::string base(dir_name(file));
|
340
|
+
std::string name(base_name(file));
|
341
|
+
std::vector<Include> includes;
|
342
|
+
// create full path (maybe relative)
|
343
|
+
std::string rel_path(join_paths(base, name));
|
344
|
+
std::string abs_path(join_paths(root, rel_path));
|
345
|
+
if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
|
346
|
+
// next test variation with underscore
|
347
|
+
rel_path = join_paths(base, "_" + name);
|
348
|
+
abs_path = join_paths(root, rel_path);
|
349
|
+
if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
|
350
|
+
// next test exts plus underscore
|
351
|
+
for(auto ext : exts) {
|
352
|
+
rel_path = join_paths(base, "_" + name + ext);
|
353
|
+
abs_path = join_paths(root, rel_path);
|
354
|
+
if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
|
355
|
+
}
|
356
|
+
// next test plain name with exts
|
357
|
+
for(auto ext : exts) {
|
358
|
+
rel_path = join_paths(base, name + ext);
|
359
|
+
abs_path = join_paths(root, rel_path);
|
360
|
+
if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
|
361
|
+
}
|
362
|
+
// index files
|
363
|
+
if (includes.size() == 0) {
|
364
|
+
// ignore directories that look like @import'able filename
|
365
|
+
for(auto ext : exts) {
|
366
|
+
if (ends_with(name, ext)) return includes;
|
367
|
+
}
|
368
|
+
// next test underscore index exts
|
369
|
+
for(auto ext : exts) {
|
370
|
+
rel_path = join_paths(base, join_paths(name, "_index" + ext));
|
371
|
+
abs_path = join_paths(root, rel_path);
|
372
|
+
if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
|
373
|
+
}
|
374
|
+
// next test plain index exts
|
375
|
+
for(auto ext : exts) {
|
376
|
+
rel_path = join_paths(base, join_paths(name, "index" + ext));
|
377
|
+
abs_path = join_paths(root, rel_path);
|
378
|
+
if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
|
379
|
+
}
|
380
|
+
}
|
381
|
+
// nothing found
|
382
|
+
return includes;
|
383
|
+
}
|
384
|
+
|
385
|
+
std::vector<std::string> find_files(const std::string& file, const std::vector<std::string> paths)
|
386
|
+
{
|
387
|
+
std::vector<std::string> includes;
|
388
|
+
for (std::string path : paths) {
|
389
|
+
std::string abs_path(join_paths(path, file));
|
390
|
+
if (file_exists(abs_path)) includes.push_back(abs_path);
|
391
|
+
}
|
392
|
+
return includes;
|
393
|
+
}
|
394
|
+
|
395
|
+
std::vector<std::string> find_files(const std::string& file, struct Sass_Compiler* compiler)
|
396
|
+
{
|
397
|
+
// get the last import entry to get current base directory
|
398
|
+
// struct Sass_Options* options = sass_compiler_get_options(compiler);
|
399
|
+
Sass_Import_Entry import = sass_compiler_get_last_import(compiler);
|
400
|
+
const std::vector<std::string>& incs = compiler->cpp_ctx->include_paths;
|
401
|
+
// create the vector with paths to lookup
|
402
|
+
std::vector<std::string> paths(1 + incs.size());
|
403
|
+
paths.push_back(dir_name(import->abs_path));
|
404
|
+
paths.insert(paths.end(), incs.begin(), incs.end());
|
405
|
+
// dispatch to find files in paths
|
406
|
+
return find_files(file, paths);
|
407
|
+
}
|
408
|
+
|
409
|
+
// helper function to search one file in all include paths
|
410
|
+
// this is normally not used internally by libsass (C-API sugar)
|
411
|
+
std::string find_file(const std::string& file, const std::vector<std::string> paths)
|
412
|
+
{
|
413
|
+
if (file.empty()) return file;
|
414
|
+
auto res = find_files(file, paths);
|
415
|
+
return res.empty() ? "" : res.front();
|
416
|
+
}
|
417
|
+
|
418
|
+
// helper function to resolve a filename
|
419
|
+
std::string find_include(const std::string& file, const std::vector<std::string> paths)
|
420
|
+
{
|
421
|
+
// search in every include path for a match
|
422
|
+
for (size_t i = 0, S = paths.size(); i < S; ++i)
|
423
|
+
{
|
424
|
+
std::vector<Include> resolved(resolve_includes(paths[i], file));
|
425
|
+
if (resolved.size()) return resolved[0].abs_path;
|
426
|
+
}
|
427
|
+
// nothing found
|
428
|
+
return std::string("");
|
429
|
+
}
|
430
|
+
|
431
|
+
// try to load the given filename
|
432
|
+
// returned memory must be freed
|
433
|
+
// will auto convert .sass files
|
434
|
+
char* read_file(const std::string& path)
|
435
|
+
{
|
436
|
+
#ifdef _WIN32
|
437
|
+
BYTE* pBuffer;
|
438
|
+
DWORD dwBytes;
|
439
|
+
wchar_t resolved[32768];
|
440
|
+
// windows unicode filepaths are encoded in utf16
|
441
|
+
std::string abspath(join_paths(get_cwd(), path));
|
442
|
+
if (!(abspath[0] == '/' && abspath[1] == '/')) {
|
443
|
+
abspath = "//?/" + abspath;
|
444
|
+
}
|
445
|
+
std::wstring wpath(UTF_8::convert_to_utf16(abspath));
|
446
|
+
std::replace(wpath.begin(), wpath.end(), '/', '\\');
|
447
|
+
DWORD rv = GetFullPathNameW(wpath.c_str(), 32767, resolved, NULL);
|
448
|
+
if (rv > 32767) throw Exception::OperationError("Path is too long");
|
449
|
+
if (rv == 0) throw Exception::OperationError("Path could not be resolved");
|
450
|
+
HANDLE hFile = CreateFileW(resolved, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
|
451
|
+
if (hFile == INVALID_HANDLE_VALUE) return 0;
|
452
|
+
DWORD dwFileLength = GetFileSize(hFile, NULL);
|
453
|
+
if (dwFileLength == INVALID_FILE_SIZE) return 0;
|
454
|
+
// allocate an extra byte for the null char
|
455
|
+
// and another one for edge-cases in lexer
|
456
|
+
pBuffer = (BYTE*)malloc((dwFileLength+2)*sizeof(BYTE));
|
457
|
+
ReadFile(hFile, pBuffer, dwFileLength, &dwBytes, NULL);
|
458
|
+
pBuffer[dwFileLength+0] = '\0';
|
459
|
+
pBuffer[dwFileLength+1] = '\0';
|
460
|
+
CloseHandle(hFile);
|
461
|
+
// just convert from unsigned char*
|
462
|
+
char* contents = (char*) pBuffer;
|
463
|
+
#else
|
464
|
+
// Read the file using `<cstdio>` instead of `<fstream>` for better portability.
|
465
|
+
// The `<fstream>` header initializes `<locale>` and this buggy in GCC4/5 with static linking.
|
466
|
+
// See:
|
467
|
+
// https://www.spinics.net/lists/gcchelp/msg46851.html
|
468
|
+
// https://github.com/sass/sassc-ruby/issues/128
|
469
|
+
struct stat st;
|
470
|
+
if (stat(path.c_str(), &st) == -1 || S_ISDIR(st.st_mode)) return 0;
|
471
|
+
FILE* fd = std::fopen(path.c_str(), "rb");
|
472
|
+
if (fd == nullptr) return nullptr;
|
473
|
+
const std::size_t size = st.st_size;
|
474
|
+
char* contents = static_cast<char*>(malloc(st.st_size + 2 * sizeof(char)));
|
475
|
+
if (std::fread(static_cast<void*>(contents), 1, size, fd) != size) {
|
476
|
+
free(contents);
|
477
|
+
return nullptr;
|
478
|
+
}
|
479
|
+
if (std::fclose(fd) != 0) {
|
480
|
+
free(contents);
|
481
|
+
return nullptr;
|
482
|
+
}
|
483
|
+
contents[size] = '\0';
|
484
|
+
contents[size + 1] = '\0';
|
485
|
+
#endif
|
486
|
+
std::string extension;
|
487
|
+
if (path.length() > 5) {
|
488
|
+
extension = path.substr(path.length() - 5, 5);
|
489
|
+
}
|
490
|
+
for(size_t i=0; i<extension.size();++i)
|
491
|
+
extension[i] = tolower(extension[i]);
|
492
|
+
if (extension == ".sass" && contents != 0) {
|
493
|
+
char * converted = sass2scss(contents, SASS2SCSS_PRETTIFY_1 | SASS2SCSS_KEEP_COMMENT);
|
494
|
+
free(contents); // free the indented contents
|
495
|
+
return converted; // should be freed by caller
|
496
|
+
} else {
|
497
|
+
return contents;
|
498
|
+
}
|
499
|
+
}
|
500
|
+
|
501
|
+
// split a path string delimited by semicolons or colons (OS dependent)
|
502
|
+
std::vector<std::string> split_path_list(const char* str)
|
503
|
+
{
|
504
|
+
std::vector<std::string> paths;
|
505
|
+
if (str == NULL) return paths;
|
506
|
+
// find delimiter via prelexer (return zero at end)
|
507
|
+
const char* end = Prelexer::find_first<PATH_SEP>(str);
|
508
|
+
// search until null delimiter
|
509
|
+
while (end) {
|
510
|
+
// add path from current position to delimiter
|
511
|
+
paths.push_back(std::string(str, end - str));
|
512
|
+
str = end + 1; // skip delimiter
|
513
|
+
end = Prelexer::find_first<PATH_SEP>(str);
|
514
|
+
}
|
515
|
+
// add path from current position to end
|
516
|
+
paths.push_back(std::string(str));
|
517
|
+
// return back
|
518
|
+
return paths;
|
519
|
+
}
|
520
|
+
|
521
|
+
}
|
522
|
+
}
|