nokogiri 1.6.2.rc1-x64-mingw32 → 1.6.2.rc2-x64-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/CHANGELOG.ja.rdoc +6 -0
- data/CHANGELOG.rdoc +6 -0
- data/README.rdoc +1 -1
- data/ext/nokogiri/extconf.rb +68 -39
- data/lib/nokogiri/2.0/nokogiri.so +0 -0
- data/lib/nokogiri/2.1/nokogiri.so +0 -0
- data/lib/nokogiri/version.rb +1 -1
- data/test/xml/test_xpath.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de101b84c4208bdda19e3f40b47de1f352cdfd97
|
4
|
+
data.tar.gz: b9a9d52af790ee572cd3f584afcfd99add72790e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d17858687adca2480eb39cb374cf6c4cb0522368f6b447cb4b59ae72b6f50a793ddcf67168bc2f7094b916b43e5cf389869c3f4f60d0cf92893b1b6d6c4108
|
7
|
+
data.tar.gz: 2dabdbfd6ec6f7629f35ae577ea1f0c2027c9d784a835bc147d0728edbbece9efa8cb77cc3603ff8eaaf304d0b761c7a08e11954e1923b5700ee66aa96ecdced
|
data/CHANGELOG.ja.rdoc
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
=== 1.6.2 / 未リリース
|
2
2
|
|
3
|
+
* 註
|
4
|
+
|
5
|
+
* Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
|
6
|
+
|
3
7
|
* 機能
|
4
8
|
|
9
|
+
* Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32)
|
10
|
+
and add support for native builds on Windows. #864, #989, #1072
|
5
11
|
* (MRI) iconvが Windows-31J をサポートしていない場合は CP932 のエイリアスとして扱うようにした #836
|
6
12
|
* (MRI) 同梱ライブラリを静的にリンクするようになった (静的リンクをオフにするにはextconf.rbに --disable-static を渡す) #923
|
7
13
|
* (MRI) 同梱ライブラリのビルド後に不要になったディレクトリ群を自動的に削除するようになった (デバッグ等の目的で残すようにするにはextconf.rbに --disable-clean を渡す) #952
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
=== 1.6.2 / unreleased
|
2
2
|
|
3
|
+
* Notes
|
4
|
+
|
5
|
+
* Now requires libxml >= 2.6.21 (was previously >= 2.6.17).
|
6
|
+
|
3
7
|
* Features
|
4
8
|
|
9
|
+
* Add cross building of fat binary gems for 64-Bit Windows (x64-mingw32)
|
10
|
+
and add support for native builds on Windows. #864, #989, #1072
|
5
11
|
* (MRI) Alias CP932 to Windows-31J if iconv does not support Windows-31J.
|
6
12
|
* (MRI) Nokogiri now links packaged libraries statically. To
|
7
13
|
disable static linking, pass --disable-static to extconf.rb. #923
|
data/README.rdoc
CHANGED
@@ -77,7 +77,7 @@ The IRC channel is #nokogiri on freenode.
|
|
77
77
|
* in Nokogiri 1.6.0 and later libxml2 and libxslt are bundled with the
|
78
78
|
gem, but if you want to use them installed on the system:
|
79
79
|
|
80
|
-
* libxml2 >=2.6.
|
80
|
+
* libxml2 >=2.6.21 and <2.9.0, with iconv support
|
81
81
|
(libxml2-dev/-devel is required too)
|
82
82
|
|
83
83
|
* libxslt, built with and supported by the given libxml2
|
data/ext/nokogiri/extconf.rb
CHANGED
@@ -1,27 +1,38 @@
|
|
1
|
+
# :stopdoc:
|
1
2
|
ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/
|
2
3
|
|
3
|
-
|
4
|
-
#
|
5
|
-
# --enable-clean (default)
|
6
|
-
# --disable-clean
|
7
|
-
#
|
8
|
-
# --enable-static (default)
|
9
|
-
# --disable-static
|
10
|
-
#
|
11
|
-
# --with-iconv-dir=DIR
|
12
|
-
#
|
13
|
-
# --with-zlib-dir=DIR
|
14
|
-
#
|
15
|
-
# --use-system-libraries
|
16
|
-
# --with-xml2-dir=DIR / --with-xml2-config=CONFIG
|
17
|
-
# --with-xslt-dir=DIR / --with-xslt-config=CONFIG
|
18
|
-
# --with-exslt-dir=DIR / --with-exslt-config=CONFIG
|
19
|
-
#
|
20
|
-
# --enable-cross-build
|
4
|
+
require 'mkmf'
|
21
5
|
|
22
|
-
|
6
|
+
if arg_config('--help')
|
7
|
+
print <<HELP
|
8
|
+
usage: ruby #{$0} [options]
|
23
9
|
|
24
|
-
|
10
|
+
--disable-clean
|
11
|
+
Do not clean out intermediate files after successful build.
|
12
|
+
|
13
|
+
--disable-static
|
14
|
+
Do not statically link bundled libraries.
|
15
|
+
|
16
|
+
--with-iconv-dir=DIR
|
17
|
+
Use the iconv library placed under DIR.
|
18
|
+
|
19
|
+
--with-zlib-dir=DIR
|
20
|
+
Use the zlib library placed under DIR.
|
21
|
+
|
22
|
+
--use-system-libraries
|
23
|
+
Use system libraries intead of building and using the bundled
|
24
|
+
libraries.
|
25
|
+
|
26
|
+
--with-xml2-dir=DIR / --with-xml2-config=CONFIG
|
27
|
+
--with-xslt-dir=DIR / --with-xslt-config=CONFIG
|
28
|
+
--with-exslt-dir=DIR / --with-exslt-config=CONFIG
|
29
|
+
Use libxml2/libxslt/libexslt as specified.
|
30
|
+
|
31
|
+
--enable-cross-build
|
32
|
+
Do cross-build.
|
33
|
+
HELP
|
34
|
+
exit! 0
|
35
|
+
end
|
25
36
|
|
26
37
|
def message!(important_message)
|
27
38
|
message important_message
|
@@ -30,6 +41,7 @@ def message!(important_message)
|
|
30
41
|
tty.print important_message
|
31
42
|
}
|
32
43
|
end
|
44
|
+
rescue Errno::ENXIO
|
33
45
|
end
|
34
46
|
|
35
47
|
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
@@ -37,7 +49,7 @@ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
|
37
49
|
ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
|
38
50
|
# Workaround for Ruby bug #8074, introduced in Ruby 2.0.0, fixed in Ruby 2.1.0
|
39
51
|
# https://bugs.ruby-lang.org/issues/8074
|
40
|
-
@libdir_basename = "lib"
|
52
|
+
@libdir_basename = "lib" if RUBY_VERSION < '2.1.0'
|
41
53
|
|
42
54
|
if arg_config('--clean')
|
43
55
|
require 'pathname'
|
@@ -131,12 +143,15 @@ end
|
|
131
143
|
def iconv_prefix
|
132
144
|
# Make sure libxml2 is built with iconv
|
133
145
|
each_iconv_idir { |idir|
|
134
|
-
|
135
|
-
|
146
|
+
next unless File.file?(File.join(idir, 'iconv.h'))
|
147
|
+
|
148
|
+
prefix, dir = File.split(idir)
|
149
|
+
next unless dir == 'include'
|
150
|
+
|
136
151
|
preserving_globals {
|
137
152
|
# Follow the way libxml2's configure uses a value given with
|
138
153
|
# --with-iconv[=DIR]
|
139
|
-
$CPPFLAGS = "-I#{idir}
|
154
|
+
$CPPFLAGS = "-I#{idir}".quote << ' ' << $CPPFLAGS
|
140
155
|
$LIBPATH.unshift(File.join(prefix, "lib"))
|
141
156
|
have_iconv?
|
142
157
|
} and break prefix
|
@@ -222,11 +237,11 @@ XPath optimization bugs.
|
|
222
237
|
end
|
223
238
|
end
|
224
239
|
|
225
|
-
|
226
|
-
|
227
|
-
|
240
|
+
case RbConfig::CONFIG['target_os']
|
241
|
+
when 'mingw32', /mswin/
|
242
|
+
windows_p = true
|
228
243
|
$CFLAGS << " -DXP_WIN -DXP_WIN32 -DUSE_INCLUDED_VASPRINTF"
|
229
|
-
|
244
|
+
when /solaris/
|
230
245
|
$CFLAGS << " -DUSE_INCLUDED_VASPRINTF"
|
231
246
|
else
|
232
247
|
$CFLAGS << " -g -DXP_UNIX"
|
@@ -252,9 +267,25 @@ when arg_config('--use-system-libraries', !!ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES']
|
|
252
267
|
# Using system libraries means we rely on the system libxml2 with
|
253
268
|
# regard to the iconv support.
|
254
269
|
|
255
|
-
dir_config('xml2').any?
|
256
|
-
dir_config('xslt').any?
|
257
|
-
dir_config('exslt').any?
|
270
|
+
dir_config('xml2').any? or pkg_config('libxml-2.0')
|
271
|
+
dir_config('xslt').any? or pkg_config('libxslt')
|
272
|
+
dir_config('exslt').any? or pkg_config('libexslt')
|
273
|
+
|
274
|
+
try_cpp(<<-SRC) or abort "libxml2 version 2.6.21 or later is required!"
|
275
|
+
#include <libxml/xmlversion.h>
|
276
|
+
|
277
|
+
#if LIBXML_VERSION < 20621
|
278
|
+
#error libxml2 is too old
|
279
|
+
#endif
|
280
|
+
SRC
|
281
|
+
|
282
|
+
try_cpp(<<-SRC) or warn "libxml2 version 2.9.0 and later is not yet supported, but proceeding anyway."
|
283
|
+
#include <libxml/xmlversion.h>
|
284
|
+
|
285
|
+
#if LIBXML_VERSION >= 20900
|
286
|
+
#error libxml2 is too new
|
287
|
+
#endif
|
288
|
+
SRC
|
258
289
|
else
|
259
290
|
message! "Building nokogiri using packaged libraries.\n"
|
260
291
|
|
@@ -414,16 +445,14 @@ end
|
|
414
445
|
"xslt" => ['xsltParseStylesheetDoc', 'libxslt/xslt.h'],
|
415
446
|
"exslt" => ['exsltFuncRegister', 'libexslt/exslt.h'],
|
416
447
|
}.each { |lib, (func, header)|
|
417
|
-
have_func(func, header) ||
|
448
|
+
have_func(func, header) ||
|
449
|
+
have_library(lib, func, header) ||
|
450
|
+
have_library("lib#{lib}", func, header) or
|
451
|
+
asplode("lib#{lib}")
|
418
452
|
}
|
419
453
|
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
Please visit http://nokogiri.org/tutorials/installing_nokogiri.html for more help!"
|
424
|
-
end
|
425
|
-
|
426
|
-
have_func 'xmlFirstElementChild'
|
454
|
+
have_func('xmlHasFeature') or abort "xmlHasFeature() is missing."
|
455
|
+
have_func('xmlFirstElementChild')
|
427
456
|
have_func('xmlRelaxNGSetParserStructuredErrors')
|
428
457
|
have_func('xmlRelaxNGSetParserStructuredErrors')
|
429
458
|
have_func('xmlRelaxNGSetValidStructuredErrors')
|
Binary file
|
Binary file
|
data/lib/nokogiri/version.rb
CHANGED
data/test/xml/test_xpath.rb
CHANGED
@@ -168,7 +168,13 @@ module Nokogiri
|
|
168
168
|
end
|
169
169
|
stop = Time.now
|
170
170
|
elapsed_time = stop - start
|
171
|
-
|
171
|
+
time_limit =
|
172
|
+
if ENV['TRAVIS'] && ENV['CI']
|
173
|
+
20 # Travis CI box slowness
|
174
|
+
else
|
175
|
+
10
|
176
|
+
end
|
177
|
+
assert_send [elapsed_time, :<, time_limit], "XPath is taking too long"
|
172
178
|
end
|
173
179
|
|
174
180
|
def test_custom_xpath_function_returns_string
|
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.6.2.
|
4
|
+
version: 1.6.2.rc2
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-04-
|
15
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: mini_portile
|