ruby-xslt 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  Gregoire Lejeune <gregoire dot lejeune at free dot fr>
4
4
  * Maintener
5
5
 
6
- Eust�quio "TaQ" Rangel <eustaquiorangel at yahoo dot com>
6
+ Eustáquio "TaQ" Rangel <eustaquiorangel at yahoo dot com>
7
7
  * Add parameters support
8
8
 
9
9
  Brendan Taylor <whateley at gmail dot com>
@@ -17,7 +17,7 @@ Brendan Taylor <whateley at gmail dot com>
17
17
  Pau Garcia i Quiles <pgquiles at elpauer dot org>
18
18
  * gemspec
19
19
 
20
- St�phane Mariel <smariel at rift dot fr>
20
+ Stéphane Mariel <smariel at rift dot fr>
21
21
  * Bugfix in extfunc.c
22
22
 
23
23
  Tom <tom@spongecell.com>
@@ -1,3 +1,6 @@
1
+ 0.9.9 :
2
+ * Major bug correction
3
+
1
4
  0.9.8 :
2
5
  * Replace STR2CSTR by StringValuePtr
3
6
 
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@ Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxs
6
6
 
7
7
  == Licence
8
8
 
9
- Copyright (C) 2003-2010 Gregoire Lejeune <gregoire dot lejeune at free dot fr>
9
+ Copyright (C) 2003-2012 Gregoire Lejeune <gregoire dot lejeune at free dot fr>
10
10
 
11
11
  Ruby/XSLT is freely distributable according to the terms of the
12
12
  GNU General Public License (see the file 'COPYING').
data/Rakefile CHANGED
@@ -5,13 +5,14 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "ruby-xslt"
8
- gem.summary = %Q{Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/> }
9
- gem.description = gem.summary
8
+ gem.summary = %Q{Ruby/XSLT is a simple XSLT class}
9
+ gem.description = %Q{Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/>}
10
10
  gem.email = "gregoire.lejeune@free.fr"
11
11
  gem.homepage = "http://github.com/glejeune/ruby-xslt"
12
12
  gem.authors = ["Gregoire Lejeune"]
13
13
  gem.extensions = FileList["ext/**/extconf.rb"].to_a
14
14
  gem.test_files = Dir.glob('test/**/*.rb')
15
+ gem.add_development_dependency 'rdoc'
15
16
  end
16
17
  Jeweler::GemcutterTasks.new
17
18
  rescue LoadError
@@ -42,12 +43,14 @@ task :test => :check_dependencies
42
43
 
43
44
  task :default => :test
44
45
 
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
46
+ require 'rdoc/task'
47
+ RDoc::Task.new do |rdoc|
47
48
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
49
 
49
50
  rdoc.rdoc_dir = 'rdoc'
50
- rdoc.title = "syncftp #{version}"
51
- rdoc.rdoc_files.include('README*')
51
+ rdoc.title = "Ruby/XSLT #{version}"
52
+ rdoc.main = "README.rdoc"
53
+ rdoc.rdoc_files.include('*.rdoc')
52
54
  rdoc.rdoc_files.include('lib/**/*.rb')
55
+ rdoc.rdoc_files.include('ext/**/*.c')
53
56
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.8
1
+ 0.9.9
@@ -59,12 +59,17 @@ VALUE xpathObj2value(xmlXPathObjectPtr obj, xmlDocPtr doc)
59
59
  node = obj->nodesetval->nodeTab[i];
60
60
 
