libxslt-ruby 0.3.6 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/LICENSE +21 -21
  2. data/README +152 -48
  3. data/ext/{xml → libxslt}/extconf.rb +29 -22
  4. data/ext/{xml → libxslt}/libxslt.c +22 -18
  5. data/ext/{xml → libxslt}/libxslt.h +8 -9
  6. data/ext/{xml → libxslt}/ruby_xslt_stylesheet.c +19 -19
  7. data/ext/{xml → libxslt}/ruby_xslt_stylesheet.h +1 -1
  8. data/ext/{xml → libxslt}/ruby_xslt_transform_context.c +2 -4
  9. data/ext/{xml → libxslt}/ruby_xslt_transform_context.h +1 -1
  10. data/ext/libxslt/version.h +5 -0
  11. data/lib/libxslt.rb +2 -0
  12. data/mingw/libxslt-1.dll +0 -0
  13. data/mingw/libxslt_ruby.so +0 -0
  14. data/mingw/mingw.rake +36 -0
  15. data/vc/libxslt_ruby.sln +26 -0
  16. data/vc/libxslt_ruby.vcproj +233 -0
  17. metadata +66 -87
  18. data/CHANGELOG +0 -14
  19. data/Rakefile +0 -245
  20. data/TODO +0 -32
  21. data/ext/xml/libxml-ruby/libxml.h +0 -92
  22. data/ext/xml/libxml-ruby/ruby_xml_attr.h +0 -31
  23. data/ext/xml/libxml-ruby/ruby_xml_attribute.h +0 -31
  24. data/ext/xml/libxml-ruby/ruby_xml_document.h +0 -37
  25. data/ext/xml/libxml-ruby/ruby_xml_dtd.h +0 -27
  26. data/ext/xml/libxml-ruby/ruby_xml_input_cbg.h +0 -31
  27. data/ext/xml/libxml-ruby/ruby_xml_node.h +0 -38
  28. data/ext/xml/libxml-ruby/ruby_xml_node_set.h +0 -36
  29. data/ext/xml/libxml-ruby/ruby_xml_ns.h +0 -31
  30. data/ext/xml/libxml-ruby/ruby_xml_parser.h +0 -41
  31. data/ext/xml/libxml-ruby/ruby_xml_parser_context.h +0 -32
  32. data/ext/xml/libxml-ruby/ruby_xml_sax_parser.h +0 -31
  33. data/ext/xml/libxml-ruby/ruby_xml_schema.h +0 -26
  34. data/ext/xml/libxml-ruby/ruby_xml_tree.h +0 -22
  35. data/ext/xml/libxml-ruby/ruby_xml_xinclude.h +0 -23
  36. data/ext/xml/libxml-ruby/ruby_xml_xpath.h +0 -34
  37. data/ext/xml/libxml-ruby/ruby_xml_xpath_context.h +0 -34
  38. data/ext/xml/libxml-ruby/ruby_xml_xpointer.h +0 -37
  39. data/ext/xml/libxml-ruby/ruby_xml_xpointer_context.h +0 -28
  40. data/tests/commentary.dtd +0 -34
  41. data/tests/fuzface.rb +0 -15
  42. data/tests/fuzface.xml +0 -154
  43. data/tests/fuzface.xsl +0 -4
  44. data/tests/ramblings.xsl +0 -46
  45. data/tests/tc_libxslt.rb +0 -65
  46. data/tests/tc_xslt_stylesheet.rb +0 -41
  47. data/tests/tc_xslt_stylesheet2.rb +0 -41
metadata CHANGED
@@ -1,101 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
3
- specification_version: 1
4
2
  name: libxslt-ruby
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.3.6
7
- date: 2006-03-22 00:00:00 +00:00
8
- summary: LibXSLT bindings for Ruby
9
- require_paths:
10
- - ext
11
- email: libxml-devel@rubyforge.org
12
- homepage: http://libxml.rubyforge.org
13
- rubyforge_project: libxml
14
- description: C-language bindings for Gnome LibXSLT and Ruby. Part of the LibXML-Ruby project.
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 0.6.0
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
6
  authors:
