ruby-xslt 0.9.4 → 0.9.5
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/AUTHORS +3 -0
- data/ChangeLog +6 -0
- data/README +8 -2
- data/ext/xslt_lib/extfunc.c +6 -1
- metadata +5 -5
data/AUTHORS
CHANGED
@@ -17,6 +17,9 @@ 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>
|
21
|
+
* Bugfix in extfunc.c
|
22
|
+
|
20
23
|
== Thanks to :
|
21
24
|
|
22
25
|
knu <knu at freebsd dot org> for FreeBSD port (see http://www.freshports.org/textproc/ruby-xslt/)
|
data/ChangeLog
CHANGED
data/README
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, 2004, 2005 Gregoire Lejeune <gregoire dot lejeune at free dot fr>
|
9
|
+
Copyright (C) 2003, 2004, 2005, 2006, 2007 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').
|
@@ -17,9 +17,11 @@ This program is distributed without any warranty. See the file
|
|
17
17
|
== DOWNLOAD
|
18
18
|
|
19
19
|
=== Last version
|
20
|
-
* version 0.9.
|
20
|
+
* version 0.9.5[http://gregoire.lejeune.free.fr/ruby-xslt_0.9.5.tar.gz]
|
21
21
|
|
22
22
|
=== Old versions
|
23
|
+
* version 0.9.4[http://gregoire.lejeune.free.fr/ruby-xslt_0.9.4.tar.gz]
|
24
|
+
* version 0.9.3[http://gregoire.lejeune.free.fr/ruby-xslt_0.9.3.tar.gz]
|
23
25
|
* version 0.9.2[http://gregoire.lejeune.free.fr/ruby-xslt_0.9.2.tar.gz]
|
24
26
|
* version 0.9.1[http://gregoire.lejeune.free.fr/ruby-xslt_0.9.1.tar.gz]
|
25
27
|
* version 0.8.2[http://gregoire.lejeune.free.fr/ruby-xslt_0.8.2.tar.gz]
|
@@ -43,6 +45,10 @@ See this page[http://rubyforge.org/scm/?group_id=423] for more informations
|
|
43
45
|
|
44
46
|
== INSTALLATION
|
45
47
|
|
48
|
+
sudo gem install ruby-xslt
|
49
|
+
|
50
|
+
or
|
51
|
+
|
46
52
|
ruby extconf.rb # see CONFIGURATION for more options
|
47
53
|
make
|
48
54
|
make test
|
data/ext/xslt_lib/extfunc.c
CHANGED
@@ -72,7 +72,12 @@ VALUE xpathObj2value(xmlXPathObjectPtr obj, xmlDocPtr doc)
|
|
72
72
|
xmlBufferEmpty(buff);
|
73
73
|
} else if ( node->type == XML_TEXT_NODE ) {
|
74
74
|
rb_ary_push(ret, rb_str_new2((char *)node->content));
|
75
|
-
}
|
75
|
+
} else if ( node->type == XML_ATTRIBUTE_NODE ) {
|
76
|
+
// BUG: should ensure children is not null (shouldn't)
|
77
|
+
rb_ary_push(ret, rb_str_new2((char *)node->children->content));
|
78
|
+
} else {
|
79
|
+
rb_warning( "Unsupported node type in node set: %d", node->type );
|
80
|
+
}
|
76
81
|
}
|
77
82
|
xmlBufferFree(buff);
|
78
83
|
}
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-xslt
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.9.5
|
7
|
+
date: 2007-08-28 00:00:00 +02:00
|
8
8
|
summary: A Ruby class for processing XSLT
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -35,11 +35,11 @@ files:
|
|
35
35
|
- AUTHORS
|
36
36
|
- setup.rb
|
37
37
|
- test/subdir
|
38
|
+
- test/subdir/result.xsl
|
39
|
+
- test/subdir/test.xsl
|
38
40
|
- test/t.xml
|
39
41
|
- test/t.xsl
|
40
42
|
- test/test.rb
|
41
|
-
- test/subdir/result.xsl
|
42
|
-
- test/subdir/test.xsl
|
43
43
|
- lib/xml
|
44
44
|
- lib/xml/xslt.rb
|
45
45
|
- ext/xslt_lib/extconf.h
|