nokogiri 1.10.1 → 1.10.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac43bbc311b7a753e3127e21b02ddc66c844c7831e1a7f3b278e16de48ecf12b
4
- data.tar.gz: 4abe8a5a0374101f9831a7d97e825abb6e43bf62e73535370d52a029a16aec6a
3
+ metadata.gz: 281d80b51a2d94f7ab5f3542cdbd65496491df830ec5ddd0bd5b6d18da98421c
4
+ data.tar.gz: 6dda3414176359eefa161ef4e857804b399cb664e2efdc344ef30bc2baca17e0
5
5
  SHA512:
6
- metadata.gz: 3fcaf321d4426fd1cafd21de42e02b8c247c50f2373099e9d78981231e73261175265c7c77ed57519aae9fa751cc86ec30ab78d98ed9557d3f5cfa98c8f04684
7
- data.tar.gz: 07bd86c502206e5139d1a80179837a9d152d7d96788bdcc7495b8d20915f06be8d49975ba4ebe82d8a3c1969049840ed7bf744cac4417535ddb719e7d3d94922
6
+ metadata.gz: d3d791fa5e685f3ce31e946ef4bcc4a0e8dead67357319c57976340627617f9854f84ea7d6978c8cfc50d6da45a74432381c412a1adc71e75ceff29b06f30b2b
7
+ data.tar.gz: 06e8494ced300b84e0e0cd7fa483027475b7a6d863610186e90a4b4e588e13e610f249bf8c6d30e744a85eb214644249c5239562968392a70218b5b804dfc6f7
data/README.md CHANGED
@@ -9,17 +9,22 @@ or CSS3 selectors.
9
9
 
10
10
  ## Links
11
11
 
12
- * http://nokogiri.org
13
- * [Installation Help](http://nokogiri.org/tutorials/installing_nokogiri.html)
14
- * [Tutorials](http://nokogiri.org)
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
- > http://www.nokogiri.org/tutorials/installing_nokogiri.html
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](http://nokogiri.org/tutorials/getting_help.html)
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
- There are open-source tutorials (to which we invite contributions!) here: http://nokogiri.org/tutorials
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 #nokogiri on freenode.
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('http://www.nokogiri.org/tutorials/installing_nokogiri.html'))
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
- http://nokogiri.org/tutorials/installing_nokogiri.html#using_your_system_libraries
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
 
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.10.1'
3
+ VERSION = "1.10.2"
4
4
 
5
5
  class VersionInfo # :nodoc:
6
6
  def jruby?
@@ -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.1
4
+ version: 1.10.2
5
5
  platform: ruby
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-01-13 00:00:00.000000000 Z
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.15'
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.15'
46
+ version: '0.24'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: hoe-bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -426,6 +426,8 @@ files:
426
426
  - lib/nokogiri/xslt/stylesheet.rb
427
427
  - lib/xsd/xmlparser/nokogiri.rb
428
428
  - patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
429
+ - patches/libxml2/0002-Remove-script-macro-support.patch
430
+ - patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
429
431
  - ports/archives/libxml2-2.9.9.tar.gz
430
432
  - ports/archives/libxslt-1.1.33.tar.gz
431
433
  homepage:
@@ -449,7 +451,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
449
451
  - !ruby/object:Gem::Version
450
452
  version: '0'
451
453
  requirements: []
452
- rubygems_version: 3.0.1
454
+ rubygems_version: 3.0.3
453
455
  signing_key:
454
456
  specification_version: 4
455
457
  summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser