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,114 @@
|
|
1
|
+
// sass.hpp must go before all system headers to get the
|
2
|
+
// __EXTENSIONS__ fix on Solaris.
|
3
|
+
#include "sass.hpp"
|
4
|
+
|
5
|
+
#include "ast.hpp"
|
6
|
+
#include "to_value.hpp"
|
7
|
+
|
8
|
+
namespace Sass {
|
9
|
+
|
10
|
+
// Custom_Error is a valid value
|
11
|
+
Value* To_Value::operator()(Custom_Error* e)
|
12
|
+
{
|
13
|
+
return e;
|
14
|
+
}
|
15
|
+
|
16
|
+
// Custom_Warning is a valid value
|
17
|
+
Value* To_Value::operator()(Custom_Warning* w)
|
18
|
+
{
|
19
|
+
return w;
|
20
|
+
}
|
21
|
+
|
22
|
+
// Boolean is a valid value
|
23
|
+
Value* To_Value::operator()(Boolean* b)
|
24
|
+
{
|
25
|
+
return b;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Number is a valid value
|
29
|
+
Value* To_Value::operator()(Number* n)
|
30
|
+
{
|
31
|
+
return n;
|
32
|
+
}
|
33
|
+
|
34
|
+
// Color is a valid value
|
35
|
+
Value* To_Value::operator()(Color_RGBA* c)
|
36
|
+
{
|
37
|
+
return c;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Color is a valid value
|
41
|
+
Value* To_Value::operator()(Color_HSLA* c)
|
42
|
+
{
|
43
|
+
return c;
|
44
|
+
}
|
45
|
+
|
46
|
+
// String_Constant is a valid value
|
47
|
+
Value* To_Value::operator()(String_Constant* s)
|
48
|
+
{
|
49
|
+
return s;
|
50
|
+
}
|
51
|
+
|
52
|
+
// String_Quoted is a valid value
|
53
|
+
Value* To_Value::operator()(String_Quoted* s)
|
54
|
+
{
|
55
|
+
return s;
|
56
|
+
}
|
57
|
+
|
58
|
+
// List is a valid value
|
59
|
+
Value* To_Value::operator()(List* l)
|
60
|
+
{
|
61
|
+
List_Obj ll = SASS_MEMORY_NEW(List,
|
62
|
+
l->pstate(),
|
63
|
+
l->length(),
|
64
|
+
l->separator(),
|
65
|
+
l->is_arglist(),
|
66
|
+
l->is_bracketed());
|
67
|
+
for (size_t i = 0, L = l->length(); i < L; ++i) {
|
68
|
+
ll->append((*l)[i]->perform(this));
|
69
|
+
}
|
70
|
+
return ll.detach();
|
71
|
+
}
|
72
|
+
|
73
|
+
// Map is a valid value
|
74
|
+
Value* To_Value::operator()(Map* m)
|
75
|
+
{
|
76
|
+
return m;
|
77
|
+
}
|
78
|
+
|
79
|
+
// Null is a valid value
|
80
|
+
Value* To_Value::operator()(Null* n)
|
81
|
+
{
|
82
|
+
return n;
|
83
|
+
}
|
84
|
+
|
85
|
+
// Function is a valid value
|
86
|
+
Value* To_Value::operator()(Function* n)
|
87
|
+
{
|
88
|
+
return n;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Argument returns its value
|
92
|
+
Value* To_Value::operator()(Argument* arg)
|
93
|
+
{
|
94
|
+
if (!arg->name().empty()) return 0;
|
95
|
+
return arg->value()->perform(this);
|
96
|
+
}
|
97
|
+
|
98
|
+
// Selector_List is converted to a string
|
99
|
+
Value* To_Value::operator()(Selector_List* s)
|
100
|
+
{
|
101
|
+
return SASS_MEMORY_NEW(String_Quoted,
|
102
|
+
s->pstate(),
|
103
|
+
s->to_string(ctx.c_options));
|
104
|
+
}
|
105
|
+
|
106
|
+
// Binary_Expression is converted to a string
|
107
|
+
Value* To_Value::operator()(Binary_Expression* s)
|
108
|
+
{
|
109
|
+
return SASS_MEMORY_NEW(String_Quoted,
|
110
|
+
s->pstate(),
|
111
|
+
s->to_string(ctx.c_options));
|
112
|
+
}
|
113
|
+
|
114
|
+
};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#ifndef SASS_TO_VALUE_H
|
2
|
+
#define SASS_TO_VALUE_H
|
3
|
+
|
4
|
+
#include "operation.hpp"
|
5
|
+
#include "sass/values.h"
|
6
|
+
#include "ast_fwd_decl.hpp"
|
7
|
+
|
8
|
+
namespace Sass {
|
9
|
+
|
10
|
+
class To_Value : public Operation_CRTP<Value*, To_Value> {
|
11
|
+
|
12
|
+
private:
|
13
|
+
|
14
|
+
Context& ctx;
|
15
|
+
|
16
|
+
public:
|
17
|
+
|
18
|
+
To_Value(Context& ctx)
|
19
|
+
: ctx(ctx)
|
20
|
+
{ }
|
21
|
+
~To_Value() { }
|
22
|
+
using Operation<Value*>::operator();
|
23
|
+
|
24
|
+
Value* operator()(Argument*);
|
25
|
+
Value* operator()(Boolean*);
|
26
|
+
Value* operator()(Number*);
|
27
|
+
Value* operator()(Color_RGBA*);
|
28
|
+
Value* operator()(Color_HSLA*);
|
29
|
+
Value* operator()(String_Constant*);
|
30
|
+
Value* operator()(String_Quoted*);
|
31
|
+
Value* operator()(Custom_Warning*);
|
32
|
+
Value* operator()(Custom_Error*);
|
33
|
+
Value* operator()(List*);
|
34
|
+
Value* operator()(Map*);
|
35
|
+
Value* operator()(Null*);
|
36
|
+
Value* operator()(Function*);
|
37
|
+
|
38
|
+
// convert to string via `To_String`
|
39
|
+
Value* operator()(Selector_List*);
|
40
|
+
Value* operator()(Binary_Expression*);
|
41
|
+
|
42
|
+
};
|
43
|
+
|
44
|
+
}
|
45
|
+
|
46
|
+
#endif
|
@@ -0,0 +1,505 @@
|
|
1
|
+
#include "sass.hpp"
|
2
|
+
#include <stdexcept>
|
3
|
+
#include "units.hpp"
|
4
|
+
#include "error_handling.hpp"
|
5
|
+
|
6
|
+
namespace Sass {
|
7
|
+
|
8
|
+
/* the conversion matrix can be readed the following way */
|
9
|
+
/* if you go down, the factor is for the numerator (multiply) */
|
10
|
+
/* if you go right, the factor is for the denominator (divide) */
|
11
|
+
/* and yes, we actually use both, not sure why, but why not!? */
|
12
|
+
|
13
|
+
const double size_conversion_factors[6][6] =
|
14
|
+
{
|
15
|
+
/* in cm pc mm pt px */
|
16
|
+
/* in */ { 1, 2.54, 6, 25.4, 72, 96, },
|
17
|
+
/* cm */ { 1.0/2.54, 1, 6.0/2.54, 10, 72.0/2.54, 96.0/2.54 },
|
18
|
+
/* pc */ { 1.0/6.0, 2.54/6.0, 1, 25.4/6.0, 72.0/6.0, 96.0/6.0 },
|
19
|
+
/* mm */ { 1.0/25.4, 1.0/10.0, 6.0/25.4, 1, 72.0/25.4, 96.0/25.4 },
|
20
|
+
/* pt */ { 1.0/72.0, 2.54/72.0, 6.0/72.0, 25.4/72.0, 1, 96.0/72.0 },
|
21
|
+
/* px */ { 1.0/96.0, 2.54/96.0, 6.0/96.0, 25.4/96.0, 72.0/96.0, 1, }
|
22
|
+
};
|
23
|
+
|
24
|
+
const double angle_conversion_factors[4][4] =
|
25
|
+
{
|
26
|
+
/* deg grad rad turn */
|
27
|
+
/* deg */ { 1, 40.0/36.0, PI/180.0, 1.0/360.0 },
|
28
|
+
/* grad */ { 36.0/40.0, 1, PI/200.0, 1.0/400.0 },
|
29
|
+
/* rad */ { 180.0/PI, 200.0/PI, 1, 0.5/PI },
|
30
|
+
/* turn */ { 360.0, 400.0, 2.0*PI, 1 }
|
31
|
+
};
|
32
|
+
|
33
|
+
const double time_conversion_factors[2][2] =
|
34
|
+
{
|
35
|
+
/* s ms */
|
36
|
+
/* s */ { 1, 1000.0 },
|
37
|
+
/* ms */ { 1/1000.0, 1 }
|
38
|
+
};
|
39
|
+
const double frequency_conversion_factors[2][2] =
|
40
|
+
{
|
41
|
+
/* Hz kHz */
|
42
|
+
/* Hz */ { 1, 1/1000.0 },
|
43
|
+
/* kHz */ { 1000.0, 1 }
|
44
|
+
};
|
45
|
+
const double resolution_conversion_factors[3][3] =
|
46
|
+
{
|
47
|
+
/* dpi dpcm dppx */
|
48
|
+
/* dpi */ { 1, 1/2.54, 1/96.0 },
|
49
|
+
/* dpcm */ { 2.54, 1, 2.54/96 },
|
50
|
+
/* dppx */ { 96, 96/2.54, 1 }
|
51
|
+
};
|
52
|
+
|
53
|
+
UnitClass get_unit_type(UnitType unit)
|
54
|
+
{
|
55
|
+
switch (unit & 0xFF00)
|
56
|
+
{
|
57
|
+
case UnitClass::LENGTH: return UnitClass::LENGTH;
|
58
|
+
case UnitClass::ANGLE: return UnitClass::ANGLE;
|
59
|
+
case UnitClass::TIME: return UnitClass::TIME;
|
60
|
+
case UnitClass::FREQUENCY: return UnitClass::FREQUENCY;
|
61
|
+
case UnitClass::RESOLUTION: return UnitClass::RESOLUTION;
|
62
|
+
default: return UnitClass::INCOMMENSURABLE;
|
63
|
+
}
|
64
|
+
};
|
65
|
+
|
66
|
+
std::string get_unit_class(UnitType unit)
|
67
|
+
{
|
68
|
+
switch (unit & 0xFF00)
|
69
|
+
{
|
70
|
+
case UnitClass::LENGTH: return "LENGTH";
|
71
|
+
case UnitClass::ANGLE: return "ANGLE";
|
72
|
+
case UnitClass::TIME: return "TIME";
|
73
|
+
case UnitClass::FREQUENCY: return "FREQUENCY";
|
74
|
+
case UnitClass::RESOLUTION: return "RESOLUTION";
|
75
|
+
default: return "INCOMMENSURABLE";
|
76
|
+
}
|
77
|
+
};
|
78
|
+
|
79
|
+
UnitType get_main_unit(const UnitClass unit)
|
80
|
+
{
|
81
|
+
switch (unit)
|
82
|
+
{
|
83
|
+
case UnitClass::LENGTH: return UnitType::PX;
|
84
|
+
case UnitClass::ANGLE: return UnitType::DEG;
|
85
|
+
case UnitClass::TIME: return UnitType::SEC;
|
86
|
+
case UnitClass::FREQUENCY: return UnitType::HERTZ;
|
87
|
+
case UnitClass::RESOLUTION: return UnitType::DPI;
|
88
|
+
default: return UnitType::UNKNOWN;
|
89
|
+
}
|
90
|
+
};
|
91
|
+
|
92
|
+
UnitType string_to_unit(const std::string& s)
|
93
|
+
{
|
94
|
+
// size units
|
95
|
+
if (s == "px") return UnitType::PX;
|
96
|
+
else if (s == "pt") return UnitType::PT;
|
97
|
+
else if (s == "pc") return UnitType::PC;
|
98
|
+
else if (s == "mm") return UnitType::MM;
|
99
|
+
else if (s == "cm") return UnitType::CM;
|
100
|
+
else if (s == "in") return UnitType::IN;
|
101
|
+
// angle units
|
102
|
+
else if (s == "deg") return UnitType::DEG;
|
103
|
+
else if (s == "grad") return UnitType::GRAD;
|
104
|
+
else if (s == "rad") return UnitType::RAD;
|
105
|
+
else if (s == "turn") return UnitType::TURN;
|
106
|
+
// time units
|
107
|
+
else if (s == "s") return UnitType::SEC;
|
108
|
+
else if (s == "ms") return UnitType::MSEC;
|
109
|
+
// frequency units
|
110
|
+
else if (s == "Hz") return UnitType::HERTZ;
|
111
|
+
else if (s == "kHz") return UnitType::KHERTZ;
|
112
|
+
// resolutions units
|
113
|
+
else if (s == "dpi") return UnitType::DPI;
|
114
|
+
else if (s == "dpcm") return UnitType::DPCM;
|
115
|
+
else if (s == "dppx") return UnitType::DPPX;
|
116
|
+
// for unknown units
|
117
|
+
else return UnitType::UNKNOWN;
|
118
|
+
}
|
119
|
+
|
120
|
+
const char* unit_to_string(UnitType unit)
|
121
|
+
{
|
122
|
+
switch (unit) {
|
123
|
+
// size units
|
124
|
+
case UnitType::PX: return "px";
|
125
|
+
case UnitType::PT: return "pt";
|
126
|
+
case UnitType::PC: return "pc";
|
127
|
+
case UnitType::MM: return "mm";
|
128
|
+
case UnitType::CM: return "cm";
|
129
|
+
case UnitType::IN: return "in";
|
130
|
+
// angle units
|
131
|
+
case UnitType::DEG: return "deg";
|
132
|
+
case UnitType::GRAD: return "grad";
|
133
|
+
case UnitType::RAD: return "rad";
|
134
|
+
case UnitType::TURN: return "turn";
|
135
|
+
// time units
|
136
|
+
case UnitType::SEC: return "s";
|
137
|
+
case UnitType::MSEC: return "ms";
|
138
|
+
// frequency units
|
139
|
+
case UnitType::HERTZ: return "Hz";
|
140
|
+
case UnitType::KHERTZ: return "kHz";
|
141
|
+
// resolutions units
|
142
|
+
case UnitType::DPI: return "dpi";
|
143
|
+
case UnitType::DPCM: return "dpcm";
|
144
|
+
case UnitType::DPPX: return "dppx";
|
145
|
+
// for unknown units
|
146
|
+
default: return "";
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
std::string unit_to_class(const std::string& s)
|
151
|
+
{
|
152
|
+
if (s == "px") return "LENGTH";
|
153
|
+
else if (s == "pt") return "LENGTH";
|
154
|
+
else if (s == "pc") return "LENGTH";
|
155
|
+
else if (s == "mm") return "LENGTH";
|
156
|
+
else if (s == "cm") return "LENGTH";
|
157
|
+
else if (s == "in") return "LENGTH";
|
158
|
+
// angle units
|
159
|
+
else if (s == "deg") return "ANGLE";
|
160
|
+
else if (s == "grad") return "ANGLE";
|
161
|
+
else if (s == "rad") return "ANGLE";
|
162
|
+
else if (s == "turn") return "ANGLE";
|
163
|
+
// time units
|
164
|
+
else if (s == "s") return "TIME";
|
165
|
+
else if (s == "ms") return "TIME";
|
166
|
+
// frequency units
|
167
|
+
else if (s == "Hz") return "FREQUENCY";
|
168
|
+
else if (s == "kHz") return "FREQUENCY";
|
169
|
+
// resolutions units
|
170
|
+
else if (s == "dpi") return "RESOLUTION";
|
171
|
+
else if (s == "dpcm") return "RESOLUTION";
|
172
|
+
else if (s == "dppx") return "RESOLUTION";
|
173
|
+
// for unknown units
|
174
|
+
return "CUSTOM:" + s;
|
175
|
+
}
|
176
|
+
|
177
|
+
// throws incompatibleUnits exceptions
|
178
|
+
double conversion_factor(const std::string& s1, const std::string& s2)
|
179
|
+
{
|
180
|
+
// assert for same units
|
181
|
+
if (s1 == s2) return 1;
|
182
|
+
// get unit enum from string
|
183
|
+
UnitType u1 = string_to_unit(s1);
|
184
|
+
UnitType u2 = string_to_unit(s2);
|
185
|
+
// query unit group types
|
186
|
+
UnitClass t1 = get_unit_type(u1);
|
187
|
+
UnitClass t2 = get_unit_type(u2);
|
188
|
+
// return the conversion factor
|
189
|
+
return conversion_factor(u1, u2, t1, t2);
|
190
|
+
}
|
191
|
+
|
192
|
+
// throws incompatibleUnits exceptions
|
193
|
+
double conversion_factor(UnitType u1, UnitType u2, UnitClass t1, UnitClass t2)
|
194
|
+
{
|
195
|
+
// can't convert between groups
|
196
|
+
if (t1 != t2) return 0;
|
197
|
+
// get absolute offset
|
198
|
+
// used for array acces
|
199
|
+
size_t i1 = u1 - t1;
|
200
|
+
size_t i2 = u2 - t2;
|
201
|
+
// process known units
|
202
|
+
switch (t1) {
|
203
|
+
case LENGTH:
|
204
|
+
return size_conversion_factors[i1][i2];
|
205
|
+
case ANGLE:
|
206
|
+
return angle_conversion_factors[i1][i2];
|
207
|
+
case TIME:
|
208
|
+
return time_conversion_factors[i1][i2];
|
209
|
+
case FREQUENCY:
|
210
|
+
return frequency_conversion_factors[i1][i2];
|
211
|
+
case RESOLUTION:
|
212
|
+
return resolution_conversion_factors[i1][i2];
|
213
|
+
case INCOMMENSURABLE:
|
214
|
+
return 0;
|
215
|
+
}
|
216
|
+
// fallback
|
217
|
+
return 0;
|
218
|
+
}
|
219
|
+
|
220
|
+
double convert_units(const std::string& lhs, const std::string& rhs, int& lhsexp, int& rhsexp)
|
221
|
+
{
|
222
|
+
double f = 0;
|
223
|
+
// do not convert same ones
|
224
|
+
if (lhs == rhs) return 0;
|
225
|
+
// skip already canceled out unit
|
226
|
+
if (lhsexp == 0) return 0;
|
227
|
+
if (rhsexp == 0) return 0;
|
228
|
+
// check if it can be converted
|
229
|
+
UnitType ulhs = string_to_unit(lhs);
|
230
|
+
UnitType urhs = string_to_unit(rhs);
|
231
|
+
// skip units we cannot convert
|
232
|
+
if (ulhs == UNKNOWN) return 0;
|
233
|
+
if (urhs == UNKNOWN) return 0;
|
234
|
+
// query unit group types
|
235
|
+
UnitClass clhs = get_unit_type(ulhs);
|
236
|
+
UnitClass crhs = get_unit_type(urhs);
|
237
|
+
// skip units we cannot convert
|
238
|
+
if (clhs != crhs) return 0;
|
239
|
+
// if right denominator is bigger than lhs, we want to keep it in rhs unit
|
240
|
+
if (rhsexp < 0 && lhsexp > 0 && - rhsexp > lhsexp) {
|
241
|
+
// get the conversion factor for units
|
242
|
+
f = conversion_factor(urhs, ulhs, clhs, crhs);
|
243
|
+
// left hand side has been consumned
|
244
|
+
f = std::pow(f, lhsexp);
|
245
|
+
rhsexp += lhsexp;
|
246
|
+
lhsexp = 0;
|
247
|
+
}
|
248
|
+
else {
|
249
|
+
// get the conversion factor for units
|
250
|
+
f = conversion_factor(ulhs, urhs, clhs, crhs);
|
251
|
+
// right hand side has been consumned
|
252
|
+
f = std::pow(f, rhsexp);
|
253
|
+
lhsexp += rhsexp;
|
254
|
+
rhsexp = 0;
|
255
|
+
}
|
256
|
+
return f;
|
257
|
+
}
|
258
|
+
|
259
|
+
bool Units::operator< (const Units& rhs) const
|
260
|
+
{
|
261
|
+
return (numerators < rhs.numerators) &&
|
262
|
+
(denominators < rhs.denominators);
|
263
|
+
}
|
264
|
+
bool Units::operator== (const Units& rhs) const
|
265
|
+
{
|
266
|
+
return (numerators == rhs.numerators) &&
|
267
|
+
(denominators == rhs.denominators);
|
268
|
+
}
|
269
|
+
bool Units::operator!= (const Units& rhs) const
|
270
|
+
{
|
271
|
+
return ! (*this == rhs);
|
272
|
+
}
|
273
|
+
|
274
|
+
double Units::normalize()
|
275
|
+
{
|
276
|
+
|
277
|
+
size_t iL = numerators.size();
|
278
|
+
size_t nL = denominators.size();
|
279
|
+
|
280
|
+
// the final conversion factor
|
281
|
+
double factor = 1;
|
282
|
+
|
283
|
+
for (size_t i = 0; i < iL; i++) {
|
284
|
+
std::string &lhs = numerators[i];
|
285
|
+
UnitType ulhs = string_to_unit(lhs);
|
286
|
+
if (ulhs == UNKNOWN) continue;
|
287
|
+
UnitClass clhs = get_unit_type(ulhs);
|
288
|
+
UnitType umain = get_main_unit(clhs);
|
289
|
+
if (ulhs == umain) continue;
|
290
|
+
double f(conversion_factor(umain, ulhs, clhs, clhs));
|
291
|
+
if (f == 0) throw std::runtime_error("INVALID");
|
292
|
+
numerators[i] = unit_to_string(umain);
|
293
|
+
factor /= f;
|
294
|
+
}
|
295
|
+
|
296
|
+
for (size_t n = 0; n < nL; n++) {
|
297
|
+
std::string &rhs = denominators[n];
|
298
|
+
UnitType urhs = string_to_unit(rhs);
|
299
|
+
if (urhs == UNKNOWN) continue;
|
300
|
+
UnitClass crhs = get_unit_type(urhs);
|
301
|
+
UnitType umain = get_main_unit(crhs);
|
302
|
+
if (urhs == umain) continue;
|
303
|
+
double f(conversion_factor(umain, urhs, crhs, crhs));
|
304
|
+
if (f == 0) throw std::runtime_error("INVALID");
|
305
|
+
denominators[n] = unit_to_string(umain);
|
306
|
+
factor /= f;
|
307
|
+
}
|
308
|
+
|
309
|
+
std::sort (numerators.begin(), numerators.end());
|
310
|
+
std::sort (denominators.begin(), denominators.end());
|
311
|
+
|
312
|
+
// return for conversion
|
313
|
+
return factor;
|
314
|
+
}
|
315
|
+
|
316
|
+
double Units::reduce()
|
317
|
+
{
|
318
|
+
|
319
|
+
size_t iL = numerators.size();
|
320
|
+
size_t nL = denominators.size();
|
321
|
+
|
322
|
+
// have less than two units?
|
323
|
+
if (iL + nL < 2) return 1;
|
324
|
+
|
325
|
+
// first make sure same units cancel each other out
|
326
|
+
// it seems that a map table will fit nicely to do this
|
327
|
+
// we basically construct exponents for each unit
|
328
|
+
// has the advantage that they will be pre-sorted
|
329
|
+
std::map<std::string, int> exponents;
|
330
|
+
|
331
|
+
// initialize by summing up occurences in unit vectors
|
332
|
+
// this will already cancel out equivalent units (e.q. px/px)
|
333
|
+
for (size_t i = 0; i < iL; i ++) exponents[numerators[i]] += 1;
|
334
|
+
for (size_t n = 0; n < nL; n ++) exponents[denominators[n]] -= 1;
|
335
|
+
|
336
|
+
// the final conversion factor
|
337
|
+
double factor = 1;
|
338
|
+
|
339
|
+
// convert between compatible units
|
340
|
+
for (size_t i = 0; i < iL; i++) {
|
341
|
+
for (size_t n = 0; n < nL; n++) {
|
342
|
+
std::string &lhs = numerators[i], &rhs = denominators[n];
|
343
|
+
int &lhsexp = exponents[lhs], &rhsexp = exponents[rhs];
|
344
|
+
double f(convert_units(lhs, rhs, lhsexp, rhsexp));
|
345
|
+
if (f == 0) continue;
|
346
|
+
factor /= f;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
// now we can build up the new unit arrays
|
351
|
+
numerators.clear();
|
352
|
+
denominators.clear();
|
353
|
+
|
354
|
+
// recreate sorted units vectors
|
355
|
+
for (auto exp : exponents) {
|
356
|
+
int &exponent = exp.second;
|
357
|
+
while (exponent > 0 && exponent --)
|
358
|
+
numerators.push_back(exp.first);
|
359
|
+
while (exponent < 0 && exponent ++)
|
360
|
+
denominators.push_back(exp.first);
|
361
|
+
}
|
362
|
+
|
363
|
+
// return for conversion
|
364
|
+
return factor;
|
365
|
+
|
366
|
+
}
|
367
|
+
|
368
|
+
std::string Units::unit() const
|
369
|
+
{
|
370
|
+
std::string u;
|
371
|
+
size_t iL = numerators.size();
|
372
|
+
size_t nL = denominators.size();
|
373
|
+
for (size_t i = 0; i < iL; i += 1) {
|
374
|
+
if (i) u += '*';
|
375
|
+
u += numerators[i];
|
376
|
+
}
|
377
|
+
if (nL != 0) u += '/';
|
378
|
+
for (size_t n = 0; n < nL; n += 1) {
|
379
|
+
if (n) u += '*';
|
380
|
+
u += denominators[n];
|
381
|
+
}
|
382
|
+
return u;
|
383
|
+
}
|
384
|
+
|
385
|
+
bool Units::is_unitless() const
|
386
|
+
{
|
387
|
+
return numerators.empty() &&
|
388
|
+
denominators.empty();
|
389
|
+
}
|
390
|
+
|
391
|
+
bool Units::is_valid_css_unit() const
|
392
|
+
{
|
393
|
+
return numerators.size() <= 1 &&
|
394
|
+
denominators.size() == 0;
|
395
|
+
}
|
396
|
+
|
397
|
+
// this does not cover all cases (multiple prefered units)
|
398
|
+
double Units::convert_factor(const Units& r) const
|
399
|
+
{
|
400
|
+
|
401
|
+
std::vector<std::string> miss_nums(0);
|
402
|
+
std::vector<std::string> miss_dens(0);
|
403
|
+
// create copy since we need these for state keeping
|
404
|
+
std::vector<std::string> r_nums(r.numerators);
|
405
|
+
std::vector<std::string> r_dens(r.denominators);
|
406
|
+
|
407
|
+
auto l_num_it = numerators.begin();
|
408
|
+
auto l_num_end = numerators.end();
|
409
|
+
|
410
|
+
bool l_unitless = is_unitless();
|
411
|
+
auto r_unitless = r.is_unitless();
|
412
|
+
|
413
|
+
// overall conversion
|
414
|
+
double factor = 1;
|
415
|
+
|
416
|
+
// process all left numerators
|
417
|
+
while (l_num_it != l_num_end)
|
418
|
+
{
|
419
|
+
// get and increment afterwards
|
420
|
+
const std::string l_num = *(l_num_it ++);
|
421
|
+
|
422
|
+
auto r_num_it = r_nums.begin(), r_num_end = r_nums.end();
|
423
|
+
|
424
|
+
bool found = false;
|
425
|
+
// search for compatible numerator
|
426
|
+
while (r_num_it != r_num_end)
|
427
|
+
{
|
428
|
+
// get and increment afterwards
|
429
|
+
const std::string r_num = *(r_num_it);
|
430
|
+
// get possible conversion factor for units
|
431
|
+
double conversion = conversion_factor(l_num, r_num);
|
432
|
+
// skip incompatible numerator
|
433
|
+
if (conversion == 0) {
|
434
|
+
++ r_num_it;
|
435
|
+
continue;
|
436
|
+
}
|
437
|
+
// apply to global factor
|
438
|
+
factor *= conversion;
|
439
|
+
// remove item from vector
|
440
|
+
r_nums.erase(r_num_it);
|
441
|
+
// found numerator
|
442
|
+
found = true;
|
443
|
+
break;
|
444
|
+
}
|
445
|
+
// maybe we did not find any
|
446
|
+
// left numerator is leftover
|
447
|
+
if (!found) miss_nums.push_back(l_num);
|
448
|
+
}
|
449
|
+
|
450
|
+
auto l_den_it = denominators.begin();
|
451
|
+
auto l_den_end = denominators.end();
|
452
|
+
|
453
|
+
// process all left denominators
|
454
|
+
while (l_den_it != l_den_end)
|
455
|
+
{
|
456
|
+
// get and increment afterwards
|
457
|
+
const std::string l_den = *(l_den_it ++);
|
458
|
+
|
459
|
+
auto r_den_it = r_dens.begin();
|
460
|
+
auto r_den_end = r_dens.end();
|
461
|
+
|
462
|
+
bool found = false;
|
463
|
+
// search for compatible denominator
|
464
|
+
while (r_den_it != r_den_end)
|
465
|
+
{
|
466
|
+
// get and increment afterwards
|
467
|
+
const std::string r_den = *(r_den_it);
|
468
|
+
// get possible converstion factor for units
|
469
|
+
double conversion = conversion_factor(l_den, r_den);
|
470
|
+
// skip incompatible denominator
|
471
|
+
if (conversion == 0) {
|
472
|
+
++ r_den_it;
|
473
|
+
continue;
|
474
|
+
}
|
475
|
+
// apply to global factor
|
476
|
+
factor /= conversion;
|
477
|
+
// remove item from vector
|
478
|
+
r_dens.erase(r_den_it);
|
479
|
+
// found denominator
|
480
|
+
found = true;
|
481
|
+
break;
|
482
|
+
}
|
483
|
+
// maybe we did not find any
|
484
|
+
// left denominator is leftover
|
485
|
+
if (!found) miss_dens.push_back(l_den);
|
486
|
+
}
|
487
|
+
|
488
|
+
// check left-overs (ToDo: might cancel out?)
|
489
|
+
if (miss_nums.size() > 0 && !r_unitless) {
|
490
|
+
throw Exception::IncompatibleUnits(r, *this);
|
491
|
+
}
|
492
|
+
else if (miss_dens.size() > 0 && !r_unitless) {
|
493
|
+
throw Exception::IncompatibleUnits(r, *this);
|
494
|
+
}
|
495
|
+
else if (r_nums.size() > 0 && !l_unitless) {
|
496
|
+
throw Exception::IncompatibleUnits(r, *this);
|
497
|
+
}
|
498
|
+
else if (r_dens.size() > 0 && !l_unitless) {
|
499
|
+
throw Exception::IncompatibleUnits(r, *this);
|
500
|
+
}
|
501
|
+
|
502
|
+
return factor;
|
503
|
+
}
|
504
|
+
|
505
|
+
}
|