libxslt-ruby 1.0.3 → 1.0.4

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,13 @@
1
+ == 1.0.4 / 2011-08-03
2
+
3
+ * Don't link against libxml-ruby on OS X, as it is unnecessary and doesn't work
4
+ - dylib vs bundle (Travis Warlick).
5
+
6
+ * Add 'rake' to gemspec to enable use of :path option with Bundler (Travis Warlick).
7
+
8
+ * Update test requires to work on Ruby 1.8.* and 1.9.* (Charlie Savage)
9
+
10
+
1
11
  == 1.0.3 / 2011-07-31
2
12
 
3
13
  * Added support for extension function registration. This was adapted from
@@ -128,17 +128,20 @@ RUBY_VERSION =~ /(\d+.\d+)/
128
128
  minor_version = $1
129
129
  paths = ["#{gem_spec.full_gem_path}/lib", "#{gem_spec.full_gem_path}/lib/#{minor_version}"]
130
130
 
131
- # Hack to make sure ruby library is *after* xml_ruby library
132
- $LIBS += " #{$LIBRUBYARG_STATIC}"
133
- unless find_library("xml_ruby", "Init_libxml_ruby", *paths) or
134
- find_library(":libxml_ruby.so", "Init_libxml_ruby", *paths)
135
- crash(<<-EOL)
136
- Need libxml-ruby
137
- Please install libxml-ruby or specify the path to the gem via:
138
- --with-libxml-ruby=/path/to/libxml-ruby gem
139
- EOL
131
+ # No need to link xml_ruby on OS X
132
+ unless Config::CONFIG['host_os'].match(/darwin/)
133
+ # Hack to make sure ruby library is *after* xml_ruby library
134
+ $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
+ crash(<<-EOL)
138
+ Need libxml-ruby
139
+ Please install libxml-ruby or specify the path to the gem via:
140
+ --with-libxml-ruby=/path/to/libxml-ruby gem
141
+ EOL
142
+ end
143
+ $LIBS.gsub!($LIBRUBYARG_STATIC,'')
140
144
  end
141
- $LIBS.gsub!($LIBRUBYARG_STATIC,'')
142
145
 
143
146
  create_header()
144
147
  create_makefile("libxslt_ruby")
@@ -1,5 +1,5 @@
1
- #define RUBY_LIBXSLT_VERSION "1.0.3"
1
+ #define RUBY_LIBXSLT_VERSION "1.0.4"
2
2
  #define RUBY_LIBXSLT_VERNUM 1
3
3
  #define RUBY_LIBXSLT_VER_MAJ 0
4
- #define RUBY_LIBXSLT_VER_MIN 3
4
+ #define RUBY_LIBXSLT_VER_MIN 4
5
5
  #define RUBY_LIBXSLT_VER_MIC 0
data/libxslt-ruby.gemspec CHANGED
@@ -1,5 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
+ require 'rake'
4
+
3
5
  # Determine the current version of the software
4
6
  version = File.read('ext/libxslt/version.h').match(/\s*RUBY_LIBXSLT_VERSION\s*['"](\d.+)['"]/)[1]
5
7
 
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  require 'test/unit'
3
- require 'test_helper'
3
+ require './test_helper'
4
4
 
5
5
  class TestDeprecated < Test::Unit::TestCase
6
6
  def setup()
data/test/test_exslt.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  require 'test/unit'
3
- require 'test_helper'
3
+ require './test_helper'
4
4
 
5
5
  class TestExslt < Test::Unit::TestCase
6
6
  def setup
data/test/test_libxslt.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  require 'test/unit'
3
- require 'test_helper'
3
+ require './test_helper'
4
4
 
5
5
  class TextLibXslt < Test::Unit::TestCase
6
6
  def test_constants
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  require 'test/unit'
3
- require 'test_helper'
3
+ require './test_helper'
4
4
 
5
5
  class TestStylesheet < Test::Unit::TestCase
6
6
  def setup
data/test/test_suite.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  dir = File.dirname(__FILE__)
6
6
  Dir.chdir(dir)
7
7
 
8
- require 'test_libxslt'
9
- require 'test_stylesheet'
10
- require 'test_deprecated'
11
- require 'test_exslt'
8
+ require './test_libxslt'
9
+ require './test_stylesheet'
10
+ require './test_deprecated'
11
+ require './test_exslt'
metadata CHANGED
@@ -1,35 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: libxslt-ruby
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.3
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 4
10
+ version: 1.0.4
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Charlie Savage
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-08-01 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-08-03 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: libxml-ruby
16
- requirement: &22432512 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 9
29
+ segments:
30
+ - 2
31
+ - 1
32
+ - 1
21
33
  version: 2.1.1
22
34
  type: :runtime
23
- prerelease: false
24
- version_requirements: *22432512
25
- description: ! " The Libxslt-Ruby project provides Ruby language bindings for the
26
- GNOME\n XSLT C library. It is free software, released under the MIT License.\n"
35
+ version_requirements: *id001
36
+ description: " The Libxslt-Ruby project provides Ruby language bindings for the GNOME\n XSLT C library. It is free software, released under the MIT License.\n"
27
37
  email: libxml-devel@rubyforge.org
28
38
  executables: []
29
- extensions:
39
+
40
+ extensions:
30
41
  - ext/libxslt/extconf.rb
31
42
  extra_rdoc_files: []
32
- files:
43
+
44
+ files:
33
45
  - CHANGES
34
46
  - LICENSE
35
47
  - Rakefile
@@ -64,27 +76,39 @@ files:
64
76
  - ext/libxslt/extconf.rb
65
77
  homepage: http://libxslt.rubyforge.org/
66
78
  licenses: []
79
+
67
80
  post_install_message:
68
81
  rdoc_options: []
69
- require_paths:
82
+
83
+ require_paths:
70
84
  - lib
71
85
  - ext/libxslt
72
- required_ruby_version: !ruby/object:Gem::Requirement
86
+ required_ruby_version: !ruby/object:Gem::Requirement
73
87
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ hash: 59
92
+ segments:
93
+ - 1
94
+ - 8
95
+ - 6
77
96
  version: 1.8.6
78
- required_rubygems_version: !ruby/object:Gem::Requirement
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
98
  none: false
80
- requirements:
81
- - - ! '>='
82
- - !ruby/object:Gem::Version
83
- version: '0'
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
105
+ version: "0"
84
106
  requirements: []
107
+
85
108
  rubyforge_project: libxslt-ruby
86
- rubygems_version: 1.8.6.1
109
+ rubygems_version: 1.8.6
87
110
  signing_key:
88
111
  specification_version: 3
89
112
  summary: Ruby libxslt bindings
90
113
  test_files: []
114
+