61
61
  if( node->type == XML_ELEMENT_NODE ) {
62
+ VALUE cREXML;
63
+ VALUE cDocument;
64
+ VALUE rDocument;
65
+ VALUE rElement;
66
+
62
67
  xmlNodeDump(buff, doc, node, 0, 0);
63
68
 
64
- VALUE cREXML = rb_const_get(rb_cObject, rb_intern("REXML"));
65
- VALUE cDocument = rb_const_get(cREXML, rb_intern("Document"));
66
- VALUE rDocument = rb_funcall(cDocument, rb_intern("new"), 1,rb_str_new2((char *)buff->content));
67
- VALUE rElement = rb_funcall(rDocument, rb_intern("root"), 0);
69
+ cREXML = rb_const_get(rb_cObject, rb_intern("REXML"));
70
+ cDocument = rb_const_get(cREXML, rb_intern("Document"));
71
+ rDocument = rb_funcall(cDocument, rb_intern("new"), 1,rb_str_new2((char *)buff->content));
72
+ rElement = rb_funcall(rDocument, rb_intern("root"), 0);
68
73
 
69
74
  rb_ary_push(ret, rElement);
70
75
 
@@ -135,7 +140,7 @@ xmlXPathObjectPtr value2xpathObj (VALUE val) {
135
140
  ret = xmlXPathNewNodeSet(NULL);
136
141
  break;
137
142
  case T_ARRAY: {
138
- int i,j;
143
+ long i,j;
139
144
  ret = xmlXPathNewNodeSet(NULL);
140
145
 
141
146
  for(i = RARRAY_LEN(val); i > 0; i--) {
data/ext/xslt_lib/xslt.h CHANGED
@@ -18,18 +18,6 @@
18
18
 
19
19
  /* Please see the LICENSE file for copyright and distribution information */
20
20
 
21
- #ifndef __RUBY_XSLT_H__
22
- #define __RUBY_XSLT_H__
23
-
24
- #include <ruby.h>
25
- #ifdef RUBY_1_8
26
- #include <rubyio.h>
27
- #else
28
- #include <ruby/io.h>
29
- #endif
30
-
31
- #include <string.h>
32
-
33
21
  #include <libxml/xmlmemory.h>
34
22
  #include <libxml/debugXML.h>
35
23
  #include <libxml/HTMLtree.h>
@@ -48,6 +36,18 @@
48
36
  #include <libexslt/exslt.h>
49
37
  #endif
50
38
 
39
+ #ifndef __RUBY_XSLT_H__
40
+ #define __RUBY_XSLT_H__
41
+
42
+ #include <ruby.h>
43
+ #ifdef RUBY_1_8
44
+ #include <rubyio.h>
45
+ #else
46
+ #include <ruby/io.h>
47
+ #endif
48
+
49
+ #include <string.h>
50
+
51
51
  #ifdef MEMWATCH
52
52
  #include "memwatch.h"
53
53
  #endif
@@ -57,8 +57,8 @@
57
57
  #include "parameters.h"
58
58
  #include "extfunc.h"
59
59
 
60
- #define RUBY_XSLT_VERSION "0.9.8"
61
- #define RUBY_XSLT_VERNUM 098
60
+ #define RUBY_XSLT_VERSION "0.9.9"
61
+ #define RUBY_XSLT_VERNUM 099
62
62
 
63
63
  #define RUBY_XSLT_XSLSRC_TYPE_NULL 0
64
64
  #define RUBY_XSLT_XSLSRC_TYPE_STR 1
@@ -493,7 +493,7 @@ VALUE ruby_xslt_to_s( VALUE self ) {
493
493
  VALUE vStrOut;
494
494
  RbTxslt *pRbTxslt;
495
495
  xsltStylesheetPtr vXSLTSheet = NULL;
496
- char *xKlassName = rb_class2name( CLASS_OF( self ) );
496
+ const char *xKlassName = rb_class2name( CLASS_OF( self ) );
497
497
 
498
498
  Data_Get_Struct( self, RbTxslt, pRbTxslt );
499
499
 
data/ruby-xslt.gemspec CHANGED
@@ -4,23 +4,23 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{ruby-xslt}
8
- s.version = "0.9.8"
7
+ s.name = "ruby-xslt"
8
+ s.version = "0.9.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gregoire Lejeune"]
12
- s.date = %q{2010-11-26}
13
- s.description = %q{Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/>}
14
- s.email = %q{gregoire.lejeune@free.fr}
12
+ s.date = "2012-02-15"
13
+ s.description = "Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/>"
14
+ s.email = "gregoire.lejeune@free.fr"
15
15
  s.extensions = ["ext/xslt_lib/extconf.rb"]
16
16
  s.extra_rdoc_files = [
17
- "ChangeLog",
17
+ "ChangeLog.rdoc",
18
18
  "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
- "AUTHORS",
21
+ "AUTHORS.rdoc",
22
22
  "COPYING",
23
- "ChangeLog",
23
+ "ChangeLog.rdoc",
24
24
  "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
@@ -44,22 +44,22 @@ Gem::Specification.new do |s|
44
44
  "test/t.xsl",
45
45
  "test/test.rb"
46
46
  ]
47
- s.homepage = %q{http://github.com/glejeune/ruby-xslt}
47
+ s.homepage = "http://github.com/glejeune/ruby-xslt"
48
48
  s.require_paths = ["lib"]
49
- s.rubygems_version = %q{1.3.7}
50
- s.summary = %q{Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/>}
51
- s.test_files = [
52
- "test/test.rb"
53
- ]
49
+ s.rubygems_version = "1.8.15"
50
+ s.summary = "Ruby/XSLT is a simple XSLT class"
51
+ s.test_files = ["test/test.rb"]
54
52
 
55
53
  if s.respond_to? :specification_version then
56
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
57
54
  s.specification_version = 3
58
55
 
59
56
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
60
58
  else
59
+ s.add_dependency(%q<rdoc>, [">= 0"])
61
60
  end
62
61
  else
62
+ s.add_dependency(%q<rdoc>, [">= 0"])
63
63
  end
64
64
  end
65
65
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-xslt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
5
- prerelease: false
4
+ hash: 41
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 8
10
- version: 0.9.8
9
+ - 9
10
+ version: 0.9.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gregoire Lejeune
@@ -15,10 +15,22 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-26 00:00:00 +01:00
19
- default_executable:
20
- dependencies: []
21
-
18
+ date: 2012-02-15 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rdoc
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :development
33
+ version_requirements: *id001
22
34
  description: Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/>
23
35
  email: gregoire.lejeune@free.fr
24
36
  executables: []
@@ -26,12 +38,12 @@ executables: []
26
38
  extensions:
27
39
  - ext/xslt_lib/extconf.rb
28
40
  extra_rdoc_files:
29
- - ChangeLog
41
+ - ChangeLog.rdoc
30
42
  - README.rdoc
31
43
  files:
32
- - AUTHORS
44
+ - AUTHORS.rdoc
33
45
  - COPYING
34
- - ChangeLog
46
+ - ChangeLog.rdoc
35
47
  - README.rdoc
36
48
  - Rakefile
37
49
  - VERSION
@@ -54,7 +66,6 @@ files:
54
66
  - test/t.xml
55
67
  - test/t.xsl
56
68
  - test/test.rb
57
- has_rdoc: true
58
69
  homepage: http://github.com/glejeune/ruby-xslt
59
70
  licenses: []
60
71
 
@@ -84,9 +95,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
95
  requirements: []
85
96
 
86
97
  rubyforge_project:
87
- rubygems_version: 1.3.7
98
+ rubygems_version: 1.8.15
88
99
  signing_key:
89
100
  specification_version: 3
90
- summary: Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/>
101
+ summary: Ruby/XSLT is a simple XSLT class
91
102
  test_files:
92
103
  - test/test.rb