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,188 @@
|
|
1
|
+
// sass.hpp must go before all system headers to get the
|
2
|
+
// __EXTENSIONS__ fix on Solaris.
|
3
|
+
#include "sass.hpp"
|
4
|
+
|
5
|
+
#include <iostream>
|
6
|
+
#include "output.hpp"
|
7
|
+
#include "plugins.hpp"
|
8
|
+
#include "util.hpp"
|
9
|
+
|
10
|
+
#ifdef _WIN32
|
11
|
+
#include <windows.h>
|
12
|
+
#else
|
13
|
+
#include <sys/types.h>
|
14
|
+
#include <dirent.h>
|
15
|
+
#include <errno.h>
|
16
|
+
#include <dlfcn.h>
|
17
|
+
#endif
|
18
|
+
|
19
|
+
namespace Sass {
|
20
|
+
|
21
|
+
Plugins::Plugins(void) { }
|
22
|
+
Plugins::~Plugins(void)
|
23
|
+
{
|
24
|
+
for (auto function : functions) {
|
25
|
+
sass_delete_function(function);
|
26
|
+
}
|
27
|
+
for (auto importer : importers) {
|
28
|
+
sass_delete_importer(importer);
|
29
|
+
}
|
30
|
+
for (auto header : headers) {
|
31
|
+
sass_delete_importer(header);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// check if plugin is compatible with this version
|
36
|
+
// plugins may be linked static against libsass
|
37
|
+
// we try to be compatible between major versions
|
38
|
+
inline bool compatibility(const char* their_version)
|
39
|
+
{
|
40
|
+
// const char* their_version = "3.1.2";
|
41
|
+
// first check if anyone has an unknown version
|
42
|
+
const char* our_version = libsass_version();
|
43
|
+
if (!strcmp(their_version, "[na]")) return false;
|
44
|
+
if (!strcmp(our_version, "[na]")) return false;
|
45
|
+
|
46
|
+
// find the position of the second dot
|
47
|
+
size_t pos = std::string(our_version).find('.', 0);
|
48
|
+
if (pos != std::string::npos) pos = std::string(our_version).find('.', pos + 1);
|
49
|
+
|
50
|
+
// if we do not have two dots we fallback to compare complete string
|
51
|
+
if (pos == std::string::npos) { return strcmp(their_version, our_version) ? 0 : 1; }
|
52
|
+
// otherwise only compare up to the second dot (major versions)
|
53
|
+
else { return strncmp(their_version, our_version, pos) ? 0 : 1; }
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
// load one specific plugin
|
58
|
+
bool Plugins::load_plugin (const std::string& path)
|
59
|
+
{
|
60
|
+
|
61
|
+
typedef const char* (*__plugin_version__)(void);
|
62
|
+
typedef Sass_Function_List (*__plugin_load_fns__)(void);
|
63
|
+
typedef Sass_Importer_List (*__plugin_load_imps__)(void);
|
64
|
+
|
65
|
+
if (LOAD_LIB(plugin, path))
|
66
|
+
{
|
67
|
+
// try to load initial function to query libsass version suppor
|
68
|
+
if (LOAD_LIB_FN(__plugin_version__, plugin_version, "libsass_get_version"))
|
69
|
+
{
|
70
|
+
// get the libsass version of the plugin
|
71
|
+
if (!compatibility(plugin_version())) return false;
|
72
|
+
// try to get import address for "libsass_load_functions"
|
73
|
+
if (LOAD_LIB_FN(__plugin_load_fns__, plugin_load_functions, "libsass_load_functions"))
|
74
|
+
{
|
75
|
+
Sass_Function_List fns = plugin_load_functions(), _p = fns;
|
76
|
+
while (fns && *fns) { functions.push_back(*fns); ++ fns; }
|
77
|
+
sass_free_memory(_p); // only delete the container, items not yet
|
78
|
+
}
|
79
|
+
// try to get import address for "libsass_load_importers"
|
80
|
+
if (LOAD_LIB_FN(__plugin_load_imps__, plugin_load_importers, "libsass_load_importers"))
|
81
|
+
{
|
82
|
+
Sass_Importer_List imps = plugin_load_importers(), _p = imps;
|
83
|
+
while (imps && *imps) { importers.push_back(*imps); ++ imps; }
|
84
|
+
sass_free_memory(_p); // only delete the container, items not yet
|
85
|
+
}
|
86
|
+
// try to get import address for "libsass_load_headers"
|
87
|
+
if (LOAD_LIB_FN(__plugin_load_imps__, plugin_load_headers, "libsass_load_headers"))
|
88
|
+
{
|
89
|
+
Sass_Importer_List imps = plugin_load_headers(), _p = imps;
|
90
|
+
while (imps && *imps) { headers.push_back(*imps); ++ imps; }
|
91
|
+
sass_free_memory(_p); // only delete the container, items not yet
|
92
|
+
}
|
93
|
+
// success
|
94
|
+
return true;
|
95
|
+
}
|
96
|
+
else
|
97
|
+
{
|
98
|
+
// print debug message to stderr (should not happen)
|
99
|
+
std::cerr << "failed loading 'libsass_support' in <" << path << ">" << std::endl;
|
100
|
+
if (const char* dlsym_error = dlerror()) std::cerr << dlsym_error << std::endl;
|
101
|
+
CLOSE_LIB(plugin);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
else
|
105
|
+
{
|
106
|
+
// print debug message to stderr (should not happen)
|
107
|
+
std::cerr << "failed loading plugin <" << path << ">" << std::endl;
|
108
|
+
if (const char* dlopen_error = dlerror()) std::cerr << dlopen_error << std::endl;
|
109
|
+
}
|
110
|
+
|
111
|
+
return false;
|
112
|
+
|
113
|
+
}
|
114
|
+
|
115
|
+
size_t Plugins::load_plugins(const std::string& path)
|
116
|
+
{
|
117
|
+
|
118
|
+
// count plugins
|
119
|
+
size_t loaded = 0;
|
120
|
+
|
121
|
+
#ifdef _WIN32
|
122
|
+
|
123
|
+
try
|
124
|
+
{
|
125
|
+
|
126
|
+
// use wchar (utf16)
|
127
|
+
WIN32_FIND_DATAW data;
|
128
|
+
// trailing slash is guaranteed
|
129
|
+
std::string globsrch(path + "*.dll");
|
130
|
+
// convert to wide chars (utf16) for system call
|
131
|
+
std::wstring wglobsrch(UTF_8::convert_to_utf16(globsrch));
|
132
|
+
HANDLE hFile = FindFirstFileW(wglobsrch.c_str(), &data);
|
133
|
+
// check if system called returned a result
|
134
|
+
// ToDo: maybe we should print a debug message
|
135
|
+
if (hFile == INVALID_HANDLE_VALUE) return -1;
|
136
|
+
|
137
|
+
// read directory
|
138
|
+
while (true)
|
139
|
+
{
|
140
|
+
try
|
141
|
+
{
|
142
|
+
// the system will report the filenames with wide chars (utf16)
|
143
|
+
std::string entry = UTF_8::convert_from_utf16(data.cFileName);
|
144
|
+
// check if file ending matches exactly
|
145
|
+
if (!ends_with(entry, ".dll")) continue;
|
146
|
+
// load the plugin and increase counter
|
147
|
+
if (load_plugin(path + entry)) ++ loaded;
|
148
|
+
// check if there should be more entries
|
149
|
+
if (GetLastError() == ERROR_NO_MORE_FILES) break;
|
150
|
+
// load next entry (check for return type)
|
151
|
+
if (!FindNextFileW(hFile, &data)) break;
|
152
|
+
}
|
153
|
+
catch (...)
|
154
|
+
{
|
155
|
+
// report the error to the console (should not happen)
|
156
|
+
// seems like we got strange data from the system call?
|
157
|
+
std::cerr << "filename in plugin path has invalid utf8?" << std::endl;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
catch (utf8::invalid_utf8&)
|
162
|
+
{
|
163
|
+
// report the error to the console (should not happen)
|
164
|
+
// implementors should make sure to provide valid utf8
|
165
|
+
std::cerr << "plugin path contains invalid utf8" << std::endl;
|
166
|
+
}
|
167
|
+
|
168
|
+
#else
|
169
|
+
|
170
|
+
DIR *dp;
|
171
|
+
struct dirent *dirp;
|
172
|
+
if((dp = opendir(path.c_str())) == NULL) return -1;
|
173
|
+
while ((dirp = readdir(dp)) != NULL) {
|
174
|
+
#if __APPLE__
|
175
|
+
if (!ends_with(dirp->d_name, ".dylib")) continue;
|
176
|
+
#else
|
177
|
+
if (!ends_with(dirp->d_name, ".so")) continue;
|
178
|
+
#endif
|
179
|
+
if (load_plugin(path + dirp->d_name)) ++ loaded;
|
180
|
+
}
|
181
|
+
closedir(dp);
|
182
|
+
|
183
|
+
#endif
|
184
|
+
return loaded;
|
185
|
+
|
186
|
+
}
|
187
|
+
|
188
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
#ifndef SASS_PLUGINS_H
|
2
|
+
#define SASS_PLUGINS_H
|
3
|
+
|
4
|
+
#include <string>
|
5
|
+
#include <vector>
|
6
|
+
#include "utf8_string.hpp"
|
7
|
+
#include "sass/functions.h"
|
8
|
+
|
9
|
+
#ifdef _WIN32
|
10
|
+
|
11
|
+
#define LOAD_LIB(var, path) HMODULE var = LoadLibraryW(UTF_8::convert_to_utf16(path).c_str())
|
12
|
+
#define LOAD_LIB_WCHR(var, path_wide_str) HMODULE var = LoadLibraryW(path_wide_str.c_str())
|
13
|
+
#define LOAD_LIB_FN(type, var, name) type var = (type) GetProcAddress(plugin, name)
|
14
|
+
#define CLOSE_LIB(var) FreeLibrary(var)
|
15
|
+
|
16
|
+
#ifndef dlerror
|
17
|
+
#define dlerror() 0
|
18
|
+
#endif
|
19
|
+
|
20
|
+
#else
|
21
|
+
|
22
|
+
#define LOAD_LIB(var, path) void* var = dlopen(path.c_str(), RTLD_LAZY)
|
23
|
+
#define LOAD_LIB_FN(type, var, name) type var = (type) dlsym(plugin, name)
|
24
|
+
#define CLOSE_LIB(var) dlclose(var)
|
25
|
+
|
26
|
+
#endif
|
27
|
+
|
28
|
+
namespace Sass {
|
29
|
+
|
30
|
+
|
31
|
+
class Plugins {
|
32
|
+
|
33
|
+
public: // c-tor
|
34
|
+
Plugins(void);
|
35
|
+
~Plugins(void);
|
36
|
+
|
37
|
+
public: // methods
|
38
|
+
// load one specific plugin
|
39
|
+
bool load_plugin(const std::string& path);
|
40
|
+
// load all plugins from a directory
|
41
|
+
size_t load_plugins(const std::string& path);
|
42
|
+
|
43
|
+
public: // public accessors
|
44
|
+
const std::vector<Sass_Importer_Entry> get_headers(void) { return headers; }
|
45
|
+
const std::vector<Sass_Importer_Entry> get_importers(void) { return importers; }
|
46
|
+
const std::vector<Sass_Function_Entry> get_functions(void) { return functions; }
|
47
|
+
|
48
|
+
private: // private vars
|
49
|
+
std::vector<Sass_Importer_Entry> headers;
|
50
|
+
std::vector<Sass_Importer_Entry> importers;
|
51
|
+
std::vector<Sass_Function_Entry> functions;
|
52
|
+
|
53
|
+
};
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
#endif
|
@@ -0,0 +1,184 @@
|
|
1
|
+
// sass.hpp must go before all system headers to get the
|
2
|
+
// __EXTENSIONS__ fix on Solaris.
|
3
|
+
#include "sass.hpp"
|
4
|
+
|
5
|
+
#include "position.hpp"
|
6
|
+
|
7
|
+
namespace Sass {
|
8
|
+
|
9
|
+
|
10
|
+
Offset::Offset(const char chr)
|
11
|
+
: line(chr == '\n' ? 1 : 0),
|
12
|
+
column(chr == '\n' ? 0 : 1)
|
13
|
+
{}
|
14
|
+
|
15
|
+
Offset::Offset(const char* string)
|
16
|
+
: line(0), column(0)
|
17
|
+
{
|
18
|
+
*this = inc(string, string + strlen(string));
|
19
|
+
}
|
20
|
+
|
21
|
+
Offset::Offset(const std::string& text)
|
22
|
+
: line(0), column(0)
|
23
|
+
{
|
24
|
+
*this = inc(text.c_str(), text.c_str() + text.size());
|
25
|
+
}
|
26
|
+
|
27
|
+
Offset::Offset(const size_t line, const size_t column)
|
28
|
+
: line(line), column(column) { }
|
29
|
+
|
30
|
+
// init/create instance from const char substring
|
31
|
+
Offset Offset::init(const char* beg, const char* end)
|
32
|
+
{
|
33
|
+
Offset offset(0, 0);
|
34
|
+
if (end == 0) {
|
35
|
+
end += strlen(beg);
|
36
|
+
}
|
37
|
+
offset.add(beg, end);
|
38
|
+
return offset;
|
39
|
+
}
|
40
|
+
|
41
|
+
// increase offset by given string (mostly called by lexer)
|
42
|
+
// increase line counter and count columns on the last line
|
43
|
+
Offset Offset::add(const char* begin, const char* end)
|
44
|
+
{
|
45
|
+
if (end == 0) return *this;
|
46
|
+
while (begin < end && *begin) {
|
47
|
+
if (*begin == '\n') {
|
48
|
+
++ line;
|
49
|
+
// start new line
|
50
|
+
column = 0;
|
51
|
+
} else {
|
52
|
+
// do not count any utf8 continuation bytes
|
53
|
+
// https://stackoverflow.com/a/9356203/1550314
|
54
|
+
// https://en.wikipedia.org/wiki/UTF-8#Description
|
55
|
+
unsigned char chr = *begin;
|
56
|
+
// skip over 10xxxxxx
|
57
|
+
// is 1st bit not set
|
58
|
+
if ((chr & 128) == 0) {
|
59
|
+
// regular ascii char
|
60
|
+
column += 1;
|
61
|
+
}
|
62
|
+
// is 2nd bit not set
|
63
|
+
else if ((chr & 64) == 0) {
|
64
|
+
// first utf8 byte
|
65
|
+
column += 1;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
++ begin;
|
69
|
+
}
|
70
|
+
return *this;
|
71
|
+
}
|
72
|
+
|
73
|
+
// increase offset by given string (mostly called by lexer)
|
74
|
+
// increase line counter and count columns on the last line
|
75
|
+
Offset Offset::inc(const char* begin, const char* end) const
|
76
|
+
{
|
77
|
+
Offset offset(line, column);
|
78
|
+
offset.add(begin, end);
|
79
|
+
return offset;
|
80
|
+
}
|
81
|
+
|
82
|
+
bool Offset::operator== (const Offset &pos) const
|
83
|
+
{
|
84
|
+
return line == pos.line && column == pos.column;
|
85
|
+
}
|
86
|
+
|
87
|
+
bool Offset::operator!= (const Offset &pos) const
|
88
|
+
{
|
89
|
+
return line != pos.line || column != pos.column;
|
90
|
+
}
|
91
|
+
|
92
|
+
void Offset::operator+= (const Offset &off)
|
93
|
+
{
|
94
|
+
*this = Offset(line + off.line, off.line > 0 ? off.column : column + off.column);
|
95
|
+
}
|
96
|
+
|
97
|
+
Offset Offset::operator+ (const Offset &off) const
|
98
|
+
{
|
99
|
+
return Offset(line + off.line, off.line > 0 ? off.column : column + off.column);
|
100
|
+
}
|
101
|
+
|
102
|
+
Offset Offset::operator- (const Offset &off) const
|
103
|
+
{
|
104
|
+
return Offset(line - off.line, off.line == line ? column - off.column : column);
|
105
|
+
}
|
106
|
+
|
107
|
+
Position::Position(const size_t file)
|
108
|
+
: Offset(0, 0), file(file) { }
|
109
|
+
|
110
|
+
Position::Position(const size_t file, const Offset& offset)
|
111
|
+
: Offset(offset), file(file) { }
|
112
|
+
|
113
|
+
Position::Position(const size_t line, const size_t column)
|
114
|
+
: Offset(line, column), file(-1) { }
|
115
|
+
|
116
|
+
Position::Position(const size_t file, const size_t line, const size_t column)
|
117
|
+
: Offset(line, column), file(file) { }
|
118
|
+
|
119
|
+
|
120
|
+
ParserState::ParserState(const char* path, const char* src, const size_t file)
|
121
|
+
: Position(file, 0, 0), path(path), src(src), offset(0, 0), token() { }
|
122
|
+
|
123
|
+
ParserState::ParserState(const char* path, const char* src, const Position& position, Offset offset)
|
124
|
+
: Position(position), path(path), src(src), offset(offset), token() { }
|
125
|
+
|
126
|
+
ParserState::ParserState(const char* path, const char* src, const Token& token, const Position& position, Offset offset)
|
127
|
+
: Position(position), path(path), src(src), offset(offset), token(token) { }
|
128
|
+
|
129
|
+
Position Position::add(const char* begin, const char* end)
|
130
|
+
{
|
131
|
+
Offset::add(begin, end);
|
132
|
+
return *this;
|
133
|
+
}
|
134
|
+
|
135
|
+
Position Position::inc(const char* begin, const char* end) const
|
136
|
+
{
|
137
|
+
Offset offset(line, column);
|
138
|
+
offset = offset.inc(begin, end);
|
139
|
+
return Position(file, offset);
|
140
|
+
}
|
141
|
+
|
142
|
+
bool Position::operator== (const Position &pos) const
|
143
|
+
{
|
144
|
+
return file == pos.file && line == pos.line && column == pos.column;
|
145
|
+
}
|
146
|
+
|
147
|
+
bool Position::operator!= (const Position &pos) const
|
148
|
+
{
|
149
|
+
return file == pos.file || line != pos.line || column != pos.column;
|
150
|
+
}
|
151
|
+
|
152
|
+
void Position::operator+= (const Offset &off)
|
153
|
+
{
|
154
|
+
*this = Position(file, line + off.line, off.line > 0 ? off.column : column + off.column);
|
155
|
+
}
|
156
|
+
|
157
|
+
const Position Position::operator+ (const Offset &off) const
|
158
|
+
{
|
159
|
+
return Position(file, line + off.line, off.line > 0 ? off.column : column + off.column);
|
160
|
+
}
|
161
|
+
|
162
|
+
const Offset Position::operator- (const Offset &off) const
|
163
|
+
{
|
164
|
+
return Offset(line - off.line, off.line == line ? column - off.column : column);
|
165
|
+
}
|
166
|
+
|
167
|
+
/* not used anymore - remove?
|
168
|
+
std::ostream& operator<<(std::ostream& strm, const Offset& off)
|
169
|
+
{
|
170
|
+
if (off.line == string::npos) strm << "-1:"; else strm << off.line << ":";
|
171
|
+
if (off.column == string::npos) strm << "-1"; else strm << off.column;
|
172
|
+
return strm;
|
173
|
+
} */
|
174
|
+
|
175
|
+
/* not used anymore - remove?
|
176
|
+
std::ostream& operator<<(std::ostream& strm, const Position& pos)
|
177
|
+
{
|
178
|
+
if (pos.file != string::npos) strm << pos.file << ":";
|
179
|
+
if (pos.line == string::npos) strm << "-1:"; else strm << pos.line << ":";
|
180
|
+
if (pos.column == string::npos) strm << "-1"; else strm << pos.column;
|
181
|
+
return strm;
|
182
|
+
} */
|
183
|
+
|
184
|
+
}
|
@@ -0,0 +1,124 @@
|
|
1
|
+
#ifndef SASS_POSITION_H
|
2
|
+
#define SASS_POSITION_H
|
3
|
+
|
4
|
+
#include <string>
|
5
|
+
#include <cstring>
|
6
|
+
// #include <iostream>
|
7
|
+
|
8
|
+
namespace Sass {
|
9
|
+
|
10
|
+
|
11
|
+
class Offset {
|
12
|
+
|
13
|
+
public: // c-tor
|
14
|
+
Offset(const char chr);
|
15
|
+
Offset(const char* string);
|
16
|
+
Offset(const std::string& text);
|
17
|
+
Offset(const size_t line, const size_t column);
|
18
|
+
|
19
|
+
// return new position, incremented by the given string
|
20
|
+
Offset add(const char* begin, const char* end);
|
21
|
+
Offset inc(const char* begin, const char* end) const;
|
22
|
+
|
23
|
+
// init/create instance from const char substring
|
24
|
+
static Offset init(const char* beg, const char* end);
|
25
|
+
|
26
|
+
public: // overload operators for position
|
27
|
+
void operator+= (const Offset &pos);
|
28
|
+
bool operator== (const Offset &pos) const;
|
29
|
+
bool operator!= (const Offset &pos) const;
|
30
|
+
Offset operator+ (const Offset &off) const;
|
31
|
+
Offset operator- (const Offset &off) const;
|
32
|
+
|
33
|
+
public: // overload output stream operator
|
34
|
+
// friend std::ostream& operator<<(std::ostream& strm, const Offset& off);
|
35
|
+
|
36
|
+
public:
|
37
|
+
Offset off() { return *this; }
|
38
|
+
|
39
|
+
public:
|
40
|
+
size_t line;
|
41
|
+
size_t column;
|
42
|
+
|
43
|
+
};
|
44
|
+
|
45
|
+
class Position : public Offset {
|
46
|
+
|
47
|
+
public: // c-tor
|
48
|
+
Position(const size_t file); // line(0), column(0)
|
49
|
+
Position(const size_t file, const Offset& offset);
|
50
|
+
Position(const size_t line, const size_t column); // file(-1)
|
51
|
+
Position(const size_t file, const size_t line, const size_t column);
|
52
|
+
|
53
|
+
public: // overload operators for position
|
54
|
+
void operator+= (const Offset &off);
|
55
|
+
bool operator== (const Position &pos) const;
|
56
|
+
bool operator!= (const Position &pos) const;
|
57
|
+
const Position operator+ (const Offset &off) const;
|
58
|
+
const Offset operator- (const Offset &off) const;
|
59
|
+
// return new position, incremented by the given string
|
60
|
+
Position add(const char* begin, const char* end);
|
61
|
+
Position inc(const char* begin, const char* end) const;
|
62
|
+
|
63
|
+
public: // overload output stream operator
|
64
|
+
// friend std::ostream& operator<<(std::ostream& strm, const Position& pos);
|
65
|
+
|
66
|
+
public:
|
67
|
+
size_t file;
|
68
|
+
|
69
|
+
};
|
70
|
+
|
71
|
+
// Token type for representing lexed chunks of text
|
72
|
+
class Token {
|
73
|
+
public:
|
74
|
+
const char* prefix;
|
75
|
+
const char* begin;
|
76
|
+
const char* end;
|
77
|
+
|
78
|
+
Token()
|
79
|
+
: prefix(0), begin(0), end(0) { }
|
80
|
+
Token(const char* b, const char* e)
|
81
|
+
: prefix(b), begin(b), end(e) { }
|
82
|
+
Token(const char* str)
|
83
|
+
: prefix(str), begin(str), end(str + strlen(str)) { }
|
84
|
+
Token(const char* p, const char* b, const char* e)
|
85
|
+
: prefix(p), begin(b), end(e) { }
|
86
|
+
|
87
|
+
size_t length() const { return end - begin; }
|
88
|
+
std::string ws_before() const { return std::string(prefix, begin); }
|
89
|
+
const std::string to_string() const { return std::string(begin, end); }
|
90
|
+
std::string time_wspace() const {
|
91
|
+
std::string str(to_string());
|
92
|
+
std::string whitespaces(" \t\f\v\n\r");
|
93
|
+
return str.erase(str.find_last_not_of(whitespaces)+1);
|
94
|
+
}
|
95
|
+
|
96
|
+
operator bool() { return begin && end && begin >= end; }
|
97
|
+
operator std::string() { return to_string(); }
|
98
|
+
|
99
|
+
bool operator==(Token t) { return to_string() == t.to_string(); }
|
100
|
+
};
|
101
|
+
|
102
|
+
class ParserState : public Position {
|
103
|
+
|
104
|
+
public: // c-tor
|
105
|
+
ParserState(const char* path, const char* src = 0, const size_t file = std::string::npos);
|
106
|
+
ParserState(const char* path, const char* src, const Position& position, Offset offset = Offset(0, 0));
|
107
|
+
ParserState(const char* path, const char* src, const Token& token, const Position& position, Offset offset = Offset(0, 0));
|
108
|
+
|
109
|
+
public: // down casts
|
110
|
+
Offset off() { return *this; }
|
111
|
+
Position pos() { return *this; }
|
112
|
+
ParserState pstate() { return *this; }
|
113
|
+
|
114
|
+
public:
|
115
|
+
const char* path;
|
116
|
+
const char* src;
|
117
|
+
Offset offset;
|
118
|
+
Token token;
|
119
|
+
|
120
|
+
};
|
121
|
+
|
122
|
+
}
|
123
|
+
|
124
|
+
#endif
|