public
Description: A fast, libxml based, Ruby Atom library supporting the Syndication Format and the Publishing Protocol. <br> Gem is available now!!<br>
Homepage: http://ratom.rubyforge.org/
Clone URL: git://github.com/seangeo/ratom.git
Update to use libxml-ruby 0.8.x
seangeo (author)
Tue Jul 22 17:31:55 -0700 2008
commit  db7d84fd498398d7694d41cb6462914ce5651bcc
tree    daf1d7b9d9dd88678d55add2454870e3a6e2da61
parent  2df5964257423511b129bac76bc3b921a5bc3649
...
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
0
@@ -1,3 +1,7 @@
0
+== 0.4.2 2008-07-09
0
+
0
+* Update to libxml-ruby version 0.8.x
0
+
0
 == 0.4.1 2008-07-09
0
 
0
 * Update to libxml-ruby version 0.6.0.
...
60
61
62
63
 
64
65
66
...
60
61
62
 
63
64
65
66
0
@@ -60,7 +60,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
0
   # == Optional
0
   p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
0
   # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
0
- p.extra_deps = [['libxml-ruby', '= 0.6.0.0']]
0
+ p.extra_deps = [['libxml-ruby', '>= 0.8.0']]
0
   
0
   #p.spec_extras = {} # A hash of extra values to set in the gemspec.
0
   
...
8
9
10
11
 
12
13
14
...
228
229
230
231
 
232
233
234
...
8
9
10
 
11
12
13
14
...
228
229
230
 
231
232
233
234
0
@@ -8,7 +8,7 @@
0
 require 'forwardable'
0
 require 'delegate'
0
 require 'rubygems'
0
-gem 'libxml-ruby', '= 0.6.0.0'
0
+gem 'libxml-ruby', '>= 0.8.0'
0
 require 'xml/libxml'
0
 require 'atom/xml/parser.rb'
0
 
0
@@ -228,7 +228,7 @@ module Atom # :nodoc:
0
           node = XML::Node.new("#{namespace_map.prefix(Atom::NAMESPACE, name)}")
0
           node << Iconv.iconv('utf-8', 'utf-8', self.to_s)
0
           node['type'] = 'html'
0
- node['xml:lang'] = self.xml_lang
0
+ node['xml:lang'] = self.xml_lang if self.xml_lang
0
           node
0
         rescue Iconv::IllegalSequence => e
0
           raise SerializationError, "Content must be converted to UTF-8 before attempting to serialize to XML: #{e.message}."
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@ module Atom #:nodoc:
0
   module VERSION #:nodoc:
0
     MAJOR = 0
0
     MINOR = 4
0
- TINY = 1
0
+ TINY = 2
0
 
0
     STRING = [MAJOR, MINOR, TINY].join('.')
0
   end
...
146
147
148
149
 
150
151
152
...
157
158
159
160
 
161
162
163
...
146
147
148
 
149
150
151
152
...
157
158
159
 
160
161
162
163
0
@@ -146,7 +146,7 @@ module Atom
0
                 node << attribute.to_xml(true, spec.name, spec.options[:namespace], namespace_map)
0
               else
0
                 n = XML::Node.new(spec.name)
0
- n['xmlns'] = spec.options[:namespace]
0
+ n['xmlns'] = spec.options[:namespace] if spec.options[:namespace]
0
                 n << (attribute.is_a?(Time)? attribute.xmlschema : attribute.to_s)
0
                 node << n
0
               end
0
@@ -157,7 +157,7 @@ module Atom
0
                 node << attribute.to_xml(true, spec.name.singularize, nil, namespace_map)
0
               else
0
                 n = XML::Node.new(spec.name.singularize)
0
- n['xmlns'] = spec.options[:namespace]
0
+ n['xmlns'] = spec.options[:namespace] if spec.options[:namespace]
0
                 n << attribute.to_s
0
                 node << n
0
               end

Comments

    No one has commented yet.