29
- - Sean Chittenden
30
- files:
31
- - ext/xml/extconf.rb
32
- - Rakefile
33
- - README
34
- - TODO
35
- - LICENSE
36
- - CHANGELOG
37
- - ext/xml/ruby_xslt_transform_context.c
38
- - ext/xml/libxslt.c
39
- - ext/xml/ruby_xslt_stylesheet.c
40
- - ext/xml/libxml-ruby/ruby_xml_node.h
41
- - ext/xml/libxml-ruby/ruby_xml_xinclude.h
42
- - ext/xml/libxml-ruby/ruby_xml_schema.h
43
- - ext/xml/libxml-ruby/ruby_xml_parser_context.h
44
- - ext/xml/libxml-ruby/ruby_xml_xpointer.h
45
- - ext/xml/libxml-ruby/ruby_xml_input_cbg.h
46
- - ext/xml/libxml-ruby/ruby_xml_xpath_context.h
47
- - ext/xml/libxml-ruby/ruby_xml_xpath.h
48
- - ext/xml/libxml-ruby/ruby_xml_ns.h
49
- - ext/xml/libxml-ruby/ruby_xml_xpointer_context.h
50
- - ext/xml/libxml-ruby/ruby_xml_attribute.h
51
- - ext/xml/libxml-ruby/ruby_xml_sax_parser.h
52
- - ext/xml/libxml-ruby/ruby_xml_node_set.h
53
- - ext/xml/libxml-ruby/libxml.h
54
- - ext/xml/libxml-ruby/ruby_xml_dtd.h
55
- - ext/xml/libxml-ruby/ruby_xml_attr.h
56
- - ext/xml/libxml-ruby/ruby_xml_document.h
57
- - ext/xml/libxml-ruby/ruby_xml_tree.h
58
- - ext/xml/libxml-ruby/ruby_xml_parser.h
59
- - ext/xml/ruby_xslt_stylesheet.h
60
- - ext/xml/ruby_xslt_transform_context.h
61
- - ext/xml/libxslt.h
62
- - tests/fuzface.xml
63
- - tests/tc_xslt_stylesheet2.rb
64
- - tests/ramblings.xsl
65
- - tests/tc_libxslt.rb
66
- - tests/fuzface.rb
67
- - tests/commentary.dtd
68
- - tests/fuzface.xsl
69
- - tests/tc_xslt_stylesheet.rb
70
- test_files: []
71
-
72
- rdoc_options:
73
- - --title
74
- - Libxslt-Ruby API
75
- - --main
76
- - README
77
- - -o
78
- - rdoc
79
- extra_rdoc_files:
80
- - README
81
- - LICENSE
82
- - TODO
83
- - ext/xml/ruby_xslt_transform_context.c
84
- - ext/xml/ruby_xslt_stylesheet.c
85
- - ext/xml/libxslt.c
86
- executables: []
87
-
88
- extensions:
89
- - ext/xml/extconf.rb
90
- requirements: []
7
+ - Charlie Savage
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
91
11
 
12
+ date: 2008-07-06 00:00:00 -06:00
13
+ default_executable:
92
14
  dependencies:
93
15
  - !ruby/object:Gem::Dependency
94
16
  name: libxml-ruby
95
17
  version_requirement:
96
- version_requirements: !ruby/object:Gem::Version::Requirement
18
+ version_requirements: !ruby/object:Gem::Requirement
97
19
  requirements:
98
20
  - - ">="
99
21
  - !ruby/object:Gem::Version
100
- version: 0.3.6
22
+ version: "0"
101
23
  version:
