roxml 2.5.2 → 2.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ == 2.5.3 (March 22, 2009)
2
+
3
+ * minor enhancement
4
+
5
+ * Work around apparently unintentional breaking change in libxml-ruby 1.1.3
6
+
1
7
  == 2.5.2 (March 12, 2009)
2
8
 
3
9
  * minor enhancements
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ $hoe = Hoe.new('roxml', ROXML::VERSION) do |p|
17
17
  p.rubyforge_name = p.name
18
18
  p.extra_deps = [
19
19
  ['activesupport','>= 2.1.0'],
20
- ['libxml-ruby', '>= 0.8.6']
20
+ ['libxml-ruby', '>= 1.0.0']
21
21
  ]
22
22
  p.extra_dev_deps = [
23
23
  ['newgem', ">= #{::Newgem::VERSION}"],
@@ -8,7 +8,7 @@ require 'uri'
8
8
  end
9
9
 
10
10
  module ROXML # :nodoc:
11
- VERSION = '2.5.2'
11
+ VERSION = '2.5.3'
12
12
 
13
13
  def self.included(base) # :nodoc:
14
14
  base.extend ClassMethods::Accessors,
@@ -1,4 +1,5 @@
1
1
  require 'libxml'
2
+ require 'cgi'
2
3
 
3
4
  module ROXML
4
5
  module XML # :nodoc:all
@@ -54,6 +55,12 @@ module ROXML
54
55
  alias_method_chain :new, :entity_escaping
55
56
  end
56
57
 
58
+ def add_child(child)
59
+ # libxml 1.1.3 changed child_add from returning child to returning self
60
+ self << child
61
+ child
62
+ end
63
+
57
64
  alias_method :set_libxml_content, :content=
58
65
  def content=(string)
59
66
  set_libxml_content(string.gsub('&', '&amp;'))
@@ -31,7 +31,7 @@ module ROXML
31
31
  end
32
32
  end
33
33
 
34
- def child_add(element)
34
+ def add_child(element)
35
35
  if element.is_a?(REXML::CData)
36
36
  REXML::CData.new(element, true, self)
37
37
  else
@@ -90,7 +90,7 @@ module ROXML
90
90
  if child = xml.children.find {|c| c.name == wrapper }
91
91
  return child
92
92
  end
93
- xml.child_add(XML::Node.new(wrapper.to_s))
93
+ xml.add_child(XML::Node.new(wrapper.to_s))
94
94
  end
95
95
 
96
96
  def nodes_in(xml)
@@ -154,10 +154,10 @@ module ROXML
154
154
  xml.name = value
155
155
  elsif array?
156
156
  value.each do |v|
157
- add(xml.child_add(XML::Node.new(name)), v)
157
+ add(xml.add_child(XML::Node.new(name)), v)
158
158
  end
159
159
  else
160
- add(xml.child_add(XML::Node.new(name)), value)
160
+ add(xml.add_child(XML::Node.new(name)), value)
161
161
  end
162
162
  end
163
163
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{roxml}
5
- s.version = "2.5.2"
5
+ s.version = "2.5.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Woosley", "Zak Mandhro", "Anders Engstrom", "Russ Olsen"]
9
- s.date = %q{2009-03-12}
9
+ s.date = %q{2009-03-22}
10
10
  s.description = %q{ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML. Using simple annotations, it enables Ruby classes to be mapped to XML. ROXML takes care of the marshalling and unmarshalling of mapped attributes so that developers can focus on building first-class Ruby classes. As a result, ROXML simplifies the development of RESTful applications, Web Services, and XML-RPC.}
11
11
  s.email = %q{ben.woosley@gmail.com}
12
12
  s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.rubyforge_project = %q{roxml}
19
19
  s.rubygems_version = %q{1.3.1}
20
20
  s.summary = %q{Ruby Object to XML mapping library}
21
- s.test_files = ["test/unit/xml_convention_test.rb", "test/unit/xml_object_test.rb", "test/unit/xml_required_test.rb", "test/unit/xml_bool_test.rb", "test/unit/xml_name_test.rb", "test/unit/definition_test.rb", "test/unit/xml_construct_test.rb", "test/unit/xml_namespace_test.rb", "test/unit/deprecations_test.rb", "test/unit/xml_text_test.rb", "test/unit/xml_block_test.rb", "test/unit/xml_attribute_test.rb", "test/unit/xml_initialize_test.rb", "test/unit/xml_hash_test.rb", "test/unit/to_xml_test.rb"]
21
+ s.test_files = ["test/unit/definition_test.rb", "test/unit/deprecations_test.rb", "test/unit/to_xml_test.rb", "test/unit/xml_attribute_test.rb", "test/unit/xml_block_test.rb", "test/unit/xml_bool_test.rb", "test/unit/xml_construct_test.rb", "test/unit/xml_convention_test.rb", "test/unit/xml_hash_test.rb", "test/unit/xml_initialize_test.rb", "test/unit/xml_name_test.rb", "test/unit/xml_namespace_test.rb", "test/unit/xml_object_test.rb", "test/unit/xml_required_test.rb", "test/unit/xml_text_test.rb"]
22
22
 
23
23
  if s.respond_to? :specification_version then
24
24
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -26,23 +26,23 @@ Gem::Specification.new do |s|
26
26
 
27
27
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
28
  s.add_runtime_dependency(%q<activesupport>, [">= 2.1.0"])
29
- s.add_runtime_dependency(%q<libxml-ruby>, [">= 0.8.6"])
30
- s.add_development_dependency(%q<newgem>, [">= 1.2.3"])
29
+ s.add_runtime_dependency(%q<libxml-ruby>, [">= 1.0.0"])
30
+ s.add_development_dependency(%q<newgem>, [">= 1.3.0"])
31
31
  s.add_development_dependency(%q<sqlite3-ruby>, [">= 1.2.4"])
32
32
  s.add_development_dependency(%q<activerecord>, [">= 2.2.2"])
33
33
  s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
34
34
  else
35
35
  s.add_dependency(%q<activesupport>, [">= 2.1.0"])
36
- s.add_dependency(%q<libxml-ruby>, [">= 0.8.6"])
37
- s.add_dependency(%q<newgem>, [">= 1.2.3"])
36
+ s.add_dependency(%q<libxml-ruby>, [">= 1.0.0"])
37
+ s.add_dependency(%q<newgem>, [">= 1.3.0"])
38
38
  s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.4"])
39
39
  s.add_dependency(%q<activerecord>, [">= 2.2.2"])
40
40
  s.add_dependency(%q<hoe>, [">= 1.8.0"])
41
41
  end
42
42
  else
43
43
  s.add_dependency(%q<activesupport>, [">= 2.1.0"])
44
- s.add_dependency(%q<libxml-ruby>, [">= 0.8.6"])
45
- s.add_dependency(%q<newgem>, [">= 1.2.3"])
44
+ s.add_dependency(%q<libxml-ruby>, [">= 1.0.0"])
45
+ s.add_dependency(%q<newgem>, [">= 1.3.0"])
46
46
  s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.4"])
47
47
  s.add_dependency(%q<activerecord>, [">= 2.2.2"])
48
48
  s.add_dependency(%q<hoe>, [">= 1.8.0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Woosley
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-03-12 00:00:00 -04:00
15
+ date: 2009-04-17 00:00:00 -04:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirements:
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.8.6
36
+ version: 1.0.0
37
37
  version:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: newgem
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.2.3
46
+ version: 1.3.0
47
47
  version:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: sqlite3-ruby