acfs 1.7.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +144 -116
- data/README.md +19 -24
- data/acfs.gemspec +7 -10
- data/lib/acfs/collections/paginatable.rb +11 -11
- data/lib/acfs/configuration.rb +1 -1
- data/lib/acfs/errors.rb +6 -6
- data/lib/acfs/global.rb +2 -2
- data/lib/acfs/location.rb +1 -1
- data/lib/acfs/resource/attributes/uuid.rb +1 -1
- data/lib/acfs/resource/attributes.rb +1 -1
- data/lib/acfs/resource/dirty.rb +1 -1
- data/lib/acfs/resource/operational.rb +4 -4
- data/lib/acfs/resource/query_methods.rb +3 -3
- data/lib/acfs/response/status.rb +1 -1
- data/lib/acfs/service/middleware.rb +2 -2
- data/lib/acfs/singleton_resource.rb +2 -2
- data/lib/acfs/stub.rb +1 -1
- data/lib/acfs/version.rb +2 -2
- data/lib/acfs/yard.rb +1 -0
- data/spec/acfs/adapter/typhoeus_spec.rb +3 -3
- data/spec/acfs/configuration_spec.rb +1 -1
- data/spec/acfs/global_spec.rb +5 -5
- data/spec/acfs/location_spec.rb +1 -1
- data/spec/acfs/middleware/json_spec.rb +1 -1
- data/spec/acfs/middleware/message_pack_spec.rb +1 -1
- data/spec/acfs/operation_spec.rb +1 -1
- data/spec/acfs/resource/attributes/boolean_spec.rb +31 -31
- data/spec/acfs/resource/attributes/date_time_spec.rb +9 -9
- data/spec/acfs/resource/attributes/dict_spec.rb +10 -10
- data/spec/acfs/resource/attributes/float_spec.rb +11 -11
- data/spec/acfs/resource/attributes/integer_spec.rb +6 -6
- data/spec/acfs/resource/attributes/list_spec.rb +1 -1
- data/spec/acfs/resource/attributes/uuid_spec.rb +8 -8
- data/spec/acfs/resource/attributes_spec.rb +8 -8
- data/spec/acfs/resource/dirty_spec.rb +1 -1
- data/spec/acfs/resource/persistence_spec.rb +7 -7
- data/spec/acfs/resource/query_methods_spec.rb +1 -1
- data/spec/acfs/runner_spec.rb +12 -12
- data/spec/acfs/stub_spec.rb +13 -18
- data/spec/acfs_spec.rb +4 -4
- data/spec/spec_helper.rb +9 -5
- data/spec/support/hash.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/README.md +23 -0
- data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/rubocop-config.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/CHANGELOG.md +205 -0
- data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/README.rdoc +57 -0
- data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/CHANGELOG.md +67 -0
- data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/README.rdoc +40 -0
- data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/CHANGELOG.md +110 -0
- data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/README.rdoc +266 -0
- data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/CHANGELOG.md +157 -0
- data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/README.rdoc +40 -0
- data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md +301 -0
- data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt +202 -0
- data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md +121 -0
- data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/addressable.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/README.md +243 -0
- data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/appraisal.gemspec +29 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/README.md +48 -0
- data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +138 -0
- data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/benchmark.gemspec +32 -0
- data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/LICENSE +56 -0
- data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/bigdecimal.gemspec +57 -0
- data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/README.md +258 -0
- data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/builder.gemspec +49 -0
- data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md +603 -0
- data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md +407 -0
- data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/README.md +167 -0
- data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/connection_pool.gemspec +24 -0
- data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/README.md +43 -0
- data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/LICENSE +18 -0
- data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/README.md +192 -0
- data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/crass.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/License.md +41 -0
- data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/README.rdoc +84 -0
- data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/drb.gemspec +41 -0
- data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/CHANGELOG +111 -0
- data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/README.rdoc +151 -0
- data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
- data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/README.md +118 -0
- data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/ethon.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/CHANGELOG.md +465 -0
- data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE +24 -0
- data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE.SPECS +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/README.md +137 -0
- data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/ffi.gemspec +42 -0
- data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/LICENSE +19 -0
- data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/README.md +298 -0
- data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/changelog.md +119 -0
- data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/hashdiff.gemspec +39 -0
- data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/README.md +127 -0
- data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/README.md +195 -0
- data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/json.gemspec +64 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/README.md +104 -0
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/logger.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/CHANGELOG.md +591 -0
- data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/MIT-LICENSE.txt +23 -0
- data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/README.md +410 -0
- data/vendor/bundle/ruby/3.4.0/gems/minitest-5.25.4/README.rdoc +835 -0
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +275 -0
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +121 -0
- data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE-DEPENDENCIES.md +2224 -0
- data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE.md +9 -0
- data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/README.md +293 -0
- data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/CHANGELOG.md +491 -0
- data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/README.md +222 -0
- data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/ChangeLog +846 -0
- data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
- data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/CHANGELOG.md +998 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/README.md +328 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/license.md +72 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/readme.md +47 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/MIT-LICENSE.txt +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/README.md +139 -0
- data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/MIT-LICENSE +23 -0
- data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/README.md +91 -0
- data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/CHANGELOG.md +255 -0
- data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/MIT-LICENSE +23 -0
- data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/README.md +267 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/README.rdoc +155 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/rake.gemspec +101 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE +21 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md +107 -0
- data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/rake-release.gemspec +23 -0
- data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/README.md +57 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/README.md +47 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/Changelog.md +68 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/LICENSE.txt +27 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/README.md +76 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/rspec-collection_matchers.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/Changelog.md +2415 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/LICENSE.md +26 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/README.md +389 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/Changelog.md +1352 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/LICENSE.md +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/README.md +326 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/Changelog.md +73 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/LICENSE.txt +27 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/README.md +104 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/rspec-its.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/Changelog.md +1299 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/LICENSE.md +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/README.md +465 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/Changelog.md +408 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/LICENSE.md +23 -0
- data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/README.md +40 -0
- data/vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md +72 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/LICENSE.md +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/README.md +45 -0
- data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/thor.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/CHANGELOG.md +410 -0
- data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/LICENSE +22 -0
- data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/README.md +588 -0
- data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/typhoeus.gemspec +25 -0
- data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE +19 -0
- data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md +406 -0
- data/vendor/bundle/ruby/3.4.0/gems/uri-1.0.2/README.md +55 -0
- data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/README.md +42 -0
- data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/CHANGELOG.md +2104 -0
- data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/LICENSE +20 -0
- data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/README.md +1222 -0
- data/vendor/bundle/ruby/3.4.0/specifications/actionpack-8.0.1.gemspec +36 -0
- data/vendor/bundle/ruby/3.4.0/specifications/actionview-8.0.1.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/specifications/activemodel-8.0.1.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/activesupport-8.0.1.gemspec +38 -0
- data/vendor/bundle/ruby/3.4.0/specifications/addressable-2.8.7.gemspec +30 -0
- data/vendor/bundle/ruby/3.4.0/specifications/appraisal-2.5.0.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/specifications/base64-0.2.0.gemspec +23 -0
- data/vendor/bundle/ruby/3.4.0/specifications/benchmark-0.4.0.gemspec +23 -0
- data/vendor/bundle/ruby/3.4.0/specifications/bigdecimal-3.1.9.gemspec +25 -0
- data/vendor/bundle/ruby/3.4.0/specifications/builder-3.3.0.gemspec +22 -0
- data/vendor/bundle/ruby/3.4.0/specifications/concurrent-ruby-1.3.5.gemspec +24 -0
- data/vendor/bundle/ruby/3.4.0/specifications/connection_pool-2.5.0.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/specifications/crack-1.0.0.gemspec +27 -0
- data/vendor/bundle/ruby/3.4.0/specifications/crass-1.0.6.gemspec +27 -0
- data/vendor/bundle/ruby/3.4.0/specifications/diff-lcs-1.5.1.gemspec +37 -0
- data/vendor/bundle/ruby/3.4.0/specifications/drb-2.2.1.gemspec +22 -0
- data/vendor/bundle/ruby/3.4.0/specifications/erubi-1.13.1.gemspec +29 -0
- data/vendor/bundle/ruby/3.4.0/specifications/ethon-0.16.0.gemspec +24 -0
- data/vendor/bundle/ruby/3.4.0/specifications/ffi-1.17.1-x86_64-linux-gnu.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/specifications/hashdiff-1.1.2.gemspec +30 -0
- data/vendor/bundle/ruby/3.4.0/specifications/i18n-1.14.6.gemspec +27 -0
- data/vendor/bundle/ruby/3.4.0/specifications/json-2.9.1.gemspec +0 -0
- data/vendor/bundle/ruby/3.4.0/specifications/logger-1.6.5.gemspec +22 -0
- data/vendor/bundle/ruby/3.4.0/specifications/loofah-2.24.0.gemspec +27 -0
- data/vendor/bundle/ruby/3.4.0/specifications/minitest-5.25.4.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/specifications/multi_json-1.15.0.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/nokogiri-1.18.1-x86_64-linux-gnu.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/specifications/public_suffix-6.0.1.gemspec +24 -0
- data/vendor/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rack-3.1.8.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rack-session-2.1.0.gemspec +30 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rack-test-2.2.0.gemspec +29 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rails-dom-testing-2.2.0.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rails-html-sanitizer-1.6.2.gemspec +27 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rake-13.2.1.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rake-release-1.3.0.gemspec +26 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rexml-3.4.0.gemspec +25 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-3.13.0.gemspec +31 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-collection_matchers-1.2.1.gemspec +27 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-core-3.13.2.gemspec +39 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-expectations-3.13.3.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-its-2.0.0.gemspec +27 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-mocks-3.13.2.gemspec +33 -0
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-support-3.13.2.gemspec +29 -0
- data/vendor/bundle/ruby/3.4.0/specifications/securerandom-0.4.1.gemspec +23 -0
- data/vendor/bundle/ruby/3.4.0/specifications/thor-1.3.2.gemspec +28 -0
- data/vendor/bundle/ruby/3.4.0/specifications/typhoeus-1.4.1.gemspec +24 -0
- data/vendor/bundle/ruby/3.4.0/specifications/tzinfo-2.0.6.gemspec +30 -0
- data/vendor/bundle/ruby/3.4.0/specifications/uri-1.0.2.gemspec +23 -0
- data/vendor/bundle/ruby/3.4.0/specifications/useragent-0.16.11.gemspec +25 -0
- data/vendor/bundle/ruby/3.4.0/specifications/webmock-3.24.0.gemspec +45 -0
- metadata +204 -67
@@ -0,0 +1,258 @@
|
|
1
|
+
# Project: Builder
|
2
|
+
|
3
|
+
## Goal
|
4
|
+
|
5
|
+
Provide a simple way to create XML markup and data structures.
|
6
|
+
|
7
|
+
## Classes
|
8
|
+
|
9
|
+
Builder::XmlMarkup:: Generate XML markup notation
|
10
|
+
Builder::XmlEvents:: Generate XML events (i.e. SAX-like)
|
11
|
+
|
12
|
+
**Notes:**
|
13
|
+
|
14
|
+
* An <tt>Builder::XmlTree</tt> class to generate XML tree
|
15
|
+
(i.e. DOM-like) structures is also planned, but not yet implemented.
|
16
|
+
Also, the events builder is currently lagging the markup builder in
|
17
|
+
features.
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'rubygems'
|
23
|
+
require_gem 'builder', '~> 2.0'
|
24
|
+
|
25
|
+
builder = Builder::XmlMarkup.new
|
26
|
+
xml = builder.person { |b| b.name("Jim"); b.phone("555-1234") }
|
27
|
+
xml #=> <person><name>Jim</name><phone>555-1234</phone></person>
|
28
|
+
```
|
29
|
+
|
30
|
+
or
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'rubygems'
|
34
|
+
require_gem 'builder'
|
35
|
+
|
36
|
+
builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2)
|
37
|
+
builder.person { |b| b.name("Jim"); b.phone("555-1234") }
|
38
|
+
#
|
39
|
+
# Prints:
|
40
|
+
# <person>
|
41
|
+
# <name>Jim</name>
|
42
|
+
# <phone>555-1234</phone>
|
43
|
+
# </person>
|
44
|
+
```
|
45
|
+
|
46
|
+
## Compatibility
|
47
|
+
|
48
|
+
### Version 2.0.0 Compatibility Changes
|
49
|
+
|
50
|
+
Version 2.0.0 introduces automatically escaped attribute values for
|
51
|
+
the first time. Versions prior to 2.0.0 did not insert escape
|
52
|
+
characters into attribute values in the XML markup. This allowed
|
53
|
+
attribute values to explicitly reference entities, which was
|
54
|
+
occasionally used by a small number of developers. Since strings
|
55
|
+
could always be explicitly escaped by hand, this was not a major
|
56
|
+
restriction in functionality.
|
57
|
+
|
58
|
+
However, it did surprise most users of builder. Since the body text is
|
59
|
+
normally escaped, everybody expected the attribute values to be
|
60
|
+
escaped as well. Escaped attribute values were the number one support
|
61
|
+
request on the 1.x Builder series.
|
62
|
+
|
63
|
+
Starting with Builder version 2.0.0, all attribute values expressed as
|
64
|
+
strings will be processed and the appropriate characters will be
|
65
|
+
escaped (e.g. "&" will be translated to "&amp;"). Attribute values
|
66
|
+
that are expressed as Symbol values will not be processed for escaped
|
67
|
+
characters and will be unchanged in output. (Yes, this probably counts
|
68
|
+
as Symbol abuse, but the convention is convenient and flexible).
|
69
|
+
|
70
|
+
Example:
|
71
|
+
|
72
|
+
```ruby
|
73
|
+
xml = Builder::XmlMarkup.new
|
74
|
+
xml.sample(:escaped=>"This&That", :unescaped=>:"Here&There")
|
75
|
+
xml.target! =>
|
76
|
+
<sample escaped="This&That" unescaped="Here&There"/>
|
77
|
+
```
|
78
|
+
|
79
|
+
### Version 1.0.0 Compatibility Changes
|
80
|
+
|
81
|
+
Version 1.0.0 introduces some changes that are not backwards
|
82
|
+
compatible with earlier releases of builder. The main areas of
|
83
|
+
incompatibility are:
|
84
|
+
|
85
|
+
* Keyword based arguments to +new+ (rather than positional based). It
|
86
|
+
was found that a developer would often like to specify indentation
|
87
|
+
without providing an explicit target, or specify a target without
|
88
|
+
indentation. Keyword based arguments handle this situation nicely.
|
89
|
+
|
90
|
+
* Builder must now be an explicit target for markup tags. Instead of
|
91
|
+
writing
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
xml_markup = Builder::XmlMarkup.new
|
95
|
+
xml_markup.div { strong("text") }
|
96
|
+
```
|
97
|
+
|
98
|
+
you need to write
|
99
|
+
|
100
|
+
```ruby
|
101
|
+
xml_markup = Builder::XmlMarkup.new
|
102
|
+
xml_markup.div { xml_markup.strong("text") }
|
103
|
+
```
|
104
|
+
|
105
|
+
* The builder object is passed as a parameter to all nested markup
|
106
|
+
blocks. This allows you to create a short alias for the builder
|
107
|
+
object that can be used within the block. For example, the previous
|
108
|
+
example can be written as:
|
109
|
+
|
110
|
+
```ruby
|
111
|
+
xml_markup = Builder::XmlMarkup.new
|
112
|
+
xml_markup.div { |xml| xml.strong("text") }
|
113
|
+
```
|
114
|
+
|
115
|
+
* If you have both a pre-1.0 and a post-1.0 gem of builder installed,
|
116
|
+
you can choose which version to use through the RubyGems
|
117
|
+
+require_gem+ facility.
|
118
|
+
|
119
|
+
```ruby
|
120
|
+
require_gem 'builder', "~> 0.0" # Gets the old version
|
121
|
+
require_gem 'builder', "~> 1.0" # Gets the new version
|
122
|
+
```
|
123
|
+
|
124
|
+
## Features
|
125
|
+
|
126
|
+
* XML Comments are supported ...
|
127
|
+
|
128
|
+
```ruby
|
129
|
+
xml_markup.comment! "This is a comment"
|
130
|
+
#=> <!-- This is a comment -->
|
131
|
+
```
|
132
|
+
|
133
|
+
* XML processing instructions are supported ...
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
xml_markup.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8"
|
137
|
+
#=> <?xml version="1.0" encoding="UTF-8"?>
|
138
|
+
```
|
139
|
+
|
140
|
+
If the processing instruction is omitted, it defaults to "xml".
|
141
|
+
When the processing instruction is "xml", the defaults attributes
|
142
|
+
are:
|
143
|
+
|
144
|
+
<b>version</b>: 1.0
|
145
|
+
<b>encoding</b>: "UTF-8"
|
146
|
+
|
147
|
+
(NOTE: if the encoding is set to "UTF-8" and $KCODE is set to
|
148
|
+
"UTF8", then Builder will emit UTF-8 encoded strings rather than
|
149
|
+
encoding non-ASCII characters as entities.)
|
150
|
+
|
151
|
+
* XML entity declarations are now supported to a small degree.
|
152
|
+
|
153
|
+
```ruby
|
154
|
+
xml_markup.declare! :DOCTYPE, :chapter, :SYSTEM, "../dtds/chapter.dtd"
|
155
|
+
#=> <!DOCTYPE chapter SYSTEM "../dtds/chapter.dtd">
|
156
|
+
```
|
157
|
+
|
158
|
+
The parameters to a declare! method must be either symbols or
|
159
|
+
strings. Symbols are inserted without quotes, and strings are
|
160
|
+
inserted with double quotes. Attribute-like arguments in hashes are
|
161
|
+
not allowed.
|
162
|
+
|
163
|
+
If you need to have an argument to declare! be inserted without
|
164
|
+
quotes, but the argument does not conform to the typical Ruby
|
165
|
+
syntax for symbols, then use the :"string" form to specify a symbol.
|
166
|
+
|
167
|
+
For example:
|
168
|
+
|
169
|
+
```ruby
|
170
|
+
xml_markup.declare! :ELEMENT, :chapter, :"(title,para+)"
|
171
|
+
#=> <!ELEMENT chapter (title,para+)>
|
172
|
+
```
|
173
|
+
|
174
|
+
Nested entity declarations are allowed. For example:
|
175
|
+
|
176
|
+
```ruby
|
177
|
+
@xml_markup.declare! :DOCTYPE, :chapter do |x|
|
178
|
+
x.declare! :ELEMENT, :chapter, :"(title,para+)"
|
179
|
+
x.declare! :ELEMENT, :title, :"(#PCDATA)"
|
180
|
+
x.declare! :ELEMENT, :para, :"(#PCDATA)"
|
181
|
+
end
|
182
|
+
|
183
|
+
#=>
|
184
|
+
|
185
|
+
<!DOCTYPE chapter [
|
186
|
+
<!ELEMENT chapter (title,para+)>
|
187
|
+
<!ELEMENT title (#PCDATA)>
|
188
|
+
<!ELEMENT para (#PCDATA)>
|
189
|
+
]>
|
190
|
+
```
|
191
|
+
|
192
|
+
* Some support for XML namespaces is now available. If the first
|
193
|
+
argument to a tag call is a symbol, it will be joined to the tag to
|
194
|
+
produce a namespace:tag combination. It is easier to show this than
|
195
|
+
describe it.
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
xml.SOAP :Envelope do ... end
|
199
|
+
```
|
200
|
+
|
201
|
+
Just put a space before the colon in a namespace to produce the
|
202
|
+
right form for builder (e.g. "<tt>SOAP:Envelope</tt>" =>
|
203
|
+
"<tt>xml.SOAP :Envelope</tt>")
|
204
|
+
|
205
|
+
* String attribute values are <em>now</em> escaped by default by
|
206
|
+
Builder (<b>NOTE:</b> this is _new_ behavior as of version 2.0).
|
207
|
+
|
208
|
+
However, occasionally you need to use entities in attribute values.
|
209
|
+
Using a symbol (rather than a string) for an attribute value will
|
210
|
+
cause Builder to not run its quoting/escaping algorithm on that
|
211
|
+
particular value.
|
212
|
+
|
213
|
+
(<b>Note:</b> The +escape_attrs+ option for builder is now
|
214
|
+
obsolete).
|
215
|
+
|
216
|
+
Example:
|
217
|
+
|
218
|
+
```ruby
|
219
|
+
xml = Builder::XmlMarkup.new
|
220
|
+
xml.sample(:escaped=>"This&That", :unescaped=>:"Here&There")
|
221
|
+
xml.target! =>
|
222
|
+
<sample escaped="This&That" unescaped="Here&There"/>
|
223
|
+
```
|
224
|
+
|
225
|
+
* UTF-8 Support
|
226
|
+
|
227
|
+
Builder correctly translates UTF-8 characters into valid XML. (New
|
228
|
+
in version 2.0.0). Thanks to Sam Ruby for the translation code.
|
229
|
+
|
230
|
+
You can get UTF-8 encoded output by making sure that the XML
|
231
|
+
encoding is set to "UTF-8" and that the $KCODE variable is set to
|
232
|
+
"UTF8".
|
233
|
+
|
234
|
+
```ruby
|
235
|
+
$KCODE = 'UTF8'
|
236
|
+
xml = Builder::Markup.new
|
237
|
+
xml.instruct!(:xml, :encoding => "UTF-8")
|
238
|
+
xml.sample("Iñtërnâtiônàl")
|
239
|
+
xml.target! =>
|
240
|
+
"<sample>Iñtërnâtiônàl</sample>"
|
241
|
+
```
|
242
|
+
|
243
|
+
## Links
|
244
|
+
|
245
|
+
| Description | Link |
|
246
|
+
| :----: | :----: |
|
247
|
+
| Documents | http://builder.rubyforge.org/ |
|
248
|
+
| Github Clone | git://github.com/rails/builder.git |
|
249
|
+
| Issue / Bug Reports | https://github.com/rails/builder/issues?state=open |
|
250
|
+
|
251
|
+
## Contact
|
252
|
+
|
253
|
+
| Description | Value |
|
254
|
+
| :----: | :----: |
|
255
|
+
| Author | Jim Weirich |
|
256
|
+
| Email | jim.weirich@gmail.com |
|
257
|
+
| Home Page | http://onestepback.org |
|
258
|
+
| License | MIT Licence (http://www.opensource.org/licenses/mit-license.html) |
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require './lib/builder/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
|
6
|
+
#### Basic information.
|
7
|
+
|
8
|
+
s.name = 'builder'
|
9
|
+
s.version = Builder::VERSION
|
10
|
+
s.summary = "Builders for MarkUp."
|
11
|
+
s.description = %{\
|
12
|
+
Builder provides a number of builder objects that make creating structured data
|
13
|
+
simple to do. Currently the following builder objects are supported:
|
14
|
+
|
15
|
+
* XML Markup
|
16
|
+
* XML Events
|
17
|
+
}
|
18
|
+
|
19
|
+
pkg_files = Dir[
|
20
|
+
'[A-Z]*',
|
21
|
+
'doc/**/*',
|
22
|
+
'lib/**/*.rb',
|
23
|
+
'test/**/*.rb',
|
24
|
+
'rakelib/**/*'
|
25
|
+
]
|
26
|
+
|
27
|
+
s.files = pkg_files
|
28
|
+
s.require_path = 'lib'
|
29
|
+
|
30
|
+
s.test_files = pkg_files.select { |fn| fn =~ /^test\/test/ }
|
31
|
+
|
32
|
+
# s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
|
33
|
+
s.rdoc_options <<
|
34
|
+
'--title' << 'Builder -- Easy XML Building' <<
|
35
|
+
'--main' << 'README.rdoc' <<
|
36
|
+
'--line-numbers'
|
37
|
+
|
38
|
+
s.authors = ["Jim Weirich", "Aaron Patterson"]
|
39
|
+
s.email = "aron.patterson@gmail.com"
|
40
|
+
s.homepage = "https://github.com/rails/builder"
|
41
|
+
s.license = 'MIT'
|
42
|
+
s.metadata = {
|
43
|
+
"bug_tracker_uri" => "#{s.homepage}/issues",
|
44
|
+
"changelog_uri" => "#{s.homepage}/blob/master/CHANGES",
|
45
|
+
"documentation_uri" => "https://www.rubydoc.info/gems/builder/#{s.version}",
|
46
|
+
"homepage_uri" => s.homepage,
|
47
|
+
"source_code_uri" => "#{s.homepage}/tree/v#{s.version}"
|
48
|
+
}
|
49
|
+
end
|