acfs 2.2.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/acfs.gemspec +4 -4
- data/lib/acfs/errors.rb +6 -6
- data/lib/acfs/global.rb +3 -1
- data/lib/acfs/resource/attributes.rb +5 -6
- data/lib/acfs/resource/locatable.rb +4 -4
- data/lib/acfs/resource/persistence.rb +7 -7
- data/lib/acfs/resource/service.rb +2 -2
- data/lib/acfs/runner.rb +5 -0
- data/lib/acfs/version.rb +3 -3
- data/spec/acfs/adapter/typhoeus_spec.rb +2 -1
- data/spec/acfs/global_spec.rb +21 -2
- data/spec/acfs/runner_spec.rb +16 -2
- data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/README.md +3 -3
- data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/rubocop-config.gemspec +8 -8
- data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/CHANGELOG.md +216 -0
- data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/CHANGELOG.md +107 -0
- data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/CHANGELOG.md +48 -0
- data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/CHANGELOG.md +242 -0
- data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/CHANGELOG.md +97 -0
- data/vendor/bundle/ruby/4.0.0/gems/{bigdecimal-4.1.2 → bigdecimal-4.1.3}/bigdecimal.gemspec +2 -0
- data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/CHANGELOG.md +6 -0
- data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/connection_pool.gemspec +1 -0
- data/vendor/bundle/ruby/4.0.0/gems/{crass-1.0.6 → crass-1.0.8}/LICENSE +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.8/README.md +153 -0
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.8/crass.gemspec +32 -0
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.19.2/CHANGELOG.md +1164 -0
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.19.2/README.md +308 -0
- data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/changelog.md +5 -0
- data/vendor/bundle/ruby/4.0.0/gems/{json-2.19.9 → json-3.1.0}/README.md +9 -91
- data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/CHANGELOG.md +42 -0
- data/vendor/bundle/ruby/4.0.0/gems/{minitest-6.0.6 → minitest-6.1.0}/README.rdoc +19 -10
- data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/ChangeLog +25 -1
- data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/msgpack.gemspec +0 -9
- data/vendor/bundle/ruby/4.0.0/gems/{multi_json-1.21.1 → multi_json-1.21.2}/README.md +6 -6
- data/vendor/bundle/ruby/4.0.0/gems/{nokogiri-1.19.4-x86_64-linux-gnu → nokogiri-1.19.7-x86_64-linux-gnu}/LICENSE-DEPENDENCIES.md +29 -0
- data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/CHANGELOG.md +13 -3
- data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/CHANGELOG.md +8 -0
- data/vendor/bundle/ruby/4.0.0/gems/{prism-1.9.0 → prism-2.1.0-x86_64-linux-gnu}/CHANGELOG.md +144 -40
- data/vendor/bundle/ruby/4.0.0/gems/{prism-1.9.0 → prism-2.1.0-x86_64-linux-gnu}/LICENSE.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/README.md +83 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/prism.gemspec +251 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/CHANGELOG.md +137 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rack-test-2.2.0 → rack-test-2.3.0}/MIT-LICENSE.txt +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rack-test-2.2.0 → rack-test-2.3.0}/README.md +16 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/CHANGELOG.md +54 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/README.md +3 -2
- data/vendor/bundle/ruby/4.0.0/gems/{regexp_parser-2.12.0 → regexp_parser-2.13.4}/LICENSE +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{regexp_parser-2.12.0 → regexp_parser-2.13.4}/regexp_parser.gemspec +3 -9
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/Changelog.md +10 -2
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/Changelog.md +11 -2
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/Changelog.md +17 -3
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/Changelog.md +12 -2
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-1.88.0 → rubocop-1.92.3}/README.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-ast-1.53.0/lib/rubocop/ast/vendor/parser/LICENSE.txt +26 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/CHANGELOG.md +53 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/README.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-performance-1.26.1 → rubocop-performance-1.27.0}/LICENSE.txt +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/CHANGELOG.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/{simplecov-0.22.0 → simplecov-1.3.2}/LICENSE +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-1.3.2/README.md +272 -0
- data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/README.md +2 -3
- data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/simplecov-cobertura.gemspec +2 -2
- data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/CHANGELOG.md +297 -3
- data/vendor/bundle/ruby/4.0.0/gems/typhoeus-1.8.0/README.md +825 -0
- data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/typhoeus.gemspec +15 -3
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/CHANGELOG.md +6 -0
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/MIT-LICENSE.txt +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/README.md +2 -2
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/CHANGELOG.md +4 -0
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/MIT-LICENSE.txt +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/README.md +4 -4
- data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/CHANGELOG.md +406 -0
- data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/README.md +271 -5
- data/vendor/bundle/ruby/4.0.0/specifications/{actionpack-8.1.3.gemspec → actionpack-8.1.4.1.gemspec} +8 -8
- data/vendor/bundle/ruby/4.0.0/specifications/{actionview-8.1.3.gemspec → actionview-8.1.4.1.gemspec} +9 -9
- data/vendor/bundle/ruby/4.0.0/specifications/{activemodel-8.1.3.gemspec → activemodel-8.1.4.1.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{activesupport-8.1.3.gemspec → activesupport-8.1.4.1.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/{addressable-2.9.0.gemspec → addressable-2.9.2.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/appraisal-2.5.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/ast-2.4.3.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/base64-0.3.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{bigdecimal-4.1.2.gemspec → bigdecimal-4.1.3.gemspec} +3 -3
- data/vendor/bundle/ruby/4.0.0/specifications/builder-3.3.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{concurrent-ruby-1.3.7.gemspec → concurrent-ruby-1.3.8.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/{connection_pool-3.0.2.gemspec → connection_pool-3.0.3.gemspec} +5 -4
- data/vendor/bundle/ruby/4.0.0/specifications/crack-1.0.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{crass-1.0.6.gemspec → crass-1.0.8.gemspec} +8 -8
- data/vendor/bundle/ruby/4.0.0/specifications/diff-lcs-1.6.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/drb-2.2.3.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/erubi-1.13.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{ethon-0.18.0.gemspec → ethon-0.19.2.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/ffi-1.17.4-x86_64-linux-gnu.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{hashdiff-1.2.1.gemspec → hashdiff-1.2.2.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/i18n-1.15.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{json-2.19.9.gemspec → json-3.1.0.gemspec} +0 -0
- data/vendor/bundle/ruby/4.0.0/specifications/{language_server-protocol-3.17.0.5.gemspec → language_server-protocol-3.17.0.6.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/lint_roller-1.1.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/logger-1.7.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{loofah-2.25.1.gemspec → loofah-2.25.3.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{minitest-6.0.6.gemspec → minitest-6.1.0.gemspec} +8 -9
- data/vendor/bundle/ruby/4.0.0/specifications/{msgpack-1.8.3.gemspec → msgpack-1.8.7.gemspec} +4 -15
- data/vendor/bundle/ruby/4.0.0/specifications/{multi_json-1.21.1.gemspec → multi_json-1.21.2.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/{nokogiri-1.19.4-x86_64-linux-gnu.gemspec → nokogiri-1.19.7-x86_64-linux-gnu.gemspec} +3 -3
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-api-1.11.1.gemspec +27 -0
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-common-0.25.2.gemspec +26 -0
- data/vendor/bundle/ruby/4.0.0/specifications/{parallel-2.1.0.gemspec → parallel-2.3.0.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/{parser-3.3.11.1.gemspec → parser-3.3.14.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/prism-2.1.0-x86_64-linux-gnu.gemspec +22 -0
- data/vendor/bundle/ruby/4.0.0/specifications/public_suffix-7.0.5.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/racc-1.8.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rack-3.2.6.gemspec → rack-3.2.9.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/rack-session-2.1.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rack-test-2.2.0.gemspec → rack-test-2.3.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/rails-dom-testing-2.3.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rails-html-sanitizer-1.7.0.gemspec → rails-html-sanitizer-1.7.2.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/rainbow-3.1.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/rake-13.4.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/rake-release-1.4.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{regexp_parser-2.12.0.gemspec → regexp_parser-2.13.4.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/rexml-3.4.4.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/rspec-3.13.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-core-3.13.6.gemspec → rspec-core-3.13.7.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-expectations-3.13.5.gemspec → rspec-expectations-3.13.6.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-mocks-3.13.8.gemspec → rspec-mocks-3.13.9.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-support-3.13.7.gemspec → rspec-support-3.13.8.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-1.88.0.gemspec → rubocop-1.92.3.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-ast-1.49.1.gemspec → rubocop-ast-1.53.0.gemspec} +7 -5
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-capybara-2.23.0.gemspec → rubocop-capybara-3.1.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-factory_bot-2.28.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-performance-1.26.1.gemspec → rubocop-performance-1.27.0.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-rspec-3.10.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-rspec_rails-2.32.0.gemspec → rubocop-rspec_rails-2.33.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/ruby-progressbar-1.13.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/securerandom-0.4.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-1.3.2.gemspec +25 -0
- data/vendor/bundle/ruby/4.0.0/specifications/{simplecov-cobertura-3.2.0.gemspec → simplecov-cobertura-4.0.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/thor-1.5.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{typhoeus-1.6.0.gemspec → typhoeus-1.8.0.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/tzinfo-2.0.6.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{unicode-display_width-3.2.0.gemspec → unicode-display_width-3.3.0.gemspec} +8 -8
- data/vendor/bundle/ruby/4.0.0/specifications/{unicode-emoji-4.2.0.gemspec → unicode-emoji-4.3.0.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{uri-1.1.1.gemspec → uri-1.1.2.gemspec} +3 -3
- data/vendor/bundle/ruby/4.0.0/specifications/useragent-0.16.11.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{webmock-3.26.2.gemspec → webmock-3.38.0.gemspec} +5 -5
- metadata +174 -185
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.6/README.md +0 -192
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.6/crass.gemspec +0 -31
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/LICENSE +0 -21
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/README.md +0 -409
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/docile.gemspec +0 -36
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.18.0/CHANGELOG.md +0 -417
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.18.0/README.md +0 -118
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/README.md +0 -143
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/prism.gemspec +0 -172
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/CHANGELOG.md +0 -191
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/README.md +0 -974
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/CHANGELOG.md +0 -114
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/LICENSE +0 -20
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/README.md +0 -30
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/CHANGELOG.md +0 -13
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/README.md +0 -29
- data/vendor/bundle/ruby/4.0.0/gems/typhoeus-1.6.0/README.md +0 -588
- data/vendor/bundle/ruby/4.0.0/specifications/docile-1.4.1.gemspec +0 -22
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-api-1.10.0.gemspec +0 -35
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-common-0.25.0.gemspec +0 -33
- data/vendor/bundle/ruby/4.0.0/specifications/prism-1.9.0.gemspec +0 -24
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-0.22.0.gemspec +0 -28
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-html-0.13.2.gemspec +0 -22
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov_json_formatter-0.1.4.gemspec +0 -21
- /data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{bigdecimal-4.1.2 → bigdecimal-4.1.3}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{ethon-0.18.0 → ethon-0.19.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{ethon-0.18.0 → ethon-0.19.2}/ethon.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/hashdiff.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{json-2.19.9 → json-3.1.0}/json.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{language_server-protocol-3.17.0.5 → language_server-protocol-3.17.0.6}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{language_server-protocol-3.17.0.5 → language_server-protocol-3.17.0.6}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/MIT-LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{multi_json-1.21.1 → multi_json-1.21.2}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{nokogiri-1.19.4-x86_64-linux-gnu → nokogiri-1.19.7-x86_64-linux-gnu}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{nokogiri-1.19.4-x86_64-linux-gnu → nokogiri-1.19.7-x86_64-linux-gnu}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{parallel-2.1.0 → parallel-2.3.0}/MIT-LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.14.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.14.0}/parser.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-1.88.0 → rubocop-1.92.3}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-ast-1.49.1 → rubocop-ast-1.53.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-ast-1.49.1 → rubocop-ast-1.53.0}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/MIT-LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-performance-1.26.1 → rubocop-performance-1.27.0}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/MIT-LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/unicode-emoji.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{uri-1.1.1 → uri-1.1.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/LICENSE +0 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Crass
|
|
2
|
+
|
|
3
|
+
Crass is a Ruby CSS parser that's fully compliant with the [CSS Syntax Level 3](http://dev.w3.org/csswg/css-syntax/) specification.
|
|
4
|
+
|
|
5
|
+
[](http://badge.fury.io/rb/crass)
|
|
6
|
+
[](https://github.com/rgrove/crass/actions/workflows/tests.yml)
|
|
7
|
+
|
|
8
|
+
## Links
|
|
9
|
+
|
|
10
|
+
- [Home](https://github.com/rgrove/crass/)
|
|
11
|
+
- [API Docs](https://rubydoc.info/github/rgrove/crass/Crass)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Features
|
|
15
|
+
|
|
16
|
+
- Pure Ruby, with no runtime dependencies other than Ruby 1.9.x or higher.
|
|
17
|
+
|
|
18
|
+
- Tokenizes and parses CSS according to the rules defined in the 14 November 2014 editor's draft of the [CSS Syntax Level 3](http://dev.w3.org/csswg/css-syntax/) specification.
|
|
19
|
+
|
|
20
|
+
- Extremely tolerant of broken or invalid CSS. If a browser can handle it, Crass should be able to handle it too.
|
|
21
|
+
|
|
22
|
+
- Optionally includes comments in the token stream.
|
|
23
|
+
|
|
24
|
+
- Optionally preserves certain CSS hacks, such as the IE "*" hack, which would otherwise be discarded according to CSS3 tokenizing rules.
|
|
25
|
+
|
|
26
|
+
- Capable of serializing the parse tree back to CSS while maintaining all original whitespace, comments, and indentation.
|
|
27
|
+
|
|
28
|
+
## Problems
|
|
29
|
+
|
|
30
|
+
- Crass isn't terribly fast. I mean, it's Ruby, and it's not really slow by Ruby standards. But compared to the CSS parser in your average browser? Yeah, it's slow.
|
|
31
|
+
|
|
32
|
+
- Crass only parses the CSS syntax; it doesn't understand what any of it means, doesn't coalesce selectors, etc. You can do this yourself by consuming the parse tree, though.
|
|
33
|
+
|
|
34
|
+
- While any node in the parse tree (or the parse tree as a whole) can be serialized back to CSS with perfect fidelity, changes made to those nodes (except for wholesale removal of nodes) are not reflected in the serialized output.
|
|
35
|
+
|
|
36
|
+
- Crass only supports UTF-8 input and doesn't respect `@charset` rules. Input in any other encoding will be converted to UTF-8.
|
|
37
|
+
|
|
38
|
+
## Installing
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
gem install crass
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
Say you have a string containing some CSS:
|
|
47
|
+
|
|
48
|
+
```css
|
|
49
|
+
/* Comment! */
|
|
50
|
+
a:hover {
|
|
51
|
+
color: #0d8bfa;
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Parsing it is simple:
|
|
57
|
+
|
|
58
|
+
```ruby
|
|
59
|
+
tree = Crass.parse(css, :preserve_comments => true)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
This returns a big beautiful parse tree, which looks like this:
|
|
63
|
+
|
|
64
|
+
```ruby
|
|
65
|
+
[{:node=>:comment, :pos=>0, :raw=>"/* Comment! */", :value=>" Comment! "},
|
|
66
|
+
{:node=>:whitespace, :pos=>14, :raw=>"\n"},
|
|
67
|
+
{:node=>:style_rule,
|
|
68
|
+
:selector=>
|
|
69
|
+
{:node=>:selector,
|
|
70
|
+
:value=>"a:hover",
|
|
71
|
+
:tokens=>
|
|
72
|
+
[{:node=>:ident, :pos=>15, :raw=>"a", :value=>"a"},
|
|
73
|
+
{:node=>:colon, :pos=>16, :raw=>":"},
|
|
74
|
+
{:node=>:ident, :pos=>17, :raw=>"hover", :value=>"hover"},
|
|
75
|
+
{:node=>:whitespace, :pos=>22, :raw=>" "}]},
|
|
76
|
+
:children=>
|
|
77
|
+
[{:node=>:whitespace, :pos=>24, :raw=>"\n "},
|
|
78
|
+
{:node=>:property,
|
|
79
|
+
:name=>"color",
|
|
80
|
+
:value=>"#0d8bfa",
|
|
81
|
+
:children=>
|
|
82
|
+
[{:node=>:whitespace, :pos=>33, :raw=>" "},
|
|
83
|
+
{:node=>:hash,
|
|
84
|
+
:pos=>34,
|
|
85
|
+
:raw=>"#0d8bfa",
|
|
86
|
+
:type=>:unrestricted,
|
|
87
|
+
:value=>"0d8bfa"}],
|
|
88
|
+
:important=>false,
|
|
89
|
+
:tokens=>
|
|
90
|
+
[{:node=>:ident, :pos=>27, :raw=>"color", :value=>"color"},
|
|
91
|
+
{:node=>:colon, :pos=>32, :raw=>":"},
|
|
92
|
+
{:node=>:whitespace, :pos=>33, :raw=>" "},
|
|
93
|
+
{:node=>:hash,
|
|
94
|
+
:pos=>34,
|
|
95
|
+
:raw=>"#0d8bfa",
|
|
96
|
+
:type=>:unrestricted,
|
|
97
|
+
:value=>"0d8bfa"}]},
|
|
98
|
+
{:node=>:semicolon, :pos=>41, :raw=>";"},
|
|
99
|
+
{:node=>:whitespace, :pos=>42, :raw=>"\n "},
|
|
100
|
+
{:node=>:property,
|
|
101
|
+
:name=>"text-decoration",
|
|
102
|
+
:value=>"underline",
|
|
103
|
+
:children=>
|
|
104
|
+
[{:node=>:whitespace, :pos=>61, :raw=>" "},
|
|
105
|
+
{:node=>:ident, :pos=>62, :raw=>"underline", :value=>"underline"}],
|
|
106
|
+
:important=>false,
|
|
107
|
+
:tokens=>
|
|
108
|
+
[{:node=>:ident,
|
|
109
|
+
:pos=>45,
|
|
110
|
+
:raw=>"text-decoration",
|
|
111
|
+
:value=>"text-decoration"},
|
|
112
|
+
{:node=>:colon, :pos=>60, :raw=>":"},
|
|
113
|
+
{:node=>:whitespace, :pos=>61, :raw=>" "},
|
|
114
|
+
{:node=>:ident, :pos=>62, :raw=>"underline", :value=>"underline"}]},
|
|
115
|
+
{:node=>:semicolon, :pos=>71, :raw=>";"},
|
|
116
|
+
{:node=>:whitespace, :pos=>72, :raw=>"\n"}]}]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
If you want, you can stringify the parse tree:
|
|
120
|
+
|
|
121
|
+
```ruby
|
|
122
|
+
css = Crass::Parser.stringify(tree)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
...which gives you back exactly what you put in!
|
|
126
|
+
|
|
127
|
+
```css
|
|
128
|
+
/* Comment! */
|
|
129
|
+
a:hover {
|
|
130
|
+
color: #0d8bfa;
|
|
131
|
+
text-decoration: underline;
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Wasn't that exciting?
|
|
136
|
+
|
|
137
|
+
## Versioning
|
|
138
|
+
|
|
139
|
+
As of version 1.0.0, Crass adheres strictly to [SemVer 2.0](http://semver.org/spec/v2.0.0.html).
|
|
140
|
+
|
|
141
|
+
## Contributing
|
|
142
|
+
|
|
143
|
+
The best way to contribute is to use Crass and [create issues](https://github.com/rgrove/crass/issues/new) when you run into problems.
|
|
144
|
+
|
|
145
|
+
Pull requests that fix bugs are more than welcome as long as they include tests. Please adhere to the style and format of the surrounding code, or I might ask you to change things.
|
|
146
|
+
|
|
147
|
+
If you want to add a feature or refactor something, please get in touch first to make sure I'm on board with your idea and approach; I'm pretty picky, and I'd hate to have to turn down a pull request you spent a lot of time on.
|
|
148
|
+
|
|
149
|
+
## Acknowledgments
|
|
150
|
+
|
|
151
|
+
I'm deeply grateful to [Simon Sapin](http://exyr.org/about/) for his wonderfully comprehensive [CSS parsing tests](https://github.com/SimonSapin/css-parsing-tests/), which I adapted to create many of Crass's tests. They've been invaluable in helping me fix bugs and handle weird edge cases, and Crass would be much crappier without them.
|
|
152
|
+
|
|
153
|
+
I'm also grateful to [Tab Atkins-Bittner](https://www.xanthir.com/contact/) and Simon Sapin (again!) for their work on the [CSS Syntax Level 3](http://www.w3.org/TR/css-syntax-3/) specification, which defines the tokenizing and parsing rules that Crass implements.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require './lib/crass/version'
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |s|
|
|
5
|
+
s.name = 'crass'
|
|
6
|
+
s.summary = 'CSS parser based on the CSS Syntax Level 3 spec.'
|
|
7
|
+
s.description = 'Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.'
|
|
8
|
+
s.version = Crass::VERSION
|
|
9
|
+
s.authors = ['Ryan Grove']
|
|
10
|
+
s.email = ['ryan@wonko.com']
|
|
11
|
+
s.homepage = 'https://github.com/rgrove/crass/'
|
|
12
|
+
s.license = 'MIT'
|
|
13
|
+
|
|
14
|
+
s.metadata = {
|
|
15
|
+
'bug_tracker_uri' => 'https://github.com/rgrove/crass/issues',
|
|
16
|
+
'changelog_uri' => "https://github.com/rgrove/crass/blob/v#{s.version}/HISTORY.md",
|
|
17
|
+
'documentation_uri' => "https://www.rubydoc.info/gems/crass/#{s.version}",
|
|
18
|
+
'rubygems_mfa_required' => 'true',
|
|
19
|
+
'source_code_uri' => "https://github.com/rgrove/crass/tree/v#{s.version}",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
s.platform = Gem::Platform::RUBY
|
|
23
|
+
s.required_ruby_version = Gem::Requirement.new('>= 1.9.2')
|
|
24
|
+
|
|
25
|
+
s.require_paths = ['lib']
|
|
26
|
+
|
|
27
|
+
s.files = `git ls-files -z`.split("\x0").grep_v(%r{^test/})
|
|
28
|
+
|
|
29
|
+
# Development dependencies.
|
|
30
|
+
s.add_development_dependency 'minitest', '~> 6.0.6'
|
|
31
|
+
s.add_development_dependency 'rake', '~> 13.4.2'
|
|
32
|
+
end
|