libxslt-ruby 1.0.5-x86-mingw32 → 1.0.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +5 -0
- data/Rakefile +0 -1
- data/ext/libxslt/extconf.h +8 -7
- data/ext/libxslt/extconf.rb +13 -3
- data/ext/libxslt/libxslt.h +0 -6
- data/ext/libxslt/ruby_exslt.c +2 -1
- data/ext/libxslt/ruby_xslt_stylesheet.h +0 -2
- data/ext/libxslt/version.h +2 -2
- data/lib/1.8/libxslt_ruby.so +0 -0
- data/lib/1.9/libxslt_ruby.so +0 -0
- data/libxslt-ruby.gemspec +1 -1
- data/test/test_deprecated.rb +1 -1
- data/test/test_helper.rb +0 -1
- metadata +11 -6
data/CHANGES
CHANGED
data/Rakefile
CHANGED
data/ext/libxslt/extconf.h
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
#ifndef EXTCONF_H
|
2
|
-
#define EXTCONF_H
|
3
|
-
#define
|
4
|
-
#define
|
5
|
-
#define
|
6
|
-
#define
|
7
|
-
#
|
1
|
+
#ifndef EXTCONF_H
|
2
|
+
#define EXTCONF_H
|
3
|
+
#define HAVE_RUBY_IO_H 1
|
4
|
+
#define HAVE_ZLIB_H 1
|
5
|
+
#define HAVE_LIBXML_XMLVERSION_H 1
|
6
|
+
#define HAVE_XSLT_H 1
|
7
|
+
#define HAVE_EXSLT_H 1
|
8
|
+
#endif
|
data/ext/libxslt/extconf.rb
CHANGED
@@ -126,14 +126,24 @@ end
|
|
126
126
|
|
127
127
|
RUBY_VERSION =~ /(\d+.\d+)/
|
128
128
|
minor_version = $1
|
129
|
-
paths = ["#{gem_spec.full_gem_path}/lib",
|
129
|
+
paths = ["#{gem_spec.full_gem_path}/lib",
|
130
|
+
"#{gem_spec.full_gem_path}/lib/#{minor_version}",
|
131
|
+
"#{gem_spec.full_gem_path}/ext/libxml"]
|
130
132
|
|
131
133
|
# No need to link xml_ruby on OS X
|
132
134
|
unless Config::CONFIG['host_os'].match(/darwin/)
|
133
135
|
# Hack to make sure ruby library is *after* xml_ruby library
|
134
136
|
$LIBS += " #{$LIBRUBYARG_STATIC}"
|
135
|
-
|
136
|
-
|
137
|
+
|
138
|
+
libraries = ["xml_ruby", # Linux
|
139
|
+
":libxml_ruby.so", # mingw
|
140
|
+
"libxml_ruby-#{Config::CONFIG["arch"]}"] # mswin
|
141
|
+
|
142
|
+
library = libraries.detect do |library|
|
143
|
+
find_library(library, "Init_libxml_ruby", *paths)
|
144
|
+
end
|
145
|
+
|
146
|
+
unless library
|
137
147
|
crash(<<-EOL)
|
138
148
|
Need libxml-ruby
|
139
149
|
Please install libxml-ruby or specify the path to the gem via:
|
data/ext/libxslt/libxslt.h
CHANGED
@@ -30,13 +30,7 @@
|
|
30
30
|
|
31
31
|
#include "version.h"
|
32
32
|
|
33
|
-
/*#if ((RUBY_LIBXML_VER_MAJ != RUBY_LIBXSLT_VER_MAJ) || (RUBY_LIBXML_VER_MIN != RUBY_LIBXSLT_VER_MIN))
|
34
|
-
#error "Incompatible LibXML-Ruby headers - please install same major/micro version"
|
35
|
-
#endif*/
|
36
|
-
|
37
|
-
extern VALUE cLibXSLT;
|
38
33
|
extern VALUE cXSLT;
|
39
34
|
extern VALUE eXSLTError;
|
40
|
-
extern VALUE cXMLDocument;
|
41
35
|
|
42
36
|
#endif
|
data/ext/libxslt/ruby_exslt.c
CHANGED
@@ -22,7 +22,8 @@ ruby_xslt_module_function_hash(VALUE namespace) {
|
|
22
22
|
/* Helper method for xsltRegisterExtModuleFunction callback */
|
23
23
|
static void
|
24
24
|
ruby_xslt_module_function_callback(xmlXPathParserContextPtr ctxt, int nargs) {
|
25
|
-
VALUE callback
|
25
|
+
VALUE callback;
|
26
|
+
VALUE* args = ALLOCA_N(VALUE, nargs);
|
26
27
|
const xmlChar *namespace, *name;
|
27
28
|
int i;
|
28
29
|
|
data/ext/libxslt/version.h
CHANGED
data/lib/1.8/libxslt_ruby.so
CHANGED
Binary file
|
data/lib/1.9/libxslt_ruby.so
CHANGED
Binary file
|
data/libxslt-ruby.gemspec
CHANGED
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
|
|
43
43
|
spec.bindir = "bin"
|
44
44
|
spec.extensions = ["ext/libxslt/extconf.rb"]
|
45
45
|
spec.files = FILES.to_a
|
46
|
-
spec.test_files = Dir.glob("test/
|
46
|
+
spec.test_files = Dir.glob("test/test_*.rb")
|
47
47
|
|
48
48
|
spec.required_ruby_version = '>= 1.8.6'
|
49
49
|
spec.date = DateTime.now
|
data/test/test_deprecated.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libxslt-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 6
|
10
|
+
version: 1.0.6
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Charlie Savage
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-14 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: libxml-ruby
|
@@ -114,5 +114,10 @@ rubygems_version: 1.8.6
|
|
114
114
|
signing_key:
|
115
115
|
specification_version: 3
|
116
116
|
summary: Ruby libxslt bindings
|
117
|
-
test_files:
|
118
|
-
|
117
|
+
test_files:
|
118
|
+
- test/test_deprecated.rb
|
119
|
+
- test/test_exslt.rb
|
120
|
+
- test/test_helper.rb
|
121
|
+
- test/test_libxslt.rb
|
122
|
+
- test/test_stylesheet.rb
|
123
|
+
- test/test_suite.rb
|