nokogumbo 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4694cf3eefbeee2a55cd4bb355b7ec6159c64eac4454dff02b1fbf7e5e8375a
4
- data.tar.gz: 67832a7c26148f59755360758fcc0b0c1969949bf1e5a1b27f5cabe4b9e8b40b
3
+ metadata.gz: 6d5936b6ffffb20ec22609b2be5d2493919c81f7c8279a7c21fd8e95e457d0c5
4
+ data.tar.gz: 5259acf1b328d1097edcbb162433d72e69b084b66ed8bae28703bca53bd88b76
5
5
  SHA512:
6
- metadata.gz: 3a415817caaf0c3c03037664bda8ed8aa17cc14419e75672dcaa2e2a7dd6d9a20e6ab59095a2295f90da5e45de2c3d72f9a25557533836d55dc67966fe8c7a14
7
- data.tar.gz: 8dc8f9f2d55936a63097301dc5eb6fb54ed1e4c274b03cdcd6f45e2b4ac2cdc911a54e8e5838ce468820ebade731a62f7cfc167817528fd0adb415087ce924b6
6
+ metadata.gz: 6fdc59096ec69684932424b70bed03f05f6ea5324e9d3f70eee8481891a15ae9f3cf063fff7106cc38d2873d072d21169b58ed6f5b381b687aa5b1680eee35e6
7
+ data.tar.gz: 4d1d88817b4242b060e5a9ac74e36e9f23d38b153547b64d51a59d86daff44853915ba8bd07473902fe4d936cd53851d2594c3ac09541159863117eedf8339ab
data/README.md CHANGED
@@ -39,8 +39,8 @@ The document and fragment parsing methods,
39
39
  - `Nokogiri::HTML5::DocumentFragment.parse(html, encoding = nil, options = {})`
40
40
  support options that are different from Nokogiri's.
41
41
 
42
- The two currently supported options are `:max_errors` and `:max_tree_depth`,
43
- described below.
42
+ The three currently supported options are `:max_errors`, `:max_tree_depth` and
43
+ `:max_attributes`, described below.
44
44
 
45
45
  ### Error reporting
46
46
  Nokogumbo contains an experimental parse error reporting facility. By default,
@@ -890,9 +890,9 @@ void gumbo_tokenizer_state_init (
890
890
 
891
891
  mark_tag_state_as_empty(&tokenizer->_tag_state);
892
892
 
893
- tokenizer->_token_start = text;
894
893
  utf8iterator_init(parser, text, text_length, &tokenizer->_input);
895
894
  utf8iterator_get_position(&tokenizer->_input, &tokenizer->_token_start_pos);
895
+ tokenizer->_token_start = utf8iterator_get_char_pointer(&tokenizer->_input);
896
896
  doc_type_state_init(parser);
897
897
  }
898
898
 
@@ -96,7 +96,7 @@ module Nokogiri
96
96
  end
97
97
  else
98
98
  # Otherwise the string has the given encoding.
99
- string = string.to_str
99
+ string = string.to_s
100
100
  if encoding
101
101
  string = string.dup
102
102
  string.force_encoding(encoding)
@@ -1,3 +1,3 @@
1
1
  module Nokogumbo
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogumbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-22 00:00:00.000000000 Z
12
+ date: 2020-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.1.2
112
+ rubygems_version: 3.1.4
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Nokogiri interface to the Gumbo HTML5 parser