video_chat_get 0.1.5 → 0.1.6
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/lib/file_operats/file_operat_chatdata.rb +11 -9
- data/lib/requests/request.rb +7 -5
- data/lib/site_list/mildom_analyze.rb +16 -18
- data/lib/site_list/openrec_analyze.rb +19 -18
- data/lib/site_list/twitcasting_analyze.rb +33 -25
- data/lib/site_list/whowatch_analyze.rb +5 -7
- data/lib/site_list/youtubelive_analyze.rb +26 -35
- data/lib/video_chat_get/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/bin/htmldiff +1 -1
- data/vendor/bundle/ruby/2.5.0/bin/ldiff +1 -1
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/json-2.3.0/gem_make.out +1 -1
- 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.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/mkmf.log +2 -2
- 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/nokogiri-1.10.9/ext/nokogiri/Makefile +2 -2
- 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/lib/nokogiri/nokogiri.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/specifications/diff-lcs-1.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/httpclient-2.8.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/mini_portile2-2.4.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/rake-10.5.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.9.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.9.3.gemspec +2 -2
- metadata +2 -492
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/gem_make.out +0 -13
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/json/ext/generator.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/json/ext/parser.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/mkmf.log +0 -60
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/gem_make.out +0 -155
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/mkmf.log +0 -542
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/nokogiri/nokogiri.bundle +0 -0
- 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_make 2.out +0 -13
- 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/parser 2.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 +0 -60
- 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_make 2.out +0 -155
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.10.9/mkmf 2.log +0 -542
- 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/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 +0 -199
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/fbuffer/fbuffer 2.h +0 -187
- 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 +0 -265
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/depend 2 +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/extconf 2.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/generator 2.c +0 -1499
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/generator 2.h +0 -171
- 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 +0 -265
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/depend 2 +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/extconf 2.rb +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser 2.c +0 -2136
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser 2.h +0 -91
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser 2.rl +0 -896
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/extconf 2.rb +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/install 2.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/ByteListTranscoder 2.java +0 -166
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Generator 2.java +0 -466
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorMethods 2.java +0 -231
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorService 2.java +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorState 2.java +0 -490
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/OptionsReader 2.java +0 -113
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Parser 2.java +0 -2362
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Parser 2.rl +0 -893
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/ParserService 2.java +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/RuntimeInfo 2.java +0 -116
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/StringDecoder 2.java +0 -166
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/StringEncoder 2.java +0 -111
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Utils 2.java +0 -88
- 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 +0 -37
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/json_pure 2.gemspec +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json 2.rb +0 -63
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/bigdecimal 2.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/complex 2.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/core 2.rb +0 -12
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/date 2.rb +0 -34
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/date_time 2.rb +0 -50
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/exception 2.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/ostruct 2.rb +0 -31
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/range 2.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/rational 2.rb +0 -28
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/regexp 2.rb +0 -30
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/set 2.rb +0 -29
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/struct 2.rb +0 -30
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/symbol 2.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/time 2.rb +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/common 2.rb +0 -456
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/ext 2.rb +0 -15
- 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 +0 -71
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure 2.rb +0 -15
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure/generator 2.rb +0 -459
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure/parser 2.rb +0 -319
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/version 2.rb +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/references/rfc7159 2.txt +0 -899
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail10 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail11 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail12 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail13 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail14 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail18 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail19 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail2 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail20 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail21 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail22 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail23 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail24 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail25 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail27 2.json +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail28 2.json +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail3 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail4 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail5 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail6 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail7 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail8 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail9 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/obsolete_fail1 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass1 2.json +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass15 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass16 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass17 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass2 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass26 2.json +0 -1
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass3 2.json +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_addition_test 2.rb +0 -203
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_common_interface_test 2.rb +0 -126
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_encoding_test 2.rb +0 -107
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_ext_parser_test 2.rb +0 -15
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_fixtures_test 2.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_generator_test 2.rb +0 -421
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_generic_object_test 2.rb +0 -82
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_parser_test 2.rb +0 -472
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_string_matching_test 2.rb +0 -38
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/test_helper 2.rb +0 -17
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/diff 2.sh +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/fuzz 2.rb +0 -131
- data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/server 2.rb +0 -62
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/LICENSE 2.md +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/LICENSE-DEPENDENCIES 2.md +0 -1614
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/README 2.md +0 -198
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/bin/nokogiri 2 +0 -118
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/dependencies 2.yml +0 -74
- 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 2 +0 -626
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/depend 2 +0 -358
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/extconf 2.rb +0 -686
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document 2.c +0 -170
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document 2.h +0 -10
- 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_element_description 2.c +0 -279
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description 2.h +0 -10
- 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_entity_lookup 2.c +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup 2.h +0 -8
- 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_sax_parser_context 2.c +0 -116
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context 2.h +0 -11
- 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_push_parser 2.c +0 -87
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser 2.h +0 -9
- 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/nokogiri 2.bundle +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri 2.c +0 -141
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri 2.h +0 -121
- 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/xml_attr 2.c +0 -103
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr 2.h +0 -9
- 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_attribute_decl 2.c +0 -70
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl 2.h +0 -9
- 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_cdata 2.c +0 -62
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata 2.h +0 -9
- 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_comment 2.c +0 -69
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment 2.h +0 -9
- 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_document 2.c +0 -608
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document 2.h +0 -23
- 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_fragment 2.c +0 -48
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment 2.h +0 -10
- 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_dtd 2.c +0 -202
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd 2.h +0 -10
- 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_element_content 2.c +0 -123
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content 2.h +0 -10
- 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_decl 2.c +0 -69
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl 2.h +0 -9
- 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 +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 2.c +0 -79
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 2.h +0 -8
- 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 +0 -79
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler 3.h +0 -8
- 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_entity_decl 2.c +0 -110
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl 2.h +0 -10
- 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 +0 -110
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl 3.h +0 -10
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 2.c +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 2.h +0 -9
- 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 +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference 3.h +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 2.c +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 2.h +0 -11
- 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 +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io 3.h +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 2.c +0 -112
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 2.h +0 -12
- 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 +0 -112
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks 3.h +0 -12
- 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 +0 -111
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 2.h +0 -14
- 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 +0 -111
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace 3.h +0 -14
- 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_node 2.c +0 -1753
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node 2.h +0 -13
- 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 +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 2.c +0 -486
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 2.h +0 -12
- 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 +0 -486
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set 3.h +0 -12
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 2.c +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 2.h +0 -9
- 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 +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction 3.h +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader 2.c +0 -668
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader 2.h +0 -10
- 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 +0 -10
- 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_relax_ng 2.c +0 -161
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng 2.h +0 -9
- 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 +0 -161
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng 3.h +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 2.c +0 -310
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 2.h +0 -39
- 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 +0 -310
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser 3.h +0 -39
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 2.c +0 -262
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 2.h +0 -10
- 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 +0 -262
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context 3.h +0 -10
- 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_push_parser 2.c +0 -159
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser 2.h +0 -9
- 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 +0 -159
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser 3.h +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 2.c +0 -234
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 2.h +0 -9
- 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 +0 -234
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema 3.h +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 2.c +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 2.h +0 -13
- 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 +0 -64
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error 3.h +0 -13
- 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_text 2.c +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text 2.h +0 -9
- 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 +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text 3.h +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context 2.c +0 -298
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context 2.h +0 -10
- 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 +0 -10
- 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/xslt_stylesheet 2.c +0 -270
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 2.h +0 -14
- 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 +0 -270
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet 3.h +0 -14
- 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/lib/nokogiri 2.rb +0 -144
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri 3.rb +0 -144
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css 2.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css 3.rb +0 -27
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/node 2.rb +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/node 3.rb +0 -52
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 2.rb +0 -750
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 2.y +0 -272
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 3.rb +0 -750
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser 3.y +0 -272
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser_extras 2.rb +0 -91
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser_extras 3.rb +0 -91
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/syntax_error 2.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/syntax_error 3.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 2.rb +0 -153
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 2.rex +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 3.rb +0 -153
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer 3.rex +0 -55
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/xpath_visitor 2.rb +0 -230
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/xpath_visitor 3.rb +0 -230
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/decorators/slop 2.rb +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/decorators/slop 3.rb +0 -42
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html 2.rb +0 -37
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html 3.rb +0 -37
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/builder 2.rb +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/builder 3.rb +0 -35
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document 2.rb +0 -335
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document 3.rb +0 -335
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document_fragment 2.rb +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document_fragment 3.rb +0 -49
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description 2.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description 3.rb +0 -23
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description_defaults 2.rb +0 -671
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description_defaults 3.rb +0 -671
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/entity_lookup 2.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/entity_lookup 3.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser 2.rb +0 -62
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser 3.rb +0 -62
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser_context 2.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser_context 3.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/push_parser 2.rb +0 -36
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/push_parser 3.rb +0 -36
- 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/syntax_error 2.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/syntax_error 3.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/version 2.rb +0 -109
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/version 3.rb +0 -109
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml 2.rb +0 -75
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml 3.rb +0 -75
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attr 2.rb +0 -14
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attr 3.rb +0 -14
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attribute_decl 2.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attribute_decl 3.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder 2.rb +0 -446
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder 3.rb +0 -446
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/cdata 2.rb +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/cdata 3.rb +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/character_data 2.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/character_data 3.rb +0 -7
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document 2.rb +0 -285
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document 3.rb +0 -285
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document_fragment 2.rb +0 -160
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document_fragment 3.rb +0 -160
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/dtd 2.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/dtd 3.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_content 2.rb +0 -36
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_content 3.rb +0 -36
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_decl 2.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_decl 3.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_decl 2.rb +0 -19
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_decl 3.rb +0 -19
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_reference 2.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_reference 3.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/namespace 2.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/namespace 3.rb +0 -13
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node 2.rb +0 -902
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node 3.rb +0 -902
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node/save_options 2.rb +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node/save_options 3.rb +0 -61
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node_set 2.rb +0 -371
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node_set 3.rb +0 -371
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/notation 2.rb +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/notation 3.rb +0 -6
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/parse_options 2.rb +0 -120
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/parse_options 3.rb +0 -120
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp 2.rb +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp 3.rb +0 -2
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/character_data 2.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/character_data 3.rb +0 -18
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/node 2.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/node 3.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/processing_instruction 2.rb +0 -8
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/processing_instruction 3.rb +0 -8
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/reader 2.rb +0 -112
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/reader 3.rb +0 -112
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/relax_ng 2.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/relax_ng 3.rb +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax 2.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax 3.rb +0 -4
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/document 2.rb +0 -171
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/document 3.rb +0 -171
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser 2.rb +0 -122
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser 3.rb +0 -122
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser_context 2.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser_context 3.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/push_parser 2.rb +0 -60
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/push_parser 3.rb +0 -60
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/schema 2.rb +0 -63
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/schema 3.rb +0 -63
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/searchable 2.rb +0 -230
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/searchable 3.rb +0 -230
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/syntax_error 2.rb +0 -70
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/syntax_error 3.rb +0 -70
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/text 2.rb +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/text 3.rb +0 -9
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath 2.rb +0 -10
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath 3.rb +0 -10
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath/syntax_error 2.rb +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath/syntax_error 3.rb +0 -11
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath_context 2.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath_context 3.rb +0 -16
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt 2.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt 3.rb +0 -56
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt/stylesheet 2.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt/stylesheet 3.rb +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/xsd/xmlparser/nokogiri 2.rb +0 -102
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/xsd/xmlparser/nokogiri 3.rb +0 -102
- 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 +0 -78
- 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 +0 -78
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0002-Remove-script-macro-support 2.patch +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0002-Remove-script-macro-support 3.patch +0 -40
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi 2.patch +0 -44
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi 3.patch +0 -44
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0004-libxml2.la-is-in-top_builddir 2.patch +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0004-libxml2.la-is-in-top_builddir 3.patch +0 -25
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities 2.patch +0 -32
- data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities 3.patch +0 -32
@@ -1,272 +0,0 @@
|
|
1
|
-
class Nokogiri::CSS::Parser
|
2
|
-
|
3
|
-
token FUNCTION INCLUDES DASHMATCH LBRACE HASH PLUS GREATER S STRING IDENT
|
4
|
-
token COMMA NUMBER PREFIXMATCH SUFFIXMATCH SUBSTRINGMATCH TILDE NOT_EQUAL
|
5
|
-
token SLASH DOUBLESLASH NOT EQUAL RPAREN LSQUARE RSQUARE HAS
|
6
|
-
|
7
|
-
rule
|
8
|
-
selector
|
9
|
-
: selector COMMA simple_selector_1toN {
|
10
|
-
result = [val.first, val.last].flatten
|
11
|
-
}
|
12
|
-
| prefixless_combinator_selector { result = val.flatten }
|
13
|
-
| optional_S simple_selector_1toN { result = [val.last].flatten }
|
14
|
-
;
|
15
|
-
combinator
|
16
|
-
: PLUS { result = :DIRECT_ADJACENT_SELECTOR }
|
17
|
-
| GREATER { result = :CHILD_SELECTOR }
|
18
|
-
| TILDE { result = :FOLLOWING_SELECTOR }
|
19
|
-
| DOUBLESLASH { result = :DESCENDANT_SELECTOR }
|
20
|
-
| SLASH { result = :CHILD_SELECTOR }
|
21
|
-
;
|
22
|
-
simple_selector
|
23
|
-
: element_name hcap_0toN {
|
24
|
-
result = if val[1].nil?
|
25
|
-
val.first
|
26
|
-
else
|
27
|
-
Node.new(:CONDITIONAL_SELECTOR, [val.first, val[1]])
|
28
|
-
end
|
29
|
-
}
|
30
|
-
| function
|
31
|
-
| function pseudo {
|
32
|
-
result = Node.new(:CONDITIONAL_SELECTOR, val)
|
33
|
-
}
|
34
|
-
| function attrib {
|
35
|
-
result = Node.new(:CONDITIONAL_SELECTOR, val)
|
36
|
-
}
|
37
|
-
| hcap_1toN {
|
38
|
-
result = Node.new(:CONDITIONAL_SELECTOR,
|
39
|
-
[Node.new(:ELEMENT_NAME, ['*']), val.first]
|
40
|
-
)
|
41
|
-
}
|
42
|
-
;
|
43
|
-
prefixless_combinator_selector
|
44
|
-
: combinator simple_selector_1toN {
|
45
|
-
result = Node.new(val.first, [nil, val.last])
|
46
|
-
}
|
47
|
-
;
|
48
|
-
simple_selector_1toN
|
49
|
-
: simple_selector combinator simple_selector_1toN {
|
50
|
-
result = Node.new(val[1], [val.first, val.last])
|
51
|
-
}
|
52
|
-
| simple_selector S simple_selector_1toN {
|
53
|
-
result = Node.new(:DESCENDANT_SELECTOR, [val.first, val.last])
|
54
|
-
}
|
55
|
-
| simple_selector
|
56
|
-
;
|
57
|
-
class
|
58
|
-
: '.' IDENT { result = Node.new(:CLASS_CONDITION, [unescape_css_identifier(val[1])]) }
|
59
|
-
;
|
60
|
-
element_name
|
61
|
-
: namespaced_ident
|
62
|
-
| '*' { result = Node.new(:ELEMENT_NAME, val) }
|
63
|
-
;
|
64
|
-
namespaced_ident
|
65
|
-
: namespace '|' IDENT {
|
66
|
-
result = Node.new(:ELEMENT_NAME,
|
67
|
-
[[val.first, val.last].compact.join(':')]
|
68
|
-
)
|
69
|
-
}
|
70
|
-
| IDENT {
|
71
|
-
name = @namespaces.key?('xmlns') ? "xmlns:#{val.first}" : val.first
|
72
|
-
result = Node.new(:ELEMENT_NAME, [name])
|
73
|
-
}
|
74
|
-
;
|
75
|
-
namespace
|
76
|
-
: IDENT { result = val[0] }
|
77
|
-
|
|
78
|
-
;
|
79
|
-
attrib
|
80
|
-
: LSQUARE attrib_name attrib_val_0or1 RSQUARE {
|
81
|
-
result = Node.new(:ATTRIBUTE_CONDITION,
|
82
|
-
[val[1]] + (val[2] || [])
|
83
|
-
)
|
84
|
-
}
|
85
|
-
| LSQUARE function attrib_val_0or1 RSQUARE {
|
86
|
-
result = Node.new(:ATTRIBUTE_CONDITION,
|
87
|
-
[val[1]] + (val[2] || [])
|
88
|
-
)
|
89
|
-
}
|
90
|
-
| LSQUARE NUMBER RSQUARE {
|
91
|
-
# Non standard, but hpricot supports it.
|
92
|
-
result = Node.new(:PSEUDO_CLASS,
|
93
|
-
[Node.new(:FUNCTION, ['nth-child(', val[1]])]
|
94
|
-
)
|
95
|
-
}
|
96
|
-
;
|
97
|
-
attrib_name
|
98
|
-
: namespace '|' IDENT {
|
99
|
-
result = Node.new(:ELEMENT_NAME,
|
100
|
-
[[val.first, val.last].compact.join(':')]
|
101
|
-
)
|
102
|
-
}
|
103
|
-
| IDENT {
|
104
|
-
# Default namespace is not applied to attributes.
|
105
|
-
# So we don't add prefix "xmlns:" as in namespaced_ident.
|
106
|
-
result = Node.new(:ELEMENT_NAME, [val.first])
|
107
|
-
}
|
108
|
-
;
|
109
|
-
function
|
110
|
-
: FUNCTION RPAREN {
|
111
|
-
result = Node.new(:FUNCTION, [val.first.strip])
|
112
|
-
}
|
113
|
-
| FUNCTION expr RPAREN {
|
114
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
115
|
-
}
|
116
|
-
| FUNCTION nth RPAREN {
|
117
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
118
|
-
}
|
119
|
-
| NOT expr RPAREN {
|
120
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
121
|
-
}
|
122
|
-
| HAS selector RPAREN {
|
123
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
124
|
-
}
|
125
|
-
;
|
126
|
-
expr
|
127
|
-
: NUMBER COMMA expr { result = [val.first, val.last] }
|
128
|
-
| STRING COMMA expr { result = [val.first, val.last] }
|
129
|
-
| IDENT COMMA expr { result = [val.first, val.last] }
|
130
|
-
| NUMBER
|
131
|
-
| STRING
|
132
|
-
| IDENT # even, odd
|
133
|
-
{
|
134
|
-
case val[0]
|
135
|
-
when 'even'
|
136
|
-
result = Node.new(:NTH, ['2','n','+','0'])
|
137
|
-
when 'odd'
|
138
|
-
result = Node.new(:NTH, ['2','n','+','1'])
|
139
|
-
when 'n'
|
140
|
-
result = Node.new(:NTH, ['1','n','+','0'])
|
141
|
-
else
|
142
|
-
# This is not CSS standard. It allows us to support this:
|
143
|
-
# assert_xpath("//a[foo(., @href)]", @parser.parse('a:foo(@href)'))
|
144
|
-
# assert_xpath("//a[foo(., @a, b)]", @parser.parse('a:foo(@a, b)'))
|
145
|
-
# assert_xpath("//a[foo(., a, 10)]", @parser.parse('a:foo(a, 10)'))
|
146
|
-
result = val
|
147
|
-
end
|
148
|
-
}
|
149
|
-
;
|
150
|
-
nth
|
151
|
-
: NUMBER IDENT PLUS NUMBER # 5n+3 -5n+3
|
152
|
-
{
|
153
|
-
if val[1] == 'n'
|
154
|
-
result = Node.new(:NTH, val)
|
155
|
-
else
|
156
|
-
raise Racc::ParseError, "parse error on IDENT '#{val[1]}'"
|
157
|
-
end
|
158
|
-
}
|
159
|
-
| IDENT PLUS NUMBER { # n+3, -n+3
|
160
|
-
if val[0] == 'n'
|
161
|
-
val.unshift("1")
|
162
|
-
result = Node.new(:NTH, val)
|
163
|
-
elsif val[0] == '-n'
|
164
|
-
val[0] = 'n'
|
165
|
-
val.unshift("-1")
|
166
|
-
result = Node.new(:NTH, val)
|
167
|
-
else
|
168
|
-
raise Racc::ParseError, "parse error on IDENT '#{val[1]}'"
|
169
|
-
end
|
170
|
-
}
|
171
|
-
| NUMBER IDENT { # 5n, -5n, 10n-1
|
172
|
-
n = val[1]
|
173
|
-
if n[0, 2] == 'n-'
|
174
|
-
val[1] = 'n'
|
175
|
-
val << "-"
|
176
|
-
# b is contained in n as n is the string "n-b"
|
177
|
-
val << n[2, n.size]
|
178
|
-
result = Node.new(:NTH, val)
|
179
|
-
elsif n == 'n'
|
180
|
-
val << "+"
|
181
|
-
val << "0"
|
182
|
-
result = Node.new(:NTH, val)
|
183
|
-
else
|
184
|
-
raise Racc::ParseError, "parse error on IDENT '#{val[1]}'"
|
185
|
-
end
|
186
|
-
}
|
187
|
-
;
|
188
|
-
pseudo
|
189
|
-
: ':' function {
|
190
|
-
result = Node.new(:PSEUDO_CLASS, [val[1]])
|
191
|
-
}
|
192
|
-
| ':' IDENT { result = Node.new(:PSEUDO_CLASS, [val[1]]) }
|
193
|
-
;
|
194
|
-
hcap_0toN
|
195
|
-
: hcap_1toN
|
196
|
-
|
|
197
|
-
;
|
198
|
-
hcap_1toN
|
199
|
-
: attribute_id hcap_1toN {
|
200
|
-
result = Node.new(:COMBINATOR, val)
|
201
|
-
}
|
202
|
-
| class hcap_1toN {
|
203
|
-
result = Node.new(:COMBINATOR, val)
|
204
|
-
}
|
205
|
-
| attrib hcap_1toN {
|
206
|
-
result = Node.new(:COMBINATOR, val)
|
207
|
-
}
|
208
|
-
| pseudo hcap_1toN {
|
209
|
-
result = Node.new(:COMBINATOR, val)
|
210
|
-
}
|
211
|
-
| negation hcap_1toN {
|
212
|
-
result = Node.new(:COMBINATOR, val)
|
213
|
-
}
|
214
|
-
| attribute_id
|
215
|
-
| class
|
216
|
-
| attrib
|
217
|
-
| pseudo
|
218
|
-
| negation
|
219
|
-
;
|
220
|
-
attribute_id
|
221
|
-
: HASH { result = Node.new(:ID, [unescape_css_identifier(val.first)]) }
|
222
|
-
;
|
223
|
-
attrib_val_0or1
|
224
|
-
: eql_incl_dash IDENT { result = [val.first, unescape_css_identifier(val[1])] }
|
225
|
-
| eql_incl_dash STRING { result = [val.first, unescape_css_string(val[1])] }
|
226
|
-
| eql_incl_dash NUMBER { result = [val.first, val[1]] }
|
227
|
-
|
|
228
|
-
;
|
229
|
-
eql_incl_dash
|
230
|
-
: EQUAL { result = :equal }
|
231
|
-
| PREFIXMATCH { result = :prefix_match }
|
232
|
-
| SUFFIXMATCH { result = :suffix_match }
|
233
|
-
| SUBSTRINGMATCH { result = :substring_match }
|
234
|
-
| NOT_EQUAL { result = :not_equal }
|
235
|
-
| INCLUDES { result = :includes }
|
236
|
-
| DASHMATCH { result = :dash_match }
|
237
|
-
;
|
238
|
-
negation
|
239
|
-
: NOT negation_arg RPAREN {
|
240
|
-
result = Node.new(:NOT, [val[1]])
|
241
|
-
}
|
242
|
-
;
|
243
|
-
negation_arg
|
244
|
-
: element_name
|
245
|
-
| element_name hcap_1toN
|
246
|
-
| hcap_1toN
|
247
|
-
;
|
248
|
-
optional_S
|
249
|
-
: S
|
250
|
-
|
|
251
|
-
;
|
252
|
-
end
|
253
|
-
|
254
|
-
---- header
|
255
|
-
|
256
|
-
require 'nokogiri/css/parser_extras'
|
257
|
-
|
258
|
-
---- inner
|
259
|
-
|
260
|
-
def unescape_css_identifier(identifier)
|
261
|
-
identifier.gsub(/\\(?:([^0-9a-fA-F])|([0-9a-fA-F]{1,6})\s?)/){ |m| $1 || [$2.hex].pack('U') }
|
262
|
-
end
|
263
|
-
|
264
|
-
def unescape_css_string(str)
|
265
|
-
str.gsub(/\\(?:([^0-9a-fA-F])|([0-9a-fA-F]{1,6})\s?)/) do |m|
|
266
|
-
if $1=="\n"
|
267
|
-
''
|
268
|
-
else
|
269
|
-
$1 || [$2.hex].pack('U')
|
270
|
-
end
|
271
|
-
end
|
272
|
-
end
|
@@ -1,750 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.4.14
|
4
|
-
# from Racc grammer file "".
|
5
|
-
#
|
6
|
-
|
7
|
-
require 'racc/parser.rb'
|
8
|
-
|
9
|
-
|
10
|
-
require 'nokogiri/css/parser_extras'
|
11
|
-
|
12
|
-
module Nokogiri
|
13
|
-
module CSS
|
14
|
-
class Parser < Racc::Parser
|
15
|
-
|
16
|
-
|
17
|
-
def unescape_css_identifier(identifier)
|
18
|
-
identifier.gsub(/\\(?:([^0-9a-fA-F])|([0-9a-fA-F]{1,6})\s?)/){ |m| $1 || [$2.hex].pack('U') }
|
19
|
-
end
|
20
|
-
|
21
|
-
def unescape_css_string(str)
|
22
|
-
str.gsub(/\\(?:([^0-9a-fA-F])|([0-9a-fA-F]{1,6})\s?)/) do |m|
|
23
|
-
if $1=="\n"
|
24
|
-
''
|
25
|
-
else
|
26
|
-
$1 || [$2.hex].pack('U')
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
##### State transition tables begin ###
|
31
|
-
|
32
|
-
racc_action_table = [
|
33
|
-
24, 93, 56, 57, 33, 55, 94, 23, 24, 22,
|
34
|
-
12, 93, 33, 27, 35, 52, 44, 22, -23, 25,
|
35
|
-
45, 98, 23, 33, 26, 18, 20, 25, 27, -23,
|
36
|
-
23, 24, 26, 18, 20, 33, 27, 11, 39, 24,
|
37
|
-
22, 23, 74, 33, 18, 91, 90, 27, 22, 12,
|
38
|
-
25, 24, -23, 23, 85, 26, 18, 20, 25, 27,
|
39
|
-
66, 23, 24, 26, 18, 20, 33, 27, 86, 88,
|
40
|
-
51, 22, 89, 92, 24, 26, 56, 87, 95, 60,
|
41
|
-
90, 25, 96, 46, 23, 49, 26, 18, 20, 99,
|
42
|
-
27, 33, 33, 51, 103, 104, 56, 58, 26, 60,
|
43
|
-
93, 106, 33, 33, 33, 109, 39, 39, 110, 23,
|
44
|
-
23, nil, 18, 18, 20, 27, 27, 39, 39, 39,
|
45
|
-
23, 23, 23, 18, 18, 18, 27, 27, 27, 33,
|
46
|
-
33, 101, 100, nil, 102, 22, 56, 87, nil, 60,
|
47
|
-
33, nil, nil, nil, 39, 39, nil, 23, 23, nil,
|
48
|
-
18, 18, 20, 27, 27, 39, 82, 83, 23, 56,
|
49
|
-
87, 18, 60, nil, 27, 82, 83, 78, 79, 80,
|
50
|
-
nil, 81, nil, nil, nil, 77, 78, 79, 80, nil,
|
51
|
-
81, 4, 5, 10, 77, 4, 5, 43, nil, 56,
|
52
|
-
87, 6, 60, 8, 7, 6, nil, 8, 7, 4,
|
53
|
-
5, 10, nil, nil, nil, nil, nil, nil, nil, 6,
|
54
|
-
nil, 8, 7 ]
|
55
|
-
|
56
|
-
racc_action_check = [
|
57
|
-
3, 58, 24, 24, 3, 24, 57, 15, 9, 3,
|
58
|
-
64, 57, 9, 15, 11, 24, 18, 9, 58, 3,
|
59
|
-
21, 64, 3, 14, 3, 3, 3, 9, 3, 22,
|
60
|
-
9, 12, 9, 9, 9, 12, 9, 1, 14, 42,
|
61
|
-
12, 14, 45, 42, 14, 55, 55, 14, 42, 1,
|
62
|
-
12, 27, 46, 12, 49, 12, 12, 12, 42, 12,
|
63
|
-
27, 42, 43, 42, 42, 42, 43, 42, 50, 53,
|
64
|
-
27, 43, 54, 56, 23, 27, 51, 51, 59, 51,
|
65
|
-
60, 43, 61, 23, 43, 23, 43, 43, 43, 75,
|
66
|
-
43, 28, 25, 23, 84, 86, 25, 25, 23, 25,
|
67
|
-
87, 91, 29, 30, 31, 94, 28, 25, 106, 28,
|
68
|
-
25, nil, 28, 25, 25, 28, 25, 29, 30, 31,
|
69
|
-
29, 30, 31, 29, 30, 31, 29, 30, 31, 32,
|
70
|
-
39, 76, 76, nil, 76, 39, 90, 90, nil, 90,
|
71
|
-
62, nil, nil, nil, 32, 39, nil, 32, 39, nil,
|
72
|
-
32, 39, 39, 32, 39, 62, 47, 47, 62, 92,
|
73
|
-
92, 62, 92, nil, 62, 48, 48, 47, 47, 47,
|
74
|
-
nil, 47, nil, nil, nil, 47, 48, 48, 48, nil,
|
75
|
-
48, 0, 0, 0, 48, 17, 17, 17, nil, 93,
|
76
|
-
93, 0, 93, 0, 0, 17, nil, 17, 17, 26,
|
77
|
-
26, 26, nil, nil, nil, nil, nil, nil, nil, 26,
|
78
|
-
nil, 26, 26 ]
|
79
|
-
|
80
|
-
racc_action_pointer = [
|
81
|
-
174, 37, nil, -2, nil, nil, nil, nil, nil, 6,
|
82
|
-
nil, 14, 29, nil, 17, -17, nil, 178, 5, nil,
|
83
|
-
nil, -9, 0, 72, -8, 86, 192, 49, 85, 96,
|
84
|
-
97, 98, 123, nil, nil, nil, nil, nil, nil, 124,
|
85
|
-
nil, nil, 37, 60, nil, 31, 23, 153, 162, 29,
|
86
|
-
39, 66, nil, 46, 49, 34, 61, -1, -11, 55,
|
87
|
-
68, 59, 134, nil, -2, nil, nil, nil, nil, nil,
|
88
|
-
nil, nil, nil, nil, nil, 64, 121, nil, nil, nil,
|
89
|
-
nil, nil, nil, nil, 69, nil, 84, 88, nil, nil,
|
90
|
-
126, 94, 149, 179, 92, nil, nil, nil, nil, nil,
|
91
|
-
nil, nil, nil, nil, nil, nil, 95, nil, nil, nil,
|
92
|
-
nil ]
|
93
|
-
|
94
|
-
racc_action_default = [
|
95
|
-
-75, -76, -2, -24, -4, -5, -6, -7, -8, -24,
|
96
|
-
-74, -76, -24, -3, -47, -10, -13, -17, -76, -19,
|
97
|
-
-20, -76, -22, -24, -76, -24, -75, -76, -53, -54,
|
98
|
-
-55, -56, -57, -58, -14, 111, -1, -9, -46, -24,
|
99
|
-
-11, -12, -24, -24, -18, -76, -29, -62, -62, -76,
|
100
|
-
-76, -76, -30, -76, -76, -38, -39, -40, -22, -76,
|
101
|
-
-38, -76, -71, -73, -76, -44, -45, -48, -49, -50,
|
102
|
-
-51, -52, -15, -16, -21, -76, -76, -63, -64, -65,
|
103
|
-
-66, -67, -68, -69, -76, -27, -76, -40, -31, -32,
|
104
|
-
-76, -43, -76, -76, -76, -33, -70, -72, -34, -25,
|
105
|
-
-59, -60, -61, -26, -28, -35, -76, -36, -37, -42,
|
106
|
-
-41 ]
|
107
|
-
|
108
|
-
racc_goto_table = [
|
109
|
-
53, 38, 13, 1, 42, 48, 62, 37, 34, 65,
|
110
|
-
40, 36, 63, 75, 84, 67, 68, 69, 70, 71,
|
111
|
-
62, 41, 50, 47, 54, nil, 63, nil, nil, 64,
|
112
|
-
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
113
|
-
nil, 72, 73, nil, nil, nil, nil, nil, nil, 97,
|
114
|
-
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
115
|
-
nil, nil, nil, nil, nil, nil, 105, nil, 107, 108 ]
|
116
|
-
|
117
|
-
racc_goto_check = [
|
118
|
-
18, 12, 2, 1, 5, 9, 7, 8, 2, 9,
|
119
|
-
10, 2, 12, 17, 17, 12, 12, 12, 12, 12,
|
120
|
-
7, 11, 15, 16, 19, nil, 12, nil, nil, 1,
|
121
|
-
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
122
|
-
nil, 2, 2, nil, nil, nil, nil, nil, nil, 12,
|
123
|
-
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
124
|
-
nil, nil, nil, nil, nil, nil, 18, nil, 18, 18 ]
|
125
|
-
|
126
|
-
racc_goto_pointer = [
|
127
|
-
nil, 3, -1, nil, nil, -13, nil, -19, -7, -18,
|
128
|
-
-5, 6, -13, nil, nil, -1, 0, -34, -24, 0,
|
129
|
-
nil, nil, nil, nil ]
|
130
|
-
|
131
|
-
racc_goto_default = [
|
132
|
-
nil, nil, nil, 2, 3, 9, 17, 14, nil, 15,
|
133
|
-
31, 30, 16, 29, 19, 21, nil, nil, 59, nil,
|
134
|
-
28, 32, 76, 61 ]
|
135
|
-
|
136
|
-
racc_reduce_table = [
|
137
|
-
0, 0, :racc_error,
|
138
|
-
3, 32, :_reduce_1,
|
139
|
-
1, 32, :_reduce_2,
|
140
|
-
2, 32, :_reduce_3,
|
141
|
-
1, 36, :_reduce_4,
|
142
|
-
1, 36, :_reduce_5,
|
143
|
-
1, 36, :_reduce_6,
|
144
|
-
1, 36, :_reduce_7,
|
145
|
-
1, 36, :_reduce_8,
|
146
|
-
2, 37, :_reduce_9,
|
147
|
-
1, 37, :_reduce_none,
|
148
|
-
2, 37, :_reduce_11,
|
149
|
-
2, 37, :_reduce_12,
|
150
|
-
1, 37, :_reduce_13,
|
151
|
-
2, 34, :_reduce_14,
|
152
|
-
3, 33, :_reduce_15,
|
153
|
-
3, 33, :_reduce_16,
|
154
|
-
1, 33, :_reduce_none,
|
155
|
-
2, 44, :_reduce_18,
|
156
|
-
1, 38, :_reduce_none,
|
157
|
-
1, 38, :_reduce_20,
|
158
|
-
3, 45, :_reduce_21,
|
159
|
-
1, 45, :_reduce_22,
|
160
|
-
1, 46, :_reduce_23,
|
161
|
-
0, 46, :_reduce_none,
|
162
|
-
4, 42, :_reduce_25,
|
163
|
-
4, 42, :_reduce_26,
|
164
|
-
3, 42, :_reduce_27,
|
165
|
-
3, 47, :_reduce_28,
|
166
|
-
1, 47, :_reduce_29,
|
167
|
-
2, 40, :_reduce_30,
|
168
|
-
3, 40, :_reduce_31,
|
169
|
-
3, 40, :_reduce_32,
|
170
|
-
3, 40, :_reduce_33,
|
171
|
-
3, 40, :_reduce_34,
|
172
|
-
3, 49, :_reduce_35,
|
173
|
-
3, 49, :_reduce_36,
|
174
|
-
3, 49, :_reduce_37,
|
175
|
-
1, 49, :_reduce_none,
|
176
|
-
1, 49, :_reduce_none,
|
177
|
-
1, 49, :_reduce_40,
|
178
|
-
4, 50, :_reduce_41,
|
179
|
-
3, 50, :_reduce_42,
|
180
|
-
2, 50, :_reduce_43,
|
181
|
-
2, 41, :_reduce_44,
|
182
|
-
2, 41, :_reduce_45,
|
183
|
-
1, 39, :_reduce_none,
|
184
|
-
0, 39, :_reduce_none,
|
185
|
-
2, 43, :_reduce_48,
|
186
|
-
2, 43, :_reduce_49,
|
187
|
-
2, 43, :_reduce_50,
|
188
|
-
2, 43, :_reduce_51,
|
189
|
-
2, 43, :_reduce_52,
|
190
|
-
1, 43, :_reduce_none,
|
191
|
-
1, 43, :_reduce_none,
|
192
|
-
1, 43, :_reduce_none,
|
193
|
-
1, 43, :_reduce_none,
|
194
|
-
1, 43, :_reduce_none,
|
195
|
-
1, 51, :_reduce_58,
|
196
|
-
2, 48, :_reduce_59,
|
197
|
-
2, 48, :_reduce_60,
|
198
|
-
2, 48, :_reduce_61,
|
199
|
-
0, 48, :_reduce_none,
|
200
|
-
1, 53, :_reduce_63,
|
201
|
-
1, 53, :_reduce_64,
|
202
|
-
1, 53, :_reduce_65,
|
203
|
-
1, 53, :_reduce_66,
|
204
|
-
1, 53, :_reduce_67,
|
205
|
-
1, 53, :_reduce_68,
|
206
|
-
1, 53, :_reduce_69,
|
207
|
-
3, 52, :_reduce_70,
|
208
|
-
1, 54, :_reduce_none,
|
209
|
-
2, 54, :_reduce_none,
|
210
|
-
1, 54, :_reduce_none,
|
211
|
-
1, 35, :_reduce_none,
|
212
|
-
0, 35, :_reduce_none ]
|
213
|
-
|
214
|
-
racc_reduce_n = 76
|
215
|
-
|
216
|
-
racc_shift_n = 111
|
217
|
-
|
218
|
-
racc_token_table = {
|
219
|
-
false => 0,
|
220
|
-
:error => 1,
|
221
|
-
:FUNCTION => 2,
|
222
|
-
:INCLUDES => 3,
|
223
|
-
:DASHMATCH => 4,
|
224
|
-
:LBRACE => 5,
|
225
|
-
:HASH => 6,
|
226
|
-
:PLUS => 7,
|
227
|
-
:GREATER => 8,
|
228
|
-
:S => 9,
|
229
|
-
:STRING => 10,
|
230
|
-
:IDENT => 11,
|
231
|
-
:COMMA => 12,
|
232
|
-
:NUMBER => 13,
|
233
|
-
:PREFIXMATCH => 14,
|
234
|
-
:SUFFIXMATCH => 15,
|
235
|
-
:SUBSTRINGMATCH => 16,
|
236
|
-
:TILDE => 17,
|
237
|
-
:NOT_EQUAL => 18,
|
238
|
-
:SLASH => 19,
|
239
|
-
:DOUBLESLASH => 20,
|
240
|
-
:NOT => 21,
|
241
|
-
:EQUAL => 22,
|
242
|
-
:RPAREN => 23,
|
243
|
-
:LSQUARE => 24,
|
244
|
-
:RSQUARE => 25,
|
245
|
-
:HAS => 26,
|
246
|
-
"." => 27,
|
247
|
-
"*" => 28,
|
248
|
-
"|" => 29,
|
249
|
-
":" => 30 }
|
250
|
-
|
251
|
-
racc_nt_base = 31
|
252
|
-
|
253
|
-
racc_use_result_var = true
|
254
|
-
|
255
|
-
Racc_arg = [
|
256
|
-
racc_action_table,
|
257
|
-
racc_action_check,
|
258
|
-
racc_action_default,
|
259
|
-
racc_action_pointer,
|
260
|
-
racc_goto_table,
|
261
|
-
racc_goto_check,
|
262
|
-
racc_goto_default,
|
263
|
-
racc_goto_pointer,
|
264
|
-
racc_nt_base,
|
265
|
-
racc_reduce_table,
|
266
|
-
racc_token_table,
|
267
|
-
racc_shift_n,
|
268
|
-
racc_reduce_n,
|
269
|
-
racc_use_result_var ]
|
270
|
-
|
271
|
-
Racc_token_to_s_table = [
|
272
|
-
"$end",
|
273
|
-
"error",
|
274
|
-
"FUNCTION",
|
275
|
-
"INCLUDES",
|
276
|
-
"DASHMATCH",
|
277
|
-
"LBRACE",
|
278
|
-
"HASH",
|
279
|
-
"PLUS",
|
280
|
-
"GREATER",
|
281
|
-
"S",
|
282
|
-
"STRING",
|
283
|
-
"IDENT",
|
284
|
-
"COMMA",
|
285
|
-
"NUMBER",
|
286
|
-
"PREFIXMATCH",
|
287
|
-
"SUFFIXMATCH",
|
288
|
-
"SUBSTRINGMATCH",
|
289
|
-
"TILDE",
|
290
|
-
"NOT_EQUAL",
|
291
|
-
"SLASH",
|
292
|
-
"DOUBLESLASH",
|
293
|
-
"NOT",
|
294
|
-
"EQUAL",
|
295
|
-
"RPAREN",
|
296
|
-
"LSQUARE",
|
297
|
-
"RSQUARE",
|
298
|
-
"HAS",
|
299
|
-
"\".\"",
|
300
|
-
"\"*\"",
|
301
|
-
"\"|\"",
|
302
|
-
"\":\"",
|
303
|
-
"$start",
|
304
|
-
"selector",
|
305
|
-
"simple_selector_1toN",
|
306
|
-
"prefixless_combinator_selector",
|
307
|
-
"optional_S",
|
308
|
-
"combinator",
|
309
|
-
"simple_selector",
|
310
|
-
"element_name",
|
311
|
-
"hcap_0toN",
|
312
|
-
"function",
|
313
|
-
"pseudo",
|
314
|
-
"attrib",
|
315
|
-
"hcap_1toN",
|
316
|
-
"class",
|
317
|
-
"namespaced_ident",
|
318
|
-
"namespace",
|
319
|
-
"attrib_name",
|
320
|
-
"attrib_val_0or1",
|
321
|
-
"expr",
|
322
|
-
"nth",
|
323
|
-
"attribute_id",
|
324
|
-
"negation",
|
325
|
-
"eql_incl_dash",
|
326
|
-
"negation_arg" ]
|
327
|
-
|
328
|
-
Racc_debug_parser = false
|
329
|
-
|
330
|
-
##### State transition tables end #####
|
331
|
-
|
332
|
-
# reduce 0 omitted
|
333
|
-
|
334
|
-
def _reduce_1(val, _values, result)
|
335
|
-
result = [val.first, val.last].flatten
|
336
|
-
|
337
|
-
result
|
338
|
-
end
|
339
|
-
|
340
|
-
def _reduce_2(val, _values, result)
|
341
|
-
result = val.flatten
|
342
|
-
result
|
343
|
-
end
|
344
|
-
|
345
|
-
def _reduce_3(val, _values, result)
|
346
|
-
result = [val.last].flatten
|
347
|
-
result
|
348
|
-
end
|
349
|
-
|
350
|
-
def _reduce_4(val, _values, result)
|
351
|
-
result = :DIRECT_ADJACENT_SELECTOR
|
352
|
-
result
|
353
|
-
end
|
354
|
-
|
355
|
-
def _reduce_5(val, _values, result)
|
356
|
-
result = :CHILD_SELECTOR
|
357
|
-
result
|
358
|
-
end
|
359
|
-
|
360
|
-
def _reduce_6(val, _values, result)
|
361
|
-
result = :FOLLOWING_SELECTOR
|
362
|
-
result
|
363
|
-
end
|
364
|
-
|
365
|
-
def _reduce_7(val, _values, result)
|
366
|
-
result = :DESCENDANT_SELECTOR
|
367
|
-
result
|
368
|
-
end
|
369
|
-
|
370
|
-
def _reduce_8(val, _values, result)
|
371
|
-
result = :CHILD_SELECTOR
|
372
|
-
result
|
373
|
-
end
|
374
|
-
|
375
|
-
def _reduce_9(val, _values, result)
|
376
|
-
result = if val[1].nil?
|
377
|
-
val.first
|
378
|
-
else
|
379
|
-
Node.new(:CONDITIONAL_SELECTOR, [val.first, val[1]])
|
380
|
-
end
|
381
|
-
|
382
|
-
result
|
383
|
-
end
|
384
|
-
|
385
|
-
# reduce 10 omitted
|
386
|
-
|
387
|
-
def _reduce_11(val, _values, result)
|
388
|
-
result = Node.new(:CONDITIONAL_SELECTOR, val)
|
389
|
-
|
390
|
-
result
|
391
|
-
end
|
392
|
-
|
393
|
-
def _reduce_12(val, _values, result)
|
394
|
-
result = Node.new(:CONDITIONAL_SELECTOR, val)
|
395
|
-
|
396
|
-
result
|
397
|
-
end
|
398
|
-
|
399
|
-
def _reduce_13(val, _values, result)
|
400
|
-
result = Node.new(:CONDITIONAL_SELECTOR,
|
401
|
-
[Node.new(:ELEMENT_NAME, ['*']), val.first]
|
402
|
-
)
|
403
|
-
|
404
|
-
result
|
405
|
-
end
|
406
|
-
|
407
|
-
def _reduce_14(val, _values, result)
|
408
|
-
result = Node.new(val.first, [nil, val.last])
|
409
|
-
|
410
|
-
result
|
411
|
-
end
|
412
|
-
|
413
|
-
def _reduce_15(val, _values, result)
|
414
|
-
result = Node.new(val[1], [val.first, val.last])
|
415
|
-
|
416
|
-
result
|
417
|
-
end
|
418
|
-
|
419
|
-
def _reduce_16(val, _values, result)
|
420
|
-
result = Node.new(:DESCENDANT_SELECTOR, [val.first, val.last])
|
421
|
-
|
422
|
-
result
|
423
|
-
end
|
424
|
-
|
425
|
-
# reduce 17 omitted
|
426
|
-
|
427
|
-
def _reduce_18(val, _values, result)
|
428
|
-
result = Node.new(:CLASS_CONDITION, [unescape_css_identifier(val[1])])
|
429
|
-
result
|
430
|
-
end
|
431
|
-
|
432
|
-
# reduce 19 omitted
|
433
|
-
|
434
|
-
def _reduce_20(val, _values, result)
|
435
|
-
result = Node.new(:ELEMENT_NAME, val)
|
436
|
-
result
|
437
|
-
end
|
438
|
-
|
439
|
-
def _reduce_21(val, _values, result)
|
440
|
-
result = Node.new(:ELEMENT_NAME,
|
441
|
-
[[val.first, val.last].compact.join(':')]
|
442
|
-
)
|
443
|
-
|
444
|
-
result
|
445
|
-
end
|
446
|
-
|
447
|
-
def _reduce_22(val, _values, result)
|
448
|
-
name = @namespaces.key?('xmlns') ? "xmlns:#{val.first}" : val.first
|
449
|
-
result = Node.new(:ELEMENT_NAME, [name])
|
450
|
-
|
451
|
-
result
|
452
|
-
end
|
453
|
-
|
454
|
-
def _reduce_23(val, _values, result)
|
455
|
-
result = val[0]
|
456
|
-
result
|
457
|
-
end
|
458
|
-
|
459
|
-
# reduce 24 omitted
|
460
|
-
|
461
|
-
def _reduce_25(val, _values, result)
|
462
|
-
result = Node.new(:ATTRIBUTE_CONDITION,
|
463
|
-
[val[1]] + (val[2] || [])
|
464
|
-
)
|
465
|
-
|
466
|
-
result
|
467
|
-
end
|
468
|
-
|
469
|
-
def _reduce_26(val, _values, result)
|
470
|
-
result = Node.new(:ATTRIBUTE_CONDITION,
|
471
|
-
[val[1]] + (val[2] || [])
|
472
|
-
)
|
473
|
-
|
474
|
-
result
|
475
|
-
end
|
476
|
-
|
477
|
-
def _reduce_27(val, _values, result)
|
478
|
-
# Non standard, but hpricot supports it.
|
479
|
-
result = Node.new(:PSEUDO_CLASS,
|
480
|
-
[Node.new(:FUNCTION, ['nth-child(', val[1]])]
|
481
|
-
)
|
482
|
-
|
483
|
-
result
|
484
|
-
end
|
485
|
-
|
486
|
-
def _reduce_28(val, _values, result)
|
487
|
-
result = Node.new(:ELEMENT_NAME,
|
488
|
-
[[val.first, val.last].compact.join(':')]
|
489
|
-
)
|
490
|
-
|
491
|
-
result
|
492
|
-
end
|
493
|
-
|
494
|
-
def _reduce_29(val, _values, result)
|
495
|
-
# Default namespace is not applied to attributes.
|
496
|
-
# So we don't add prefix "xmlns:" as in namespaced_ident.
|
497
|
-
result = Node.new(:ELEMENT_NAME, [val.first])
|
498
|
-
|
499
|
-
result
|
500
|
-
end
|
501
|
-
|
502
|
-
def _reduce_30(val, _values, result)
|
503
|
-
result = Node.new(:FUNCTION, [val.first.strip])
|
504
|
-
|
505
|
-
result
|
506
|
-
end
|
507
|
-
|
508
|
-
def _reduce_31(val, _values, result)
|
509
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
510
|
-
|
511
|
-
result
|
512
|
-
end
|
513
|
-
|
514
|
-
def _reduce_32(val, _values, result)
|
515
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
516
|
-
|
517
|
-
result
|
518
|
-
end
|
519
|
-
|
520
|
-
def _reduce_33(val, _values, result)
|
521
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
522
|
-
|
523
|
-
result
|
524
|
-
end
|
525
|
-
|
526
|
-
def _reduce_34(val, _values, result)
|
527
|
-
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
528
|
-
|
529
|
-
result
|
530
|
-
end
|
531
|
-
|
532
|
-
def _reduce_35(val, _values, result)
|
533
|
-
result = [val.first, val.last]
|
534
|
-
result
|
535
|
-
end
|
536
|
-
|
537
|
-
def _reduce_36(val, _values, result)
|
538
|
-
result = [val.first, val.last]
|
539
|
-
result
|
540
|
-
end
|
541
|
-
|
542
|
-
def _reduce_37(val, _values, result)
|
543
|
-
result = [val.first, val.last]
|
544
|
-
result
|
545
|
-
end
|
546
|
-
|
547
|
-
# reduce 38 omitted
|
548
|
-
|
549
|
-
# reduce 39 omitted
|
550
|
-
|
551
|
-
def _reduce_40(val, _values, result)
|
552
|
-
case val[0]
|
553
|
-
when 'even'
|
554
|
-
result = Node.new(:NTH, ['2','n','+','0'])
|
555
|
-
when 'odd'
|
556
|
-
result = Node.new(:NTH, ['2','n','+','1'])
|
557
|
-
when 'n'
|
558
|
-
result = Node.new(:NTH, ['1','n','+','0'])
|
559
|
-
else
|
560
|
-
# This is not CSS standard. It allows us to support this:
|
561
|
-
# assert_xpath("//a[foo(., @href)]", @parser.parse('a:foo(@href)'))
|
562
|
-
# assert_xpath("//a[foo(., @a, b)]", @parser.parse('a:foo(@a, b)'))
|
563
|
-
# assert_xpath("//a[foo(., a, 10)]", @parser.parse('a:foo(a, 10)'))
|
564
|
-
result = val
|
565
|
-
end
|
566
|
-
|
567
|
-
result
|
568
|
-
end
|
569
|
-
|
570
|
-
def _reduce_41(val, _values, result)
|
571
|
-
if val[1] == 'n'
|
572
|
-
result = Node.new(:NTH, val)
|
573
|
-
else
|
574
|
-
raise Racc::ParseError, "parse error on IDENT '#{val[1]}'"
|
575
|
-
end
|
576
|
-
|
577
|
-
result
|
578
|
-
end
|
579
|
-
|
580
|
-
def _reduce_42(val, _values, result)
|
581
|
-
# n+3, -n+3
|
582
|
-
if val[0] == 'n'
|
583
|
-
val.unshift("1")
|
584
|
-
result = Node.new(:NTH, val)
|
585
|
-
elsif val[0] == '-n'
|
586
|
-
val[0] = 'n'
|
587
|
-
val.unshift("-1")
|
588
|
-
result = Node.new(:NTH, val)
|
589
|
-
else
|
590
|
-
raise Racc::ParseError, "parse error on IDENT '#{val[1]}'"
|
591
|
-
end
|
592
|
-
|
593
|
-
result
|
594
|
-
end
|
595
|
-
|
596
|
-
def _reduce_43(val, _values, result)
|
597
|
-
# 5n, -5n, 10n-1
|
598
|
-
n = val[1]
|
599
|
-
if n[0, 2] == 'n-'
|
600
|
-
val[1] = 'n'
|
601
|
-
val << "-"
|
602
|
-
# b is contained in n as n is the string "n-b"
|
603
|
-
val << n[2, n.size]
|
604
|
-
result = Node.new(:NTH, val)
|
605
|
-
elsif n == 'n'
|
606
|
-
val << "+"
|
607
|
-
val << "0"
|
608
|
-
result = Node.new(:NTH, val)
|
609
|
-
else
|
610
|
-
raise Racc::ParseError, "parse error on IDENT '#{val[1]}'"
|
611
|
-
end
|
612
|
-
|
613
|
-
result
|
614
|
-
end
|
615
|
-
|
616
|
-
def _reduce_44(val, _values, result)
|
617
|
-
result = Node.new(:PSEUDO_CLASS, [val[1]])
|
618
|
-
|
619
|
-
result
|
620
|
-
end
|
621
|
-
|
622
|
-
def _reduce_45(val, _values, result)
|
623
|
-
result = Node.new(:PSEUDO_CLASS, [val[1]])
|
624
|
-
result
|
625
|
-
end
|
626
|
-
|
627
|
-
# reduce 46 omitted
|
628
|
-
|
629
|
-
# reduce 47 omitted
|
630
|
-
|
631
|
-
def _reduce_48(val, _values, result)
|
632
|
-
result = Node.new(:COMBINATOR, val)
|
633
|
-
|
634
|
-
result
|
635
|
-
end
|
636
|
-
|
637
|
-
def _reduce_49(val, _values, result)
|
638
|
-
result = Node.new(:COMBINATOR, val)
|
639
|
-
|
640
|
-
result
|
641
|
-
end
|
642
|
-
|
643
|
-
def _reduce_50(val, _values, result)
|
644
|
-
result = Node.new(:COMBINATOR, val)
|
645
|
-
|
646
|
-
result
|
647
|
-
end
|
648
|
-
|
649
|
-
def _reduce_51(val, _values, result)
|
650
|
-
result = Node.new(:COMBINATOR, val)
|
651
|
-
|
652
|
-
result
|
653
|
-
end
|
654
|
-
|
655
|
-
def _reduce_52(val, _values, result)
|
656
|
-
result = Node.new(:COMBINATOR, val)
|
657
|
-
|
658
|
-
result
|
659
|
-
end
|
660
|
-
|
661
|
-
# reduce 53 omitted
|
662
|
-
|
663
|
-
# reduce 54 omitted
|
664
|
-
|
665
|
-
# reduce 55 omitted
|
666
|
-
|
667
|
-
# reduce 56 omitted
|
668
|
-
|
669
|
-
# reduce 57 omitted
|
670
|
-
|
671
|
-
def _reduce_58(val, _values, result)
|
672
|
-
result = Node.new(:ID, [unescape_css_identifier(val.first)])
|
673
|
-
result
|
674
|
-
end
|
675
|
-
|
676
|
-
def _reduce_59(val, _values, result)
|
677
|
-
result = [val.first, unescape_css_identifier(val[1])]
|
678
|
-
result
|
679
|
-
end
|
680
|
-
|
681
|
-
def _reduce_60(val, _values, result)
|
682
|
-
result = [val.first, unescape_css_string(val[1])]
|
683
|
-
result
|
684
|
-
end
|
685
|
-
|
686
|
-
def _reduce_61(val, _values, result)
|
687
|
-
result = [val.first, val[1]]
|
688
|
-
result
|
689
|
-
end
|
690
|
-
|
691
|
-
# reduce 62 omitted
|
692
|
-
|
693
|
-
def _reduce_63(val, _values, result)
|
694
|
-
result = :equal
|
695
|
-
result
|
696
|
-
end
|
697
|
-
|
698
|
-
def _reduce_64(val, _values, result)
|
699
|
-
result = :prefix_match
|
700
|
-
result
|
701
|
-
end
|
702
|
-
|
703
|
-
def _reduce_65(val, _values, result)
|
704
|
-
result = :suffix_match
|
705
|
-
result
|
706
|
-
end
|
707
|
-
|
708
|
-
def _reduce_66(val, _values, result)
|
709
|
-
result = :substring_match
|
710
|
-
result
|
711
|
-
end
|
712
|
-
|
713
|
-
def _reduce_67(val, _values, result)
|
714
|
-
result = :not_equal
|
715
|
-
result
|
716
|
-
end
|
717
|
-
|
718
|
-
def _reduce_68(val, _values, result)
|
719
|
-
result = :includes
|
720
|
-
result
|
721
|
-
end
|
722
|
-
|
723
|
-
def _reduce_69(val, _values, result)
|
724
|
-
result = :dash_match
|
725
|
-
result
|
726
|
-
end
|
727
|
-
|
728
|
-
def _reduce_70(val, _values, result)
|
729
|
-
result = Node.new(:NOT, [val[1]])
|
730
|
-
|
731
|
-
result
|
732
|
-
end
|
733
|
-
|
734
|
-
# reduce 71 omitted
|
735
|
-
|
736
|
-
# reduce 72 omitted
|
737
|
-
|
738
|
-
# reduce 73 omitted
|
739
|
-
|
740
|
-
# reduce 74 omitted
|
741
|
-
|
742
|
-
# reduce 75 omitted
|
743
|
-
|
744
|
-
def _reduce_none(val, _values, result)
|
745
|
-
val[0]
|
746
|
-
end
|
747
|
-
|
748
|
-
end # class Parser
|
749
|
-
end # module CSS
|
750
|
-
end # module Nokogiri
|