libxslt-ruby 1.0.5-x86-mingw32 → 1.0.6-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.6 / 2011-08-14
2
+
3
+ * Fix compilation with Microsoft Visual Studio 2010 (Charlie Savage)
4
+
5
+
1
6
  == 1.0.5 / 2011-08-09
2
7
 
3
8
  * Fix Ruby 1.9.3-preview1 libxml 2.7.3 (OS X Lion) conflicting OnigUChar redefinition (Travis Warlick).
data/Rakefile CHANGED
@@ -85,6 +85,5 @@ end
85
85
  # Test Task
86
86
  Rake::TestTask.new do |t|
87
87
  t.libs << "test"
88
- t.test_files = FileList['test/test*.rb'].exclude('test/test_suite.rb')
89
88
  t.verbose = true
90
89
  end
@@ -1,7 +1,8 @@
1
- #ifndef EXTCONF_H
2
- #define EXTCONF_H
3
- #define HAVE_ZLIB_H 1
4
- #define HAVE_LIBXML_XMLVERSION_H 1
5
- #define HAVE_XSLT_H 1
6
- #define HAVE_EXSLT_H 1
7
- #endif
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
@@ -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", "#{gem_spec.full_gem_path}/lib/#{minor_version}"]
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
- unless find_library("xml_ruby", "Init_libxml_ruby", *paths) or
136
- find_library(":libxml_ruby.so", "Init_libxml_ruby", *paths)
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:
@@ -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
@@ -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, args[nargs];
25
+ VALUE callback;
26
+ VALUE* args = ALLOCA_N(VALUE, nargs);
26
27
  const xmlChar *namespace, *name;
27
28
  int i;
28
29
 
@@ -5,8 +5,6 @@
5
5
  #ifndef __RUBY_LIBXSLT_STYLESHEET__
6
6
  #define __RUBY_LIBXSLT_STYLESHEET__
7
7
 
8
- extern VALUE cXSLTStylesheet;
9
-
10
8
  void ruby_init_xslt_stylesheet(void);
11
9
 
12
10
  #endif
@@ -1,5 +1,5 @@
1
- #define RUBY_LIBXSLT_VERSION "1.0.5"
1
+ #define RUBY_LIBXSLT_VERSION "1.0.6"
2
2
  #define RUBY_LIBXSLT_VERNUM 1
3
3
  #define RUBY_LIBXSLT_VER_MAJ 0
4
- #define RUBY_LIBXSLT_VER_MIN 5
4
+ #define RUBY_LIBXSLT_VER_MIN 6
5
5
  #define RUBY_LIBXSLT_VER_MIC 0
Binary file
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/tc_*.rb")
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
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
- require 'test/unit'
3
2
  require './test_helper'
3
+ require 'test/unit'
4
4
 
5
5
  class TestDeprecated < Test::Unit::TestCase
6
6
  def setup()
data/test/test_helper.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  # encoding: UTF-8
2
-
3
2
  # To make testing/debugging easier, test within this source tree versus an installed gem
4
3
 
5
4
  dir = File.dirname(__FILE__)
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
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-09 00:00:00 Z
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