video_chat_get 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -1
- data/lib/requests/request.rb +1 -1
- data/lib/site_list/mildom_analyze.rb +1 -0
- data/lib/site_list/openrec_analyze.rb +1 -0
- data/lib/site_list/twitcasting_analyze.rb +1 -0
- data/lib/site_list/youtubelive_analyze.rb +60 -52
- data/lib/video_chat_get/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/gem 2.build_complete b/data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/gem → 2.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/gem_make 2.out +13 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/gem_make.out +13 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/json/ext/generator 2.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/json/ext/generator.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/json/ext/parser 2.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/json/ext/parser.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/mkmf 2.log +60 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/mkmf.log +60 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/gem 2.build_complete b/data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/gem → 2.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/gem_make 2.out +155 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/gem_make.out +155 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/mkmf 2.log +542 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/mkmf.log +542 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/nokogiri/nokogiri 2.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/nokogiri/nokogiri.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/diagrams/.keep 2 b/data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/diagrams/.keep → 2 +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/Makefile 2 +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/fbuffer/fbuffer 2.h +187 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/.sitearchdir.-.json.-.ext 2.time b/data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/.sitearchdir.-.json.-.ext → 2.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/Makefile 2 +265 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/depend 2 +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/extconf 2.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/generator 2.c +1499 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/generator 2.h +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/.sitearchdir.-.json.-.ext 2.time b/data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/.sitearchdir.-.json.-.ext → 2.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/Makefile 2 +265 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/depend 2 +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/extconf 2.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser 2.c +2136 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser 2.h +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser 2.rl +896 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/extconf 2.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/install 2.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/ByteListTranscoder 2.java +166 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Generator 2.java +466 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorMethods 2.java +231 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorService 2.java +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorState 2.java +490 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/OptionsReader 2.java +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Parser 2.java +2362 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Parser 2.rl +893 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/ParserService 2.java +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/RuntimeInfo 2.java +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/StringDecoder 2.java +166 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/StringEncoder 2.java +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Utils 2.java +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/json 2.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/json-java 2.gemspec +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/json_pure 2.gemspec +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json 2.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/bigdecimal 2.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/complex 2.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/core 2.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/date 2.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/date_time 2.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/exception 2.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/ostruct 2.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/range 2.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/rational 2.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/regexp 2.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/set 2.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/struct 2.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/symbol 2.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/time 2.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/common 2.rb +456 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/ext 2.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/ext/.keep 2 b/data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/ext/.keep → 2 +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/generic_object 2.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure 2.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure/generator 2.rb +459 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure/parser 2.rb +319 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/version 2.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/references/rfc7159 2.txt +899 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail10 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail11 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail12 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail13 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail14 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail18 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail19 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail2 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail20 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail21 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail22 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail23 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail24 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail25 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail27 2.json +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail28 2.json +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail3 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail4 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail5 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail6 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail7 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail8 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail9 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/obsolete_fail1 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass1 2.json +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass15 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass16 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass17 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass2 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass26 2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass3 2.json +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_addition_test 2.rb +203 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_common_interface_test 2.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_encoding_test 2.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_ext_parser_test 2.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_fixtures_test 2.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_generator_test 2.rb +421 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_generic_object_test 2.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_parser_test 2.rb +472 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_string_matching_test 2.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/test_helper 2.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/diff 2.sh +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/fuzz 2.rb +131 -0
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/server 2.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/LICENSE 2.md +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/LICENSE-DEPENDENCIES 2.md +1614 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/README 2.md +198 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/bin/nokogiri 2 +118 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/dependencies 2.yml +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/.sitearchdir.-.nokogiri 2.time b/data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/.sitearchdir.-.nokogiri → 2.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/Makefile +16 -15
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/Makefile 2 +626 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/depend 2 +358 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/extconf 2.rb +686 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document 2.c +170 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description 2.c +279 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup 2.c +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup 2.h +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context 2.c +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context 2.h +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser 2.c +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri 2.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri 2.c +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri 2.h +121 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr 2.c +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl 2.c +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata 2.c +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment 2.c +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document 2.c +608 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document 2.h +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment 2.c +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd 2.c +202 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content 2.c +123 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl 2.c +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl 3.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 2.c +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 2.h +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 3.c +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 3.h +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl 2.c +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl 3.c +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl 3.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 2.c +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 3.c +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 3.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 2.c +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 2.h +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 3.c +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 3.h +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 2.c +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 2.h +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 3.c +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 3.h +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 2.c +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 2.h +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 3.c +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 3.h +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node 2.c +1753 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node 2.h +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node 3.h +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 2.c +486 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 2.h +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 3.c +486 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 3.h +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 2.c +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 3.c +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 3.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader 2.c +668 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader 3.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng 2.c +161 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng 3.c +161 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng 3.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 2.c +310 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 2.h +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 3.c +310 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 3.h +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 2.c +262 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 3.c +262 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 3.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser 2.c +159 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser 3.c +159 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser 3.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 2.c +234 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 3.c +234 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 3.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 2.c +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 2.h +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 3.c +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 3.h +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text 2.c +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text 2.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text 3.c +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text 3.h +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context 2.c +298 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context 2.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context 3.h +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 2.c +270 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 2.h +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 2.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 3.c +270 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 3.h +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 3.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri 2.rb +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri 3.rb +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css 2.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css 3.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/node 2.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/node 3.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 2.rb +750 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 2.y +272 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 3.rb +750 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 3.y +272 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser_extras 2.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser_extras 3.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/syntax_error 2.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/syntax_error 3.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 2.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 2.rex +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 3.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 3.rex +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/xpath_visitor 2.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/xpath_visitor 3.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/decorators/slop 2.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/decorators/slop 3.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html 2.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html 3.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/builder 2.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/builder 3.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document 2.rb +335 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document 3.rb +335 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document_fragment 2.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document_fragment 3.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description 2.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description 3.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description_defaults 2.rb +671 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description_defaults 3.rb +671 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/entity_lookup 2.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/entity_lookup 3.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser 2.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser 3.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser_context 2.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser_context 3.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/push_parser 2.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/push_parser 3.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/nokogiri 2.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/nokogiri 3.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/nokogiri.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/syntax_error 2.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/syntax_error 3.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/version 2.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/version 3.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml 2.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml 3.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attr 2.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attr 3.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attribute_decl 2.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attribute_decl 3.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder 2.rb +446 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder 3.rb +446 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/cdata 2.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/cdata 3.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/character_data 2.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/character_data 3.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document 2.rb +285 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document 3.rb +285 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document_fragment 2.rb +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document_fragment 3.rb +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/dtd 2.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/dtd 3.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_content 2.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_content 3.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_decl 2.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_decl 3.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_decl 2.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_decl 3.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_reference 2.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_reference 3.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/namespace 2.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/namespace 3.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node 2.rb +902 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node 3.rb +902 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node/save_options 2.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node/save_options 3.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node_set 2.rb +371 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node_set 3.rb +371 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/notation 2.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/notation 3.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/parse_options 2.rb +120 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/parse_options 3.rb +120 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp 2.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp 3.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/character_data 2.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/character_data 3.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/node 2.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/node 3.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/processing_instruction 2.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/processing_instruction 3.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/reader 2.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/reader 3.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/relax_ng 2.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/relax_ng 3.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax 2.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax 3.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/document 2.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/document 3.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser 2.rb +122 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser 3.rb +122 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser_context 2.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser_context 3.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/push_parser 2.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/push_parser 3.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/schema 2.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/schema 3.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/searchable 2.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/searchable 3.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/syntax_error 2.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/syntax_error 3.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/text 2.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/text 3.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath 2.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath 3.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath/syntax_error 2.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath/syntax_error 3.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath_context 2.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath_context 3.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt 2.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt 3.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt/stylesheet 2.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt/stylesheet 3.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/xsd/xmlparser/nokogiri 2.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/xsd/xmlparser/nokogiri 3.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes 2.patch +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes 3.patch +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0002-Remove-script-macro-support 2.patch +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0002-Remove-script-macro-support 3.patch +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi 2.patch +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi 3.patch +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0004-libxml2.la-is-in-top_builddir 2.patch +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0004-libxml2.la-is-in-top_builddir 3.patch +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities 2.patch +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities 3.patch +32 -0
- data/vendor/bundle/ruby/2.5.0/specifications/json-2.3.0.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/specifications/nokogiri-1.10.9.gemspec +2 -2
- metadata +493 -3
@@ -0,0 +1,12 @@
|
|
1
|
+
#ifndef NOKOGIRI_XML_NODE_SET
|
2
|
+
#define NOKOGIRI_XML_NODE_SET
|
3
|
+
|
4
|
+
#include <nokogiri.h>
|
5
|
+
void init_xml_node_set();
|
6
|
+
|
7
|
+
extern VALUE cNokogiriXmlNodeSet ;
|
8
|
+
VALUE Nokogiri_wrap_xml_node_set(xmlNodeSetPtr node_set, VALUE document) ;
|
9
|
+
VALUE Nokogiri_wrap_xml_node_set_node(xmlNodePtr node, VALUE node_set) ;
|
10
|
+
VALUE Nokogiri_wrap_xml_node_set_namespace(xmlNsPtr node, VALUE node_set) ;
|
11
|
+
|
12
|
+
#endif
|
Binary file
|
data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 2.c
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
#include <xml_processing_instruction.h>
|
2
|
+
|
3
|
+
/*
|
4
|
+
* call-seq:
|
5
|
+
* new(document, name, content)
|
6
|
+
*
|
7
|
+
* Create a new ProcessingInstruction element on the +document+ with +name+
|
8
|
+
* and +content+
|
9
|
+
*/
|
10
|
+
static VALUE new(int argc, VALUE *argv, VALUE klass)
|
11
|
+
{
|
12
|
+
xmlDocPtr xml_doc;
|
13
|
+
xmlNodePtr node;
|
14
|
+
VALUE document;
|
15
|
+
VALUE name;
|
16
|
+
VALUE content;
|
17
|
+
VALUE rest;
|
18
|
+
VALUE rb_node;
|
19
|
+
|
20
|
+
rb_scan_args(argc, argv, "3*", &document, &name, &content, &rest);
|
21
|
+
|
22
|
+
Data_Get_Struct(document, xmlDoc, xml_doc);
|
23
|
+
|
24
|
+
node = xmlNewDocPI(
|
25
|
+
xml_doc,
|
26
|
+
(const xmlChar *)StringValueCStr(name),
|
27
|
+
(const xmlChar *)StringValueCStr(content)
|
28
|
+
);
|
29
|
+
|
30
|
+
nokogiri_root_node(node);
|
31
|
+
|
32
|
+
rb_node = Nokogiri_wrap_xml_node(klass, node);
|
33
|
+
rb_obj_call_init(rb_node, argc, argv);
|
34
|
+
|
35
|
+
if(rb_block_given_p()) rb_yield(rb_node);
|
36
|
+
|
37
|
+
return rb_node;
|
38
|
+
}
|
39
|
+
|
40
|
+
VALUE cNokogiriXmlProcessingInstruction;
|
41
|
+
void init_xml_processing_instruction()
|
42
|
+
{
|
43
|
+
VALUE nokogiri = rb_define_module("Nokogiri");
|
44
|
+
VALUE xml = rb_define_module_under(nokogiri, "XML");
|
45
|
+
VALUE node = rb_define_class_under(xml, "Node", rb_cObject);
|
46
|
+
|
47
|
+
/*
|
48
|
+
* ProcessingInstruction represents a ProcessingInstruction node in an xml
|
49
|
+
* document.
|
50
|
+
*/
|
51
|
+
VALUE klass = rb_define_class_under(xml, "ProcessingInstruction", node);
|
52
|
+
|
53
|
+
cNokogiriXmlProcessingInstruction = klass;
|
54
|
+
|
55
|
+
rb_define_singleton_method(klass, "new", new, -1);
|
56
|
+
}
|
data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 2.o
ADDED
Binary file
|
data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 3.c
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
#include <xml_processing_instruction.h>
|
2
|
+
|
3
|
+
/*
|
4
|
+
* call-seq:
|
5
|
+
* new(document, name, content)
|
6
|
+
*
|
7
|
+
* Create a new ProcessingInstruction element on the +document+ with +name+
|
8
|
+
* and +content+
|
9
|
+
*/
|
10
|
+
static VALUE new(int argc, VALUE *argv, VALUE klass)
|
11
|
+
{
|
12
|
+
xmlDocPtr xml_doc;
|
13
|
+
xmlNodePtr node;
|
14
|
+
VALUE document;
|
15
|
+
VALUE name;
|
16
|
+
VALUE content;
|
17
|
+
VALUE rest;
|
18
|
+
VALUE rb_node;
|
19
|
+
|
20
|
+
rb_scan_args(argc, argv, "3*", &document, &name, &content, &rest);
|
21
|
+
|
22
|
+
Data_Get_Struct(document, xmlDoc, xml_doc);
|
23
|
+
|
24
|
+
node = xmlNewDocPI(
|
25
|
+
xml_doc,
|
26
|
+
(const xmlChar *)StringValueCStr(name),
|
27
|
+
(const xmlChar *)StringValueCStr(content)
|
28
|
+
);
|
29
|
+
|
30
|
+
nokogiri_root_node(node);
|
31
|
+
|
32
|
+
rb_node = Nokogiri_wrap_xml_node(klass, node);
|
33
|
+
rb_obj_call_init(rb_node, argc, argv);
|
34
|
+
|
35
|
+
if(rb_block_given_p()) rb_yield(rb_node);
|
36
|
+
|
37
|
+
return rb_node;
|
38
|
+
}
|
39
|
+
|
40
|
+
VALUE cNokogiriXmlProcessingInstruction;
|
41
|
+
void init_xml_processing_instruction()
|
42
|
+
{
|
43
|
+
VALUE nokogiri = rb_define_module("Nokogiri");
|
44
|
+
VALUE xml = rb_define_module_under(nokogiri, "XML");
|
45
|
+
VALUE node = rb_define_class_under(xml, "Node", rb_cObject);
|
46
|
+
|
47
|
+
/*
|
48
|
+
* ProcessingInstruction represents a ProcessingInstruction node in an xml
|
49
|
+
* document.
|
50
|
+
*/
|
51
|
+
VALUE klass = rb_define_class_under(xml, "ProcessingInstruction", node);
|
52
|
+
|
53
|
+
cNokogiriXmlProcessingInstruction = klass;
|
54
|
+
|
55
|
+
rb_define_singleton_method(klass, "new", new, -1);
|
56
|
+
}
|
data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction.o
CHANGED
Binary file
|
@@ -0,0 +1,668 @@
|
|
1
|
+
#include <xml_reader.h>
|
2
|
+
|
3
|
+
static void dealloc(xmlTextReaderPtr reader)
|
4
|
+
{
|
5
|
+
NOKOGIRI_DEBUG_START(reader);
|
6
|
+
xmlFreeTextReader(reader);
|
7
|
+
NOKOGIRI_DEBUG_END(reader);
|
8
|
+
}
|
9
|
+
|
10
|
+
static int has_attributes(xmlTextReaderPtr reader)
|
11
|
+
{
|
12
|
+
/*
|
13
|
+
* this implementation of xmlTextReaderHasAttributes explicitly includes
|
14
|
+
* namespaces and properties, because some earlier versions ignore
|
15
|
+
* namespaces.
|
16
|
+
*/
|
17
|
+
xmlNodePtr node ;
|
18
|
+
node = xmlTextReaderCurrentNode(reader);
|
19
|
+
if (node == NULL)
|
20
|
+
return(0);
|
21
|
+
|
22
|
+
if ((node->type == XML_ELEMENT_NODE) &&
|
23
|
+
((node->properties != NULL) || (node->nsDef != NULL)))
|
24
|
+
return(1);
|
25
|
+
return(0);
|
26
|
+
}
|
27
|
+
|
28
|
+
static void Nokogiri_xml_node_namespaces(xmlNodePtr node, VALUE attr_hash)
|
29
|
+
{
|
30
|
+
xmlNsPtr ns;
|
31
|
+
static char buffer[XMLNS_BUFFER_LEN] ;
|
32
|
+
char *key ;
|
33
|
+
size_t keylen ;
|
34
|
+
|
35
|
+
if (node->type != XML_ELEMENT_NODE) return ;
|
36
|
+
|
37
|
+
ns = node->nsDef;
|
38
|
+
while (ns != NULL) {
|
39
|
+
|
40
|
+
keylen = XMLNS_PREFIX_LEN + (ns->prefix ? (strlen((const char*)ns->prefix) + 1) : 0) ;
|
41
|
+
if (keylen > XMLNS_BUFFER_LEN) {
|
42
|
+
key = (char*)malloc(keylen) ;
|
43
|
+
} else {
|
44
|
+
key = buffer ;
|
45
|
+
}
|
46
|
+
|
47
|
+
if (ns->prefix) {
|
48
|
+
sprintf(key, "%s:%s", XMLNS_PREFIX, ns->prefix);
|
49
|
+
} else {
|
50
|
+
sprintf(key, "%s", XMLNS_PREFIX);
|
51
|
+
}
|
52
|
+
|
53
|
+
rb_hash_aset(attr_hash,
|
54
|
+
NOKOGIRI_STR_NEW2(key),
|
55
|
+
(ns->href ? NOKOGIRI_STR_NEW2(ns->href) : Qnil)
|
56
|
+
);
|
57
|
+
if (key != buffer) {
|
58
|
+
free(key);
|
59
|
+
}
|
60
|
+
ns = ns->next ;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
/*
|
66
|
+
* call-seq:
|
67
|
+
* default?
|
68
|
+
*
|
69
|
+
* Was an attribute generated from the default value in the DTD or schema?
|
70
|
+
*/
|
71
|
+
static VALUE default_eh(VALUE self)
|
72
|
+
{
|
73
|
+
xmlTextReaderPtr reader;
|
74
|
+
int eh;
|
75
|
+
|
76
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
77
|
+
eh = xmlTextReaderIsDefault(reader);
|
78
|
+
if(eh == 0) return Qfalse;
|
79
|
+
if(eh == 1) return Qtrue;
|
80
|
+
|
81
|
+
return Qnil;
|
82
|
+
}
|
83
|
+
|
84
|
+
/*
|
85
|
+
* call-seq:
|
86
|
+
* value?
|
87
|
+
*
|
88
|
+
* Does this node have a text value?
|
89
|
+
*/
|
90
|
+
static VALUE value_eh(VALUE self)
|
91
|
+
{
|
92
|
+
xmlTextReaderPtr reader;
|
93
|
+
int eh;
|
94
|
+
|
95
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
96
|
+
eh = xmlTextReaderHasValue(reader);
|
97
|
+
if(eh == 0) return Qfalse;
|
98
|
+
if(eh == 1) return Qtrue;
|
99
|
+
|
100
|
+
return Qnil;
|
101
|
+
}
|
102
|
+
|
103
|
+
/*
|
104
|
+
* call-seq:
|
105
|
+
* attributes?
|
106
|
+
*
|
107
|
+
* Does this node have attributes?
|
108
|
+
*/
|
109
|
+
static VALUE attributes_eh(VALUE self)
|
110
|
+
{
|
111
|
+
xmlTextReaderPtr reader;
|
112
|
+
int eh;
|
113
|
+
|
114
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
115
|
+
eh = has_attributes(reader);
|
116
|
+
if(eh == 0) return Qfalse;
|
117
|
+
if(eh == 1) return Qtrue;
|
118
|
+
|
119
|
+
return Qnil;
|
120
|
+
}
|
121
|
+
|
122
|
+
/*
|
123
|
+
* call-seq:
|
124
|
+
* namespaces
|
125
|
+
*
|
126
|
+
* Get a hash of namespaces for this Node
|
127
|
+
*/
|
128
|
+
static VALUE namespaces(VALUE self)
|
129
|
+
{
|
130
|
+
xmlTextReaderPtr reader;
|
131
|
+
xmlNodePtr ptr;
|
132
|
+
VALUE attr ;
|
133
|
+
|
134
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
135
|
+
|
136
|
+
attr = rb_hash_new() ;
|
137
|
+
|
138
|
+
if (! has_attributes(reader))
|
139
|
+
return attr ;
|
140
|
+
|
141
|
+
ptr = xmlTextReaderExpand(reader);
|
142
|
+
if(ptr == NULL) return Qnil;
|
143
|
+
|
144
|
+
Nokogiri_xml_node_namespaces(ptr, attr);
|
145
|
+
|
146
|
+
return attr ;
|
147
|
+
}
|
148
|
+
|
149
|
+
/*
|
150
|
+
* call-seq:
|
151
|
+
* attribute_nodes
|
152
|
+
*
|
153
|
+
* Get a list of attributes for this Node
|
154
|
+
*/
|
155
|
+
static VALUE attribute_nodes(VALUE self)
|
156
|
+
{
|
157
|
+
xmlTextReaderPtr reader;
|
158
|
+
xmlNodePtr ptr;
|
159
|
+
VALUE attr ;
|
160
|
+
|
161
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
162
|
+
|
163
|
+
attr = rb_ary_new() ;
|
164
|
+
|
165
|
+
if (! has_attributes(reader))
|
166
|
+
return attr ;
|
167
|
+
|
168
|
+
ptr = xmlTextReaderExpand(reader);
|
169
|
+
if(ptr == NULL) return Qnil;
|
170
|
+
|
171
|
+
Nokogiri_xml_node_properties(ptr, attr);
|
172
|
+
|
173
|
+
return attr ;
|
174
|
+
}
|
175
|
+
|
176
|
+
/*
|
177
|
+
* call-seq:
|
178
|
+
* attribute_at(index)
|
179
|
+
*
|
180
|
+
* Get the value of attribute at +index+
|
181
|
+
*/
|
182
|
+
static VALUE attribute_at(VALUE self, VALUE index)
|
183
|
+
{
|
184
|
+
xmlTextReaderPtr reader;
|
185
|
+
xmlChar *value;
|
186
|
+
VALUE rb_value;
|
187
|
+
|
188
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
189
|
+
|
190
|
+
if(NIL_P(index)) return Qnil;
|
191
|
+
index = rb_Integer(index);
|
192
|
+
|
193
|
+
value = xmlTextReaderGetAttributeNo(
|
194
|
+
reader,
|
195
|
+
(int)NUM2INT(index)
|
196
|
+
);
|
197
|
+
if(value == NULL) return Qnil;
|
198
|
+
|
199
|
+
rb_value = NOKOGIRI_STR_NEW2(value);
|
200
|
+
xmlFree(value);
|
201
|
+
return rb_value;
|
202
|
+
}
|
203
|
+
|
204
|
+
/*
|
205
|
+
* call-seq:
|
206
|
+
* attribute(name)
|
207
|
+
*
|
208
|
+
* Get the value of attribute named +name+
|
209
|
+
*/
|
210
|
+
static VALUE reader_attribute(VALUE self, VALUE name)
|
211
|
+
{
|
212
|
+
xmlTextReaderPtr reader;
|
213
|
+
xmlChar *value ;
|
214
|
+
VALUE rb_value;
|
215
|
+
|
216
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
217
|
+
|
218
|
+
if(NIL_P(name)) return Qnil;
|
219
|
+
name = StringValue(name) ;
|
220
|
+
|
221
|
+
value = xmlTextReaderGetAttribute(reader, (xmlChar*)StringValueCStr(name));
|
222
|
+
if(value == NULL) return Qnil;
|
223
|
+
|
224
|
+
rb_value = NOKOGIRI_STR_NEW2(value);
|
225
|
+
xmlFree(value);
|
226
|
+
return rb_value;
|
227
|
+
}
|
228
|
+
|
229
|
+
/*
|
230
|
+
* call-seq:
|
231
|
+
* attribute_count
|
232
|
+
*
|
233
|
+
* Get the number of attributes for the current node
|
234
|
+
*/
|
235
|
+
static VALUE attribute_count(VALUE self)
|
236
|
+
{
|
237
|
+
xmlTextReaderPtr reader;
|
238
|
+
int count;
|
239
|
+
|
240
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
241
|
+
count = xmlTextReaderAttributeCount(reader);
|
242
|
+
if(count == -1) return Qnil;
|
243
|
+
|
244
|
+
return INT2NUM((long)count);
|
245
|
+
}
|
246
|
+
|
247
|
+
/*
|
248
|
+
* call-seq:
|
249
|
+
* depth
|
250
|
+
*
|
251
|
+
* Get the depth of the node
|
252
|
+
*/
|
253
|
+
static VALUE depth(VALUE self)
|
254
|
+
{
|
255
|
+
xmlTextReaderPtr reader;
|
256
|
+
int depth;
|
257
|
+
|
258
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
259
|
+
depth = xmlTextReaderDepth(reader);
|
260
|
+
if(depth == -1) return Qnil;
|
261
|
+
|
262
|
+
return INT2NUM((long)depth);
|
263
|
+
}
|
264
|
+
|
265
|
+
/*
|
266
|
+
* call-seq:
|
267
|
+
* xml_version
|
268
|
+
*
|
269
|
+
* Get the XML version of the document being read
|
270
|
+
*/
|
271
|
+
static VALUE xml_version(VALUE self)
|
272
|
+
{
|
273
|
+
xmlTextReaderPtr reader;
|
274
|
+
const char *version;
|
275
|
+
|
276
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
277
|
+
version = (const char *)xmlTextReaderConstXmlVersion(reader);
|
278
|
+
if(version == NULL) return Qnil;
|
279
|
+
|
280
|
+
return NOKOGIRI_STR_NEW2(version);
|
281
|
+
}
|
282
|
+
|
283
|
+
/*
|
284
|
+
* call-seq:
|
285
|
+
* lang
|
286
|
+
*
|
287
|
+
* Get the xml:lang scope within which the node resides.
|
288
|
+
*/
|
289
|
+
static VALUE lang(VALUE self)
|
290
|
+
{
|
291
|
+
xmlTextReaderPtr reader;
|
292
|
+
const char *lang;
|
293
|
+
|
294
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
295
|
+
lang = (const char *)xmlTextReaderConstXmlLang(reader);
|
296
|
+
if(lang == NULL) return Qnil;
|
297
|
+
|
298
|
+
return NOKOGIRI_STR_NEW2(lang);
|
299
|
+
}
|
300
|
+
|
301
|
+
/*
|
302
|
+
* call-seq:
|
303
|
+
* value
|
304
|
+
*
|
305
|
+
* Get the text value of the node if present. Returns a utf-8 encoded string.
|
306
|
+
*/
|
307
|
+
static VALUE value(VALUE self)
|
308
|
+
{
|
309
|
+
xmlTextReaderPtr reader;
|
310
|
+
const char *value;
|
311
|
+
|
312
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
313
|
+
value = (const char *)xmlTextReaderConstValue(reader);
|
314
|
+
if(value == NULL) return Qnil;
|
315
|
+
|
316
|
+
return NOKOGIRI_STR_NEW2(value);
|
317
|
+
}
|
318
|
+
|
319
|
+
/*
|
320
|
+
* call-seq:
|
321
|
+
* prefix
|
322
|
+
*
|
323
|
+
* Get the shorthand reference to the namespace associated with the node.
|
324
|
+
*/
|
325
|
+
static VALUE prefix(VALUE self)
|
326
|
+
{
|
327
|
+
xmlTextReaderPtr reader;
|
328
|
+
const char *prefix;
|
329
|
+
|
330
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
331
|
+
prefix = (const char *)xmlTextReaderConstPrefix(reader);
|
332
|
+
if(prefix == NULL) return Qnil;
|
333
|
+
|
334
|
+
return NOKOGIRI_STR_NEW2(prefix);
|
335
|
+
}
|
336
|
+
|
337
|
+
/*
|
338
|
+
* call-seq:
|
339
|
+
* namespace_uri
|
340
|
+
*
|
341
|
+
* Get the URI defining the namespace associated with the node
|
342
|
+
*/
|
343
|
+
static VALUE namespace_uri(VALUE self)
|
344
|
+
{
|
345
|
+
xmlTextReaderPtr reader;
|
346
|
+
const char *uri;
|
347
|
+
|
348
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
349
|
+
uri = (const char *)xmlTextReaderConstNamespaceUri(reader);
|
350
|
+
if(uri == NULL) return Qnil;
|
351
|
+
|
352
|
+
return NOKOGIRI_STR_NEW2(uri);
|
353
|
+
}
|
354
|
+
|
355
|
+
/*
|
356
|
+
* call-seq:
|
357
|
+
* local_name
|
358
|
+
*
|
359
|
+
* Get the local name of the node
|
360
|
+
*/
|
361
|
+
static VALUE local_name(VALUE self)
|
362
|
+
{
|
363
|
+
xmlTextReaderPtr reader;
|
364
|
+
const char *name;
|
365
|
+
|
366
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
367
|
+
name = (const char *)xmlTextReaderConstLocalName(reader);
|
368
|
+
if(name == NULL) return Qnil;
|
369
|
+
|
370
|
+
return NOKOGIRI_STR_NEW2(name);
|
371
|
+
}
|
372
|
+
|
373
|
+
/*
|
374
|
+
* call-seq:
|
375
|
+
* name
|
376
|
+
*
|
377
|
+
* Get the name of the node. Returns a utf-8 encoded string.
|
378
|
+
*/
|
379
|
+
static VALUE name(VALUE self)
|
380
|
+
{
|
381
|
+
xmlTextReaderPtr reader;
|
382
|
+
const char *name;
|
383
|
+
|
384
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
385
|
+
name = (const char *)xmlTextReaderConstName(reader);
|
386
|
+
if(name == NULL) return Qnil;
|
387
|
+
|
388
|
+
return NOKOGIRI_STR_NEW2(name);
|
389
|
+
}
|
390
|
+
|
391
|
+
/*
|
392
|
+
* call-seq:
|
393
|
+
* base_uri
|
394
|
+
*
|
395
|
+
* Get the xml:base of the node
|
396
|
+
*/
|
397
|
+
static VALUE base_uri(VALUE self)
|
398
|
+
{
|
399
|
+
xmlTextReaderPtr reader;
|
400
|
+
const char * base_uri;
|
401
|
+
|
402
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
403
|
+
base_uri = (const char *)xmlTextReaderBaseUri(reader);
|
404
|
+
if (base_uri == NULL) return Qnil;
|
405
|
+
|
406
|
+
return NOKOGIRI_STR_NEW2(base_uri);
|
407
|
+
}
|
408
|
+
|
409
|
+
/*
|
410
|
+
* call-seq:
|
411
|
+
* state
|
412
|
+
*
|
413
|
+
* Get the state of the reader
|
414
|
+
*/
|
415
|
+
static VALUE state(VALUE self)
|
416
|
+
{
|
417
|
+
xmlTextReaderPtr reader;
|
418
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
419
|
+
return INT2NUM((long)xmlTextReaderReadState(reader));
|
420
|
+
}
|
421
|
+
|
422
|
+
/*
|
423
|
+
* call-seq:
|
424
|
+
* node_type
|
425
|
+
*
|
426
|
+
* Get the type of readers current node
|
427
|
+
*/
|
428
|
+
static VALUE node_type(VALUE self)
|
429
|
+
{
|
430
|
+
xmlTextReaderPtr reader;
|
431
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
432
|
+
return INT2NUM((long)xmlTextReaderNodeType(reader));
|
433
|
+
}
|
434
|
+
|
435
|
+
/*
|
436
|
+
* call-seq:
|
437
|
+
* read
|
438
|
+
*
|
439
|
+
* Move the Reader forward through the XML document.
|
440
|
+
*/
|
441
|
+
static VALUE read_more(VALUE self)
|
442
|
+
{
|
443
|
+
xmlTextReaderPtr reader;
|
444
|
+
xmlErrorPtr error;
|
445
|
+
VALUE error_list;
|
446
|
+
int ret;
|
447
|
+
|
448
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
449
|
+
|
450
|
+
error_list = rb_funcall(self, rb_intern("errors"), 0);
|
451
|
+
|
452
|
+
xmlSetStructuredErrorFunc((void *)error_list, Nokogiri_error_array_pusher);
|
453
|
+
ret = xmlTextReaderRead(reader);
|
454
|
+
xmlSetStructuredErrorFunc(NULL, NULL);
|
455
|
+
|
456
|
+
if(ret == 1) return self;
|
457
|
+
if(ret == 0) return Qnil;
|
458
|
+
|
459
|
+
error = xmlGetLastError();
|
460
|
+
if(error)
|
461
|
+
rb_exc_raise(Nokogiri_wrap_xml_syntax_error(error));
|
462
|
+
else
|
463
|
+
rb_raise(rb_eRuntimeError, "Error pulling: %d", ret);
|
464
|
+
|
465
|
+
return Qnil;
|
466
|
+
}
|
467
|
+
|
468
|
+
/*
|
469
|
+
* call-seq:
|
470
|
+
* inner_xml
|
471
|
+
*
|
472
|
+
* Read the contents of the current node, including child nodes and markup.
|
473
|
+
* Returns a utf-8 encoded string.
|
474
|
+
*/
|
475
|
+
static VALUE inner_xml(VALUE self)
|
476
|
+
{
|
477
|
+
xmlTextReaderPtr reader;
|
478
|
+
xmlChar* value;
|
479
|
+
VALUE str;
|
480
|
+
|
481
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
482
|
+
|
483
|
+
value = xmlTextReaderReadInnerXml(reader);
|
484
|
+
|
485
|
+
str = Qnil;
|
486
|
+
if(value) {
|
487
|
+
str = NOKOGIRI_STR_NEW2((char*)value);
|
488
|
+
xmlFree(value);
|
489
|
+
}
|
490
|
+
|
491
|
+
return str;
|
492
|
+
}
|
493
|
+
|
494
|
+
/*
|
495
|
+
* call-seq:
|
496
|
+
* outer_xml
|
497
|
+
*
|
498
|
+
* Read the current node and its contents, including child nodes and markup.
|
499
|
+
* Returns a utf-8 encoded string.
|
500
|
+
*/
|
501
|
+
static VALUE outer_xml(VALUE self)
|
502
|
+
{
|
503
|
+
xmlTextReaderPtr reader;
|
504
|
+
xmlChar *value;
|
505
|
+
VALUE str = Qnil;
|
506
|
+
|
507
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
508
|
+
|
509
|
+
value = xmlTextReaderReadOuterXml(reader);
|
510
|
+
|
511
|
+
if(value) {
|
512
|
+
str = NOKOGIRI_STR_NEW2((char*)value);
|
513
|
+
xmlFree(value);
|
514
|
+
}
|
515
|
+
return str;
|
516
|
+
}
|
517
|
+
|
518
|
+
/*
|
519
|
+
* call-seq:
|
520
|
+
* from_memory(string, url = nil, encoding = nil, options = 0)
|
521
|
+
*
|
522
|
+
* Create a new reader that parses +string+
|
523
|
+
*/
|
524
|
+
static VALUE from_memory(int argc, VALUE *argv, VALUE klass)
|
525
|
+
{
|
526
|
+
VALUE rb_buffer, rb_url, encoding, rb_options;
|
527
|
+
xmlTextReaderPtr reader;
|
528
|
+
const char * c_url = NULL;
|
529
|
+
const char * c_encoding = NULL;
|
530
|
+
int c_options = 0;
|
531
|
+
VALUE rb_reader, args[3];
|
532
|
+
|
533
|
+
rb_scan_args(argc, argv, "13", &rb_buffer, &rb_url, &encoding, &rb_options);
|
534
|
+
|
535
|
+
if (!RTEST(rb_buffer)) rb_raise(rb_eArgError, "string cannot be nil");
|
536
|
+
if (RTEST(rb_url)) c_url = StringValueCStr(rb_url);
|
537
|
+
if (RTEST(encoding)) c_encoding = StringValueCStr(encoding);
|
538
|
+
if (RTEST(rb_options)) c_options = (int)NUM2INT(rb_options);
|
539
|
+
|
540
|
+
reader = xmlReaderForMemory(
|
541
|
+
StringValuePtr(rb_buffer),
|
542
|
+
(int)RSTRING_LEN(rb_buffer),
|
543
|
+
c_url,
|
544
|
+
c_encoding,
|
545
|
+
c_options
|
546
|
+
);
|
547
|
+
|
548
|
+
if(reader == NULL) {
|
549
|
+
xmlFreeTextReader(reader);
|
550
|
+
rb_raise(rb_eRuntimeError, "couldn't create a parser");
|
551
|
+
}
|
552
|
+
|
553
|
+
rb_reader = Data_Wrap_Struct(klass, NULL, dealloc, reader);
|
554
|
+
args[0] = rb_buffer;
|
555
|
+
args[1] = rb_url;
|
556
|
+
args[2] = encoding;
|
557
|
+
rb_obj_call_init(rb_reader, 3, args);
|
558
|
+
|
559
|
+
return rb_reader;
|
560
|
+
}
|
561
|
+
|
562
|
+
/*
|
563
|
+
* call-seq:
|
564
|
+
* from_io(io, url = nil, encoding = nil, options = 0)
|
565
|
+
*
|
566
|
+
* Create a new reader that parses +io+
|
567
|
+
*/
|
568
|
+
static VALUE from_io(int argc, VALUE *argv, VALUE klass)
|
569
|
+
{
|
570
|
+
VALUE rb_io, rb_url, encoding, rb_options;
|
571
|
+
xmlTextReaderPtr reader;
|
572
|
+
const char * c_url = NULL;
|
573
|
+
const char * c_encoding = NULL;
|
574
|
+
int c_options = 0;
|
575
|
+
VALUE rb_reader, args[3];
|
576
|
+
|
577
|
+
rb_scan_args(argc, argv, "13", &rb_io, &rb_url, &encoding, &rb_options);
|
578
|
+
|
579
|
+
if (!RTEST(rb_io)) rb_raise(rb_eArgError, "io cannot be nil");
|
580
|
+
if (RTEST(rb_url)) c_url = StringValueCStr(rb_url);
|
581
|
+
if (RTEST(encoding)) c_encoding = StringValueCStr(encoding);
|
582
|
+
if (RTEST(rb_options)) c_options = (int)NUM2INT(rb_options);
|
583
|
+
|
584
|
+
reader = xmlReaderForIO(
|
585
|
+
(xmlInputReadCallback)io_read_callback,
|
586
|
+
(xmlInputCloseCallback)io_close_callback,
|
587
|
+
(void *)rb_io,
|
588
|
+
c_url,
|
589
|
+
c_encoding,
|
590
|
+
c_options
|
591
|
+
);
|
592
|
+
|
593
|
+
if(reader == NULL) {
|
594
|
+
xmlFreeTextReader(reader);
|
595
|
+
rb_raise(rb_eRuntimeError, "couldn't create a parser");
|
596
|
+
}
|
597
|
+
|
598
|
+
rb_reader = Data_Wrap_Struct(klass, NULL, dealloc, reader);
|
599
|
+
args[0] = rb_io;
|
600
|
+
args[1] = rb_url;
|
601
|
+
args[2] = encoding;
|
602
|
+
rb_obj_call_init(rb_reader, 3, args);
|
603
|
+
|
604
|
+
return rb_reader;
|
605
|
+
}
|
606
|
+
|
607
|
+
/*
|
608
|
+
* call-seq:
|
609
|
+
* reader.empty_element? # => true or false
|
610
|
+
*
|
611
|
+
* Returns true if the current node is empty, otherwise false.
|
612
|
+
*/
|
613
|
+
static VALUE empty_element_p(VALUE self)
|
614
|
+
{
|
615
|
+
xmlTextReaderPtr reader;
|
616
|
+
|
617
|
+
Data_Get_Struct(self, xmlTextReader, reader);
|
618
|
+
|
619
|
+
if(xmlTextReaderIsEmptyElement(reader))
|
620
|
+
return Qtrue;
|
621
|
+
|
622
|
+
return Qfalse;
|
623
|
+
}
|
624
|
+
|
625
|
+
VALUE cNokogiriXmlReader;
|
626
|
+
|
627
|
+
void init_xml_reader()
|
628
|
+
{
|
629
|
+
VALUE module = rb_define_module("Nokogiri");
|
630
|
+
VALUE xml = rb_define_module_under(module, "XML");
|
631
|
+
|
632
|
+
/*
|
633
|
+
* The Reader parser allows you to effectively pull parse an XML document.
|
634
|
+
* Once instantiated, call Nokogiri::XML::Reader#each to iterate over each
|
635
|
+
* node. Note that you may only iterate over the document once!
|
636
|
+
*/
|
637
|
+
VALUE klass = rb_define_class_under(xml, "Reader", rb_cObject);
|
638
|
+
|
639
|
+
cNokogiriXmlReader = klass;
|
640
|
+
|
641
|
+
rb_define_singleton_method(klass, "from_memory", from_memory, -1);
|
642
|
+
rb_define_singleton_method(klass, "from_io", from_io, -1);
|
643
|
+
|
644
|
+
rb_define_method(klass, "read", read_more, 0);
|
645
|
+
rb_define_method(klass, "inner_xml", inner_xml, 0);
|
646
|
+
rb_define_method(klass, "outer_xml", outer_xml, 0);
|
647
|
+
rb_define_method(klass, "state", state, 0);
|
648
|
+
rb_define_method(klass, "node_type", node_type, 0);
|
649
|
+
rb_define_method(klass, "name", name, 0);
|
650
|
+
rb_define_method(klass, "local_name", local_name, 0);
|
651
|
+
rb_define_method(klass, "namespace_uri", namespace_uri, 0);
|
652
|
+
rb_define_method(klass, "prefix", prefix, 0);
|
653
|
+
rb_define_method(klass, "value", value, 0);
|
654
|
+
rb_define_method(klass, "lang", lang, 0);
|
655
|
+
rb_define_method(klass, "xml_version", xml_version, 0);
|
656
|
+
rb_define_method(klass, "depth", depth, 0);
|
657
|
+
rb_define_method(klass, "attribute_count", attribute_count, 0);
|
658
|
+
rb_define_method(klass, "attribute", reader_attribute, 1);
|
659
|
+
rb_define_method(klass, "namespaces", namespaces, 0);
|
660
|
+
rb_define_method(klass, "attribute_at", attribute_at, 1);
|
661
|
+
rb_define_method(klass, "empty_element?", empty_element_p, 0);
|
662
|
+
rb_define_method(klass, "attributes?", attributes_eh, 0);
|
663
|
+
rb_define_method(klass, "value?", value_eh, 0);
|
664
|
+
rb_define_method(klass, "default?", default_eh, 0);
|
665
|
+
rb_define_method(klass, "base_uri", base_uri, 0);
|
666
|
+
|
667
|
+
rb_define_private_method(klass, "attr_nodes", attribute_nodes, 0);
|
668
|
+
}
|