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,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A SassScript object representing a boolean (true or false) value.
|
4
|
+
|
5
|
+
class SassC::Script::Value::Bool < SassC::Script::Value
|
6
|
+
|
7
|
+
# The true value in SassScript.
|
8
|
+
# This is assigned before new is overridden below so that we use the default implementation.
|
9
|
+
TRUE = new(true)
|
10
|
+
|
11
|
+
# The false value in SassScript.
|
12
|
+
# This is assigned before new is overridden below so that we use the default implementation.
|
13
|
+
FALSE = new(false)
|
14
|
+
|
15
|
+
# We override object creation so that users of the core API
|
16
|
+
# will not need to know that booleans are specific constants.
|
17
|
+
# Tests `value` for truthiness and returns the TRUE or FALSE constant.
|
18
|
+
def self.new(value)
|
19
|
+
value ? TRUE : FALSE
|
20
|
+
end
|
21
|
+
|
22
|
+
# The pure Ruby value of this Boolean
|
23
|
+
attr_reader :value
|
24
|
+
alias_method :to_bool, :value
|
25
|
+
|
26
|
+
# Returns the string "true" or "false" for this value
|
27
|
+
def to_s(opts = {})
|
28
|
+
@value.to_s
|
29
|
+
end
|
30
|
+
alias_method :to_sass, :to_s
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A SassScript object representing a CSS color.
|
4
|
+
# This class provides a very bare-bones system for storing a RGB(A) or HSL(A)
|
5
|
+
# color and converting it to a CSS color function.
|
6
|
+
#
|
7
|
+
# If your Sass method accepts a color you will need to perform any
|
8
|
+
# needed color mathematics or transformations yourself.
|
9
|
+
|
10
|
+
class SassC::Script::Value::Color < SassC::Script::Value
|
11
|
+
|
12
|
+
attr_reader :red
|
13
|
+
attr_reader :green
|
14
|
+
attr_reader :blue
|
15
|
+
attr_reader :hue
|
16
|
+
attr_reader :saturation
|
17
|
+
attr_reader :lightness
|
18
|
+
attr_reader :alpha
|
19
|
+
|
20
|
+
# Creates a new color with (`red`, `green`, `blue`) or (`hue`, `saturation`, `lightness`
|
21
|
+
# values, plus an optional `alpha` transparency value.
|
22
|
+
def initialize(red:nil, green:nil, blue:nil, hue:nil, saturation:nil, lightness:nil, alpha:1.0)
|
23
|
+
if red && green && blue && alpha
|
24
|
+
@mode = :rgba
|
25
|
+
@red = SassC::Util.clamp(red.to_i, 0, 255)
|
26
|
+
@green = SassC::Util.clamp(green.to_i, 0, 255)
|
27
|
+
@blue = SassC::Util.clamp(blue.to_i, 0, 255)
|
28
|
+
@alpha = SassC::Util.clamp(alpha.to_f, 0.0, 1.0)
|
29
|
+
elsif hue && saturation && lightness && alpha
|
30
|
+
@mode = :hsla
|
31
|
+
@hue = SassC::Util.clamp(hue.to_i, 0, 360)
|
32
|
+
@saturation = SassC::Util.clamp(saturation.to_i, 0, 100)
|
33
|
+
@lightness = SassC::Util.clamp(lightness.to_i, 0, 100)
|
34
|
+
@alpha = SassC::Util.clamp(alpha.to_f, 0.0, 1.0)
|
35
|
+
else
|
36
|
+
raise SassC::UnsupportedValue, "Unable to determine color configuration for "
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns a CSS color declaration in the form
|
41
|
+
# `rgb(…)`, `rgba(…)`, `hsl(…)`, or `hsla(…)`.
|
42
|
+
def to_s
|
43
|
+
if rgba? && @alpha == 1.0
|
44
|
+
return "rgb(#{@red}, #{@green}, #{@blue})"
|
45
|
+
elsif rgba?
|
46
|
+
return "rgba(#{@red}, #{@green}, #{@blue}, #{alpha_string})"
|
47
|
+
elsif hsla? && @alpha == 1.0
|
48
|
+
return "hsl(#{@hue}, #{@saturation}%, #{@lightness}%)"
|
49
|
+
else # hsla?
|
50
|
+
return "hsla(#{@hue}, #{@saturation}%, #{@lightness}%, #{alpha_string})"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# True if this color has RGBA values
|
55
|
+
def rgba?
|
56
|
+
@mode == :rgba
|
57
|
+
end
|
58
|
+
|
59
|
+
# True if this color has HSLA values
|
60
|
+
def hlsa?
|
61
|
+
@mode == :hlsa
|
62
|
+
end
|
63
|
+
|
64
|
+
# Returns the alpha value of this color as a string
|
65
|
+
# and rounded to 8 decimal places.
|
66
|
+
def alpha_string
|
67
|
+
alpha.round(8).to_s
|
68
|
+
end
|
69
|
+
|
70
|
+
# Returns the values of this color in an array.
|
71
|
+
# Provided for compatibility between different SassC::Script::Value classes
|
72
|
+
def value
|
73
|
+
return [
|
74
|
+
red, green, blue,
|
75
|
+
hue, saturation, lightness,
|
76
|
+
alpha,
|
77
|
+
].compact
|
78
|
+
end
|
79
|
+
|
80
|
+
# True if this Color is equal to `other_color`
|
81
|
+
def eql?(other_color)
|
82
|
+
unless other_color.is_a?(self.class)
|
83
|
+
raise ArgumentError, "No implicit conversion of #{other_color.class} to #{self.class}"
|
84
|
+
end
|
85
|
+
self.value == other_color.value
|
86
|
+
end
|
87
|
+
alias_method :==, :eql?
|
88
|
+
|
89
|
+
# Returns a numeric value for comparing two Color objects
|
90
|
+
# This method is used internally by the Hash class and is not the same as `.to_h`
|
91
|
+
def hash
|
92
|
+
value.hash
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A SassScript object representing a CSS list.
|
4
|
+
# This includes both comma-separated lists and space-separated lists.
|
5
|
+
|
6
|
+
class SassC::Script::Value::List < SassC::Script::Value
|
7
|
+
|
8
|
+
# The Ruby array containing the contents of the list.
|
9
|
+
#
|
10
|
+
# @return [Array<Value>]
|
11
|
+
attr_reader :value
|
12
|
+
alias_method :to_a, :value
|
13
|
+
|
14
|
+
# The operator separating the values of the list.
|
15
|
+
# Either `:comma` or `:space`.
|
16
|
+
#
|
17
|
+
# @return [Symbol]
|
18
|
+
attr_reader :separator
|
19
|
+
|
20
|
+
# Whether the list is surrounded by square brackets.
|
21
|
+
#
|
22
|
+
# @return [Boolean]
|
23
|
+
attr_reader :bracketed
|
24
|
+
|
25
|
+
# Creates a new list.
|
26
|
+
#
|
27
|
+
# @param value [Array<Value>] See \{#value}
|
28
|
+
# @param separator [Symbol] See \{#separator}
|
29
|
+
# @param bracketed [Boolean] See \{#bracketed}
|
30
|
+
def initialize(value, separator: nil, bracketed: false)
|
31
|
+
super(value)
|
32
|
+
@separator = separator
|
33
|
+
@bracketed = bracketed
|
34
|
+
end
|
35
|
+
|
36
|
+
# @see Value#options=
|
37
|
+
def options=(options)
|
38
|
+
super
|
39
|
+
value.each {|v| v.options = options}
|
40
|
+
end
|
41
|
+
|
42
|
+
# @see Value#eq
|
43
|
+
def eq(other)
|
44
|
+
SassC::Script::Value::Bool.new(
|
45
|
+
other.is_a?(List) && value == other.value &&
|
46
|
+
separator == other.separator && bracketed == other.bracketed
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
def hash
|
51
|
+
@hash ||= [value, separator, bracketed].hash
|
52
|
+
end
|
53
|
+
|
54
|
+
# @see Value#to_s
|
55
|
+
def to_s(opts = {})
|
56
|
+
if !bracketed && value.empty?
|
57
|
+
raise SassC::SyntaxError.new("#{inspect} isn't a valid CSS value.")
|
58
|
+
end
|
59
|
+
|
60
|
+
members = value.
|
61
|
+
reject {|e| e.is_a?(Null) || e.is_a?(List) && e.value.empty?}.
|
62
|
+
map {|e| e.to_s(opts)}
|
63
|
+
|
64
|
+
contents = members.join(sep_str)
|
65
|
+
bracketed ? "[#{contents}]" : contents
|
66
|
+
end
|
67
|
+
|
68
|
+
# @see Value#to_sass
|
69
|
+
def to_sass(opts = {})
|
70
|
+
return bracketed ? "[]" : "()" if value.empty?
|
71
|
+
members = value.map do |v|
|
72
|
+
if element_needs_parens?(v)
|
73
|
+
"(#{v.to_sass(opts)})"
|
74
|
+
else
|
75
|
+
v.to_sass(opts)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
if separator == :comma && members.length == 1
|
80
|
+
return "#{bracketed ? '[' : '('}#{members.first},#{bracketed ? ']' : ')'}"
|
81
|
+
end
|
82
|
+
|
83
|
+
contents = members.join(sep_str(nil))
|
84
|
+
bracketed ? "[#{contents}]" : contents
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see Value#to_h
|
88
|
+
def to_h
|
89
|
+
return {} if value.empty?
|
90
|
+
super
|
91
|
+
end
|
92
|
+
|
93
|
+
# @see Value#inspect
|
94
|
+
def inspect
|
95
|
+
(bracketed ? '[' : '(') + value.map {|e| e.inspect}.join(sep_str(nil)) + (bracketed ? ']' : ')')
|
96
|
+
end
|
97
|
+
|
98
|
+
# Asserts an index is within the list.
|
99
|
+
#
|
100
|
+
# @private
|
101
|
+
#
|
102
|
+
# @param list [Sass::Script::Value::List] The list for which the index should be checked.
|
103
|
+
# @param n [Sass::Script::Value::Number] The index being checked.
|
104
|
+
def self.assert_valid_index(list, n)
|
105
|
+
if !n.int? || n.to_i == 0
|
106
|
+
raise ArgumentError.new("List index #{n} must be a non-zero integer")
|
107
|
+
elsif list.to_a.size == 0
|
108
|
+
raise ArgumentError.new("List index is #{n} but list has no items")
|
109
|
+
elsif n.to_i.abs > (size = list.to_a.size)
|
110
|
+
raise ArgumentError.new(
|
111
|
+
"List index is #{n} but list is only #{size} item#{'s' if size != 1} long")
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
private
|
116
|
+
|
117
|
+
def element_needs_parens?(element)
|
118
|
+
if element.is_a?(List)
|
119
|
+
return false if element.value.length < 2
|
120
|
+
return false if element.bracketed
|
121
|
+
precedence = Sass::Script::Parser.precedence_of(separator || :space)
|
122
|
+
return Sass::Script::Parser.precedence_of(element.separator || :space) <= precedence
|
123
|
+
end
|
124
|
+
|
125
|
+
return false unless separator == :space
|
126
|
+
return false unless element.is_a?(Sass::Script::Tree::UnaryOperation)
|
127
|
+
element.operator == :minus || element.operator == :plus
|
128
|
+
end
|
129
|
+
|
130
|
+
def sep_str(opts = options)
|
131
|
+
return ' ' if separator == :space
|
132
|
+
return ',' if opts && opts[:style] == :compressed
|
133
|
+
', '
|
134
|
+
end
|
135
|
+
|
136
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class SassC::Script::Value::Map < SassC::Script::Value
|
4
|
+
|
5
|
+
# The Ruby hash containing the contents of this map.
|
6
|
+
# @return [Hash<Node, Node>]
|
7
|
+
attr_reader :value
|
8
|
+
alias_method :to_h, :value
|
9
|
+
|
10
|
+
# Creates a new map.
|
11
|
+
#
|
12
|
+
# @param hash [Hash<Node, Node>]
|
13
|
+
def initialize(hash)
|
14
|
+
super(hash)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @see Value#options=
|
18
|
+
def options=(options)
|
19
|
+
super
|
20
|
+
value.each do |k, v|
|
21
|
+
k.options = options
|
22
|
+
v.options = options
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# @see Value#separator
|
27
|
+
def separator
|
28
|
+
:comma unless value.empty?
|
29
|
+
end
|
30
|
+
|
31
|
+
# @see Value#to_a
|
32
|
+
def to_a
|
33
|
+
value.map do |k, v|
|
34
|
+
list = SassC::Script::Value::List.new([k, v], separator: :space)
|
35
|
+
list.options = options
|
36
|
+
list
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# @see Value#eq
|
41
|
+
def eq(other)
|
42
|
+
SassC::Script::Value::Bool.new(other.is_a?(Map) && value == other.value)
|
43
|
+
end
|
44
|
+
|
45
|
+
def hash
|
46
|
+
@hash ||= value.hash
|
47
|
+
end
|
48
|
+
|
49
|
+
# @see Value#to_s
|
50
|
+
def to_s(opts = {})
|
51
|
+
raise SassC::SyntaxError.new("#{inspect} isn't a valid CSS value.")
|
52
|
+
end
|
53
|
+
|
54
|
+
def to_sass(opts = {})
|
55
|
+
return "()" if value.empty?
|
56
|
+
|
57
|
+
to_sass = lambda do |value|
|
58
|
+
if value.is_a?(List) && value.separator == :comma
|
59
|
+
"(#{value.to_sass(opts)})"
|
60
|
+
else
|
61
|
+
value.to_sass(opts)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
"(#{value.map {|(k, v)| "#{to_sass[k]}: #{to_sass[v]}"}.join(', ')})"
|
66
|
+
end
|
67
|
+
alias_method :inspect, :to_sass
|
68
|
+
|
69
|
+
end
|
@@ -0,0 +1,389 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A SassScript object representing a number.
|
4
|
+
# SassScript numbers can have decimal values,
|
5
|
+
# and can also have units.
|
6
|
+
# For example, `12`, `1px`, and `10.45em`
|
7
|
+
# are all valid values.
|
8
|
+
#
|
9
|
+
# Numbers can also have more complex units, such as `1px*em/in`.
|
10
|
+
# These cannot be inputted directly in Sass code at the moment.
|
11
|
+
|
12
|
+
class SassC::Script::Value::Number < SassC::Script::Value
|
13
|
+
|
14
|
+
# The Ruby value of the number.
|
15
|
+
#
|
16
|
+
# @return [Numeric]
|
17
|
+
attr_reader :value
|
18
|
+
|
19
|
+
# A list of units in the numerator of the number.
|
20
|
+
# For example, `1px*em/in*cm` would return `["px", "em"]`
|
21
|
+
# @return [Array<String>]
|
22
|
+
attr_reader :numerator_units
|
23
|
+
|
24
|
+
# A list of units in the denominator of the number.
|
25
|
+
# For example, `1px*em/in*cm` would return `["in", "cm"]`
|
26
|
+
# @return [Array<String>]
|
27
|
+
attr_reader :denominator_units
|
28
|
+
|
29
|
+
# The original representation of this number.
|
30
|
+
# For example, although the result of `1px/2px` is `0.5`,
|
31
|
+
# the value of `#original` is `"1px/2px"`.
|
32
|
+
#
|
33
|
+
# This is only non-nil when the original value should be used as the CSS value,
|
34
|
+
# as in `font: 1px/2px`.
|
35
|
+
#
|
36
|
+
# @return [Boolean, nil]
|
37
|
+
attr_accessor :original
|
38
|
+
|
39
|
+
def self.precision
|
40
|
+
Thread.current[:sass_numeric_precision] || Thread.main[:sass_numeric_precision] || 10
|
41
|
+
end
|
42
|
+
|
43
|
+
# Sets the number of digits of precision
|
44
|
+
# For example, if this is `3`,
|
45
|
+
# `3.1415926` will be printed as `3.142`.
|
46
|
+
# The numeric precision is stored as a thread local for thread safety reasons.
|
47
|
+
# To set for all threads, be sure to set the precision on the main thread.
|
48
|
+
def self.precision=(digits)
|
49
|
+
Thread.current[:sass_numeric_precision] = digits.round
|
50
|
+
Thread.current[:sass_numeric_precision_factor] = nil
|
51
|
+
Thread.current[:sass_numeric_epsilon] = nil
|
52
|
+
end
|
53
|
+
|
54
|
+
# the precision factor used in numeric output
|
55
|
+
# it is derived from the `precision` method.
|
56
|
+
def self.precision_factor
|
57
|
+
Thread.current[:sass_numeric_precision_factor] ||= 10.0**precision
|
58
|
+
end
|
59
|
+
|
60
|
+
# Used in checking equality of floating point numbers. Any
|
61
|
+
# numbers within an `epsilon` of each other are considered functionally equal.
|
62
|
+
# The value for epsilon is one tenth of the current numeric precision.
|
63
|
+
def self.epsilon
|
64
|
+
Thread.current[:sass_numeric_epsilon] ||= 1 / (precision_factor * 10)
|
65
|
+
end
|
66
|
+
|
67
|
+
# Used so we don't allocate two new arrays for each new number.
|
68
|
+
NO_UNITS = []
|
69
|
+
|
70
|
+
# @param value [Numeric] The value of the number
|
71
|
+
# @param numerator_units [::String, Array<::String>] See \{#numerator\_units}
|
72
|
+
# @param denominator_units [::String, Array<::String>] See \{#denominator\_units}
|
73
|
+
def initialize(value, numerator_units = NO_UNITS, denominator_units = NO_UNITS)
|
74
|
+
numerator_units = [numerator_units] if numerator_units.is_a?(::String)
|
75
|
+
denominator_units = [denominator_units] if denominator_units.is_a?(::String)
|
76
|
+
super(value)
|
77
|
+
@numerator_units = numerator_units
|
78
|
+
@denominator_units = denominator_units
|
79
|
+
@options = nil
|
80
|
+
normalize!
|
81
|
+
end
|
82
|
+
|
83
|
+
def hash
|
84
|
+
[value, numerator_units, denominator_units].hash
|
85
|
+
end
|
86
|
+
|
87
|
+
# Hash-equality works differently than `==` equality for numbers.
|
88
|
+
# Hash-equality must be transitive, so it just compares the exact value,
|
89
|
+
# numerator units, and denominator units.
|
90
|
+
def eql?(other)
|
91
|
+
basically_equal?(value, other.value) && numerator_units == other.numerator_units &&
|
92
|
+
denominator_units == other.denominator_units
|
93
|
+
end
|
94
|
+
|
95
|
+
# @return [String] The CSS representation of this number
|
96
|
+
# @raise [Sass::SyntaxError] if this number has units that can't be used in CSS
|
97
|
+
# (e.g. `px*in`)
|
98
|
+
def to_s(opts = {})
|
99
|
+
return original if original
|
100
|
+
raise Sass::SyntaxError.new("#{inspect} isn't a valid CSS value.") unless legal_units?
|
101
|
+
inspect
|
102
|
+
end
|
103
|
+
|
104
|
+
# Returns a readable representation of this number.
|
105
|
+
#
|
106
|
+
# This representation is valid CSS (and valid SassScript)
|
107
|
+
# as long as there is only one unit.
|
108
|
+
#
|
109
|
+
# @return [String] The representation
|
110
|
+
def inspect(opts = {})
|
111
|
+
return original if original
|
112
|
+
|
113
|
+
value = self.class.round(self.value)
|
114
|
+
str = value.to_s
|
115
|
+
|
116
|
+
# Ruby will occasionally print in scientific notation if the number is
|
117
|
+
# small enough. That's technically valid CSS, but it's not well-supported
|
118
|
+
# and confusing.
|
119
|
+
str = ("%0.#{self.class.precision}f" % value).gsub(/0*$/, '') if str.include?('e')
|
120
|
+
|
121
|
+
# Sometimes numeric formatting will result in a decimal number with a trailing zero (x.0)
|
122
|
+
if str =~ /(.*)\.0$/
|
123
|
+
str = $1
|
124
|
+
end
|
125
|
+
|
126
|
+
# We omit a leading zero before the decimal point in compressed mode.
|
127
|
+
if @options && options[:style] == :compressed
|
128
|
+
str.sub!(/^(-)?0\./, '\1.')
|
129
|
+
end
|
130
|
+
|
131
|
+
unitless? ? str : "#{str}#{unit_str}"
|
132
|
+
end
|
133
|
+
alias_method :to_sass, :inspect
|
134
|
+
|
135
|
+
# @return [Integer] The integer value of the number
|
136
|
+
# @raise [Sass::SyntaxError] if the number isn't an integer
|
137
|
+
def to_i
|
138
|
+
super unless int?
|
139
|
+
value.to_i
|
140
|
+
end
|
141
|
+
|
142
|
+
# @return [Boolean] Whether or not this number is an integer.
|
143
|
+
def int?
|
144
|
+
basically_equal?(value % 1, 0.0)
|
145
|
+
end
|
146
|
+
|
147
|
+
# @return [Boolean] Whether or not this number has no units.
|
148
|
+
def unitless?
|
149
|
+
@numerator_units.empty? && @denominator_units.empty?
|
150
|
+
end
|
151
|
+
|
152
|
+
# Checks whether the number has the numerator unit specified.
|
153
|
+
#
|
154
|
+
# @example
|
155
|
+
# number = Sass::Script::Value::Number.new(10, "px")
|
156
|
+
# number.is_unit?("px") => true
|
157
|
+
# number.is_unit?(nil) => false
|
158
|
+
#
|
159
|
+
# @param unit [::String, nil] The unit the number should have or nil if the number
|
160
|
+
# should be unitless.
|
161
|
+
# @see Number#unitless? The unitless? method may be more readable.
|
162
|
+
def is_unit?(unit)
|
163
|
+
if unit
|
164
|
+
denominator_units.size == 0 && numerator_units.size == 1 && numerator_units.first == unit
|
165
|
+
else
|
166
|
+
unitless?
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# @return [Boolean] Whether or not this number has units that can be represented in CSS
|
171
|
+
# (that is, zero or one \{#numerator\_units}).
|
172
|
+
def legal_units?
|
173
|
+
(@numerator_units.empty? || @numerator_units.size == 1) && @denominator_units.empty?
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns this number converted to other units.
|
177
|
+
# The conversion takes into account the relationship between e.g. mm and cm,
|
178
|
+
# as well as between e.g. in and cm.
|
179
|
+
#
|
180
|
+
# If this number has no units, it will simply return itself
|
181
|
+
# with the given units.
|
182
|
+
#
|
183
|
+
# An incompatible coercion, e.g. between px and cm, will raise an error.
|
184
|
+
#
|
185
|
+
# @param num_units [Array<String>] The numerator units to coerce this number into.
|
186
|
+
# See {\#numerator\_units}
|
187
|
+
# @param den_units [Array<String>] The denominator units to coerce this number into.
|
188
|
+
# See {\#denominator\_units}
|
189
|
+
# @return [Number] The number with the new units
|
190
|
+
# @raise [Sass::UnitConversionError] if the given units are incompatible with the number's
|
191
|
+
# current units
|
192
|
+
def coerce(num_units, den_units)
|
193
|
+
Number.new(if unitless?
|
194
|
+
value
|
195
|
+
else
|
196
|
+
value * coercion_factor(@numerator_units, num_units) /
|
197
|
+
coercion_factor(@denominator_units, den_units)
|
198
|
+
end, num_units, den_units)
|
199
|
+
end
|
200
|
+
|
201
|
+
# @param other [Number] A number to decide if it can be compared with this number.
|
202
|
+
# @return [Boolean] Whether or not this number can be compared with the other.
|
203
|
+
def comparable_to?(other)
|
204
|
+
operate(other, :+)
|
205
|
+
true
|
206
|
+
rescue Sass::UnitConversionError
|
207
|
+
false
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns a human readable representation of the units in this number.
|
211
|
+
# For complex units this takes the form of:
|
212
|
+
# numerator_unit1 * numerator_unit2 / denominator_unit1 * denominator_unit2
|
213
|
+
# @return [String] a string that represents the units in this number
|
214
|
+
def unit_str
|
215
|
+
rv = @numerator_units.sort.join("*")
|
216
|
+
if @denominator_units.any?
|
217
|
+
rv << "/"
|
218
|
+
rv << @denominator_units.sort.join("*")
|
219
|
+
end
|
220
|
+
rv
|
221
|
+
end
|
222
|
+
|
223
|
+
private
|
224
|
+
|
225
|
+
# @private
|
226
|
+
# @see Sass::Script::Number.basically_equal?
|
227
|
+
def basically_equal?(num1, num2)
|
228
|
+
self.class.basically_equal?(num1, num2)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Checks whether two numbers are within an epsilon of each other.
|
232
|
+
# @return [Boolean]
|
233
|
+
def self.basically_equal?(num1, num2)
|
234
|
+
(num1 - num2).abs < epsilon
|
235
|
+
end
|
236
|
+
|
237
|
+
# @private
|
238
|
+
def self.round(num)
|
239
|
+
if num.is_a?(Float) && (num.infinite? || num.nan?)
|
240
|
+
num
|
241
|
+
elsif basically_equal?(num % 1, 0.0)
|
242
|
+
num.round
|
243
|
+
else
|
244
|
+
((num * precision_factor).round / precision_factor).to_f
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
OPERATIONS = [:+, :-, :<=, :<, :>, :>=, :%]
|
249
|
+
|
250
|
+
def operate(other, operation)
|
251
|
+
this = self
|
252
|
+
if OPERATIONS.include?(operation)
|
253
|
+
if unitless?
|
254
|
+
this = this.coerce(other.numerator_units, other.denominator_units)
|
255
|
+
else
|
256
|
+
other = other.coerce(@numerator_units, @denominator_units)
|
257
|
+
end
|
258
|
+
end
|
259
|
+
# avoid integer division
|
260
|
+
value = :/ == operation ? this.value.to_f : this.value
|
261
|
+
result = value.send(operation, other.value)
|
262
|
+
|
263
|
+
if result.is_a?(Numeric)
|
264
|
+
Number.new(result, *compute_units(this, other, operation))
|
265
|
+
else # Boolean op
|
266
|
+
Bool.new(result)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
def coercion_factor(from_units, to_units)
|
271
|
+
# get a list of unmatched units
|
272
|
+
from_units, to_units = sans_common_units(from_units, to_units)
|
273
|
+
|
274
|
+
if from_units.size != to_units.size || !convertable?(from_units | to_units)
|
275
|
+
raise Sass::UnitConversionError.new(
|
276
|
+
"Incompatible units: '#{from_units.join('*')}' and '#{to_units.join('*')}'.")
|
277
|
+
end
|
278
|
+
|
279
|
+
from_units.zip(to_units).inject(1) {|m, p| m * conversion_factor(p[0], p[1])}
|
280
|
+
end
|
281
|
+
|
282
|
+
def compute_units(this, other, operation)
|
283
|
+
case operation
|
284
|
+
when :*
|
285
|
+
[this.numerator_units + other.numerator_units,
|
286
|
+
this.denominator_units + other.denominator_units]
|
287
|
+
when :/
|
288
|
+
[this.numerator_units + other.denominator_units,
|
289
|
+
this.denominator_units + other.numerator_units]
|
290
|
+
else
|
291
|
+
[this.numerator_units, this.denominator_units]
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
def normalize!
|
296
|
+
return if unitless?
|
297
|
+
@numerator_units, @denominator_units =
|
298
|
+
sans_common_units(@numerator_units, @denominator_units)
|
299
|
+
|
300
|
+
@denominator_units.each_with_index do |d, i|
|
301
|
+
next unless convertable?(d) && (u = @numerator_units.find {|n| convertable?([n, d])})
|
302
|
+
@value /= conversion_factor(d, u)
|
303
|
+
@denominator_units.delete_at(i)
|
304
|
+
@numerator_units.delete_at(@numerator_units.index(u))
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
# This is the source data for all the unit logic. It's pre-processed to make
|
309
|
+
# it efficient to figure out whether a set of units is mutually compatible
|
310
|
+
# and what the conversion ratio is between two units.
|
311
|
+
#
|
312
|
+
# These come from http://www.w3.org/TR/2012/WD-css3-values-20120308/.
|
313
|
+
relative_sizes = [
|
314
|
+
{
|
315
|
+
"in" => Rational(1),
|
316
|
+
"cm" => Rational(1, 2.54),
|
317
|
+
"pc" => Rational(1, 6),
|
318
|
+
"mm" => Rational(1, 25.4),
|
319
|
+
"q" => Rational(1, 101.6),
|
320
|
+
"pt" => Rational(1, 72),
|
321
|
+
"px" => Rational(1, 96)
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"deg" => Rational(1, 360),
|
325
|
+
"grad" => Rational(1, 400),
|
326
|
+
"rad" => Rational(1, 2 * Math::PI),
|
327
|
+
"turn" => Rational(1)
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"s" => Rational(1),
|
331
|
+
"ms" => Rational(1, 1000)
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"Hz" => Rational(1),
|
335
|
+
"kHz" => Rational(1000)
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"dpi" => Rational(1),
|
339
|
+
"dpcm" => Rational(254, 100),
|
340
|
+
"dppx" => Rational(96)
|
341
|
+
}
|
342
|
+
]
|
343
|
+
|
344
|
+
# A hash from each known unit to the set of units that it's mutually
|
345
|
+
# convertible with.
|
346
|
+
MUTUALLY_CONVERTIBLE = {}
|
347
|
+
relative_sizes.map do |values|
|
348
|
+
set = values.keys.to_set
|
349
|
+
values.keys.each {|name| MUTUALLY_CONVERTIBLE[name] = set}
|
350
|
+
end
|
351
|
+
|
352
|
+
# A two-dimensional hash from two units to the conversion ratio between
|
353
|
+
# them. Multiply `X` by `CONVERSION_TABLE[X][Y]` to convert it to `Y`.
|
354
|
+
CONVERSION_TABLE = {}
|
355
|
+
relative_sizes.each do |values|
|
356
|
+
values.each do |(name1, value1)|
|
357
|
+
CONVERSION_TABLE[name1] ||= {}
|
358
|
+
values.each do |(name2, value2)|
|
359
|
+
value = value1 / value2
|
360
|
+
CONVERSION_TABLE[name1][name2] = value.denominator == 1 ? value.to_i : value.to_f
|
361
|
+
end
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
def conversion_factor(from_unit, to_unit)
|
366
|
+
CONVERSION_TABLE[from_unit][to_unit]
|
367
|
+
end
|
368
|
+
|
369
|
+
def convertable?(units)
|
370
|
+
units = Array(units).to_set
|
371
|
+
return true if units.empty?
|
372
|
+
return false unless (mutually_convertible = MUTUALLY_CONVERTIBLE[units.first])
|
373
|
+
units.subset?(mutually_convertible)
|
374
|
+
end
|
375
|
+
|
376
|
+
def sans_common_units(units1, units2)
|
377
|
+
units2 = units2.dup
|
378
|
+
# Can't just use -, because we want px*px to coerce properly to px*mm
|
379
|
+
units1 = units1.map do |u|
|
380
|
+
j = units2.index(u)
|
381
|
+
next u unless j
|
382
|
+
units2.delete_at(j)
|
383
|
+
nil
|
384
|
+
end
|
385
|
+
units1.compact!
|
386
|
+
return units1, units2
|
387
|
+
end
|
388
|
+
|
389
|
+
end
|