xaiml 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config-2.0.yml +160 -0
- data/.circleci/config.yml +48 -0
- data/.gitignore +1 -2
- data/.reek.yml +5 -2
- data/.rubocop.rspec.yml +67 -0
- data/.rubocop.ruby.yml +423 -0
- data/.rubocop.yml +18 -15
- data/.ruby-version +1 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +95 -0
- data/Rakefile +3 -1
- data/bin/console +1 -0
- data/lib/xaiml/document.rb +11 -7
- data/lib/xaiml/element/base.rb +5 -0
- data/lib/xaiml/element/category.rb +6 -1
- data/lib/xaiml/element/condition.rb +5 -1
- data/lib/xaiml/element/conditional_random.rb +5 -1
- data/lib/xaiml/element/ext.rb +5 -1
- data/lib/xaiml/element/topic.rb +5 -1
- data/lib/xaiml/element.rb +32 -28
- data/lib/xaiml/exceptions.rb +2 -0
- data/lib/xaiml/version.rb +3 -1
- data/lib/xaiml.rb +6 -4
- data/xaiml.gemspec +9 -2
- metadata +86 -766
- data/vendor/bundle/ruby/2.5.0/bin/coderay +0 -27
- data/vendor/bundle/ruby/2.5.0/bin/htmldiff +0 -29
- data/vendor/bundle/ruby/2.5.0/bin/ldiff +0 -29
- data/vendor/bundle/ruby/2.5.0/bin/pry +0 -27
- data/vendor/bundle/ruby/2.5.0/bin/rake +0 -27
- data/vendor/bundle/ruby/2.5.0/bin/rspec +0 -27
- 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 +0 -93
- 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 +0 -22
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/README_INDEX.rdoc +0 -123
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/bin/coderay +0 -215
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/duo.rb +0 -81
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/_map.rb +0 -17
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/comment_filter.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/count.rb +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/debug.rb +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/debug_lint.rb +0 -63
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/div.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/encoder.rb +0 -190
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/filter.rb +0 -58
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html/css.rb +0 -65
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html/numbering.rb +0 -108
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html/output.rb +0 -166
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/html.rb +0 -333
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/json.rb +0 -83
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/lines_of_code.rb +0 -45
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/lint.rb +0 -59
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/null.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/page.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/span.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/statistic.rb +0 -95
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/terminal.rb +0 -195
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/text.rb +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/token_kind_filter.rb +0 -111
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/xml.rb +0 -72
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders/yaml.rb +0 -50
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/encoders.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/for_redcloth.rb +0 -95
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/file_type.rb +0 -151
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/plugin.rb +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/plugin_host.rb +0 -221
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/helpers/word_list.rb +0 -72
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/_map.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/c.rb +0 -189
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/clojure.rb +0 -217
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/cpp.rb +0 -217
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/css.rb +0 -196
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/debug.rb +0 -75
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/delphi.rb +0 -144
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/diff.rb +0 -221
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/erb.rb +0 -81
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/go.rb +0 -208
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/groovy.rb +0 -268
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/haml.rb +0 -168
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/html.rb +0 -275
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/java/builtin_types.rb +0 -421
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/java.rb +0 -174
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/java_script.rb +0 -237
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/json.rb +0 -98
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/lua.rb +0 -280
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/php.rb +0 -527
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/python.rb +0 -287
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/raydebug.rb +0 -75
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby/patterns.rb +0 -178
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby/string_state.rb +0 -79
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby.rb +0 -477
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/sass.rb +0 -232
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/scanner.rb +0 -337
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/sql.rb +0 -169
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/taskpaper.rb +0 -36
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/text.rb +0 -26
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/xml.rb +0 -17
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners/yaml.rb +0 -140
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/scanners.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles/_map.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles/alpha.rb +0 -153
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles/style.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/styles.rb +0 -15
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/token_kinds.rb +0 -85
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/tokens.rb +0 -161
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/tokens_proxy.rb +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay/version.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/coderay-1.1.2/lib/coderay.rb +0 -284
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/.rspec +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Code-of-Conduct.md +0 -74
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Contributing.md +0 -83
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/History.md +0 -220
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/License.md +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Manifest.txt +0 -37
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/README.rdoc +0 -84
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Rakefile +0 -57
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/autotest/discover.rb +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/htmldiff +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/ldiff +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/COPYING.txt +0 -339
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/artistic.txt +0 -127
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +0 -37
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +0 -322
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +0 -181
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +0 -149
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +0 -276
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +0 -307
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +0 -167
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +0 -5
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +0 -725
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/change_spec.rb +0 -65
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/diff_spec.rb +0 -47
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +0 -50
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +0 -51
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +0 -72
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/issues_spec.rb +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +0 -47
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/patch_spec.rb +0 -422
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +0 -214
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/spec_helper.rb +0 -321
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +0 -310
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +0 -139
- 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 +0 -30
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/.yardopts +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/Gemfile +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/LICENSE +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/README.markdown +0 -91
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/Rakefile +0 -80
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source/code_helpers.rb +0 -154
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source/source_location.rb +0 -138
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source/version.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/lib/method_source.rb +0 -141
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/method_source.gemspec +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/spec/method_source/code_helpers_spec.rb +0 -43
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/spec/method_source_spec.rb +0 -143
- data/vendor/bundle/ruby/2.5.0/gems/method_source-0.9.0/spec/spec_helper.rb +0 -101
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/CHANGELOG.md +0 -455
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/LICENSE +0 -21
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/README.md +0 -307
- 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 +0 -264
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/attr.h +0 -84
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/base64.c +0 -99
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/base64.h +0 -18
- 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 +0 -160
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/builder.c +0 -937
- 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 +0 -160
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache.h +0 -19
- 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 +0 -109
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/cache8.h +0 -23
- 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 +0 -1321
- 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 +0 -43
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/err.h +0 -36
- 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 +0 -67
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/gen_load.c +0 -492
- 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 +0 -228
- 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 +0 -91
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/obj_load.c +0 -986
- 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 +0 -1562
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/ox.h +0 -279
- 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 +0 -1177
- 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 +0 -1750
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax.h +0 -55
- 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 +0 -276
- 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 +0 -228
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_buf.h +0 -222
- 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 +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_hint.c +0 -216
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/sax_hint.h +0 -40
- 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 +0 -85
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/special.c +0 -51
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/ext/ox/special.h +0 -13
- 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 +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/bag.rb +0 -99
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/cdata.rb +0 -12
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/comment.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/doctype.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/document.rb +0 -30
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/element.rb +0 -319
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/error.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/hasattrs.rb +0 -48
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/instruct.rb +0 -36
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/node.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/raw.rb +0 -14
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/sax.rb +0 -113
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/version.rb +0 -5
- data/vendor/bundle/ruby/2.5.0/gems/ox-2.10.0/lib/ox/xmlrpc_adapter.rb +0 -34
- 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 +0 -79
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/CHANGELOG.md +0 -797
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/LICENSE +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/README.md +0 -407
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/bin/pry +0 -12
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/basic_object.rb +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/cli.rb +0 -225
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code/code_file.rb +0 -109
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code/code_range.rb +0 -71
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code/loc.rb +0 -92
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code.rb +0 -353
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/code_object.rb +0 -195
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/color_printer.rb +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/command.rb +0 -716
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/command_set.rb +0 -450
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/amend_line.rb +0 -99
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/bang.rb +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/bang_pry.rb +0 -17
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/abstract_formatter.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/exception_formatter.rb +0 -78
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/file_formatter.rb +0 -71
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat/input_expression_formatter.rb +0 -43
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cat.rb +0 -62
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/cd.rb +0 -41
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/change_inspector.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/change_prompt.rb +0 -26
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/code_collector.rb +0 -167
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/disable_pry.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/disabled_commands.rb +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/easter_eggs.rb +0 -112
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/edit/exception_patcher.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/edit/file_and_line_locator.rb +0 -36
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/edit.rb +0 -199
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/exit.rb +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/exit_all.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/exit_program.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/find_method.rb +0 -193
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/fix_indent.rb +0 -19
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_cd.rb +0 -26
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_install.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_list.rb +0 -33
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_open.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_readme.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gem_search.rb +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/gist.rb +0 -101
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/help.rb +0 -164
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/hist.rb +0 -180
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/import_set.rb +0 -22
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/install_command.rb +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/jump_to.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/list_inspectors.rb +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/list_prompts.rb +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/constants.rb +0 -58
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/formatter.rb +0 -50
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/globals.rb +0 -48
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/grep.rb +0 -21
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/instance_vars.rb +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/interrogatable.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/jruby_hacks.rb +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/local_names.rb +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/local_vars.rb +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/ls_entity.rb +0 -70
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/methods.rb +0 -57
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/methods_helper.rb +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls/self_methods.rb +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ls.rb +0 -116
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/nesting.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/play.rb +0 -103
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/pry_backtrace.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/pry_version.rb +0 -17
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/raise_up.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/reload_code.rb +0 -62
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/reset.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/ri.rb +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/save_file.rb +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/shell_command.rb +0 -74
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/shell_mode.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_doc.rb +0 -83
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_info.rb +0 -209
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_input.rb +0 -17
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/show_source.rb +0 -50
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/simple_prompt.rb +0 -22
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/stat.rb +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/switch_to.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/toggle_color.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/watch_expression/expression.rb +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/watch_expression.rb +0 -105
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/whereami.rb +0 -197
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands/wtf.rb +0 -57
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/commands.rb +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/behavior.rb +0 -231
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/convenience.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/default.rb +0 -149
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config/memoization.rb +0 -44
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/config.rb +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/core_extensions.rb +0 -141
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/editor.rb +0 -135
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/exceptions.rb +0 -78
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/forwardable.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/base_helpers.rb +0 -71
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/command_helpers.rb +0 -156
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/documentation_helpers.rb +0 -76
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/options_helpers.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/table.rb +0 -109
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers/text.rb +0 -116
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/helpers.rb +0 -5
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/history.rb +0 -148
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/history_array.rb +0 -121
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/hooks.rb +0 -171
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/indent.rb +0 -410
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/input_completer.rb +0 -260
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/input_lock.rb +0 -132
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/inspector.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/last_exception.rb +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method/disowned.rb +0 -54
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method/patcher.rb +0 -122
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method/weird_method_locator.rb +0 -199
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/method.rb +0 -546
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/object_path.rb +0 -82
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/output.rb +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/pager.rb +0 -242
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/platform.rb +0 -93
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/plugins.rb +0 -118
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/prompt.rb +0 -26
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/pry_class.rb +0 -401
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/pry_instance.rb +0 -666
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/rbx_path.rb +0 -22
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/repl.rb +0 -232
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/repl_file_loader.rb +0 -74
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/rubygem.rb +0 -84
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop/LICENSE +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop/commands.rb +0 -196
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop/option.rb +0 -208
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/slop.rb +0 -661
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/terminal.rb +0 -90
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/evalable.rb +0 -15
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/mockable.rb +0 -14
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/pry_tester.rb +0 -73
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/utility.rb +0 -26
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable/variables.rb +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/testable.rb +0 -70
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/version.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/wrapped_module/candidate.rb +0 -131
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry/wrapped_module.rb +0 -378
- data/vendor/bundle/ruby/2.5.0/gems/pry-0.11.3/lib/pry.rb +0 -162
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.autotest +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.rubocop.yml +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.togglerc +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/History.rdoc +0 -659
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/Manifest.txt +0 -166
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/README.rdoc +0 -139
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/Rakefile +0 -81
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/bin/rake +0 -33
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/command_line_usage.rdoc +0 -158
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/Rakefile1 +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/Rakefile2 +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/a.c +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/b.c +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/main.c +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/glossary.rdoc +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/jamis.rb +0 -591
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/proto_rake.rdoc +0 -127
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rake.1 +0 -141
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rakefile.rdoc +0 -624
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rational.rdoc +0 -151
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +0 -78
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +0 -141
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +0 -119
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +0 -59
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +0 -121
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +0 -47
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +0 -114
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +0 -165
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +0 -112
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +0 -147
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +0 -37
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +0 -112
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +0 -102
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +0 -60
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +0 -178
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +0 -58
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +0 -191
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/alt_system.rb +0 -110
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/application.rb +0 -790
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/backtrace.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/clean.rb +0 -76
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/cloneable.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/.document +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +0 -21
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +0 -137
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +0 -81
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +0 -125
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/default_loader.rb +0 -14
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +0 -201
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/early_time.rb +0 -21
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/core.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/module.rb +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/string.rb +0 -175
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/time.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_list.rb +0 -428
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_task.rb +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_utils.rb +0 -128
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +0 -144
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/late_time.rb +0 -17
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/linked_list.rb +0 -103
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/multi_task.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/name_space.rb +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/packagetask.rb +0 -199
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pathmap.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/phony.rb +0 -15
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/private_reader.rb +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/promise.rb +0 -99
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rake_module.rb +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +0 -22
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/runtest.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/scope.rb +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task.rb +0 -383
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +0 -98
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_manager.rb +0 -307
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/tasklib.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/testtask.rb +0 -213
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +0 -48
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +0 -164
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/trace_output.rb +0 -22
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/version.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/win32.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake.rb +0 -79
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib/publish.rake +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib/test_times.rake +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/file_creation.rb +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/helper.rb +0 -129
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +0 -478
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/support/ruby_runner.rb +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_private_reader.rb +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake.rb +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_application.rb +0 -643
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_application_options.rb +0 -468
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +0 -119
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_clean.rb +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +0 -68
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_definitions.rb +0 -84
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +0 -76
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_dsl.rb +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_extension.rb +0 -59
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_list.rb +0 -670
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +0 -8
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_task.rb +0 -197
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +0 -314
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +0 -74
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_functional.rb +0 -482
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_late_time.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +0 -84
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_name_space.rb +0 -57
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_package_task.rb +0 -79
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map.rb +0 -168
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +0 -15
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +0 -21
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +0 -26
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_require.rb +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_rules.rb +0 -388
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_scope.rb +0 -44
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task.rb +0 -393
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +0 -119
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +0 -127
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +0 -178
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +0 -19
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +0 -172
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_test_task.rb +0 -146
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +0 -145
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +0 -71
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_win32.rb +0 -72
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_thread_history_display.rb +0 -101
- data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_trace_output.rb +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/LICENSE.md +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/README.md +0 -43
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/lib/rspec/version.rb +0 -5
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.8.0/lib/rspec.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/.document +0 -5
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/.yardopts +0 -8
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/Changelog.md +0 -2221
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/LICENSE.md +0 -26
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/README.md +0 -384
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/exe/rspec +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/autorun.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/backtrace_formatter.rb +0 -65
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/coordinator.rb +0 -62
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/example_minimizer.rb +0 -173
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/fork_runner.rb +0 -134
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/server.rb +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/shell_command.rb +0 -126
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/shell_runner.rb +0 -73
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/utilities.rb +0 -58
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb +0 -2289
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb +0 -233
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/drb.rb +0 -113
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/dsl.rb +0 -98
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/example.rb +0 -653
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb +0 -885
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/example_status_persister.rb +0 -235
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/filter_manager.rb +0 -231
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/flat_map.rb +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -45
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_formatter.rb +0 -70
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_text_formatter.rb +0 -75
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -157
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/console_codes.rb +0 -68
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/deprecation_formatter.rb +0 -223
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/documentation_formatter.rb +0 -70
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/exception_presenter.rb +0 -497
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -28
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/helpers.rb +0 -110
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_formatter.rb +0 -153
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_printer.rb +0 -414
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -120
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/json_formatter.rb +0 -102
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/profile_formatter.rb +0 -68
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/progress_formatter.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/protocol.rb +0 -182
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/snippet_extractor.rb +0 -134
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/syntax_highlighter.rb +0 -91
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb +0 -269
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb +0 -624
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/invocations.rb +0 -87
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/memoized_helpers.rb +0 -535
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/metadata.rb +0 -499
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/metadata_filter.rb +0 -255
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/minitest_assertions_adapter.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/flexmock.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/mocha.rb +0 -57
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/null.rb +0 -14
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/rr.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/rspec.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/notifications.rb +0 -521
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/option_parser.rb +0 -309
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/ordering.rb +0 -158
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/output_wrapper.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/pending.rb +0 -165
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/profiler.rb +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer/.rspec +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -100
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer.rb +0 -48
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/rake_task.rb +0 -168
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb +0 -257
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/ruby_project.rb +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb +0 -199
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/sandbox.rb +0 -37
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/set.rb +0 -54
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/shared_context.rb +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/shared_example_group.rb +0 -269
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/shell_escape.rb +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/test_unit_assertions_adapter.rb +0 -30
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/version.rb +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/warnings.rb +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core/world.rb +0 -275
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.8.0/lib/rspec/core.rb +0 -185
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/.document +0 -5
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/.yardopts +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/Changelog.md +0 -1110
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/LICENSE.md +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/README.md +0 -305
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/block_snippet_extractor.rb +0 -253
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/configuration.rb +0 -215
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/expectation_target.rb +0 -127
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/fail_with.rb +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/failure_aggregator.rb +0 -194
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/handler.rb +0 -170
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/minitest_integration.rb +0 -58
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/syntax.rb +0 -132
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations/version.rb +0 -8
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/expectations.rb +0 -82
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/aliased_matcher.rb +0 -116
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/all.rb +0 -85
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/base_matcher.rb +0 -193
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be.rb +0 -288
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_between.rb +0 -77
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_instance_of.rb +0 -22
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_kind_of.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/be_within.rb +0 -72
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/change.rb +0 -426
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/compound.rb +0 -271
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/contain_exactly.rb +0 -302
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/cover.rb +0 -24
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/eq.rb +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/eql.rb +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/equal.rb +0 -81
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/exist.rb +0 -90
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/has.rb +0 -103
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/have_attributes.rb +0 -114
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/include.rb +0 -149
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/match.rb +0 -106
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/operators.rb +0 -128
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/output.rb +0 -200
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/raise_error.rb +0 -230
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/respond_to.rb +0 -165
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/satisfy.rb +0 -60
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -94
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/throw_symbol.rb +0 -132
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in/yield.rb +0 -432
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/built_in.rb +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/composable.rb +0 -171
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/dsl.rb +0 -527
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/english_phrasing.rb +0 -58
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -73
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/fail_matchers.rb +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/generated_descriptions.rb +0 -41
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/matcher_delegator.rb +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers/matcher_protocol.rb +0 -99
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.8.1/lib/rspec/matchers.rb +0 -1034
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/.document +0 -5
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/.yardopts +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/Changelog.md +0 -1100
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/LICENSE.md +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/README.md +0 -460
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/chain.rb +0 -110
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/error_generator.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -50
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/message_chains.rb +0 -83
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/proxy.rb +0 -116
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/recorder.rb +0 -289
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/stub_chain.rb +0 -51
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance.rb +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/argument_list_matcher.rb +0 -100
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/argument_matchers.rb +0 -320
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/configuration.rb +0 -212
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/error_generator.rb +0 -369
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/example_methods.rb +0 -434
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/instance_method_stasher.rb +0 -146
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/marshal_extension.rb +0 -41
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/expectation_customization.rb +0 -20
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/have_received.rb +0 -134
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive.rb +0 -132
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -82
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive_messages.rb +0 -77
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/message_chain.rb +0 -87
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/message_expectation.rb +0 -741
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/method_double.rb +0 -287
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/method_reference.rb +0 -202
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/minitest_integration.rb +0 -68
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/mutate_const.rb +0 -339
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/object_reference.rb +0 -149
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/order_group.rb +0 -81
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/proxy.rb +0 -485
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/space.rb +0 -238
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/standalone.rb +0 -3
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/syntax.rb +0 -325
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/targets.rb +0 -124
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/test_double.rb +0 -171
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_double.rb +0 -129
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_proxy.rb +0 -220
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/version.rb +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks.rb +0 -130
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/Changelog.md +0 -242
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/LICENSE.md +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/README.md +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/caller_filter.rb +0 -83
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/comparable_version.rb +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/differ.rb +0 -215
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/directory_maker.rb +0 -63
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/encoded_string.rb +0 -165
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/fuzzy_matcher.rb +0 -48
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/hunk_generator.rb +0 -47
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/matcher_definition.rb +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/method_signature_verifier.rb +0 -426
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/mutex.rb +0 -73
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/object_formatter.rb +0 -275
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/recursive_const_methods.rb +0 -76
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/reentrant_mutex.rb +0 -53
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/ruby_features.rb +0 -176
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source/location.rb +0 -21
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source/node.rb +0 -110
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source/token.rb +0 -87
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/source.rb +0 -75
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/deprecation_helpers.rb +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/formatting_support.rb +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/in_sub_process.rb +0 -69
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/library_wide_checks.rb +0 -150
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/shell_out.rb +0 -84
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/stderr_splitter.rb +0 -63
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/string_matcher.rb +0 -46
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/with_isolated_directory.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/with_isolated_stderr.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/spec.rb +0 -81
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/version.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support/warnings.rb +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.8.0/lib/rspec/support.rb +0 -149
- data/vendor/bundle/ruby/2.5.0/specifications/coderay-1.1.2.gemspec +0 -26
- data/vendor/bundle/ruby/2.5.0/specifications/diff-lcs-1.3.gemspec +0 -61
- data/vendor/bundle/ruby/2.5.0/specifications/method_source-0.9.0.gemspec +0 -34
- 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 +0 -41
- data/vendor/bundle/ruby/2.5.0/specifications/rake-10.5.0.gemspec +0 -43
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.8.0.gemspec +0 -42
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.8.0.gemspec +0 -62
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.8.1.gemspec +0 -50
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.8.0.gemspec +0 -50
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.8.0.gemspec +0 -41
@@ -1,1177 +0,0 @@
|
|
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
|
-
}
|