xaiml 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.reek.yml +95 -0
- data/.rspec +2 -0
- data/.rubocop.yml +21 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/xaiml/document.rb +87 -0
- data/lib/xaiml/element/base.rb +19 -0
- data/lib/xaiml/element/category.rb +12 -0
- data/lib/xaiml/element/condition.rb +7 -0
- data/lib/xaiml/element/conditional_random.rb +7 -0
- data/lib/xaiml/element/ext.rb +7 -0
- data/lib/xaiml/element/topic.rb +7 -0
- data/lib/xaiml/element.rb +28 -0
- data/lib/xaiml/exceptions.rb +4 -0
- data/lib/xaiml/version.rb +3 -0
- data/lib/xaiml.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/bin/coderay +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/htmldiff +29 -0
- data/vendor/bundle/ruby/2.5.0/bin/ldiff +29 -0
- data/vendor/bundle/ruby/2.5.0/bin/pry +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rake +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rspec +27 -0
- data/vendor/bundle/ruby/2.5.0/cache/coderay-1.1.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/diff-lcs-1.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/method_source-0.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/ox-2.10.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/pry-0.11.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rake-10.5.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-3.8.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.8.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.8.1.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.8.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.8.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-17/2.5.0-static/ox-2.10.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-17/2.5.0-static/ox-2.10.0/gem_make.out +93 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-17/2.5.0-static/ox-2.10.0/ox.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/MIT-LICENSE +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/README_INDEX.rdoc +123 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/bin/coderay +215 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/duo.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/_map.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/comment_filter.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/count.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/debug.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/debug_lint.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/div.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/encoder.rb +190 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/filter.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html/css.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html/numbering.rb +108 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html/output.rb +166 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html.rb +333 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/json.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/lines_of_code.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/lint.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/null.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/page.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/span.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/statistic.rb +95 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/terminal.rb +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/text.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/token_kind_filter.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/xml.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/yaml.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/for_redcloth.rb +95 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/file_type.rb +151 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/plugin.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/plugin_host.rb +221 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/word_list.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/_map.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/c.rb +189 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/clojure.rb +217 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/cpp.rb +217 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/css.rb +196 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/debug.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/delphi.rb +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/diff.rb +221 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/erb.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/go.rb +208 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/groovy.rb +268 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/haml.rb +168 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/html.rb +275 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/java/builtin_types.rb +421 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/java.rb +174 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/java_script.rb +237 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/json.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/lua.rb +280 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/php.rb +527 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/python.rb +287 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/raydebug.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby/patterns.rb +178 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby/string_state.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby.rb +477 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/sass.rb +232 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/scanner.rb +337 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/sql.rb +169 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/taskpaper.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/text.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/xml.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/yaml.rb +140 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles/_map.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles/alpha.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles/style.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/token_kinds.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/tokens.rb +161 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/tokens_proxy.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay.rb +284 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/.rspec +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Code-of-Conduct.md +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Contributing.md +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/History.md +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/License.md +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Manifest.txt +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/README.rdoc +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Rakefile +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/autotest/discover.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/htmldiff +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/ldiff +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/COPYING.txt +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/artistic.txt +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +181 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +307 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +167 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +725 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/change_spec.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/diff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/issues_spec.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/patch_spec.rb +422 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +214 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/spec_helper.rb +321 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/.gemtest +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/.travis.yml +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/.yardopts +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/Gemfile +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/LICENSE +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/README.markdown +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/Rakefile +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source/code_helpers.rb +154 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source/source_location.rb +138 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source.rb +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/method_source.gemspec +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/spec/method_source/code_helpers_spec.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/spec/method_source_spec.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/spec/spec_helper.rb +101 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/CHANGELOG.md +455 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/README.md +307 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/Makefile +264 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/attr.h +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/base64.c +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/base64.h +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/base64.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/buf.h +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/builder.c +937 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/builder.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache.c +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache.h +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache8.c +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache8.h +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache8.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/dump.c +1321 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/dump.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/err.c +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/err.h +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/err.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/extconf.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/gen_load.c +492 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/gen_load.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/hash_load.c +228 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/hash_load.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/helper.h +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/obj_load.c +986 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/obj_load.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/ox.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/ox.c +1562 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/ox.h +279 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/ox.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/parse.c +1177 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/parse.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax.c +1750 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax.h +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_as.c +276 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_as.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_buf.c +228 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_buf.h +222 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_buf.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_has.h +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_hint.c +216 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_hint.h +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_hint.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_stack.h +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/special.c +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/special.h +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/special.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/type.h +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/bag.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/cdata.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/comment.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/doctype.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/document.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/element.rb +319 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/error.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/hasattrs.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/instruct.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/node.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/raw.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/sax.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/version.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/xmlrpc_adapter.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/CHANGELOG.md +797 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/LICENSE +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/README.md +407 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/bin/pry +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/basic_object.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/cli.rb +225 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code/code_file.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code/code_range.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code/loc.rb +92 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code.rb +353 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code_object.rb +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/color_printer.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/command.rb +716 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/command_set.rb +450 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/amend_line.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/bang.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/bang_pry.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/abstract_formatter.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/exception_formatter.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/file_formatter.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/input_expression_formatter.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cd.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/change_inspector.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/change_prompt.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/code_collector.rb +167 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/disable_pry.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/disabled_commands.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/easter_eggs.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/edit/exception_patcher.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/edit/file_and_line_locator.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/edit.rb +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/exit.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/exit_all.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/exit_program.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/find_method.rb +193 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/fix_indent.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_cd.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_install.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_list.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_open.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_readme.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_search.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gist.rb +101 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/help.rb +164 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/hist.rb +180 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/import_set.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/install_command.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/jump_to.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/list_inspectors.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/list_prompts.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/constants.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/formatter.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/globals.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/grep.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/instance_vars.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/interrogatable.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/jruby_hacks.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/local_names.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/local_vars.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/ls_entity.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/methods.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/methods_helper.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/self_methods.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/nesting.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/play.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/pry_backtrace.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/pry_version.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/raise_up.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/reload_code.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/reset.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ri.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/save_file.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/shell_command.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/shell_mode.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_doc.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_info.rb +209 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_input.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_source.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/simple_prompt.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/stat.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/switch_to.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/toggle_color.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/watch_expression/expression.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/watch_expression.rb +105 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/whereami.rb +197 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/wtf.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/behavior.rb +231 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/convenience.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/default.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/memoization.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/core_extensions.rb +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/editor.rb +135 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/exceptions.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/forwardable.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/base_helpers.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/command_helpers.rb +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/documentation_helpers.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/options_helpers.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/table.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/text.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/history.rb +148 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/history_array.rb +121 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/hooks.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/indent.rb +410 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/input_completer.rb +260 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/input_lock.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/inspector.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/last_exception.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method/disowned.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method/patcher.rb +122 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method/weird_method_locator.rb +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method.rb +546 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/object_path.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/output.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/pager.rb +242 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/platform.rb +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/plugins.rb +118 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/prompt.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/pry_class.rb +401 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/pry_instance.rb +666 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/rbx_path.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/repl.rb +232 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/repl_file_loader.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/rubygem.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop/LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop/commands.rb +196 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop/option.rb +208 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop.rb +661 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/terminal.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/evalable.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/mockable.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/pry_tester.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/utility.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/variables.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/wrapped_module/candidate.rb +131 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/wrapped_module.rb +378 -0
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry.rb +162 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.autotest +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.rubocop.yml +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.togglerc +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/History.rdoc +659 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/Manifest.txt +166 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/README.rdoc +139 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/Rakefile +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/bin/rake +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/jamis.rb +591 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rake.1 +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rakefile.rdoc +624 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +191 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/helper.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/README.md +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/lib/rspec.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/.document +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/.yardopts +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/Changelog.md +2221 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/LICENSE.md +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/README.md +384 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/exe/rspec +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/autorun.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/coordinator.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/example_minimizer.rb +173 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/fork_runner.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/server.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/shell_command.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/shell_runner.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/utilities.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb +2289 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb +233 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/drb.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/dsl.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/example.rb +653 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb +885 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/console_codes.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/exception_presenter.rb +497 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_formatter.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_printer.rb +414 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/progress_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/protocol.rb +182 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb +269 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb +624 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/invocations.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/memoized_helpers.rb +535 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/metadata.rb +499 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/metadata_filter.rb +255 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/notifications.rb +521 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/option_parser.rb +309 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/ordering.rb +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/output_wrapper.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/pending.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/profiler.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer/.rspec +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/rake_task.rb +168 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb +257 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/set.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/shared_example_group.rb +269 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/warnings.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/world.rb +275 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core.rb +185 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/.document +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/.yardopts +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/Changelog.md +1110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/README.md +305 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/configuration.rb +215 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/expectation_target.rb +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/fail_with.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/handler.rb +170 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/minitest_integration.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/all.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be.rb +288 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/change.rb +426 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/compound.rb +271 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/exist.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/has.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/include.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/raise_error.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/respond_to.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/satisfy.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/yield.rb +432 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/composable.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/dsl.rb +527 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/english_phrasing.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/generated_descriptions.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers.rb +1034 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/.document +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/Changelog.md +1100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/README.md +460 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/chain.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/argument_matchers.rb +320 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/configuration.rb +212 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/example_methods.rb +434 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/instance_method_stasher.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/have_received.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/message_expectation.rb +741 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/method_double.rb +287 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/method_reference.rb +202 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/minitest_integration.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/mutate_const.rb +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/proxy.rb +485 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/space.rb +238 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/targets.rb +124 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/test_double.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_proxy.rb +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/Changelog.md +242 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/README.md +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/encoded_string.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/method_signature_verifier.rb +426 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/mutex.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/object_formatter.rb +275 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/reentrant_mutex.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/ruby_features.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source/location.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source/node.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source/token.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/in_sub_process.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/shell_out.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/warnings.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/specifications/coderay-1.1.2.gemspec +26 -0
- data/vendor/bundle/ruby/2.5.0/specifications/diff-lcs-1.3.gemspec +61 -0
- data/vendor/bundle/ruby/2.5.0/specifications/method_source-0.9.0.gemspec +34 -0
- data/vendor/bundle/ruby/2.5.0/specifications/ox-2.10.0.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/specifications/pry-0.11.3.gemspec +41 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rake-10.5.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.8.0.gemspec +42 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.8.0.gemspec +62 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.8.1.gemspec +50 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.8.0.gemspec +50 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.8.0.gemspec +41 -0
- data/xaiml.gemspec +25 -0
- metadata +891 -0
@@ -0,0 +1,1177 @@
|
|
1
|
+
/* parse.c
|
2
|
+
* Copyright (c) 2011, Peter Ohler
|
3
|
+
* All rights reserved.
|
4
|
+
*/
|
5
|
+
|
6
|
+
#include <stdlib.h>
|
7
|
+
#include <errno.h>
|
8
|
+
#include <stdio.h>
|
9
|
+
#include <string.h>
|
10
|
+
|
11
|
+
#include "ruby.h"
|
12
|
+
#include "ox.h"
|
13
|
+
#include "err.h"
|
14
|
+
#include "attr.h"
|
15
|
+
#include "helper.h"
|
16
|
+
#include "special.h"
|
17
|
+
|
18
|
+
static void read_instruction(PInfo pi);
|
19
|
+
static void read_doctype(PInfo pi);
|
20
|
+
static void read_comment(PInfo pi);
|
21
|
+
static char* read_element(PInfo pi);
|
22
|
+
static void read_text(PInfo pi);
|
23
|
+
/*static void read_reduced_text(PInfo pi); */
|
24
|
+
static void read_cdata(PInfo pi);
|
25
|
+
static char* read_name_token(PInfo pi);
|
26
|
+
static char* read_quoted_value(PInfo pi);
|
27
|
+
static char* read_hex_uint64(char *b, uint64_t *up);
|
28
|
+
static char* read_10_uint64(char *b, uint64_t *up);
|
29
|
+
static char* read_coded_chars(PInfo pi, char *text);
|
30
|
+
static void next_non_white(PInfo pi);
|
31
|
+
static int collapse_special(PInfo pi, char *str);
|
32
|
+
|
33
|
+
/* This XML parser is a single pass, destructive, callback parser. It is a
|
34
|
+
* single pass parse since it only make one pass over the characters in the
|
35
|
+
* XML document string. It is destructive because it re-uses the content of
|
36
|
+
* the string for values in the callback and places \0 characters at various
|
37
|
+
* places to mark the end of tokens and strings. It is a callback parser like
|
38
|
+
* a SAX parser because it uses callback when document elements are
|
39
|
+
* encountered.
|
40
|
+
*
|
41
|
+
* Parsing is very tolerant. Lack of headers and even mispelled element
|
42
|
+
* endings are passed over without raising an error. A best attempt is made in
|
43
|
+
* all cases to parse the string.
|
44
|
+
*/
|
45
|
+
|
46
|
+
static char xml_valid_lower_chars[34] = "xxxxxxxxxooxxoxxxxxxxxxxxxxxxxxxo";
|
47
|
+
|
48
|
+
inline static int
|
49
|
+
is_white(char c) {
|
50
|
+
switch (c) {
|
51
|
+
case ' ':
|
52
|
+
case '\t':
|
53
|
+
case '\f':
|
54
|
+
case '\n':
|
55
|
+
case '\r':
|
56
|
+
return 1;
|
57
|
+
default:
|
58
|
+
return 0;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
inline static void
|
64
|
+
next_non_white(PInfo pi) {
|
65
|
+
for (; 1; pi->s++) {
|
66
|
+
switch (*pi->s) {
|
67
|
+
case ' ':
|
68
|
+
case '\t':
|
69
|
+
case '\f':
|
70
|
+
case '\n':
|
71
|
+
case '\r':
|
72
|
+
break;
|
73
|
+
default:
|
74
|
+
return;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
inline static void
|
80
|
+
next_white(PInfo pi) {
|
81
|
+
for (; 1; pi->s++) {
|
82
|
+
switch (*pi->s) {
|
83
|
+
case ' ':
|
84
|
+
case '\t':
|
85
|
+
case '\f':
|
86
|
+
case '\n':
|
87
|
+
case '\r':
|
88
|
+
case '\0':
|
89
|
+
return;
|
90
|
+
default:
|
91
|
+
break;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
static void
|
97
|
+
mark_pi_cb(void *ptr) {
|
98
|
+
if (NULL != ptr) {
|
99
|
+
HelperStack stack = &((PInfo)ptr)->helpers;
|
100
|
+
Helper h;
|
101
|
+
|
102
|
+
for (h = stack->head; h < stack->tail; h++) {
|
103
|
+
if (NoCode != h->type) {
|
104
|
+
rb_gc_mark(h->obj);
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
VALUE
|
111
|
+
ox_parse(char *xml, size_t len, ParseCallbacks pcb, char **endp, Options options, Err err) {
|
112
|
+
struct _PInfo pi;
|
113
|
+
int body_read = 0;
|
114
|
+
int block_given = rb_block_given_p();
|
115
|
+
volatile VALUE wrap;
|
116
|
+
|
117
|
+
if (0 == xml) {
|
118
|
+
set_error(err, "Invalid arg, xml string can not be null", xml, 0);
|
119
|
+
return Qnil;
|
120
|
+
}
|
121
|
+
if (DEBUG <= options->trace) {
|
122
|
+
printf("Parsing xml:\n%s\n", xml);
|
123
|
+
}
|
124
|
+
/* initialize parse info */
|
125
|
+
helper_stack_init(&pi.helpers);
|
126
|
+
// Protect against GC
|
127
|
+
wrap = Data_Wrap_Struct(rb_cObject, mark_pi_cb, NULL, &pi);
|
128
|
+
|
129
|
+
err_init(&pi.err);
|
130
|
+
pi.str = xml;
|
131
|
+
pi.end = pi.str + len;
|
132
|
+
pi.s = xml;
|
133
|
+
pi.pcb = pcb;
|
134
|
+
pi.obj = Qnil;
|
135
|
+
pi.circ_array = 0;
|
136
|
+
pi.options = options;
|
137
|
+
while (1) {
|
138
|
+
next_non_white(&pi); /* skip white space */
|
139
|
+
if ('\0' == *pi.s) {
|
140
|
+
break;
|
141
|
+
}
|
142
|
+
if (body_read && 0 != endp) {
|
143
|
+
*endp = pi.s;
|
144
|
+
break;
|
145
|
+
}
|
146
|
+
if ('<' != *pi.s) { /* all top level entities start with < */
|
147
|
+
set_error(err, "invalid format, expected <", pi.str, pi.s);
|
148
|
+
helper_stack_cleanup(&pi.helpers);
|
149
|
+
return Qnil;
|
150
|
+
}
|
151
|
+
pi.s++; /* past < */
|
152
|
+
switch (*pi.s) {
|
153
|
+
case '?': /* processing instruction */
|
154
|
+
pi.s++;
|
155
|
+
read_instruction(&pi);
|
156
|
+
break;
|
157
|
+
case '!': /* comment or doctype */
|
158
|
+
pi.s++;
|
159
|
+
if ('\0' == *pi.s) {
|
160
|
+
set_error(err, "invalid format, DOCTYPE or comment not terminated", pi.str, pi.s);
|
161
|
+
helper_stack_cleanup(&pi.helpers);
|
162
|
+
return Qnil;
|
163
|
+
} else if ('-' == *pi.s) {
|
164
|
+
pi.s++; /* skip - */
|
165
|
+
if ('-' != *pi.s) {
|
166
|
+
set_error(err, "invalid format, bad comment format", pi.str, pi.s);
|
167
|
+
helper_stack_cleanup(&pi.helpers);
|
168
|
+
return Qnil;
|
169
|
+
} else {
|
170
|
+
pi.s++; /* skip second - */
|
171
|
+
read_comment(&pi);
|
172
|
+
}
|
173
|
+
} else if ((TolerantEffort == options->effort) ? 0 == strncasecmp("DOCTYPE", pi.s, 7) : 0 == strncmp("DOCTYPE", pi.s, 7)) {
|
174
|
+
pi.s += 7;
|
175
|
+
read_doctype(&pi);
|
176
|
+
} else {
|
177
|
+
set_error(err, "invalid format, DOCTYPE or comment expected", pi.str, pi.s);
|
178
|
+
helper_stack_cleanup(&pi.helpers);
|
179
|
+
return Qnil;
|
180
|
+
}
|
181
|
+
break;
|
182
|
+
case '\0':
|
183
|
+
set_error(err, "invalid format, document not terminated", pi.str, pi.s);
|
184
|
+
helper_stack_cleanup(&pi.helpers);
|
185
|
+
return Qnil;
|
186
|
+
default:
|
187
|
+
read_element(&pi);
|
188
|
+
body_read = 1;
|
189
|
+
break;
|
190
|
+
}
|
191
|
+
if (err_has(&pi.err)) {
|
192
|
+
*err = pi.err;
|
193
|
+
helper_stack_cleanup(&pi.helpers);
|
194
|
+
return Qnil;
|
195
|
+
}
|
196
|
+
if (block_given && Qnil != pi.obj && Qundef != pi.obj) {
|
197
|
+
if (NULL != pcb->finish) {
|
198
|
+
pcb->finish(&pi);
|
199
|
+
}
|
200
|
+
rb_yield(pi.obj);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
DATA_PTR(wrap) = NULL;
|
204
|
+
helper_stack_cleanup(&pi.helpers);
|
205
|
+
if (NULL != pcb->finish) {
|
206
|
+
pcb->finish(&pi);
|
207
|
+
}
|
208
|
+
return pi.obj;
|
209
|
+
}
|
210
|
+
|
211
|
+
static char*
|
212
|
+
gather_content(const char *src, char *content, size_t len) {
|
213
|
+
for (; 0 < len; src++, content++, len--) {
|
214
|
+
switch (*src) {
|
215
|
+
case '?':
|
216
|
+
if ('>' == *(src + 1)) {
|
217
|
+
*content = '\0';
|
218
|
+
return (char*)(src + 1);
|
219
|
+
}
|
220
|
+
*content = *src;
|
221
|
+
break;
|
222
|
+
case '\0':
|
223
|
+
return 0;
|
224
|
+
default:
|
225
|
+
*content = *src;
|
226
|
+
break;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
return 0;
|
230
|
+
}
|
231
|
+
|
232
|
+
/* Entered after the "<?" sequence. Ready to read the rest.
|
233
|
+
*/
|
234
|
+
static void
|
235
|
+
read_instruction(PInfo pi) {
|
236
|
+
char content[1024];
|
237
|
+
struct _AttrStack attrs;
|
238
|
+
char *attr_name;
|
239
|
+
char *attr_value;
|
240
|
+
char *target;
|
241
|
+
char *end;
|
242
|
+
char c;
|
243
|
+
char *cend;
|
244
|
+
int attrs_ok = 1;
|
245
|
+
|
246
|
+
*content = '\0';
|
247
|
+
attr_stack_init(&attrs);
|
248
|
+
if (0 == (target = read_name_token(pi))) {
|
249
|
+
return;
|
250
|
+
}
|
251
|
+
end = pi->s;
|
252
|
+
if (0 == (cend = gather_content(pi->s, content, sizeof(content) - 1))) {
|
253
|
+
set_error(&pi->err, "processing instruction content too large or not terminated", pi->str, pi->s);
|
254
|
+
return;
|
255
|
+
}
|
256
|
+
next_non_white(pi);
|
257
|
+
c = *pi->s;
|
258
|
+
*end = '\0'; /* terminate name */
|
259
|
+
if ('?' != c) {
|
260
|
+
while ('?' != c) {
|
261
|
+
pi->last = 0;
|
262
|
+
if ('\0' == *pi->s) {
|
263
|
+
attr_stack_cleanup(&attrs);
|
264
|
+
set_error(&pi->err, "invalid format, processing instruction not terminated", pi->str, pi->s);
|
265
|
+
return;
|
266
|
+
}
|
267
|
+
next_non_white(pi);
|
268
|
+
if (0 == (attr_name = read_name_token(pi))) {
|
269
|
+
attr_stack_cleanup(&attrs);
|
270
|
+
return;
|
271
|
+
}
|
272
|
+
end = pi->s;
|
273
|
+
next_non_white(pi);
|
274
|
+
if ('=' != *pi->s++) {
|
275
|
+
attrs_ok = 0;
|
276
|
+
break;
|
277
|
+
}
|
278
|
+
*end = '\0'; /* terminate name */
|
279
|
+
/* read value */
|
280
|
+
next_non_white(pi);
|
281
|
+
if (0 == (attr_value = read_quoted_value(pi))) {
|
282
|
+
attr_stack_cleanup(&attrs);
|
283
|
+
return;
|
284
|
+
}
|
285
|
+
attr_stack_push(&attrs, attr_name, attr_value);
|
286
|
+
next_non_white(pi);
|
287
|
+
if ('\0' == pi->last) {
|
288
|
+
c = *pi->s;
|
289
|
+
} else {
|
290
|
+
c = pi->last;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
if ('?' == *pi->s) {
|
294
|
+
pi->s++;
|
295
|
+
}
|
296
|
+
} else {
|
297
|
+
pi->s++;
|
298
|
+
}
|
299
|
+
if (attrs_ok) {
|
300
|
+
if ('>' != *pi->s++) {
|
301
|
+
attr_stack_cleanup(&attrs);
|
302
|
+
set_error(&pi->err, "invalid format, processing instruction not terminated", pi->str, pi->s);
|
303
|
+
return;
|
304
|
+
}
|
305
|
+
} else {
|
306
|
+
pi->s = cend + 1;
|
307
|
+
}
|
308
|
+
if (0 != pi->pcb->instruct) {
|
309
|
+
if (attrs_ok) {
|
310
|
+
pi->pcb->instruct(pi, target, attrs.head, 0);
|
311
|
+
} else {
|
312
|
+
pi->pcb->instruct(pi, target, attrs.head, content);
|
313
|
+
}
|
314
|
+
}
|
315
|
+
attr_stack_cleanup(&attrs);
|
316
|
+
}
|
317
|
+
|
318
|
+
static void
|
319
|
+
read_delimited(PInfo pi, char end) {
|
320
|
+
char c;
|
321
|
+
|
322
|
+
if ('"' == end || '\'' == end) {
|
323
|
+
for (c = *pi->s++; end != c; c = *pi->s++) {
|
324
|
+
if ('\0' == c) {
|
325
|
+
set_error(&pi->err, "invalid format, dectype not terminated", pi->str, pi->s);
|
326
|
+
return;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
} else {
|
330
|
+
while (1) {
|
331
|
+
c = *pi->s++;
|
332
|
+
if (end == c) {
|
333
|
+
return;
|
334
|
+
}
|
335
|
+
switch (c) {
|
336
|
+
case '\0':
|
337
|
+
set_error(&pi->err, "invalid format, dectype not terminated", pi->str, pi->s);
|
338
|
+
return;
|
339
|
+
case '"':
|
340
|
+
read_delimited(pi, c);
|
341
|
+
break;
|
342
|
+
case '\'':
|
343
|
+
read_delimited(pi, c);
|
344
|
+
break;
|
345
|
+
case '[':
|
346
|
+
read_delimited(pi, ']');
|
347
|
+
break;
|
348
|
+
case '<':
|
349
|
+
read_delimited(pi, '>');
|
350
|
+
break;
|
351
|
+
default:
|
352
|
+
break;
|
353
|
+
}
|
354
|
+
}
|
355
|
+
}
|
356
|
+
}
|
357
|
+
|
358
|
+
/* Entered after the "<!DOCTYPE" sequence plus the first character after
|
359
|
+
* that. Ready to read the rest.
|
360
|
+
*/
|
361
|
+
static void
|
362
|
+
read_doctype(PInfo pi) {
|
363
|
+
char *docType;
|
364
|
+
|
365
|
+
next_non_white(pi);
|
366
|
+
docType = pi->s;
|
367
|
+
read_delimited(pi, '>');
|
368
|
+
if (err_has(&pi->err)) {
|
369
|
+
return;
|
370
|
+
}
|
371
|
+
pi->s--;
|
372
|
+
*pi->s = '\0';
|
373
|
+
pi->s++;
|
374
|
+
if (0 != pi->pcb->add_doctype) {
|
375
|
+
pi->pcb->add_doctype(pi, docType);
|
376
|
+
}
|
377
|
+
}
|
378
|
+
|
379
|
+
/* Entered after "<!--". Returns error code.
|
380
|
+
*/
|
381
|
+
static void
|
382
|
+
read_comment(PInfo pi) {
|
383
|
+
char *end;
|
384
|
+
char *s;
|
385
|
+
char *comment;
|
386
|
+
int done = 0;
|
387
|
+
|
388
|
+
next_non_white(pi);
|
389
|
+
comment = pi->s;
|
390
|
+
end = strstr(pi->s, "-->");
|
391
|
+
if (0 == end) {
|
392
|
+
set_error(&pi->err, "invalid format, comment not terminated", pi->str, pi->s);
|
393
|
+
return;
|
394
|
+
}
|
395
|
+
for (s = end - 1; pi->s < s && !done; s--) {
|
396
|
+
switch(*s) {
|
397
|
+
case ' ':
|
398
|
+
case '\t':
|
399
|
+
case '\f':
|
400
|
+
case '\n':
|
401
|
+
case '\r':
|
402
|
+
break;
|
403
|
+
default:
|
404
|
+
*(s + 1) = '\0';
|
405
|
+
done = 1;
|
406
|
+
break;
|
407
|
+
}
|
408
|
+
}
|
409
|
+
*end = '\0'; /* in case the comment was blank */
|
410
|
+
pi->s = end + 3;
|
411
|
+
if (0 != pi->pcb->add_comment) {
|
412
|
+
pi->pcb->add_comment(pi, comment);
|
413
|
+
}
|
414
|
+
}
|
415
|
+
|
416
|
+
/* Entered after the '<' and the first character after that. Returns status
|
417
|
+
* code.
|
418
|
+
*/
|
419
|
+
static char*
|
420
|
+
read_element(PInfo pi) {
|
421
|
+
struct _AttrStack attrs;
|
422
|
+
const char *attr_name;
|
423
|
+
const char *attr_value;
|
424
|
+
char *name;
|
425
|
+
char *ename;
|
426
|
+
char *end;
|
427
|
+
char c;
|
428
|
+
long elen;
|
429
|
+
int hasChildren = 0;
|
430
|
+
int done = 0;
|
431
|
+
|
432
|
+
attr_stack_init(&attrs);
|
433
|
+
if (0 == (ename = read_name_token(pi))) {
|
434
|
+
return 0;
|
435
|
+
}
|
436
|
+
end = pi->s;
|
437
|
+
elen = end - ename;
|
438
|
+
next_non_white(pi);
|
439
|
+
c = *pi->s;
|
440
|
+
*end = '\0';
|
441
|
+
if ('/' == c) {
|
442
|
+
/* empty element, no attributes and no children */
|
443
|
+
pi->s++;
|
444
|
+
if ('>' != *pi->s) {
|
445
|
+
/*printf("*** '%s' ***\n", pi->s); */
|
446
|
+
attr_stack_cleanup(&attrs);
|
447
|
+
set_error(&pi->err, "invalid format, element not closed", pi->str, pi->s);
|
448
|
+
return 0;
|
449
|
+
}
|
450
|
+
pi->s++; /* past > */
|
451
|
+
pi->pcb->add_element(pi, ename, attrs.head, hasChildren);
|
452
|
+
pi->pcb->end_element(pi, ename);
|
453
|
+
|
454
|
+
attr_stack_cleanup(&attrs);
|
455
|
+
return 0;
|
456
|
+
}
|
457
|
+
/* read attribute names until the close (/ or >) is reached */
|
458
|
+
while (!done) {
|
459
|
+
if ('\0' == c) {
|
460
|
+
if (pi->end <= pi->s) {
|
461
|
+
break;
|
462
|
+
}
|
463
|
+
next_non_white(pi);
|
464
|
+
c = *pi->s;
|
465
|
+
}
|
466
|
+
pi->last = 0;
|
467
|
+
switch (c) {
|
468
|
+
case '\0':
|
469
|
+
attr_stack_cleanup(&attrs);
|
470
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
471
|
+
return 0;
|
472
|
+
case '/':
|
473
|
+
/* Element with just attributes. */
|
474
|
+
pi->s++;
|
475
|
+
if ('>' != *pi->s) {
|
476
|
+
attr_stack_cleanup(&attrs);
|
477
|
+
set_error(&pi->err, "invalid format, element not closed", pi->str, pi->s);
|
478
|
+
return 0;
|
479
|
+
}
|
480
|
+
pi->s++;
|
481
|
+
pi->pcb->add_element(pi, ename, attrs.head, hasChildren);
|
482
|
+
pi->pcb->end_element(pi, ename);
|
483
|
+
|
484
|
+
attr_stack_cleanup(&attrs);
|
485
|
+
return 0;
|
486
|
+
case '>':
|
487
|
+
/* has either children or a value */
|
488
|
+
pi->s++;
|
489
|
+
hasChildren = 1;
|
490
|
+
done = 1;
|
491
|
+
pi->pcb->add_element(pi, ename, attrs.head, hasChildren);
|
492
|
+
|
493
|
+
break;
|
494
|
+
default:
|
495
|
+
/* Attribute name so it's an element and the attribute will be */
|
496
|
+
/* added to it. */
|
497
|
+
if (0 == (attr_name = read_name_token(pi))) {
|
498
|
+
attr_stack_cleanup(&attrs);
|
499
|
+
return 0;
|
500
|
+
}
|
501
|
+
end = pi->s;
|
502
|
+
next_non_white(pi);
|
503
|
+
if ('=' != *pi->s++) {
|
504
|
+
if (TolerantEffort == pi->options->effort) {
|
505
|
+
pi->s--;
|
506
|
+
pi->last = *pi->s;
|
507
|
+
*end = '\0'; /* terminate name */
|
508
|
+
attr_value = "";
|
509
|
+
attr_stack_push(&attrs, attr_name, attr_value);
|
510
|
+
break;
|
511
|
+
} else {
|
512
|
+
attr_stack_cleanup(&attrs);
|
513
|
+
set_error(&pi->err, "invalid format, no attribute value", pi->str, pi->s);
|
514
|
+
return 0;
|
515
|
+
}
|
516
|
+
}
|
517
|
+
*end = '\0'; /* terminate name */
|
518
|
+
/* read value */
|
519
|
+
next_non_white(pi);
|
520
|
+
if (0 == (attr_value = read_quoted_value(pi))) {
|
521
|
+
return 0;
|
522
|
+
}
|
523
|
+
if (pi->options->convert_special && 0 != strchr(attr_value, '&')) {
|
524
|
+
if (0 != collapse_special(pi, (char*)attr_value) || err_has(&pi->err)) {
|
525
|
+
attr_stack_cleanup(&attrs);
|
526
|
+
return 0;
|
527
|
+
}
|
528
|
+
}
|
529
|
+
attr_stack_push(&attrs, attr_name, attr_value);
|
530
|
+
break;
|
531
|
+
}
|
532
|
+
if ('\0' == pi->last) {
|
533
|
+
c = '\0';
|
534
|
+
} else {
|
535
|
+
c = pi->last;
|
536
|
+
pi->last = '\0';
|
537
|
+
}
|
538
|
+
}
|
539
|
+
if (hasChildren) {
|
540
|
+
char *start;
|
541
|
+
int first = 1;
|
542
|
+
|
543
|
+
done = 0;
|
544
|
+
/* read children */
|
545
|
+
while (!done) {
|
546
|
+
start = pi->s;
|
547
|
+
next_non_white(pi);
|
548
|
+
c = *pi->s++;
|
549
|
+
if ('\0' == c) {
|
550
|
+
attr_stack_cleanup(&attrs);
|
551
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
552
|
+
return 0;
|
553
|
+
}
|
554
|
+
if ('<' == c) {
|
555
|
+
char *slash;
|
556
|
+
|
557
|
+
switch (*pi->s) {
|
558
|
+
case '!': /* better be a comment or CDATA */
|
559
|
+
pi->s++;
|
560
|
+
if ('-' == *pi->s && '-' == *(pi->s + 1)) {
|
561
|
+
pi->s += 2;
|
562
|
+
read_comment(pi);
|
563
|
+
} else if ((TolerantEffort == pi->options->effort) ?
|
564
|
+
0 == strncasecmp("[CDATA[", pi->s, 7) :
|
565
|
+
0 == strncmp("[CDATA[", pi->s, 7)) {
|
566
|
+
pi->s += 7;
|
567
|
+
read_cdata(pi);
|
568
|
+
} else {
|
569
|
+
attr_stack_cleanup(&attrs);
|
570
|
+
set_error(&pi->err, "invalid format, invalid comment or CDATA format", pi->str, pi->s);
|
571
|
+
return 0;
|
572
|
+
}
|
573
|
+
break;
|
574
|
+
case '?': /* processing instruction */
|
575
|
+
pi->s++;
|
576
|
+
read_instruction(pi);
|
577
|
+
break;
|
578
|
+
case '/':
|
579
|
+
slash = pi->s;
|
580
|
+
pi->s++;
|
581
|
+
if (0 == (name = read_name_token(pi))) {
|
582
|
+
attr_stack_cleanup(&attrs);
|
583
|
+
return 0;
|
584
|
+
}
|
585
|
+
end = pi->s;
|
586
|
+
next_non_white(pi);
|
587
|
+
c = *pi->s;
|
588
|
+
*end = '\0';
|
589
|
+
if (0 != ((TolerantEffort == pi->options->effort) ? strcasecmp(name, ename) : strcmp(name, ename))) {
|
590
|
+
attr_stack_cleanup(&attrs);
|
591
|
+
if (TolerantEffort == pi->options->effort) {
|
592
|
+
pi->pcb->end_element(pi, ename);
|
593
|
+
return name;
|
594
|
+
} else {
|
595
|
+
set_error(&pi->err, "invalid format, elements overlap", pi->str, pi->s);
|
596
|
+
return 0;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
if ('>' != c) {
|
600
|
+
attr_stack_cleanup(&attrs);
|
601
|
+
set_error(&pi->err, "invalid format, element not closed", pi->str, pi->s);
|
602
|
+
return 0;
|
603
|
+
}
|
604
|
+
if (first && start != slash - 1) {
|
605
|
+
// Some white space between start and here so add as
|
606
|
+
// text after checking skip.
|
607
|
+
*(slash - 1) = '\0';
|
608
|
+
switch (pi->options->skip) {
|
609
|
+
case CrSkip: {
|
610
|
+
char *s = start;
|
611
|
+
char *e = start;
|
612
|
+
|
613
|
+
for (; '\0' != *e; e++) {
|
614
|
+
if ('\r' != *e) {
|
615
|
+
*s++ = *e;
|
616
|
+
}
|
617
|
+
}
|
618
|
+
*s = '\0';
|
619
|
+
break;
|
620
|
+
}
|
621
|
+
case SpcSkip:
|
622
|
+
*start = '\0';
|
623
|
+
break;
|
624
|
+
case NoSkip:
|
625
|
+
case OffSkip:
|
626
|
+
default:
|
627
|
+
break;
|
628
|
+
}
|
629
|
+
if ('\0' != *start) {
|
630
|
+
pi->pcb->add_text(pi, start, 1);
|
631
|
+
}
|
632
|
+
}
|
633
|
+
pi->s++;
|
634
|
+
pi->pcb->end_element(pi, ename);
|
635
|
+
attr_stack_cleanup(&attrs);
|
636
|
+
return 0;
|
637
|
+
case '\0':
|
638
|
+
attr_stack_cleanup(&attrs);
|
639
|
+
if (TolerantEffort == pi->options->effort) {
|
640
|
+
return 0;
|
641
|
+
} else {
|
642
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
643
|
+
return 0;
|
644
|
+
}
|
645
|
+
default:
|
646
|
+
first = 0;
|
647
|
+
/* a child element */
|
648
|
+
// Child closed with mismatched name.
|
649
|
+
if (0 != (name = read_element(pi))) {
|
650
|
+
attr_stack_cleanup(&attrs);
|
651
|
+
|
652
|
+
if (0 == ((TolerantEffort == pi->options->effort) ? strcasecmp(name, ename) : strcmp(name, ename))) {
|
653
|
+
pi->s++;
|
654
|
+
pi->pcb->end_element(pi, ename);
|
655
|
+
return 0;
|
656
|
+
} else { // not the correct element yet
|
657
|
+
pi->pcb->end_element(pi, ename);
|
658
|
+
return name;
|
659
|
+
}
|
660
|
+
} else if (err_has(&pi->err)) {
|
661
|
+
return 0;
|
662
|
+
}
|
663
|
+
break;
|
664
|
+
}
|
665
|
+
} else { /* read as TEXT */
|
666
|
+
pi->s = start;
|
667
|
+
/*pi->s--; */
|
668
|
+
read_text(pi);
|
669
|
+
/*read_reduced_text(pi); */
|
670
|
+
|
671
|
+
/* to exit read_text with no errors the next character must be < */
|
672
|
+
if ('/' == *(pi->s + 1) &&
|
673
|
+
0 == ((TolerantEffort == pi->options->effort) ? strncasecmp(ename, pi->s + 2, elen) : strncmp(ename, pi->s + 2, elen)) &&
|
674
|
+
'>' == *(pi->s + elen + 2)) {
|
675
|
+
|
676
|
+
/* close tag after text so treat as a value */
|
677
|
+
pi->s += elen + 3;
|
678
|
+
pi->pcb->end_element(pi, ename);
|
679
|
+
attr_stack_cleanup(&attrs);
|
680
|
+
return 0;
|
681
|
+
}
|
682
|
+
}
|
683
|
+
}
|
684
|
+
}
|
685
|
+
attr_stack_cleanup(&attrs);
|
686
|
+
return 0;
|
687
|
+
}
|
688
|
+
|
689
|
+
static void
|
690
|
+
read_text(PInfo pi) {
|
691
|
+
char buf[MAX_TEXT_LEN];
|
692
|
+
char *b = buf;
|
693
|
+
char *alloc_buf = 0;
|
694
|
+
char *end = b + sizeof(buf) - 2;
|
695
|
+
char c;
|
696
|
+
int done = 0;
|
697
|
+
|
698
|
+
while (!done) {
|
699
|
+
c = *pi->s++;
|
700
|
+
switch(c) {
|
701
|
+
case '<':
|
702
|
+
done = 1;
|
703
|
+
pi->s--;
|
704
|
+
break;
|
705
|
+
case '\0':
|
706
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
707
|
+
return;
|
708
|
+
default:
|
709
|
+
if (end <= (b + (('&' == c) ? 7 : 0))) { /* extra 8 for special just in case it is sequence of bytes */
|
710
|
+
unsigned long size;
|
711
|
+
|
712
|
+
if (0 == alloc_buf) {
|
713
|
+
size = sizeof(buf) * 2;
|
714
|
+
alloc_buf = ALLOC_N(char, size);
|
715
|
+
memcpy(alloc_buf, buf, b - buf);
|
716
|
+
b = alloc_buf + (b - buf);
|
717
|
+
} else {
|
718
|
+
unsigned long pos = b - alloc_buf;
|
719
|
+
|
720
|
+
size = (end - alloc_buf) * 2;
|
721
|
+
REALLOC_N(alloc_buf, char, size);
|
722
|
+
b = alloc_buf + pos;
|
723
|
+
}
|
724
|
+
end = alloc_buf + size - 2;
|
725
|
+
}
|
726
|
+
if ('&' == c) {
|
727
|
+
if (0 == (b = read_coded_chars(pi, b))) {
|
728
|
+
return;
|
729
|
+
}
|
730
|
+
} else {
|
731
|
+
if (0 <= c && c <= 0x20) {
|
732
|
+
if (StrictEffort == pi->options->effort && 'x' == xml_valid_lower_chars[(unsigned char)c]) {
|
733
|
+
set_error(&pi->err, "invalid character", pi->str, pi->s);
|
734
|
+
return;
|
735
|
+
}
|
736
|
+
switch (pi->options->skip) {
|
737
|
+
case CrSkip:
|
738
|
+
if (buf != b && '\n' == c && '\r' == *(b - 1)) {
|
739
|
+
*(b - 1) = '\n';
|
740
|
+
} else {
|
741
|
+
*b++ = c;
|
742
|
+
}
|
743
|
+
break;
|
744
|
+
case SpcSkip:
|
745
|
+
if (is_white(c)) {
|
746
|
+
if (buf == b || ' ' != *(b - 1)) {
|
747
|
+
*b++ = ' ';
|
748
|
+
}
|
749
|
+
} else {
|
750
|
+
*b++ = c;
|
751
|
+
}
|
752
|
+
break;
|
753
|
+
case NoSkip:
|
754
|
+
case OffSkip:
|
755
|
+
default:
|
756
|
+
*b++ = c;
|
757
|
+
break;
|
758
|
+
}
|
759
|
+
} else {
|
760
|
+
*b++ = c;
|
761
|
+
}
|
762
|
+
}
|
763
|
+
break;
|
764
|
+
}
|
765
|
+
}
|
766
|
+
*b = '\0';
|
767
|
+
if (0 != alloc_buf) {
|
768
|
+
pi->pcb->add_text(pi, alloc_buf, ('/' == *(pi->s + 1)));
|
769
|
+
xfree(alloc_buf);
|
770
|
+
} else {
|
771
|
+
pi->pcb->add_text(pi, buf, ('/' == *(pi->s + 1)));
|
772
|
+
}
|
773
|
+
}
|
774
|
+
|
775
|
+
#if 0
|
776
|
+
static void
|
777
|
+
read_reduced_text(PInfo pi) {
|
778
|
+
char buf[MAX_TEXT_LEN];
|
779
|
+
char *b = buf;
|
780
|
+
char *alloc_buf = 0;
|
781
|
+
char *end = b + sizeof(buf) - 2;
|
782
|
+
char c;
|
783
|
+
int spc = 0;
|
784
|
+
int done = 0;
|
785
|
+
|
786
|
+
while (!done) {
|
787
|
+
c = *pi->s++;
|
788
|
+
switch(c) {
|
789
|
+
case ' ':
|
790
|
+
case '\t':
|
791
|
+
case '\f':
|
792
|
+
case '\n':
|
793
|
+
case '\r':
|
794
|
+
spc = 1;
|
795
|
+
break;
|
796
|
+
case '<':
|
797
|
+
done = 1;
|
798
|
+
pi->s--;
|
799
|
+
break;
|
800
|
+
case '\0':
|
801
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
802
|
+
return;
|
803
|
+
default:
|
804
|
+
if (end <= (b + spc + (('&' == c) ? 7 : 0))) { /* extra 8 for special just in case it is sequence of bytes */
|
805
|
+
unsigned long size;
|
806
|
+
|
807
|
+
if (0 == alloc_buf) {
|
808
|
+
size = sizeof(buf) * 2;
|
809
|
+
alloc_buf = ALLOC_N(char, size);
|
810
|
+
memcpy(alloc_buf, buf, b - buf);
|
811
|
+
b = alloc_buf + (b - buf);
|
812
|
+
} else {
|
813
|
+
unsigned long pos = b - alloc_buf;
|
814
|
+
|
815
|
+
size = (end - alloc_buf) * 2;
|
816
|
+
REALLOC(alloc_buf, char, size);
|
817
|
+
b = alloc_buf + pos;
|
818
|
+
}
|
819
|
+
end = alloc_buf + size - 2;
|
820
|
+
}
|
821
|
+
if (spc) {
|
822
|
+
*b++ = ' ';
|
823
|
+
}
|
824
|
+
spc = 0;
|
825
|
+
if ('&' == c) {
|
826
|
+
if (0 == (b = read_coded_chars(pi, b))) {
|
827
|
+
return;
|
828
|
+
}
|
829
|
+
} else {
|
830
|
+
*b++ = c;
|
831
|
+
}
|
832
|
+
break;
|
833
|
+
}
|
834
|
+
}
|
835
|
+
*b = '\0';
|
836
|
+
if (0 != alloc_buf) {
|
837
|
+
pi->pcb->add_text(pi, alloc_buf, ('/' == *(pi->s + 1)));
|
838
|
+
xfree(alloc_buf);
|
839
|
+
} else {
|
840
|
+
pi->pcb->add_text(pi, buf, ('/' == *(pi->s + 1)));
|
841
|
+
}
|
842
|
+
}
|
843
|
+
#endif
|
844
|
+
|
845
|
+
static char*
|
846
|
+
read_name_token(PInfo pi) {
|
847
|
+
char *start;
|
848
|
+
|
849
|
+
next_non_white(pi);
|
850
|
+
start = pi->s;
|
851
|
+
for (; 1; pi->s++) {
|
852
|
+
switch (*pi->s) {
|
853
|
+
case ' ':
|
854
|
+
case '\t':
|
855
|
+
case '\f':
|
856
|
+
case '?':
|
857
|
+
case '=':
|
858
|
+
case '/':
|
859
|
+
case '>':
|
860
|
+
case '\n':
|
861
|
+
case '\r':
|
862
|
+
return start;
|
863
|
+
case '\0':
|
864
|
+
/* documents never terminate after a name token */
|
865
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
866
|
+
return 0;
|
867
|
+
break; /* to avoid warnings */
|
868
|
+
case ':':
|
869
|
+
if ('\0' == *pi->options->strip_ns) {
|
870
|
+
break;
|
871
|
+
} else if ('*' == *pi->options->strip_ns && '\0' == pi->options->strip_ns[1]) {
|
872
|
+
start = pi->s + 1;
|
873
|
+
} else if (0 == strncmp(pi->options->strip_ns, start, pi->s - start)) {
|
874
|
+
start = pi->s + 1;
|
875
|
+
}
|
876
|
+
break;
|
877
|
+
default:
|
878
|
+
break;
|
879
|
+
}
|
880
|
+
}
|
881
|
+
return start;
|
882
|
+
}
|
883
|
+
|
884
|
+
static void
|
885
|
+
read_cdata(PInfo pi) {
|
886
|
+
char *start;
|
887
|
+
char *end;
|
888
|
+
|
889
|
+
start = pi->s;
|
890
|
+
end = strstr(pi->s, "]]>");
|
891
|
+
if (end == 0) {
|
892
|
+
set_error(&pi->err, "invalid format, CDATA not terminated", pi->str, pi->s);
|
893
|
+
return;
|
894
|
+
}
|
895
|
+
*end = '\0';
|
896
|
+
pi->s = end + 3;
|
897
|
+
if (0 != pi->pcb->add_cdata) {
|
898
|
+
pi->pcb->add_cdata(pi, start, end - start);
|
899
|
+
}
|
900
|
+
}
|
901
|
+
|
902
|
+
/* Assume the value starts immediately and goes until the quote character is
|
903
|
+
* reached again. Do not read the character after the terminating quote.
|
904
|
+
*/
|
905
|
+
static char*
|
906
|
+
read_quoted_value(PInfo pi) {
|
907
|
+
char *value = 0;
|
908
|
+
|
909
|
+
if ('"' == *pi->s || '\'' == *pi->s) {
|
910
|
+
char term = *pi->s;
|
911
|
+
|
912
|
+
pi->s++; /* skip quote character */
|
913
|
+
value = pi->s;
|
914
|
+
for (; *pi->s != term; pi->s++) {
|
915
|
+
if ('\0' == *pi->s) {
|
916
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
917
|
+
return 0;
|
918
|
+
}
|
919
|
+
}
|
920
|
+
*pi->s = '\0'; /* terminate value */
|
921
|
+
pi->s++; /* move past quote */
|
922
|
+
} else if (StrictEffort == pi->options->effort) {
|
923
|
+
set_error(&pi->err, "invalid format, expected a quote character", pi->str, pi->s);
|
924
|
+
return 0;
|
925
|
+
} else if (TolerantEffort == pi->options->effort) {
|
926
|
+
value = pi->s;
|
927
|
+
for (; 1; pi->s++) {
|
928
|
+
switch (*pi->s) {
|
929
|
+
case '\0':
|
930
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
931
|
+
return 0;
|
932
|
+
case ' ':
|
933
|
+
case '/':
|
934
|
+
case '>':
|
935
|
+
case '?': // for instructions
|
936
|
+
case '\t':
|
937
|
+
case '\n':
|
938
|
+
case '\r':
|
939
|
+
pi->last = *pi->s;
|
940
|
+
*pi->s = '\0'; /* terminate value */
|
941
|
+
pi->s++;
|
942
|
+
return value;
|
943
|
+
default:
|
944
|
+
break;
|
945
|
+
}
|
946
|
+
}
|
947
|
+
} else {
|
948
|
+
value = pi->s;
|
949
|
+
next_white(pi);
|
950
|
+
if ('\0' == *pi->s) {
|
951
|
+
set_error(&pi->err, "invalid format, document not terminated", pi->str, pi->s);
|
952
|
+
return 0;
|
953
|
+
}
|
954
|
+
*pi->s++ = '\0'; /* terminate value */
|
955
|
+
}
|
956
|
+
return value;
|
957
|
+
}
|
958
|
+
|
959
|
+
static char*
|
960
|
+
read_hex_uint64(char *b, uint64_t *up) {
|
961
|
+
uint64_t u = 0;
|
962
|
+
char c;
|
963
|
+
|
964
|
+
for (; ';' != *b; b++) {
|
965
|
+
c = *b;
|
966
|
+
if ('0' <= c && c <= '9') {
|
967
|
+
u = (u << 4) | (uint64_t)(c - '0');
|
968
|
+
} else if ('a' <= c && c <= 'f') {
|
969
|
+
u = (u << 4) | (uint64_t)(c - 'a' + 10);
|
970
|
+
} else if ('A' <= c && c <= 'F') {
|
971
|
+
u = (u << 4) | (uint64_t)(c - 'A' + 10);
|
972
|
+
} else {
|
973
|
+
return 0;
|
974
|
+
}
|
975
|
+
}
|
976
|
+
*up = u;
|
977
|
+
|
978
|
+
return b;
|
979
|
+
}
|
980
|
+
|
981
|
+
static char*
|
982
|
+
read_10_uint64(char *b, uint64_t *up) {
|
983
|
+
uint64_t u = 0;
|
984
|
+
char c;
|
985
|
+
|
986
|
+
for (; ';' != *b; b++) {
|
987
|
+
c = *b;
|
988
|
+
if ('0' <= c && c <= '9') {
|
989
|
+
u = (u * 10) + (uint64_t)(c - '0');
|
990
|
+
} else {
|
991
|
+
return 0;
|
992
|
+
}
|
993
|
+
}
|
994
|
+
*up = u;
|
995
|
+
|
996
|
+
return b;
|
997
|
+
}
|
998
|
+
|
999
|
+
static char*
|
1000
|
+
read_coded_chars(PInfo pi, char *text) {
|
1001
|
+
char *b, buf[32];
|
1002
|
+
char *end = buf + sizeof(buf) - 1;
|
1003
|
+
char *s;
|
1004
|
+
|
1005
|
+
for (b = buf, s = pi->s; b < end; b++, s++) {
|
1006
|
+
*b = *s;
|
1007
|
+
if (';' == *s) {
|
1008
|
+
*(b + 1) = '\0';
|
1009
|
+
s++;
|
1010
|
+
break;
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
if (b > end) {
|
1014
|
+
*text++ = '&';
|
1015
|
+
} else if ('#' == *buf) {
|
1016
|
+
uint64_t u = 0;
|
1017
|
+
|
1018
|
+
b = buf + 1;
|
1019
|
+
if ('x' == *b || 'X' == *b) {
|
1020
|
+
b = read_hex_uint64(b + 1, &u);
|
1021
|
+
} else {
|
1022
|
+
b = read_10_uint64(b, &u);
|
1023
|
+
}
|
1024
|
+
if (0 == b) {
|
1025
|
+
*text++ = '&';
|
1026
|
+
} else {
|
1027
|
+
if (u <= 0x000000000000007FULL) {
|
1028
|
+
*text++ = (char)u;
|
1029
|
+
#if HAS_PRIVATE_ENCODING
|
1030
|
+
} else if (ox_utf8_encoding == pi->options->rb_enc ||
|
1031
|
+
0 == strcasecmp(rb_str_ptr(rb_String(ox_utf8_encoding)), rb_str_ptr(rb_String(pi->options->rb_enc)))) {
|
1032
|
+
#else
|
1033
|
+
} else if (ox_utf8_encoding == pi->options->rb_enc) {
|
1034
|
+
#endif
|
1035
|
+
text = ox_ucs_to_utf8_chars(text, u);
|
1036
|
+
#if HAS_PRIVATE_ENCODING
|
1037
|
+
} else if (Qnil == pi->options->rb_enc) {
|
1038
|
+
#else
|
1039
|
+
} else if (0 == pi->options->rb_enc) {
|
1040
|
+
#endif
|
1041
|
+
pi->options->rb_enc = ox_utf8_encoding;
|
1042
|
+
text = ox_ucs_to_utf8_chars(text, u);
|
1043
|
+
} else if (TolerantEffort == pi->options->effort) {
|
1044
|
+
*text++ = '&';
|
1045
|
+
return text;
|
1046
|
+
} else if (u <= 0x00000000000000FFULL) {
|
1047
|
+
*text++ = (char)u;
|
1048
|
+
} else {
|
1049
|
+
/*set_error(&pi->err, "Invalid encoding, need UTF-8 or UTF-16 encoding to parse &#nnnn; character sequences.", pi->str, pi->s); */
|
1050
|
+
set_error(&pi->err, "Invalid encoding, need UTF-8 encoding to parse &#nnnn; character sequences.", pi->str, pi->s);
|
1051
|
+
return 0;
|
1052
|
+
}
|
1053
|
+
pi->s = s;
|
1054
|
+
}
|
1055
|
+
} else if (0 == strcasecmp(buf, "nbsp;")) {
|
1056
|
+
pi->s = s;
|
1057
|
+
*text++ = ' ';
|
1058
|
+
} else if (0 == strcasecmp(buf, "lt;")) {
|
1059
|
+
pi->s = s;
|
1060
|
+
*text++ = '<';
|
1061
|
+
} else if (0 == strcasecmp(buf, "gt;")) {
|
1062
|
+
pi->s = s;
|
1063
|
+
*text++ = '>';
|
1064
|
+
} else if (0 == strcasecmp(buf, "amp;")) {
|
1065
|
+
pi->s = s;
|
1066
|
+
*text++ = '&';
|
1067
|
+
} else if (0 == strcasecmp(buf, "quot;")) {
|
1068
|
+
pi->s = s;
|
1069
|
+
*text++ = '"';
|
1070
|
+
} else if (0 == strcasecmp(buf, "apos;")) {
|
1071
|
+
pi->s = s;
|
1072
|
+
*text++ = '\'';
|
1073
|
+
} else {
|
1074
|
+
*text++ = '&';
|
1075
|
+
}
|
1076
|
+
return text;
|
1077
|
+
}
|
1078
|
+
|
1079
|
+
static int
|
1080
|
+
collapse_special(PInfo pi, char *str) {
|
1081
|
+
char *s = str;
|
1082
|
+
char *b = str;
|
1083
|
+
|
1084
|
+
while ('\0' != *s) {
|
1085
|
+
if ('&' == *s) {
|
1086
|
+
int c;
|
1087
|
+
char *end;
|
1088
|
+
|
1089
|
+
s++;
|
1090
|
+
if ('#' == *s) {
|
1091
|
+
uint64_t u = 0;
|
1092
|
+
char x;
|
1093
|
+
|
1094
|
+
s++;
|
1095
|
+
if ('x' == *s || 'X' == *s) {
|
1096
|
+
x = *s;
|
1097
|
+
s++;
|
1098
|
+
end = read_hex_uint64(s, &u);
|
1099
|
+
} else {
|
1100
|
+
x = '\0';
|
1101
|
+
end = read_10_uint64(s, &u);
|
1102
|
+
}
|
1103
|
+
if (0 == end) {
|
1104
|
+
if (TolerantEffort == pi->options->effort) {
|
1105
|
+
*b++ = '&';
|
1106
|
+
*b++ = '#';
|
1107
|
+
if ('\0' != x) {
|
1108
|
+
*b++ = x;
|
1109
|
+
}
|
1110
|
+
continue;
|
1111
|
+
}
|
1112
|
+
return EDOM;
|
1113
|
+
}
|
1114
|
+
if (u <= 0x000000000000007FULL) {
|
1115
|
+
*b++ = (char)u;
|
1116
|
+
#if HAS_PRIVATE_ENCODING
|
1117
|
+
} else if (ox_utf8_encoding == pi->options->rb_enc ||
|
1118
|
+
0 == strcasecmp(rb_str_ptr(rb_String(ox_utf8_encoding)), rb_str_ptr(rb_String(pi->options->rb_enc)))) {
|
1119
|
+
#else
|
1120
|
+
} else if (ox_utf8_encoding == pi->options->rb_enc) {
|
1121
|
+
#endif
|
1122
|
+
b = ox_ucs_to_utf8_chars(b, u);
|
1123
|
+
/* TBD support UTF-16 */
|
1124
|
+
#if HAS_PRIVATE_ENCODING
|
1125
|
+
} else if (Qnil == pi->options->rb_enc) {
|
1126
|
+
#else
|
1127
|
+
} else if (0 == pi->options->rb_enc) {
|
1128
|
+
#endif
|
1129
|
+
pi->options->rb_enc = ox_utf8_encoding;
|
1130
|
+
b = ox_ucs_to_utf8_chars(b, u);
|
1131
|
+
} else {
|
1132
|
+
/* set_error(&pi->err, "Invalid encoding, need UTF-8 or UTF-16 encoding to parse &#nnnn; character sequences.", pi->str, pi->s);*/
|
1133
|
+
set_error(&pi->err, "Invalid encoding, need UTF-8 encoding to parse &#nnnn; character sequences.", pi->str, pi->s);
|
1134
|
+
return 0;
|
1135
|
+
}
|
1136
|
+
s = end + 1;
|
1137
|
+
} else {
|
1138
|
+
if (0 == strncasecmp(s, "lt;", 3)) {
|
1139
|
+
c = '<';
|
1140
|
+
s += 3;
|
1141
|
+
} else if (0 == strncasecmp(s, "gt;", 3)) {
|
1142
|
+
c = '>';
|
1143
|
+
s += 3;
|
1144
|
+
} else if (0 == strncasecmp(s, "amp;", 4)) {
|
1145
|
+
c = '&';
|
1146
|
+
s += 4;
|
1147
|
+
} else if (0 == strncasecmp(s, "quot;", 5)) {
|
1148
|
+
c = '"';
|
1149
|
+
s += 5;
|
1150
|
+
} else if (0 == strncasecmp(s, "apos;", 5)) {
|
1151
|
+
c = '\'';
|
1152
|
+
s += 5;
|
1153
|
+
} else if (TolerantEffort == pi->options->effort) {
|
1154
|
+
*b++ = '&';
|
1155
|
+
continue;
|
1156
|
+
} else {
|
1157
|
+
c = '?';
|
1158
|
+
while (';' != *s++) {
|
1159
|
+
if ('\0' == *s) {
|
1160
|
+
set_error(&pi->err, "Invalid format, special character does not end with a semicolon", pi->str, pi->s);
|
1161
|
+
return EDOM;
|
1162
|
+
}
|
1163
|
+
}
|
1164
|
+
s++;
|
1165
|
+
set_error(&pi->err, "Invalid format, invalid special character sequence", pi->str, pi->s);
|
1166
|
+
return 0;
|
1167
|
+
}
|
1168
|
+
*b++ = (char)c;
|
1169
|
+
}
|
1170
|
+
} else {
|
1171
|
+
*b++ = *s++;
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
*b = '\0';
|
1175
|
+
|
1176
|
+
return 0;
|
1177
|
+
}
|