restify 2.0.2 → 2.1.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 +8 -0
- data/README.md +1 -1
- data/lib/restify/adapter/base.rb +1 -1
- data/lib/restify/cache.rb +1 -1
- data/lib/restify/relation.rb +1 -9
- data/lib/restify/response.rb +2 -2
- data/lib/restify/version.rb +2 -2
- data/spec/restify/adapter/base_spec.rb +33 -0
- data/spec/restify/context_spec.rb +2 -2
- data/spec/restify/features/opentelemetry_spec.rb +1 -1
- data/spec/restify/global_spec.rb +50 -1
- data/spec/restify/link_spec.rb +13 -3
- data/spec/restify/relation_spec.rb +25 -6
- data/spec/restify/resource_spec.rb +6 -0
- data/spec/restify_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/CHANGELOG.md +561 -0
- data/vendor/bundle/ruby/{3.4.0/gems/activesupport-8.0.2 → 4.0.0/gems/activesupport-8.1.3}/README.rdoc +1 -1
- data/vendor/bundle/ruby/{3.4.0/gems/addressable-2.8.7 → 4.0.0/gems/addressable-2.9.0}/CHANGELOG.md +71 -46
- data/vendor/bundle/ruby/{3.4.0/gems/addressable-2.8.7 → 4.0.0/gems/addressable-2.9.0}/README.md +6 -6
- data/vendor/bundle/ruby/4.0.0/gems/ast-2.4.3/LICENSE.MIT +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/ast-2.4.3/README.YARD.md +12 -0
- data/vendor/bundle/ruby/{3.4.0/gems/concurrent-ruby-1.3.5 → 4.0.0/gems/concurrent-ruby-1.3.7}/CHANGELOG.md +12 -0
- data/vendor/bundle/ruby/{3.4.0/gems/concurrent-ruby-1.3.5 → 4.0.0/gems/concurrent-ruby-1.3.7}/README.md +4 -2
- data/vendor/bundle/ruby/{3.4.0/gems/connection_pool-2.5.3 → 4.0.0/gems/connection_pool-3.0.2}/README.md +49 -34
- data/vendor/bundle/ruby/4.0.0/gems/crack-1.0.1/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/crack-1.0.1/README.md +43 -0
- data/vendor/bundle/ruby/4.0.0/gems/diff-lcs-1.6.2/CHANGELOG.md +518 -0
- data/vendor/bundle/ruby/4.0.0/gems/diff-lcs-1.6.2/README.md +92 -0
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/LICENSE +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/README.md +409 -0
- data/vendor/bundle/ruby/{3.4.0/gems/ethon-0.16.0 → 4.0.0/gems/ethon-0.18.0}/CHANGELOG.md +43 -1
- data/vendor/bundle/ruby/{3.4.0/gems/ethon-0.16.0 → 4.0.0/gems/ethon-0.18.0}/README.md +1 -1
- data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/CHANGELOG.md +34 -0
- data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/README.md +1 -0
- data/vendor/bundle/ruby/4.0.0/gems/hashdiff-1.2.1/LICENSE +19 -0
- data/vendor/bundle/ruby/4.0.0/gems/hashdiff-1.2.1/README.md +323 -0
- data/vendor/bundle/ruby/4.0.0/gems/hashdiff-1.2.1/changelog.md +127 -0
- data/vendor/bundle/ruby/{3.4.0/gems/hitimes-3.1.0 → 4.0.0/gems/hitimes-3.2.0}/README.md +1 -1
- data/vendor/bundle/ruby/{3.4.0/gems/i18n-1.14.7 → 4.0.0/gems/i18n-1.15.2}/README.md +13 -1
- data/vendor/bundle/ruby/4.0.0/gems/json-2.19.9/README.md +310 -0
- data/vendor/bundle/ruby/4.0.0/gems/language_server-protocol-3.17.0.5/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/language_server-protocol-3.17.0.5/README.md +88 -0
- data/vendor/bundle/ruby/4.0.0/gems/lint_roller-1.1.0/CHANGELOG.md +15 -0
- data/vendor/bundle/ruby/4.0.0/gems/lint_roller-1.1.0/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/lint_roller-1.1.0/README.md +173 -0
- data/vendor/bundle/ruby/{3.4.0/gems/minitest-5.25.5 → 4.0.0/gems/minitest-6.0.6}/README.rdoc +21 -100
- data/vendor/bundle/ruby/{3.4.0/gems/msgpack-1.8.0 → 4.0.0/gems/msgpack-1.8.3}/ChangeLog +15 -0
- data/vendor/bundle/ruby/{3.4.0/gems/msgpack-1.8.0 → 4.0.0/gems/msgpack-1.8.3}/README.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/multi_json-1.21.1/LICENSE.md +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/multi_json-1.21.1/README.md +281 -0
- data/vendor/bundle/ruby/4.0.0/gems/nio4r-2.7.5/ext/libev/LICENSE +37 -0
- data/vendor/bundle/ruby/4.0.0/gems/nio4r-2.7.5/ext/libev/README +59 -0
- data/vendor/bundle/ruby/4.0.0/gems/nio4r-2.7.5/license.md +80 -0
- data/vendor/bundle/ruby/4.0.0/gems/nio4r-2.7.5/readme.md +91 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-api-1.10.0/CHANGELOG.md +219 -0
- data/vendor/bundle/ruby/{3.4.0/gems/opentelemetry-common-0.22.0 → 4.0.0/gems/opentelemetry-common-0.25.0}/CHANGELOG.md +12 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-instrumentation-base-0.26.1/CHANGELOG.md +97 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-instrumentation-base-0.26.1/LICENSE +201 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-instrumentation-base-0.26.1/README.md +155 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-instrumentation-ethon-0.29.0/CHANGELOG.md +192 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-instrumentation-ethon-0.29.0/LICENSE +201 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-instrumentation-ethon-0.29.0/README.md +66 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-registry-0.6.0/CHANGELOG.md +31 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-registry-0.6.0/LICENSE +201 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-registry-0.6.0/README.md +40 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-sdk-1.12.0/CHANGELOG.md +302 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-sdk-1.12.0/LICENSE +201 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-sdk-1.12.0/README.md +101 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-semantic_conventions-1.41.0/CHANGELOG.md +65 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-semantic_conventions-1.41.0/LICENSE +201 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-semantic_conventions-1.41.0/README.md +115 -0
- data/vendor/bundle/ruby/4.0.0/gems/parallel-2.1.0/MIT-LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/parser-3.3.11.1/LICENSE.txt +26 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/CHANGELOG.md +786 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/LICENSE.md +7 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/README.md +143 -0
- data/vendor/bundle/ruby/4.0.0/gems/public_suffix-7.0.5/CHANGELOG.md +649 -0
- data/vendor/bundle/ruby/{3.4.0/gems/public_suffix-6.0.2 → 4.0.0/gems/public_suffix-7.0.5}/LICENSE.txt +1 -1
- data/vendor/bundle/ruby/{3.4.0/gems/public_suffix-6.0.2 → 4.0.0/gems/public_suffix-7.0.5}/README.md +38 -29
- data/vendor/bundle/ruby/4.0.0/gems/puma-8.0.2/LICENSE +29 -0
- data/vendor/bundle/ruby/4.0.0/gems/puma-8.0.2/README.md +484 -0
- data/vendor/bundle/ruby/4.0.0/gems/puma-8.0.2/docs/jungle/README.md +9 -0
- data/vendor/bundle/ruby/4.0.0/gems/puma-8.0.2/docs/jungle/rc.d/README.md +74 -0
- data/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ChangeLog +846 -0
- data/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
- data/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/README.rdoc +60 -0
- data/vendor/bundle/ruby/{3.4.0/gems/rack-3.1.15 → 4.0.0/gems/rack-3.2.6}/CHANGELOG.md +216 -16
- data/vendor/bundle/ruby/{3.4.0/gems/rack-3.1.15 → 4.0.0/gems/rack-3.2.6}/README.md +49 -20
- data/vendor/bundle/ruby/4.0.0/gems/rainbow-3.1.1/Changelog.md +101 -0
- data/vendor/bundle/ruby/4.0.0/gems/rainbow-3.1.1/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rainbow-3.1.1/README.markdown +227 -0
- data/vendor/bundle/ruby/{3.4.0/gems/rake-13.2.1 → 4.0.0/gems/rake-13.4.2}/README.rdoc +5 -5
- data/vendor/bundle/ruby/4.0.0/gems/regexp_parser-2.12.0/LICENSE +22 -0
- data/vendor/bundle/ruby/4.0.0/gems/rexml-3.4.4/README.md +57 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-3.13.2/LICENSE.md +27 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-3.13.2/README.md +47 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-core-3.13.6/Changelog.md +2447 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-core-3.13.6/LICENSE.md +26 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-core-3.13.6/README.md +389 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-expectations-3.13.5/Changelog.md +1366 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-expectations-3.13.5/LICENSE.md +25 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-expectations-3.13.5/README.md +326 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-mocks-3.13.8/Changelog.md +1351 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-mocks-3.13.8/LICENSE.md +25 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-mocks-3.13.8/README.md +465 -0
- data/vendor/bundle/ruby/4.0.0/gems/rspec-support-3.13.7/Changelog.md +444 -0
- data/vendor/bundle/ruby/{3.4.0/gems/multi_json-1.15.0 → 4.0.0/gems/rspec-support-3.13.7}/LICENSE.md +4 -1
- data/vendor/bundle/ruby/4.0.0/gems/rspec-support-3.13.7/README.md +40 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-1.88.0/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-1.88.0/README.md +255 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-ast-1.49.1/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-ast-1.49.1/README.md +54 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-capybara-2.23.0/CHANGELOG.md +116 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-capybara-2.23.0/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-capybara-2.23.0/README.md +91 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-factory_bot-2.28.0/CHANGELOG.md +135 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-factory_bot-2.28.0/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-factory_bot-2.28.0/README.md +91 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-performance-1.26.1/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-performance-1.26.1/README.md +100 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec-3.10.2/CHANGELOG.md +1136 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec-3.10.2/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec-3.10.2/README.md +112 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec_rails-2.32.0/CHANGELOG.md +98 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec_rails-2.32.0/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec_rails-2.32.0/README.md +93 -0
- data/vendor/bundle/ruby/4.0.0/gems/ruby-progressbar-1.13.0/LICENSE.txt +19 -0
- data/vendor/bundle/ruby/4.0.0/gems/ruby-progressbar-1.13.0/README.md +131 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/CHANGELOG.md +191 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/README.md +974 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-cobertura-3.2.0/LICENSE +202 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-cobertura-3.2.0/README.md +65 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/CHANGELOG.md +114 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/README.md +30 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/CHANGELOG.md +13 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/README.md +29 -0
- data/vendor/bundle/ruby/{3.4.0/gems/typhoeus-1.4.1 → 4.0.0/gems/typhoeus-1.6.0}/CHANGELOG.md +56 -1
- data/vendor/bundle/ruby/{3.4.0/gems/typhoeus-1.4.1 → 4.0.0/gems/typhoeus-1.6.0}/README.md +2 -2
- data/vendor/bundle/ruby/4.0.0/gems/unicode-display_width-3.2.0/CHANGELOG.md +299 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-display_width-3.2.0/MIT-LICENSE.txt +22 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-display_width-3.2.0/README.md +194 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-emoji-4.2.0/CHANGELOG.md +202 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-emoji-4.2.0/MIT-LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-emoji-4.2.0/README.md +205 -0
- data/vendor/bundle/ruby/4.0.0/gems/webmock-3.26.2/CHANGELOG.md +2148 -0
- data/vendor/bundle/ruby/4.0.0/gems/webmock-3.26.2/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/webmock-3.26.2/README.md +1229 -0
- metadata +170 -65
- data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/CHANGELOG.md +0 -255
- data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +0 -138
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +0 -275
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +0 -121
- data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/CHANGELOG.md +0 -193
- data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/CHANGELOG.md +0 -498
- /data/vendor/bundle/ruby/{3.4.0/bundler/gems/my-rubocop-3bcd2110ca87 → 4.0.0/bundler/gems/my-rubocop-2b861962124a}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/bundler/gems/my-rubocop-3bcd2110ca87 → 4.0.0/bundler/gems/my-rubocop-2b861962124a}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/activesupport-8.0.2 → 4.0.0/gems/activesupport-8.1.3}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/addressable-2.8.7 → 4.0.0/gems/addressable-2.9.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/base64-0.2.0 → 4.0.0/gems/base64-0.3.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/bigdecimal-3.1.9 → 4.0.0/gems/bigdecimal-4.1.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/concurrent-ruby-1.3.5 → 4.0.0/gems/concurrent-ruby-1.3.7}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/connection_pool-2.5.3 → 4.0.0/gems/connection_pool-3.0.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/base64-0.2.0 → 4.0.0/gems/drb-2.2.3}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/ethon-0.16.0 → 4.0.0/gems/ethon-0.18.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/LICENSE.SPECS +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/hitimes-3.1.0 → 4.0.0/gems/hitimes-3.2.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/i18n-1.14.7 → 4.0.0/gems/i18n-1.15.2}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/little-plugger-1.1.4/README.rdoc +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/logger-1.7.0/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/logging-2.4.0/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/logging-2.4.0/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/msgpack-1.8.0 → 4.0.0/gems/msgpack-1.8.3}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/opentelemetry-api-1.5.0 → 4.0.0/gems/opentelemetry-api-1.10.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/opentelemetry-api-1.5.0 → 4.0.0/gems/opentelemetry-api-1.10.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/opentelemetry-common-0.22.0 → 4.0.0/gems/opentelemetry-common-0.25.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/opentelemetry-common-0.22.0 → 4.0.0/gems/opentelemetry-common-0.25.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rack-3.1.15 → 4.0.0/gems/rack-3.2.6}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rake-13.2.1 → 4.0.0/gems/rake-13.4.2}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rake-release-1.3.0 → 4.0.0/gems/rake-release-1.4.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rake-release-1.3.0 → 4.0.0/gems/rake-release-1.4.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/drb-2.2.1 → 4.0.0/gems/rexml-3.4.4}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/securerandom-0.4.1/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/typhoeus-1.4.1 → 4.0.0/gems/typhoeus-1.6.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/tzinfo-2.0.6/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/tzinfo-2.0.6/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/uri-1.0.3 → 4.0.0/gems/uri-1.1.1}/README.md +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Rainbow changelog
|
|
2
|
+
|
|
3
|
+
## 3.1.0 (2020-08-26)
|
|
4
|
+
|
|
5
|
+
- added `cross_out` aka `strike`
|
|
6
|
+
- hexadecimal color names supported better, see #83
|
|
7
|
+
- gemspec: list files using a Ruby expression, avoiding git
|
|
8
|
+
|
|
9
|
+
## 3.0.0 (2017-11-29)
|
|
10
|
+
|
|
11
|
+
* added String refinement
|
|
12
|
+
* added new `Rainbow.uncolor` method
|
|
13
|
+
* dropped MRI 1.9.3 compatibility
|
|
14
|
+
* dropped MRI 2.0 compatibility
|
|
15
|
+
* removed Rake dependency
|
|
16
|
+
|
|
17
|
+
## 2.2.2 (2017-04-21)
|
|
18
|
+
|
|
19
|
+
* added explicit rake dependency to fix installation issue
|
|
20
|
+
|
|
21
|
+
## 2.2.1 (2016-12-28)
|
|
22
|
+
|
|
23
|
+
* fixed gem installation (2.2.0 was a broken release)
|
|
24
|
+
|
|
25
|
+
## 2.2.0 (2016-12-27)
|
|
26
|
+
|
|
27
|
+
* improved Windows support
|
|
28
|
+
* added Ruby 2.4 support
|
|
29
|
+
* added `bold` alias method for `bright`
|
|
30
|
+
|
|
31
|
+
## 2.1.0 (2016-01-24)
|
|
32
|
+
|
|
33
|
+
* added X11 color support
|
|
34
|
+
* fixed `require` issue when rainbow is used as a dependency in another gem
|
|
35
|
+
* improved Windows support
|
|
36
|
+
|
|
37
|
+
## 2.0.0 (2014-01-24)
|
|
38
|
+
|
|
39
|
+
* disable string mixin by default
|
|
40
|
+
|
|
41
|
+
## 1.99.2 (2014-01-24)
|
|
42
|
+
|
|
43
|
+
* bring back ruby 1.8 support
|
|
44
|
+
|
|
45
|
+
## 1.99.1 (2013-12-28)
|
|
46
|
+
|
|
47
|
+
* drop support for ruby 1.8
|
|
48
|
+
* `require "rainbow/string"` -> `require "rainbow/ext/string"`
|
|
49
|
+
* custom rainbow wrapper instances (with separate enabled/disabled state)
|
|
50
|
+
* shortcut methods for changing text color (`Rainbow("foo").red`)
|
|
51
|
+
|
|
52
|
+
## 1.99.0 (2013-12-26)
|
|
53
|
+
|
|
54
|
+
* preparation for dropping String monkey patching
|
|
55
|
+
* `require "rainbow/string"` if you want to use monkey patched String
|
|
56
|
+
* introduction of Rainbow() wrapper
|
|
57
|
+
* support for MRI 1.8.7, 1.9.2, 1.9.3, 2.0 and 2.1, JRuby and Rubinius
|
|
58
|
+
* deprecation of Sickill::Rainbow namespace (use Rainbow.enabled = true instead)
|
|
59
|
+
|
|
60
|
+
## 1.1.4 (2012-4-28)
|
|
61
|
+
|
|
62
|
+
* option for forcing coloring even when STDOUT is not a TTY (CLICOLOR_FORCE env var)
|
|
63
|
+
* fix for frozen strings
|
|
64
|
+
|
|
65
|
+
## 1.1.3 (2011-12-6)
|
|
66
|
+
|
|
67
|
+
* improved compatibility with MRI 1.8.7
|
|
68
|
+
* fix for regression with regards to original string mutation
|
|
69
|
+
|
|
70
|
+
## 1.1.2 (2011-11-13)
|
|
71
|
+
|
|
72
|
+
* improved compatibility with MRI 1.9.3
|
|
73
|
+
|
|
74
|
+
## 1.1.1 (2011-2-7)
|
|
75
|
+
|
|
76
|
+
* improved Windows support
|
|
77
|
+
|
|
78
|
+
## 1.1 (2010-6-7)
|
|
79
|
+
|
|
80
|
+
* option for enabling/disabling of escape code wrapping
|
|
81
|
+
* auto-disabling when STDOUT is not a TTY
|
|
82
|
+
|
|
83
|
+
## 1.0.4 (2009-11-27)
|
|
84
|
+
|
|
85
|
+
* support for 256 colors
|
|
86
|
+
|
|
87
|
+
## 1.0.3 (2009-7-26)
|
|
88
|
+
|
|
89
|
+
* rainbow methods don't mutate the original string object anymore
|
|
90
|
+
|
|
91
|
+
## 1.0.2 (2009-5-15)
|
|
92
|
+
|
|
93
|
+
* improved support for ruby 1.8.6 and 1.9.1
|
|
94
|
+
|
|
95
|
+
## 1.0.1 (2009-3-19)
|
|
96
|
+
|
|
97
|
+
* Windows support
|
|
98
|
+
|
|
99
|
+
## 1.0.0 (2008-7-21)
|
|
100
|
+
|
|
101
|
+
* initial version
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) Marcin Kulik
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Rainbow
|
|
2
|
+
|
|
3
|
+
[](https://rubygems.org/gems/rainbow)
|
|
4
|
+
[](https://travis-ci.org/sickill/rainbow)
|
|
5
|
+
[](https://ci.appveyor.com/project/sickill/rainbow)
|
|
6
|
+
[](https://codeclimate.com/github/sickill/rainbow)
|
|
7
|
+
[](https://coveralls.io/r/sickill/rainbow)
|
|
8
|
+
|
|
9
|
+
Rainbow is a ruby gem for colorizing printed text on ANSI terminals.
|
|
10
|
+
|
|
11
|
+
It provides a string presenter object, which adds several methods to your
|
|
12
|
+
strings for wrapping them in [ANSI escape
|
|
13
|
+
codes](http://en.wikipedia.org/wiki/ANSI_escape_code). These codes when printed
|
|
14
|
+
in a terminal change text attributes like text color, background color,
|
|
15
|
+
intensity etc.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
To make your string colored wrap it with `Rainbow()` presenter and call
|
|
20
|
+
`.color(<color name>)` on it.
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'rainbow'
|
|
26
|
+
|
|
27
|
+
puts Rainbow("this is red").red + " and " + Rainbow("this on yellow bg").bg(:yellow) + " and " + Rainbow("even bright underlined!").underline.bright
|
|
28
|
+
|
|
29
|
+
# => "\e[31mthis is red\e[0m and \e[43mthis on yellow bg\e[0m and \e[4m\e[1meven bright underlined!\e[0m"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
Or, [watch this video example](https://asciinema.org/a/J928KpHoUQ0sl54ulOSOLE71E?rows=20&speed=2.5)
|
|
35
|
+
|
|
36
|
+
### Rainbow presenter API
|
|
37
|
+
|
|
38
|
+
Rainbow presenter adds the following methods to presented string:
|
|
39
|
+
|
|
40
|
+
* `color(c)` (with `foreground`, and `fg` aliases)
|
|
41
|
+
* `background(c)` (with `bg` alias)
|
|
42
|
+
* `bright`
|
|
43
|
+
* `underline`
|
|
44
|
+
* `blink`
|
|
45
|
+
* `inverse`
|
|
46
|
+
* `hide`
|
|
47
|
+
* `faint` (not well supported by terminal emulators)
|
|
48
|
+
* `italic` (not well supported by terminal emulators)
|
|
49
|
+
* `cross_out`, `strike`
|
|
50
|
+
|
|
51
|
+
Text color can also be changed by calling a method named by a color:
|
|
52
|
+
|
|
53
|
+
* `black`
|
|
54
|
+
* `red`
|
|
55
|
+
* `green`
|
|
56
|
+
* `yellow`
|
|
57
|
+
* `blue`
|
|
58
|
+
* `magenta`
|
|
59
|
+
* `cyan`
|
|
60
|
+
* `white`
|
|
61
|
+
* `aqua`
|
|
62
|
+
* `silver`
|
|
63
|
+
* `aliceblue`
|
|
64
|
+
* `indianred`
|
|
65
|
+
|
|
66
|
+
All of the methods return `self` (the presenter object) so you can chain method
|
|
67
|
+
calls:
|
|
68
|
+
|
|
69
|
+
```ruby
|
|
70
|
+
Rainbow("hola!").blue.bright.underline
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Refinement
|
|
74
|
+
|
|
75
|
+
If you want to use the Refinements version, you can:
|
|
76
|
+
|
|
77
|
+
```ruby
|
|
78
|
+
require 'rainbow/refinement'
|
|
79
|
+
using Rainbow
|
|
80
|
+
puts "Hi!".green
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Here's an IRB session example:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
>> 'Hello, World!'.blue.bright.underline
|
|
87
|
+
NoMethodError: undefined method `blue' for "Hello, World!":String
|
|
88
|
+
(ripl):1:in `<main>'
|
|
89
|
+
>> using Rainbow
|
|
90
|
+
=> main
|
|
91
|
+
>> 'Hello, World!'.blue.bright.underline
|
|
92
|
+
=> "\e[34m\e[1m\e[4mHello, World!\e[0m"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Color specification
|
|
96
|
+
|
|
97
|
+
Both `color` and `background` accept color specified in any
|
|
98
|
+
of the following ways:
|
|
99
|
+
|
|
100
|
+
* ANSI color number (where 0 is black, 1 is red, 2 is green and so on):
|
|
101
|
+
`Rainbow("hello").color(1)`
|
|
102
|
+
|
|
103
|
+
* [ANSI color](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) name or [X11 color](https://en.wikipedia.org/wiki/X11_color_names) name as a symbol:
|
|
104
|
+
`Rainbow("hello").color(:yellow)`.
|
|
105
|
+
This can be simplified to `Rainbow("hello").yellow`
|
|
106
|
+
|
|
107
|
+
See [Color list](#user-content-color-list) for all available color names.
|
|
108
|
+
Note that ANSI colors can be changed in accordance with terminal setting.
|
|
109
|
+
But X11 color is just a syntax sugar for RGB triplet. So you always see what you specified.
|
|
110
|
+
|
|
111
|
+
* RGB triplet as separate values in the range 0-255:
|
|
112
|
+
`Rainbow("hello").color(115, 23, 98)`
|
|
113
|
+
|
|
114
|
+
* RGB triplet as a hex string:
|
|
115
|
+
`Rainbow("hello").color("FFC482")` or `Rainbow("hello").color("#FFC482")`
|
|
116
|
+
|
|
117
|
+
When you specify a color with a RGB triplet rainbow finds the nearest match
|
|
118
|
+
from 256 colors palette. Note that it requires a 256-colors capable terminal to
|
|
119
|
+
display correctly.
|
|
120
|
+
|
|
121
|
+
#### Example: Choose a random color
|
|
122
|
+
|
|
123
|
+
You can pick a random color with Rainbow, it's a one-liner:
|
|
124
|
+
|
|
125
|
+
```ruby
|
|
126
|
+
colors = Range.new(0,7).to_a
|
|
127
|
+
"whoop dee doop".chars.map { |char| Rainbow(char).color(colors.sample) }.join
|
|
128
|
+
# => "\e[36mw\e[0m\e[37mh\e[0m\e[34mo\e[0m\e[34mo\e[0m\e[37mp\e[0m\e[34m \e[0m\e[36md\e[0m\e[33me\e[0m\e[34me\e[0m\e[37m \e[0m\e[32md\e[0m\e[35mo\e[0m\e[33mo\e[0m\e[36mp\e[0m"
|
|
129
|
+
|
|
130
|
+
colors = [:aliceblue, :antiquewhite, :aqua, :aquamarine, :azure, :beige, :bisque, :blanchedalmond, :blueviolet]
|
|
131
|
+
"whoop dee doop".chars.map { |char| Rainbow(char).color(colors.sample) }.join
|
|
132
|
+
# => "\e[38;5;135mw\e[0m\e[38;5;230mh\e[0m\e[38;5;231mo\e[0m\e[38;5;135mo\e[0m\e[38;5;231mp\e[0m\e[38;5;231m \e[0m\e[38;5;122md\e[0m\e[38;5;231me\e[0m\e[38;5;231me\e[0m\e[38;5;230m \e[0m\e[38;5;122md\e[0m\e[38;5;51mo\e[0m\e[38;5;51mo\e[0m\e[38;5;51mp\e[0m"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Configuration
|
|
136
|
+
|
|
137
|
+
Rainbow can be enabled/disabled globally by setting:
|
|
138
|
+
|
|
139
|
+
```ruby
|
|
140
|
+
Rainbow.enabled = true/false
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
When disabled all the methods return an unmodified string
|
|
144
|
+
(`Rainbow("hello").red == "hello"`).
|
|
145
|
+
|
|
146
|
+
It's enabled by default, unless STDOUT/STDERR is not a TTY or a terminal is
|
|
147
|
+
dumb.
|
|
148
|
+
|
|
149
|
+
### Advanced usage
|
|
150
|
+
|
|
151
|
+
`Rainbow()` and `Rainbow.enabled` operate on the global Rainbow wrapper
|
|
152
|
+
instance. If you would like to selectively enable/disable coloring in separate
|
|
153
|
+
parts of your application you can get a new Rainbow wrapper instance for each
|
|
154
|
+
of them and control the state of coloring during the runtime.
|
|
155
|
+
|
|
156
|
+
```ruby
|
|
157
|
+
rainbow_one = Rainbow.new
|
|
158
|
+
rainbow_two = Rainbow.new
|
|
159
|
+
|
|
160
|
+
rainbow_one.enabled = false
|
|
161
|
+
|
|
162
|
+
Rainbow("hello").red # => "\e[31mhello\e[0m" ("hello" if not on TTY)
|
|
163
|
+
rainbow_one.wrap("hello").red # => "hello"
|
|
164
|
+
rainbow_two.wrap("hello").red # => "\e[31mhello\e[0m" ("hello" if not on TTY)
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
By default each new instance inherits enabled/disabled state from the global
|
|
168
|
+
`Rainbow.enabled`.
|
|
169
|
+
|
|
170
|
+
This feature comes handy for example when you have multiple output formatters
|
|
171
|
+
in your application and some of them print to a terminal but others write to a
|
|
172
|
+
file. Normally rainbow would detect that STDIN/STDERR is a TTY and would
|
|
173
|
+
colorize all the strings, even the ones that go through file writing
|
|
174
|
+
formatters. You can easily solve that by disabling coloring for the Rainbow
|
|
175
|
+
instances that are used by formatters with file output.
|
|
176
|
+
|
|
177
|
+
## Installation
|
|
178
|
+
|
|
179
|
+
Add it to your Gemfile:
|
|
180
|
+
|
|
181
|
+
```ruby
|
|
182
|
+
gem 'rainbow'
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Or just install it via rubygems:
|
|
186
|
+
|
|
187
|
+
```ruby
|
|
188
|
+
gem install rainbow
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Color list
|
|
192
|
+
|
|
193
|
+
### ANSI colors
|
|
194
|
+
|
|
195
|
+
`black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`
|
|
196
|
+
|
|
197
|
+
### X11 colors
|
|
198
|
+
|
|
199
|
+
`aliceblue`, `antiquewhite`, `aqua`, `aquamarine`, `azure`, `beige`, `bisque`,
|
|
200
|
+
`blanchedalmond`, `blueviolet`, `brown`, `burlywood`, `cadetblue`, `chartreuse`,
|
|
201
|
+
`chocolate`, `coral`, `cornflower`, `cornsilk`, `crimson`, `darkblue`,
|
|
202
|
+
`darkcyan`, `darkgoldenrod`, `darkgray`, `darkgreen`, `darkkhaki`,
|
|
203
|
+
`darkmagenta`, `darkolivegreen`, `darkorange`, `darkorchid`, `darkred`,
|
|
204
|
+
`darksalmon`, `darkseagreen`, `darkslateblue`, `darkslategray`, `darkturquoise`,
|
|
205
|
+
`darkviolet`, `deeppink`, `deepskyblue`, `dimgray`, `dodgerblue`, `firebrick`,
|
|
206
|
+
`floralwhite`, `forestgreen`, `fuchsia`, `gainsboro`, `ghostwhite`, `gold`,
|
|
207
|
+
`goldenrod`, `gray`, `greenyellow`, `honeydew`, `hotpink`, `indianred`,
|
|
208
|
+
`indigo`, `ivory`, `khaki`, `lavender`, `lavenderblush`, `lawngreen`,
|
|
209
|
+
`lemonchiffon`, `lightblue`, `lightcoral`, `lightcyan`, `lightgoldenrod`,
|
|
210
|
+
`lightgray`, `lightgreen`, `lightpink`, `lightsalmon`, `lightseagreen`,
|
|
211
|
+
`lightskyblue`, `lightslategray`, `lightsteelblue`, `lightyellow`, `lime`,
|
|
212
|
+
`limegreen`, `linen`, `maroon`, `mediumaquamarine`, `mediumblue`,
|
|
213
|
+
`mediumorchid`, `mediumpurple`, `mediumseagreen`, `mediumslateblue`,
|
|
214
|
+
`mediumspringgreen`, `mediumturquoise`, `mediumvioletred`, `midnightblue`,
|
|
215
|
+
`mintcream`, `mistyrose`, `moccasin`, `navajowhite`, `navyblue`, `oldlace`,
|
|
216
|
+
`olive`, `olivedrab`, `orange`, `orangered`, `orchid`, `palegoldenrod`,
|
|
217
|
+
`palegreen`, `paleturquoise`, `palevioletred`, `papayawhip`, `peachpuff`,
|
|
218
|
+
`peru`, `pink`, `plum`, `powderblue`, `purple`, `rebeccapurple`, `rosybrown`,
|
|
219
|
+
`royalblue`, `saddlebrown`, `salmon`, `sandybrown`, `seagreen`, `seashell`,
|
|
220
|
+
`sienna`, `silver`, `skyblue`, `slateblue`, `slategray`, `snow`, `springgreen`,
|
|
221
|
+
`steelblue`, `tan`, `teal`, `thistle`, `tomato`, `turquoise`, `violet`,
|
|
222
|
+
`webgray`, `webgreen`, `webmaroon`, `webpurple`, `wheat`, `whitesmoke`,
|
|
223
|
+
`yellowgreen`
|
|
224
|
+
|
|
225
|
+
## Authors
|
|
226
|
+
|
|
227
|
+
[Marcin Kulik](http://ku1ik.com/) and [great open-source contributors](https://github.com/sickill/rainbow/graphs/contributors).
|
|
@@ -74,10 +74,10 @@ Type "rake --help" for all available options.
|
|
|
74
74
|
|
|
75
75
|
=== Rake Information
|
|
76
76
|
|
|
77
|
-
* {Rake command-line}[
|
|
78
|
-
* {Writing Rakefiles}[
|
|
79
|
-
* The original {Rake announcement}[
|
|
80
|
-
* Rake {glossary}[
|
|
77
|
+
* {Rake command-line}[rdoc-ref:doc/command_line_usage.rdoc]
|
|
78
|
+
* {Writing Rakefiles}[rdoc-ref:doc/rakefile.rdoc]
|
|
79
|
+
* The original {Rake announcement}[rdoc-ref:doc/rational.rdoc]
|
|
80
|
+
* Rake {glossary}[rdoc-ref:doc/glossary.rdoc]
|
|
81
81
|
|
|
82
82
|
=== Presentations and Articles about Rake
|
|
83
83
|
|
|
@@ -148,7 +148,7 @@ February 2014. This repository was originally hosted at
|
|
|
148
148
|
with his passing, has been moved to {ruby/rake}[https://github.com/ruby/rake].
|
|
149
149
|
|
|
150
150
|
You can view Jim's last commit here:
|
|
151
|
-
https://github.com/jimweirich/rake/
|
|
151
|
+
https://github.com/jimweirich/rake/commit/336559f28f55bce418e2ebcc0a57548dcbac4025
|
|
152
152
|
|
|
153
153
|
You can {read more about Jim}[https://en.wikipedia.org/wiki/Jim_Weirich] at Wikipedia.
|
|
154
154
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2010, 2012-2025, Ammar Ali
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# REXML
|
|
2
|
+
|
|
3
|
+
REXML was inspired by the Electric XML library for Java, which features an easy-to-use API, small size, and speed. Hopefully, REXML, designed with the same philosophy, has these same features. I've tried to keep the API as intuitive as possible, and have followed the Ruby methodology for method naming and code flow, rather than mirroring the Java API.
|
|
4
|
+
|
|
5
|
+
REXML supports both tree and stream document parsing. Stream parsing is faster (about 1.5 times as fast). However, with stream parsing, you don't get access to features such as XPath.
|
|
6
|
+
|
|
7
|
+
## API
|
|
8
|
+
|
|
9
|
+
See the [API documentation](https://ruby.github.io/rexml/).
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
We'll start with parsing an XML document
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require "rexml/document"
|
|
17
|
+
file = File.new( "mydoc.xml" )
|
|
18
|
+
doc = REXML::Document.new file
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Line 3 creates a new document and parses the supplied file. You can also do the following
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require "rexml/document"
|
|
25
|
+
include REXML # so that we don't have to prefix everything with REXML::...
|
|
26
|
+
string = <<EOF
|
|
27
|
+
<mydoc>
|
|
28
|
+
<someelement attribute="nanoo">Text, text, text</someelement>
|
|
29
|
+
</mydoc>
|
|
30
|
+
EOF
|
|
31
|
+
doc = Document.new string
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
So parsing a string is just as easy as parsing a file.
|
|
35
|
+
|
|
36
|
+
## Support
|
|
37
|
+
|
|
38
|
+
REXML support follows the same maintenance cycle as Ruby releases, as shown on <https://www.ruby-lang.org/en/downloads/branches/>.
|
|
39
|
+
|
|
40
|
+
If you are running on an end-of-life Ruby, do not expect modern REXML releases to be compatible with it; in fact, it's recommended that you DO NOT use this gem, and instead use the REXML version that came bundled with your end-of-life Ruby version.
|
|
41
|
+
|
|
42
|
+
The `required_ruby_version` on the gemspec is kept updated on a [best-effort basis](https://github.com/ruby/rexml/pull/70) by the community.
|
|
43
|
+
Up to version 3.2.5, this information was not set. That version [is known broken with at least Ruby < 2.3](https://github.com/ruby/rexml/issues/69).
|
|
44
|
+
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
After checking out the repo, run `rake test` to run the tests.
|
|
48
|
+
|
|
49
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
50
|
+
|
|
51
|
+
## Contributing
|
|
52
|
+
|
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/rexml.
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
The gem is available as open source under the terms of the [BSD-2-Clause](LICENSE.txt).
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
=====================
|
|
3
|
+
|
|
4
|
+
Copyright © 2009 Chad Humphries, David Chelimsky
|
|
5
|
+
Copyright © 2006 David Chelimsky, The RSpec Development Team
|
|
6
|
+
Copyright © 2005 Steven Baker
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person
|
|
9
|
+
obtaining a copy of this software and associated documentation
|
|
10
|
+
files (the “Software”), to deal in the Software without
|
|
11
|
+
restriction, including without limitation the rights to use,
|
|
12
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the
|
|
14
|
+
Software is furnished to do so, subject to the following
|
|
15
|
+
conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be
|
|
18
|
+
included in all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
|
21
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
22
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
23
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
24
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
25
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
26
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
27
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# RSpec
|
|
2
|
+
|
|
3
|
+
Behaviour Driven Development for Ruby
|
|
4
|
+
|
|
5
|
+
**The rspec metagem repository has been renamed to rspec-metagem, please update
|
|
6
|
+
any rspec/rspec Github references to rspec/rspec-metagem, this is in preparation
|
|
7
|
+
for a new mono-repo approach to RSpec dev to unify issue tracking and PR management**
|
|
8
|
+
|
|
9
|
+
## Description
|
|
10
|
+
|
|
11
|
+
rspec is a meta-gem, which depends on the
|
|
12
|
+
[rspec-core](https://github.com/rspec/rspec-core),
|
|
13
|
+
[rspec-expectations](https://github.com/rspec/rspec-expectations)
|
|
14
|
+
and [rspec-mocks](https://github.com/rspec/rspec-mocks) gems. Each of these
|
|
15
|
+
can be installed separately and loaded in isolation using `require`. Among
|
|
16
|
+
other benefits, this allows you to use rspec-expectations, for example, in
|
|
17
|
+
Test::Unit::TestCase if you happen to prefer that style.
|
|
18
|
+
|
|
19
|
+
Conversely, if you like RSpec's approach to declaring example groups and
|
|
20
|
+
examples (`describe` and `it`) but prefer Test::Unit assertions and
|
|
21
|
+
[mocha](https://github.com/freerange/mocha), [rr](https://github.com/rr/rr)
|
|
22
|
+
or [flexmock](https://github.com/jimweirich/flexmock) for mocking, you'll be
|
|
23
|
+
able to do that without having to install or load the components of RSpec that
|
|
24
|
+
you're not using.
|
|
25
|
+
|
|
26
|
+
## Documentation
|
|
27
|
+
|
|
28
|
+
See http://rspec.info/documentation/ for links to documentation for all gems.
|
|
29
|
+
|
|
30
|
+
## Install
|
|
31
|
+
|
|
32
|
+
gem install rspec
|
|
33
|
+
|
|
34
|
+
## Setup
|
|
35
|
+
|
|
36
|
+
rspec --init
|
|
37
|
+
|
|
38
|
+
## Contribute
|
|
39
|
+
|
|
40
|
+
* [http://github.com/rspec/rspec-dev](http://github.com/rspec/rspec-dev)
|
|
41
|
+
|
|
42
|
+
## Also see
|
|
43
|
+
|
|
44
|
+
* [https://github.com/rspec/rspec-core](https://github.com/rspec/rspec-core)
|
|
45
|
+
* [https://github.com/rspec/rspec-expectations](https://github.com/rspec/rspec-expectations)
|
|
46
|
+
* [https://github.com/rspec/rspec-mocks](https://github.com/rspec/rspec-mocks)
|
|
47
|
+
* [https://github.com/rspec/rspec-rails](https://github.com/rspec/rspec-rails)
|