24
+ description: The Libxslt-Ruby project provides Ruby language bindings for the GNOME XSLT C library. It is free software, released under the MIT License.
25
+ email:
26
+ executables: []
27
+
28
+ extensions:
29
+ - ext/libxslt/extconf.rb
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - README
34
+ - LICENSE
35
+ - lib/libxslt.rb
36
+ - ext/libxslt
37
+ - ext/libxslt/extconf.rb
38
+ - ext/libxslt/libxslt.c
39
+ - ext/libxslt/libxslt.h
40
+ - ext/libxslt/ruby_xslt_stylesheet.c
41
+ - ext/libxslt/ruby_xslt_stylesheet.h
42
+ - ext/libxslt/ruby_xslt_transform_context.c
43
+ - ext/libxslt/ruby_xslt_transform_context.h
44
+ - ext/libxslt/version.h
45
+ - mingw/mingw.rake
46
+ - mingw/libxslt-1.dll
47
+ - mingw/libxslt_ruby.so
48
+ - vc/libxslt_ruby.sln
49
+ - vc/libxslt_ruby.vcproj
50
+ has_rdoc: true
51
+ homepage: http://libxslt.rubyforge.org/
52
+ post_install_message:
53
+ rdoc_options:
54
+ - --title
55
+ - libxslt-ruby
56
+ - --inline-source
57
+ - --line-numbers
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 1.8.4
65
+ version:
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ version:
72
+ requirements: []
73
+
74
+ rubyforge_project: libxslt-ruby
75
+ rubygems_version: 1.0.1
76
+ signing_key:
77
+ specification_version: 2
78
+ summary: Ruby libxslt bindings
79
+ test_files: []
80
+
data/CHANGELOG DELETED
@@ -1,14 +0,0 @@
1
- 27.02.2006 Ross Bamford <rosco at roscopeco.co.uk>
2
- * Source layout for Rubygem release
3
- * Fixed unit tests (set_up to setup, directory handling)
4
- * Updated extconf to remove shell-script dependency
5
- * Fixed multiple symbol declarations for -fno-common
6
-
7
- 15.12.2003 Martin Povolny <martin@solnet.cz>
8
- * libxslt.c: added call to exsltRegisterAll to enable exslt extensions
9
- * extconf.rb: added -lexslt
10
-
11
- 2.1.2004 Martin Povolny <martin@solnet.cz>
12
- * libxslt.c: added call to ruby_init_xslt_transform_context() to make it
13
- work on ruby1.8
14
-
data/Rakefile DELETED
@@ -1,245 +0,0 @@
1
- require 'net/ftp'
2
- require 'rake/clean'
3
- require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/gempackagetask'
6
-
7
- CLEAN.include '**/*.o'
8
- CLEAN.include '**/*.so'
9
- CLEAN.include 'html'
10
- CLEAN.include 'tests/fuzface.html'
11
- CLOBBER.include '**/*.log'
12
- CLOBBER.include '**/Makefile'
13
- CLOBBER.include '**/extconf.h'
14
-
15
- desc "Default Task (Build release)"
16
- task :default => :test
17
-
18
- # Determine the current version of the software
19
- if File.read('ext/xml/libxslt.h') =~ /\s*RUBY_LIBXSLT_VERSION\s*['"](\d.+)['"]/
20
- CURRENT_VERSION = $1
21
- else
22
- CURRENT_VERSION = "0.0.0"
23
- end
24
-
25
- PKG_VERSION = ENV['REL'] || CURRENT_VERSION
26
- LIBXMLH = ENV['LIBXMLH'] || '../libxml/ext/xml'
27
-
28
- task :test_ver do
29
- puts PKG_VERSION
30
- end
31
-
32
- # Make tasks -----------------------------------------------------
33
- MAKECMD = ENV['MAKE_CMD'] || 'make'
34
- MAKEOPTS = ENV['MAKE_OPTS'] || ''
35
-
36
- # Copy libxml headers in if needed or official release
37
- task :copy_libxml_headers do
38
- rm_rf 'ext/xml/libxml-ruby' if ENV['REL'] || ENV['ALLCLEAN']
39
-
40
- unless File.exist?('ext/xml/libxml-ruby')
41
- unless File.exist?(LIBXMLH)
42
- fail <<-EOM
43
-
44
- LibXML-Ruby headers are required to build a release.
45
-
46
- Install libxml-ruby source at ../libxml, or supply
47
- LIBXMLH option to rake (e.g. LIBXMLH=../myinc/path)
48
-
49
- EOM
50
- end
51
-
52
- mkdir 'ext/xml/libxml-ruby'
53
-
54
- Dir[File.join(LIBXMLH, '*.h')].each do |fn|
55
- unless fn =~ /extconf.h$/
56
- File.open(File.join('ext/xml/libxml-ruby', File.basename(fn)), 'w+') do |f|
57
- f << "/* DO NOT EDIT THIS FILE - UPDATE FROM LIBXML-RUBY ONLY */\n"
58
- f << "/* Generated: #{Time.now} */\n"
59
- f << "/* Release : #{CURRENT_VERSION} */\n\n\n\n\n\n\n\n"
60
- f << File.read(fn)
61
- end
62
- end
63
- end
64
- end
65
- end
66
-
67
- file 'ext/xml/extconf.rb' => :copy_libxml_headers
68
-
69
- file 'ext/xml/Makefile' => 'ext/xml/extconf.rb' do
70
- Dir.chdir('ext/xml') do
71
- ruby 'extconf.rb'
72
- end
73
- end
74
-
75
- def make(target = '')
76
- Dir.chdir('ext/xml') do
77
- pid = fork { exec "#{MAKECMD} #{MAKEOPTS} #{target}" }
78
- Process.waitpid pid
79
- end
80
- $?.exitstatus
81
- end
82
-
83
- # Let make handle dependencies between c/o/so - we'll just run it.
84
- file 'ext/xml/libxslt.so' => 'ext/xml/Makefile' do
85
- m = make
86
- fail "Make failed (status #{m})" unless m == 0
87
- end
88
-
89
- desc "Compile the shared object"
90
- task :compile => 'ext/xml/libxslt.so'
91
-
92
- desc "Install to your site_ruby directory"
93
- task :install => :compile do
94
- m = make 'install'
95
- fail "Make install failed (status #{m})" unless m == 0
96
- end
97
-
98
- # Test Tasks ---------------------------------------------------------
99
- task :ta => :alltests
100
- task :tu => :unittests
101
- task :test => :unittests
102
-
103
- Rake::TestTask.new(:alltests) do |t|
104
- t.test_files = FileList[
105
- 'tests/tc_*.rb',
106
- 'tests/contrib/*.rb',
107
- ]
108
- t.verbose = true
109
- end
110
-
111
- Rake::TestTask.new(:unittests) do |t|
112
- t.test_files = FileList['tests/tc_*.rb']
113
- t.verbose = false
114
- end
115
-
116
- #Rake::TestTask.new(:funtests) do |t|
117
- # t.test_files = FileList['test/fun*.rb']
118
- #t.warning = true
119
- #t.warning = true
120
- #end
121
-
122
- task :unittests => :compile
123
- task :alltests => :compile
124
-
125
- # RDoc Tasks ---------------------------------------------------------
126
- desc "Create the RDOC documentation tree"
127
- rd = Rake::RDocTask.new(:doc) do |rdoc|
128
- rdoc.rdoc_dir = 'html'
129
- rdoc.title = "Libxslt-Ruby API"
130
- rdoc.options << '--main' << 'README'
131
- rdoc.rdoc_files.include('README', 'LICENSE', 'TODO')
132
- rdoc.rdoc_files.include('ext/xml/ruby_xslt*.c', 'ext/xml/libxslt.c', '*.rdoc')
133
- end
134
-
135
- desc "Publish the RDoc documentation to project web site"
136
- task :pubdoc => [ :doc ] do
137
- unless ENV['RUBYFORGE_ACCT']
138
- raise "Need to set RUBYFORGE_ACCT to your rubyforge.org user name (e.g. 'fred')"
139
- end
140
- require 'rake/contrib/sshpublisher'
141
- Rake::SshDirPublisher.new(
142
- "#{ENV['RUBYFORGE_ACCT']}@rubyforge.org",
143
- "/var/www/gforge-projects/libxml/doc/xslt",
144
- "html"
145
- ).upload
146
- end
147
-
148
- # Packaging / Version number tasks -----------------------------------
149
- #
150
- # You can create a Rubygem with 'rake package'
151
- #
152
- # You can build a release package set with 'rake release'
153
- #
154
- # The project can build official release packages with
155
- # 'rake release REL=x.y.z' in a working copy (with correct
156
- # libxml-ruby headers in ../libxml/ext/xml or alternative dir
157
- # specified with LIBXMLH=/path/to/headers/ )
158
-
159
- # Used during release packaging if a REL is supplied
160
- task :update_version do
161
- unless PKG_VERSION == CURRENT_VERSION
162
- maj, min, mic = /(\d+)\.(\d+)(?:\.(\d+))?/.match(PKG_VERSION).captures
163
- File.open('ext/xml/libxslt.h.new','w+') do |f|
164
- f << File.read('ext/xml/libxslt.h').
165
- gsub(/RUBY_LIBXSLT_VERSION\s+"(\d.+)"/) { "RUBY_LIBXSLT_VERSION \"#{PKG_VERSION}\"" }.
166
- gsub(/RUBY_LIBXSLT_VERNUM\s+\d+/) { "RUBY_LIBXSLT_VERNUM #{PKG_VERSION.tr('.','')}" }.
167
- gsub(/RUBY_LIBXSLT_VER_MAJ\s+\d+/) { "RUBY_LIBXSLT_VER_MAJ #{maj}" }.
168
- gsub(/RUBY_LIBXSLT_VER_MIN\s+\d+/) { "RUBY_LIBXSLT_VER_MIN #{min}" }.
169
- gsub(/RUBY_LIBXSLT_VER_MIC\s+\d+/) { "RUBY_LIBXSLT_VER_MIC #{mic || 0}" }
170
- end
171
- mv('ext/xml/libxslt.h.new', 'ext/xml/libxslt.h')
172
- end
173
- end
174
-
175
- PKG_FILES = FileList[
176
- 'ext/xml/extconf.rb',
177
- '[A-Z]*',
178
- 'ext/xml/*.c',
179
- 'ext/xml/libxml-ruby/*.h',
180
- 'ext/xml/ruby_xslt*.h',
181
- 'ext/xml/libxslt.h',
182
- 'tests/**/*',
183
- ]
184
-
185
- if ! defined?(Gem)
186
- warn "Package Target requires RubyGEMs"
187
- else
188
- spec = Gem::Specification.new do |s|
189
-
190
- #### Basic information.
191
-
192
- s.name = 'libxslt-ruby'
193
- s.version = PKG_VERSION
194
- s.summary = "LibXSLT bindings for Ruby"
195
- s.description = <<-EOF
196
- C-language bindings for Gnome LibXSLT and Ruby.
197
- Part of the LibXML-Ruby project.
198
- EOF
199
- s.extensions = 'ext/xml/extconf.rb'
200
-
201
- #### Which files are to be included in this gem?
202
- s.files = PKG_FILES.to_a
203
-
204
- #### dependencies
205
- s.add_dependency('libxml-ruby', '>= 0.3.6')
206
-
207
- #### Load-time details
208
- s.require_path = 'ext'
209
-
210
- #### Documentation and testing.
211
- s.has_rdoc = true
212
- s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
213
- s.rdoc_options <<
214
- '--title' << 'Libxslt-Ruby API' <<
215
- '--main' << 'README' <<
216
- '-o' << 'rdoc'
217
-
218
- s.test_files = Dir.glob('tests/*runner.rb')
219
-
220
- #### Author and project details.
221
-
222
- s.author = "Sean Chittenden"
223
- s.email = "libxml-devel@rubyforge.org"
224
- s.homepage = "http://libxml.rubyforge.org"
225
- s.rubyforge_project = "libxml"
226
- end
227
-
228
- # Quick fix for Ruby 1.8.3 / YAML bug
229
- if (RUBY_VERSION == '1.8.3')
230
- def spec.to_yaml
231
- out = super
232
- out = '--- ' + out unless out =~ /^---/
233
- out
234
- end
235
- end
236
-
237
- package_task = Rake::GemPackageTask.new(spec) do |pkg|
238
- pkg.need_zip = true
239
- pkg.need_tar_gz = true
240
- pkg.package_dir = 'pkg'
241
- end
242
-
243
- desc "Build a full release"
244
- task :release => [:clobber, :update_version, :compile, :test, :package]
245
- end
data/TODO DELETED
@@ -1,32 +0,0 @@
1
- $Id: TODO,v 1.1.1.1 2006/03/09 01:36:19 roscopeco Exp $
2
-
3
- XML::XSLT needs a class method that'll let it use a stylesheet that's
4
- already in memory. Something like: xsl = XML::XSLT.string(stylesheet)
5
-
6
- Need version constants to be available for both LIBXML and LIBXSLT
7
-
8
- Need a way of changing the IO stream used for printing the output
9
-
10
- Should have some way of turning on more debugging that what's there
11
-
12
- Need to add the ability to save to a file
13
-
14
- Ability to dump the tree instead of the result to a given IO stream (partially completed, iirc)
15
-
16
- Ability to dump the registered extension elements and functions to a given IO stream
17
-
18
- Ability to turn on and off the DTD loading phase
19
-
20
- Ability to increase the maximum depth of applying templates
21
-
22
- Some way of specifying that the incoming document is xhtml and not xml
23
-
24
- Some way of specifying that the incoming document is SGML docbook
25
-
26
- A way of setting parameters (key/value pairs) before the stylesheet gets processed
27
-
28
- A way of not telling the XSL engine to not fetch DTDs over a network
29
-
30
- A way of specifying the SGML catalogs to use
31
-
32
- A way of turning on XInclude processing of the document input