nokogiri 1.10.1-x86-mingw32 → 1.10.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +17 -11
- data/lib/nokogiri/2.3/nokogiri.so +0 -0
- data/lib/nokogiri/2.4/nokogiri.so +0 -0
- data/lib/nokogiri/2.5/nokogiri.so +0 -0
- data/lib/nokogiri/2.6/nokogiri.so +0 -0
- data/lib/nokogiri/version.rb +1 -1
- data/patches/libxml2/0002-Remove-script-macro-support.patch +40 -0
- data/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch +44 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afaf886be96511b5401a44a8220acd474e333d87f7b2aa4ef9e6cdcd632ae9c3
|
4
|
+
data.tar.gz: e92e1f52c6407f27c81cd2c723d54446b5748ea0a338112e73a7444ba2c3e525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f580aa238bbf083738627aaa0c45085f7a167ec5b4d90ecb51dd3b3db628a05f991e2bf1aa6fda5d909f6c3f9270981a0b4c88213466d28d78b9c5196bb2d7dc
|
7
|
+
data.tar.gz: a0a010ea578f5ed4cf0afedc505049a9bd0fe6db1dad01637af57d477eb9e7c331f9e7e84eb1889506e3a06fbe31e58ab5f39e143aad254bc055b0b3536ee455
|
data/README.md
CHANGED
@@ -9,17 +9,22 @@ or CSS3 selectors.
|
|
9
9
|
|
10
10
|
## Links
|
11
11
|
|
12
|
-
*
|
13
|
-
* [Installation Help](
|
14
|
-
* [Tutorials](
|
12
|
+
* https://nokogiri.org
|
13
|
+
* [Installation Help](https://nokogiri.org/tutorials/installing_nokogiri.html)
|
14
|
+
* [Tutorials](https://nokogiri.org)
|
15
15
|
* [Cheat Sheet](https://github.com/sparklemotion/nokogiri/wiki/Cheat-sheet)
|
16
16
|
* [GitHub](https://github.com/sparklemotion/nokogiri)
|
17
17
|
* [Mailing List](https://groups.google.com/group/nokogiri-talk)
|
18
18
|
* [Chat/Gitter](https://gitter.im/sparklemotion/nokogiri)
|
19
19
|
|
20
|
-
[![Concourse CI](https://ci.nokogiri.org/api/v1/teams/nokogiri-core/pipelines/nokogiri/jobs/ruby-2.4-system/badge)](https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri?groups=master)
|
21
20
|
|
21
|
+
## Status
|
22
|
+
|
23
|
+
[![Concourse CI](https://ci.nokogiri.org/api/v1/teams/nokogiri-core/pipelines/nokogiri/jobs/ruby-2.4-system/badge)](https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri)
|
24
|
+
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/xj2pqwvlxwuwgr06/branch/master?svg=true)](https://ci.appveyor.com/project/flavorjones/nokogiri/branch/master)
|
22
25
|
[![Code Climate](https://codeclimate.com/github/sparklemotion/nokogiri.svg)](https://codeclimate.com/github/sparklemotion/nokogiri)
|
26
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/59c67b0e8976027a45ad/test_coverage)](https://codeclimate.com/github/sparklemotion/nokogiri/test_coverage)
|
27
|
+
|
23
28
|
[![Gem Version](https://badge.fury.io/rb/nokogiri.svg)](https://rubygems.org/gems/nokogiri)
|
24
29
|
[![SemVer compatibility](https://api.dependabot.com/badges/compatibility_score?dependency-name=nokogiri&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=nokogiri&package-manager=bundler&version-scheme=semver)
|
25
30
|
[![Tidelift dependencies](https://tidelift.com/badges/github/sparklemotion/nokogiri)](https://tidelift.com/subscription/pkg/rubygems-nokogiri?utm_source=rubygems-nokogiri&utm_medium=referral&utm_campaign=readme)
|
@@ -50,13 +55,13 @@ gem install nokogiri
|
|
50
55
|
|
51
56
|
then please start troubleshooting here:
|
52
57
|
|
53
|
-
>
|
58
|
+
> https://nokogiri.org/tutorials/installing_nokogiri.html
|
54
59
|
|
55
60
|
There are currently 1,237 Stack Overflow questions about Nokogiri
|
56
61
|
installation. The vast majority of them are out of date and therefore
|
57
62
|
incorrect. __Please do not use Stack Overflow.__
|
58
63
|
|
59
|
-
Instead, [tell us](
|
64
|
+
Instead, [tell us](https://nokogiri.org/tutorials/getting_help.html)
|
60
65
|
when the above instructions don't work for you. This allows us to both
|
61
66
|
help you directly and improve the documentation.
|
62
67
|
|
@@ -72,12 +77,13 @@ Binary packages are available for some distributions.
|
|
72
77
|
|
73
78
|
## Support
|
74
79
|
|
75
|
-
|
80
|
+
All official documentation is posted at https://nokogiri.org (the source for which is at https://github.com/sparklemotion/nokogiri.org/, and we welcome contributions).
|
76
81
|
|
77
82
|
* The Nokogiri mailing list is active: https://groups.google.com/group/nokogiri-talk
|
78
83
|
* The Nokogiri bug tracker is here: https://github.com/sparklemotion/nokogiri/issues
|
79
84
|
* Before filing a bug report, please read our submission guidelines: http://nokogiri.org/tutorials/getting_help.html
|
80
|
-
* The IRC channel is
|
85
|
+
* The IRC channel is `#nokogiri` on freenode.
|
86
|
+
* The project's GitHub wiki has an excellent community-maintained [Cheat Sheet](https://github.com/sparklemotion/nokogiri/wiki/Cheat-sheet) which might be useful.
|
81
87
|
|
82
88
|
Consider subscribing to [Tidelift][tidelift] which provides license assurances and timely security notifications for your open source dependencies, including Nokogiri. [Tidelift][tidelift] subscriptions also help the Nokogiri maintainers fund our [automated testing](https://ci.nokogiri.org) which in turn allows us to ship releases, bugfixes, and security updates more often.
|
83
89
|
|
@@ -102,7 +108,7 @@ require 'nokogiri'
|
|
102
108
|
require 'open-uri'
|
103
109
|
|
104
110
|
# Fetch and parse HTML document
|
105
|
-
doc = Nokogiri::HTML(open('
|
111
|
+
doc = Nokogiri::HTML(open('https://nokogiri.org/tutorials/installing_nokogiri.html'))
|
106
112
|
|
107
113
|
puts "### Search for nodes by css"
|
108
114
|
doc.css('nav ul.menu li a', 'article h2').each do |link|
|
@@ -136,7 +142,7 @@ end
|
|
136
142
|
* At install time, set the environment variable
|
137
143
|
`NOKOGIRI_USE_SYSTEM_LIBRARIES` or else use the
|
138
144
|
`--use-system-libraries` argument. (See
|
139
|
-
|
145
|
+
https://nokogiri.org/tutorials/installing_nokogiri.html#install-with-system-libraries
|
140
146
|
for specifics.)
|
141
147
|
|
142
148
|
* libxml2 >=2.6.21 with iconv support
|
@@ -176,7 +182,7 @@ explicitly setting the encoding to EUC-JP on the parser:
|
|
176
182
|
|
177
183
|
```bash
|
178
184
|
bundle install
|
179
|
-
bundle exec rake
|
185
|
+
bundle exec rake compile test
|
180
186
|
```
|
181
187
|
|
182
188
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/nokogiri/version.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
From 27e4aa8d885e47a296ea78d114dbbe8fc7aa3508 Mon Sep 17 00:00:00 2001
|
2
|
+
From: Kevin Solorio <soloriok@gmail.com>
|
3
|
+
Date: Fri, 1 Feb 2019 14:32:42 -0800
|
4
|
+
Subject: [PATCH] Revert-support-html-h-b-7-1
|
5
|
+
|
6
|
+
---
|
7
|
+
entities.c | 17 -----------------
|
8
|
+
1 file changed, 17 deletions(-)
|
9
|
+
|
10
|
+
diff --git a/entities.c b/entities.c
|
11
|
+
index 43549bc5..82652f6d 100644
|
12
|
+
--- a/entities.c
|
13
|
+
+++ b/entities.c
|
14
|
+
@@ -623,23 +623,6 @@ xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, int attr) {
|
15
|
+
*out++ = 't';
|
16
|
+
*out++ = ';';
|
17
|
+
} else if (*cur == '&') {
|
18
|
+
- /*
|
19
|
+
- * Special handling of &{...} construct from HTML 4, see
|
20
|
+
- * http://www.w3.org/TR/html401/appendix/notes.html#h-B.7.1
|
21
|
+
- */
|
22
|
+
- if (html && attr && (cur[1] == '{') &&
|
23
|
+
- (strchr((const char *) cur, '}'))) {
|
24
|
+
- while (*cur != '}') {
|
25
|
+
- *out++ = *cur++;
|
26
|
+
- indx = out - buffer;
|
27
|
+
- if (indx + 100 > buffer_size) {
|
28
|
+
- growBufferReentrant();
|
29
|
+
- out = &buffer[indx];
|
30
|
+
- }
|
31
|
+
- }
|
32
|
+
- *out++ = *cur++;
|
33
|
+
- continue;
|
34
|
+
- }
|
35
|
+
*out++ = '&';
|
36
|
+
*out++ = 'a';
|
37
|
+
*out++ = 'm';
|
38
|
+
--
|
39
|
+
2.16.2
|
40
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
From ffc08467744bd2305d41ca882c37fa30adf3a067 Mon Sep 17 00:00:00 2001
|
2
|
+
From: Kevin Solorio <soloriok@gmail.com>
|
3
|
+
Date: Wed, 27 Feb 2019 14:34:17 -0800
|
4
|
+
Subject: [PATCH 2/2] update entities.c to remove handling of ssi
|
5
|
+
|
6
|
+
---
|
7
|
+
entities.c | 21 ---------------------
|
8
|
+
1 file changed, 21 deletions(-)
|
9
|
+
|
10
|
+
diff --git a/entities.c b/entities.c
|
11
|
+
index 43549bc5..5c4a2a60 100644
|
12
|
+
--- a/entities.c
|
13
|
+
+++ b/entities.c
|
14
|
+
@@ -592,27 +592,6 @@ xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, int attr) {
|
15
|
+
* By default one have to encode at least '<', '>', '"' and '&' !
|
16
|
+
*/
|
17
|
+
if (*cur == '<') {
|
18
|
+
- const xmlChar *end;
|
19
|
+
-
|
20
|
+
- /*
|
21
|
+
- * Special handling of server side include in HTML attributes
|
22
|
+
- */
|
23
|
+
- if (html && attr &&
|
24
|
+
- (cur[1] == '!') && (cur[2] == '-') && (cur[3] == '-') &&
|
25
|
+
- ((end = xmlStrstr(cur, BAD_CAST "-->")) != NULL)) {
|
26
|
+
- while (cur != end) {
|
27
|
+
- *out++ = *cur++;
|
28
|
+
- indx = out - buffer;
|
29
|
+
- if (indx + 100 > buffer_size) {
|
30
|
+
- growBufferReentrant();
|
31
|
+
- out = &buffer[indx];
|
32
|
+
- }
|
33
|
+
- }
|
34
|
+
- *out++ = *cur++;
|
35
|
+
- *out++ = *cur++;
|
36
|
+
- *out++ = *cur++;
|
37
|
+
- continue;
|
38
|
+
- }
|
39
|
+
*out++ = '&';
|
40
|
+
*out++ = 'l';
|
41
|
+
*out++ = 't';
|
42
|
+
--
|
43
|
+
2.16.2
|
44
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2019-
|
17
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: mini_portile2
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.24'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
46
|
+
version: '0.24'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: hoe-bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -429,6 +429,8 @@ files:
|
|
429
429
|
- lib/nokogiri/xslt/stylesheet.rb
|
430
430
|
- lib/xsd/xmlparser/nokogiri.rb
|
431
431
|
- patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
|
432
|
+
- patches/libxml2/0002-Remove-script-macro-support.patch
|
433
|
+
- patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
|
432
434
|
homepage:
|
433
435
|
licenses:
|
434
436
|
- MIT
|