ratom 0.4.1 → 0.4.2

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.
@@ -1,3 +1,7 @@
1
+ == 0.4.2 2008-07-09
2
+
3
+ * Update to libxml-ruby version 0.8.x
4
+
1
5
  == 0.4.1 2008-07-09
2
6
 
3
7
  * Update to libxml-ruby version 0.6.0.
@@ -60,7 +60,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
60
60
  # == Optional
61
61
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
62
62
  # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
63
- p.extra_deps = [['libxml-ruby', '= 0.6.0.0']]
63
+ p.extra_deps = [['libxml-ruby', '>= 0.8.0']]
64
64
 
65
65
  #p.spec_extras = {} # A hash of extra values to set in the gemspec.
66
66
 
@@ -8,7 +8,7 @@
8
8
  require 'forwardable'
9
9
  require 'delegate'
10
10
  require 'rubygems'
11
- gem 'libxml-ruby', '= 0.6.0.0'
11
+ gem 'libxml-ruby', '>= 0.8.0'
12
12
  require 'xml/libxml'
13
13
  require 'atom/xml/parser.rb'
14
14
 
@@ -228,7 +228,7 @@ module Atom # :nodoc:
228
228
  node = XML::Node.new("#{namespace_map.prefix(Atom::NAMESPACE, name)}")
229
229
  node << Iconv.iconv('utf-8', 'utf-8', self.to_s)
230
230
  node['type'] = 'html'
231
- node['xml:lang'] = self.xml_lang
231
+ node['xml:lang'] = self.xml_lang if self.xml_lang
232
232
  node
233
233
  rescue Iconv::IllegalSequence => e
234
234
  raise SerializationError, "Content must be converted to UTF-8 before attempting to serialize to XML: #{e.message}."
@@ -8,7 +8,7 @@ module Atom #:nodoc:
8
8
  module VERSION #:nodoc:
9
9
  MAJOR = 0
10
10
  MINOR = 4
11
- TINY = 1
11
+ TINY = 2
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY].join('.')
14
14
  end
@@ -146,7 +146,7 @@ module Atom
146
146
  node << attribute.to_xml(true, spec.name, spec.options[:namespace], namespace_map)
147
147
  else
148
148
  n = XML::Node.new(spec.name)
149
- n['xmlns'] = spec.options[:namespace]
149
+ n['xmlns'] = spec.options[:namespace] if spec.options[:namespace]
150
150
  n << (attribute.is_a?(Time)? attribute.xmlschema : attribute.to_s)
151
151
  node << n
152
152
  end
@@ -157,7 +157,7 @@ module Atom
157
157
  node << attribute.to_xml(true, spec.name.singularize, nil, namespace_map)
158
158
  else
159
159
  n = XML::Node.new(spec.name.singularize)
160
- n['xmlns'] = spec.options[:namespace]
160
+ n['xmlns'] = spec.options[:namespace] if spec.options[:namespace]
161
161
  n << attribute.to_s
162
162
  node << n
163
163
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peerworks
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-07-09 00:00:00 +09:30
13
+ date: 2008-07-23 00:00:00 +09:30
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -19,9 +19,19 @@ dependencies:
19
19
  version_requirement:
20
20
  version_requirements: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - "="
22
+ - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: 0.6.0.0
24
+ version: 0.8.0
25
+ version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: hoe
28
+ type: :development
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 1.7.0
25
35
  version:
26
36
  description: Atom Syndication and Publication API
27
37
  email: sean@peerworks.org