roxml 3.1.5 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/{spec/spec.opts → .rspec} +0 -0
  2. data/History.txt +12 -1
  3. data/README.rdoc +19 -2
  4. data/Rakefile +11 -13
  5. data/VERSION +1 -1
  6. data/examples/amazon.rb +1 -1
  7. data/examples/current_weather.rb +1 -1
  8. data/examples/dashed_elements.rb +1 -1
  9. data/examples/posts.rb +1 -1
  10. data/examples/rails.rb +1 -1
  11. data/examples/twitter.rb +1 -1
  12. data/lib/roxml.rb +8 -1
  13. data/lib/roxml/definition.rb +6 -4
  14. data/lib/roxml/xml.rb +3 -3
  15. data/lib/roxml/xml/parsers/libxml.rb +46 -52
  16. data/lib/roxml/xml/parsers/nokogiri.rb +46 -41
  17. data/lib/roxml/xml/references.rb +25 -18
  18. data/roxml.gemspec +10 -8
  19. data/spec/definition_spec.rb +8 -7
  20. data/spec/examples/active_record_spec.rb +3 -2
  21. data/spec/examples/amazon_spec.rb +2 -2
  22. data/spec/examples/current_weather_spec.rb +2 -2
  23. data/spec/examples/dashed_elements_spec.rb +2 -2
  24. data/spec/examples/library_spec.rb +5 -5
  25. data/spec/examples/post_spec.rb +2 -2
  26. data/spec/examples/twitter_spec.rb +2 -2
  27. data/spec/roxml_spec.rb +2 -2
  28. data/spec/shared_specs.rb +2 -2
  29. data/spec/spec_helper.rb +3 -4
  30. data/spec/xml/array_spec.rb +36 -0
  31. data/spec/xml/attributes_spec.rb +5 -5
  32. data/spec/xml/encoding_spec.rb +38 -7
  33. data/spec/xml/namespace_spec.rb +4 -4
  34. data/spec/xml/namespaces_spec.rb +1 -1
  35. data/spec/xml/object_spec.rb +5 -5
  36. data/spec/xml/parser_spec.rb +8 -13
  37. data/spec/xml/text_spec.rb +5 -5
  38. data/test/mocks/dictionaries.rb +1 -1
  39. data/test/mocks/mocks.rb +1 -1
  40. data/test/support/fixtures.rb +1 -1
  41. data/test/test_helper.rb +5 -5
  42. data/test/unit/definition_test.rb +5 -5
  43. data/test/unit/deprecations_test.rb +1 -1
  44. data/test/unit/to_xml_test.rb +4 -4
  45. data/test/unit/xml_attribute_test.rb +1 -1
  46. data/test/unit/xml_block_test.rb +1 -1
  47. data/test/unit/xml_bool_test.rb +1 -1
  48. data/test/unit/xml_convention_test.rb +1 -1
  49. data/test/unit/xml_hash_test.rb +1 -1
  50. data/test/unit/xml_initialize_test.rb +1 -1
  51. data/test/unit/xml_name_test.rb +2 -2
  52. data/test/unit/xml_namespace_test.rb +1 -1
  53. data/test/unit/xml_object_test.rb +3 -4
  54. data/test/unit/xml_required_test.rb +1 -1
  55. data/test/unit/xml_text_test.rb +1 -1
  56. metadata +63 -27
@@ -1,22 +1,53 @@
1
- require 'spec/spec_helper'
1
+ # encoding: utf-8
2
+ require_relative './../spec_helper'
2
3
 
3
4
  describe ROXML, "encoding" do
4
5
  class TestResult
5
6
  include ROXML
6
7
  xml_accessor :message
7
8
  end
8
-
9
+
9
10
  context "when provided non-latin characters" do
10
11
  it "should output those characters as input via methods" do
11
12
  res = TestResult.new
12
13
  res.message = "sadfk одловыа jjklsd " #random russian and english charecters
13
- res.to_xml.at('message').inner_text.should == "sadfk одловыа jjklsd "
14
+ doc = ROXML::XML::Document.new
15
+ doc.root = res.to_xml
16
+ if defined?(Nokogiri)
17
+ doc.at('message').inner_text
18
+ else
19
+ doc.find_first('message').inner_xml
20
+ end.should == "sadfk одловыа jjklsd "
14
21
  end
15
-
22
+
16
23
  it "should output those characters as input via xml" do
17
24
  res = TestResult.from_xml("<test_result><message>sadfk одловыа jjklsd </message></test_result>")
18
- res.to_xml.at('message').inner_text.should == "sadfk одловыа jjklsd "
25
+ doc = ROXML::XML::Document.new
26
+ doc.root = res.to_xml
27
+ if defined?(Nokogiri)
28
+ doc.at('message').inner_text
29
+ else
30
+ doc.find_first('message').inner_xml
31
+ end.should == "sadfk одловыа jjklsd "
32
+ end
33
+
34
+ it "should allow override via the document" do
35
+ res = TestResult.from_xml("<test_result><message>sadfk одловыа jjklsd </message></test_result>")
36
+ if defined?(Nokogiri)
37
+ xml = res.to_xml
38
+ doc = xml.document
39
+ doc.root = xml
40
+ doc.encoding = 'ISO-8859-1'
41
+ doc.to_s.should include('ISO-8859-1')
42
+ doc.at('message').inner_text
43
+ else
44
+ doc = LibXML::XML::Document.new
45
+ doc.encoding = LibXML::XML::Encoding::ASCII
46
+ doc.root = res.to_xml
47
+ pending "Libxml bug"
48
+ doc.to_s.should include('ISO-8859-1')
49
+ doc.find_first('message').inner_xml
50
+ end.should == "sadfk одловыа jjklsd "
19
51
  end
20
52
  end
21
-
22
- end
53
+ end
@@ -1,4 +1,4 @@
1
- require 'spec/spec_helper.rb'
1
+ require_relative './../spec_helper.rb'
2
2
 
3
3
  describe ROXML, "with namespaces" do
4
4
  describe "for writing" do
@@ -52,12 +52,12 @@ EOS
52
52
  output = ROXML::XML::Document.new
53
53
  output.root = VApp.from_xml(@xml).to_xml
54
54
  pending "Full namespace write support"
55
- output.should == ROXML::XML::Parser.parse(@xml)
55
+ output.should == ROXML::XML.parse_string(@xml)
56
56
  end
57
57
  end
58
58
  end
59
59
 
60
- describe "roxml namespacey declaration", :shared => true do
60
+ shared_examples_for "roxml namespacey declaration" do
61
61
  context "with a namespacey :from" do
62
62
  context "and an explicit :namespace" do
63
63
  it "should raise" do
@@ -83,7 +83,7 @@ EOS
83
83
  end
84
84
  end
85
85
 
86
- describe "roxml namespacey declaration with default", :shared => true do
86
+ shared_examples_for "roxml namespacey declaration with default" do
87
87
  it_should_behave_like "roxml namespacey declaration"
88
88
 
89
89
  it "should use the default namespace" do
@@ -1,4 +1,4 @@
1
- require 'spec/spec_helper.rb'
1
+ require_relative './../spec_helper.rb'
2
2
 
3
3
  describe ROXML, "#xml_namespaces" do
4
4
  describe "for reading" do
@@ -1,4 +1,4 @@
1
- require 'spec/spec_helper'
1
+ require_relative './../spec_helper'
2
2
 
3
3
  describe ROXML::XMLObjectRef do
4
4
  class SubObject
@@ -12,7 +12,7 @@ describe ROXML::XMLObjectRef do
12
12
  end
13
13
 
14
14
  before do
15
- @xml = ROXML::XML::Parser.parse %(
15
+ @xml = ROXML::XML.parse_string %(
16
16
  <myxml>
17
17
  <node>
18
18
  <name value="first" />
@@ -43,7 +43,7 @@ describe ROXML::XMLObjectRef do
43
43
  end
44
44
 
45
45
  it "should output all instances" do
46
- xml = ROXML::XML::Node.create('myxml')
46
+ xml = ROXML::XML.new_node('myxml')
47
47
  @ref.update_xml(xml, ["first", "second", "third"].map {|value| SubObject.new(value) })
48
48
  xml.to_s.squeeze(' ').should == @xml.root.to_s.squeeze(' ')
49
49
  end
@@ -51,7 +51,7 @@ describe ROXML::XMLObjectRef do
51
51
 
52
52
  context "when the namespaces are different" do
53
53
  before do
54
- @xml = ROXML::XML::Parser.parse %(
54
+ @xml = ROXML::XML.parse_string %(
55
55
  <myxml xmlns="http://example.com/three" xmlns:one="http://example.com/one" xmlns:two="http://example.com/two">
56
56
  <node>
57
57
  <one:name>first</one:name>
@@ -73,7 +73,7 @@ describe ROXML::XMLObjectRef do
73
73
 
74
74
  it "should output all instances with namespaces" do
75
75
  pending "Full namespace write support"
76
- xml = ROXML::XML::Node.create('myxml')
76
+ xml = ROXML::XML.new_node('myxml')
77
77
  @ref.update_xml(xml, ["first", "second", "third"].map {|value| SubObject.new(value) })
78
78
  xml.should == @xml.root
79
79
  end
@@ -1,26 +1,21 @@
1
- require 'spec/spec_helper.rb'
1
+ require_relative './../spec_helper.rb'
2
2
 
3
- describe ROXML::XML::Parser do
4
- before do
5
- # quiet the error handler
6
- ROXML::XML::Error.reset_handler if ROXML::XML::Error.respond_to?(:reset_handler)
7
- end
8
-
3
+ describe ROXML::XML do
9
4
  it "should raise on malformed xml" do
10
- unless ROXML::XML_PARSER == 'nokogiri' # nokogiri is less strict and auto-closes for some reason
11
- proc { Book.from_xml(fixture(:book_malformed)) }.should raise_error(ROXML::XML::Error)
5
+ if ROXML::XML_PARSER == 'libxml' # nokogiri is less strict and auto-closes for some reason
6
+ proc { Book.from_xml(fixture(:book_malformed)) }.should raise_error(LibXML::XML::Error)
12
7
  end
13
8
  end
14
9
 
15
10
  it "should escape invalid characters on output to text node" do
16
- node = ROXML::XML::Node.create("entities")
17
- node.content = " < > ' \" & "
11
+ node = ROXML::XML.new_node("entities")
12
+ ROXML::XML.set_content(node, " < > ' \" & ")
18
13
  node.to_s.should == "<entities> &lt; &gt; ' \" &amp; </entities>"
19
14
  end
20
15
 
21
16
  it "should esape invalid characters for attribute name" do
22
- node = ROXML::XML::Node.create("attr_holder")
23
- node.attributes["entities"] = "\"'<>&"
17
+ node = ROXML::XML.new_node("attr_holder")
18
+ ROXML::XML.set_attribute(node, "entities", "\"'<>&")
24
19
  node.to_s.should == %{<attr_holder entities="&quot;'&lt;&gt;&amp;"/>}
25
20
  end
26
21
  end
@@ -1,8 +1,8 @@
1
- require 'spec/spec_helper'
1
+ require_relative './../spec_helper'
2
2
 
3
3
  describe ROXML::XMLTextRef do
4
4
  before do
5
- @xml = ROXML::XML::Parser.parse %(
5
+ @xml = ROXML::XML.parse_string %(
6
6
  <myxml>
7
7
  <node>
8
8
  <name>first</name>
@@ -33,7 +33,7 @@ describe ROXML::XMLTextRef do
33
33
  end
34
34
 
35
35
  it "should output all instances" do
36
- xml = ROXML::XML::Node.create('myxml')
36
+ xml = ROXML::XML.new_node('myxml')
37
37
  @ref.update_xml(xml, ["first", "second", "third"])
38
38
  xml.to_s.squeeze(' ').should == @xml.root.to_s.squeeze(' ')
39
39
  end
@@ -41,7 +41,7 @@ describe ROXML::XMLTextRef do
41
41
 
42
42
  context "when the namespaces are different" do
43
43
  before do
44
- @xml = ROXML::XML::Parser.parse %(
44
+ @xml = ROXML::XML.parse_string %(
45
45
  <myxml xmlns="http://example.com/three" xmlns:one="http://example.com/one" xmlns:two="http://example.com/two">
46
46
  <node>
47
47
  <one:name>first</one:name>
@@ -62,7 +62,7 @@ describe ROXML::XMLTextRef do
62
62
 
63
63
  it "should output all instances with namespaces" do
64
64
  pending "Full namespace write support"
65
- xml = ROXML::XML::Node.create('myxml')
65
+ xml = ROXML::XML.new_node('myxml')
66
66
  @ref.update_xml(xml, ["first", "second", "third"])
67
67
  xml.should == @xml.root
68
68
  end
@@ -1,4 +1,4 @@
1
- require 'lib/roxml'
1
+ require_relative "./../../lib/roxml"
2
2
 
3
3
  class DictionaryOfAttrs
4
4
  include ROXML
data/test/mocks/mocks.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "lib/roxml"
1
+ require_relative "./../../lib/roxml"
2
2
 
3
3
  class Muffins
4
4
  include ROXML
@@ -3,7 +3,7 @@ def fixture(name)
3
3
  end
4
4
 
5
5
  def xml_fixture(name)
6
- ROXML::XML::Parser.parse_file(fixture_path(name)).root
6
+ ROXML::XML.parse_file(fixture_path(name)).root
7
7
  end
8
8
 
9
9
  def fixture_path(name)
data/test/test_helper.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require 'rubygems'
2
2
  require 'active_support/test_case'
3
- require 'test/mocks/mocks'
4
- require 'test/mocks/dictionaries'
5
- require 'test/support/fixtures'
3
+ require_relative './mocks/mocks'
4
+ require_relative './mocks/dictionaries'
5
+ require_relative './support/fixtures'
6
6
 
7
7
  def to_xml_test(*names)
8
8
  names = names.first if names.size == 1 && names.first.is_a?(Hash)
@@ -21,11 +21,11 @@ def to_xml_test(*names)
21
21
  end
22
22
 
23
23
  def remove_children(xml)
24
- xml = ROXML::XML::Parser.parse(xml).root if xml.is_a?(String)
24
+ xml = ROXML::XML.parse_string(xml).root if xml.is_a?(String)
25
25
  return unless xml.respond_to? :children
26
26
  xml.children.each do |child|
27
27
  if child.to_s.blank?
28
- child.remove!
28
+ defined?(Nokogiri) ? child.remove : child.remove!
29
29
  else
30
30
  remove_children(child)
31
31
  end
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class TestDefinition < ActiveSupport::TestCase
4
4
  def assert_hash(opts, kvp)
@@ -24,7 +24,7 @@ class TestDefinition < ActiveSupport::TestCase
24
24
  opts = ROXML::Definition.new(:intarray, :as => [Integer])
25
25
  assert opts.array?
26
26
  assert_equal :text, opts.sought_type
27
- assert 1, opts.blocks.size
27
+ assert_equal 1, opts.blocks.size
28
28
  end
29
29
 
30
30
  def test_required
@@ -173,17 +173,17 @@ class TestDefinition < ActiveSupport::TestCase
173
173
 
174
174
  def test_default_works
175
175
  opts = ROXML::Definition.new(:missing, :else => true)
176
- assert_equal true, opts.to_ref(RoxmlObject.new).value_in(ROXML::XML::Parser.parse('<xml></xml>'))
176
+ assert_equal true, opts.to_ref(RoxmlObject.new).value_in(ROXML::XML.parse_string('<xml></xml>'))
177
177
  end
178
178
 
179
179
  def test_default_works_for_arrays
180
180
  opts = ROXML::Definition.new(:missing, :as => [])
181
- assert_equal [], opts.to_ref(RoxmlObject.new).value_in(ROXML::XML::Parser.parse('<xml></xml>'))
181
+ assert_equal [], opts.to_ref(RoxmlObject.new).value_in(ROXML::XML.parse_string('<xml></xml>'))
182
182
  end
183
183
 
184
184
  def test_default_works_for_recursive_objects
185
185
  opts = ROXML::Definition.new(:missing, :as => RecursiveObject, :else => false)
186
- assert_equal false, opts.to_ref(RoxmlObject.new).value_in(ROXML::XML::Parser.parse('<xml></xml>'))
186
+ assert_equal false, opts.to_ref(RoxmlObject.new).value_in(ROXML::XML.parse_string('<xml></xml>'))
187
187
  end
188
188
 
189
189
  def test_content_is_accepted_as_from
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class TestDeprecation < ActiveSupport::TestCase
4
4
  def test_as_array_not_deprecated
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class TestHashToXml < ActiveSupport::TestCase
4
4
  to_xml_test :dictionary_of_attrs,
@@ -33,7 +33,7 @@ class TestToXmlWithDefaults < ActiveSupport::TestCase
33
33
  dict = Person.from_xml(fixture(:nameless_ageless_youth))
34
34
 
35
35
  xml = '<person age="21">Unknown</person>'
36
- assert_equal ROXML::XML::Parser.parse(xml).root.to_s, dict.to_xml.to_s
36
+ assert_equal ROXML::XML.parse_string(xml).root.to_s, dict.to_xml.to_s
37
37
  end
38
38
  end
39
39
 
@@ -41,13 +41,13 @@ class TestToXmlWithBlocks < ActiveSupport::TestCase
41
41
  def test_pagecount_serialized_properly_after_modification
42
42
  b = Book.from_xml(fixture(:book_valid))
43
43
  xml = xml_fixture(:book_valid)
44
- assert_equal '357', xml.search('pagecount').first.content
44
+ assert_equal '357', xml.roxml_search('pagecount').first.content
45
45
  assert_equal 357, b.pages
46
46
 
47
47
  b.pages = 500
48
48
  doc = ROXML::XML::Document.new()
49
49
  doc.root = b.to_xml
50
- assert_equal '500', doc.search('pagecount').first.content
50
+ assert_equal '500', doc.roxml_search('pagecount').first.content
51
51
  end
52
52
  end
53
53
 
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class TestXMLAttribute < ActiveSupport::TestCase
4
4
  def test_attr_from
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class ArrayWithBlockShorthand
4
4
  include ROXML
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  PROC_TRUE = proc {|val| val ? 'TRUE' : 'FALSE'}
4
4
  PROC_True = proc {|val| val ? 'True' : 'False'}
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  XML_CAMELLOWER = %{
4
4
  <bookCase name="Jonas' Books">
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class BookWithContributorHash
4
4
  include ROXML
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class InheritedBookWithDepth < Book
4
4
  xml_reader :depth, :as => Measurement
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  # Parent | Child
4
4
  # :from | no :from |
@@ -117,7 +117,7 @@ class TestXMLName < ActiveSupport::TestCase
117
117
 
118
118
  def test_xml_name_not_screwed_up_by_xml_convention
119
119
  reference = ROXML::XMLTextRef.new(ROXML::Definition.new(:name, :in => './'), WrapModule::InstanceStandin.new)
120
- assert_equal "name value", reference.value_in(ROXML::XML::Parser.parse(%(
120
+ assert_equal "name value", reference.value_in(ROXML::XML.parse_string(%(
121
121
  <Wrapper>
122
122
  <MoreStuff>
123
123
  <DeepWrapper>
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class TestDefaultXMLNamespaces < ActiveSupport::TestCase
4
4
  def setup
@@ -1,4 +1,5 @@
1
- require 'test/test_helper'
1
+ # encoding: utf-8
2
+ require_relative './../test_helper'
2
3
 
3
4
  class EmptyCart
4
5
  include ROXML
@@ -136,8 +137,6 @@ class TestXMLObject < ActiveSupport::TestCase
136
137
  end
137
138
 
138
139
  def test_more_recursion
139
- # quiet the error handler
140
- ROXML::XML::Error.reset_handler if ROXML::XML::Error.respond_to?(:reset_handler)
141
140
  taxonomies = Taxonomies.from_xml(<<HERE)
142
141
  <?xml version="1.0" encoding="UTF-8" ?>
143
142
  <!DOCTYPE taxonomies SYSTEM "taxonomy.dtd">
@@ -173,7 +172,7 @@ HERE
173
172
  node = taxonomies.taxonomies.first.nodes.first
174
173
  assert_equal 'Africa', node.name
175
174
  assert_equal 'Algeria', node.nodes.first.name
176
- assert_equal ['Algiers', "Gharda\303\257a", 'El Oued', 'Timimoun', 'Annaba'],
175
+ assert_equal ['Algiers', "Ghardaïa", 'El Oued', 'Timimoun', 'Annaba'],
177
176
  node.nodes.first.nodes.map(&:name)
178
177
  end
179
178
 
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class TestXMLRequired < ActiveSupport::TestCase
4
4
  def setup
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require_relative './../test_helper'
2
2
 
3
3
  class TestXMLText < ActiveSupport::TestCase
4
4
  # Test a simple mapping with no composition
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ prerelease: false
5
+ segments:
6
+ - 3
7
+ - 1
8
+ - 6
9
+ version: 3.1.6
5
10
  platform: ruby
6
11
  authors:
7
12
  - Ben Woosley
@@ -12,59 +17,84 @@ autorequire:
12
17
  bindir: bin
13
18
  cert_chain: []
14
19
 
15
- date: 2009-12-18 00:00:00 -05:00
20
+ date: 2010-11-03 00:00:00 -07:00
16
21
  default_executable:
17
22
  dependencies:
18
23
  - !ruby/object:Gem::Dependency
19
24
  name: activesupport
20
- type: :runtime
21
- version_requirement:
22
- version_requirements: !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
23
28
  requirements:
24
29
  - - ">="
25
30
  - !ruby/object:Gem::Version
31
+ segments:
32
+ - 2
33
+ - 3
34
+ - 0
26
35
  version: 2.3.0
27
- version:
36
+ type: :runtime
37
+ version_requirements: *id001
28
38
  - !ruby/object:Gem::Dependency
29
39
  name: nokogiri
30
- type: :runtime
31
- version_requirement:
32
- version_requirements: !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
33
43
  requirements:
34
44
  - - ">="
35
45
  - !ruby/object:Gem::Version
46
+ segments:
47
+ - 1
48
+ - 3
49
+ - 3
36
50
  version: 1.3.3
37
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
38
53
  - !ruby/object:Gem::Dependency
39
54
  name: rspec
40
- type: :development
41
- version_requirement:
42
- version_requirements: !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
43
58
  requirements:
44
59
  - - ">="
45
60
  - !ruby/object:Gem::Version
46
- version: "0"
47
- version:
61
+ segments:
62
+ - 2
63
+ - 0
64
+ - 0
65
+ version: 2.0.0
66
+ type: :development
67
+ version_requirements: *id003
48
68
  - !ruby/object:Gem::Dependency
49
69
  name: sqlite3-ruby
50
- type: :development
51
- version_requirement:
52
- version_requirements: !ruby/object:Gem::Requirement
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
53
73
  requirements:
54
74
  - - ">="
55
75
  - !ruby/object:Gem::Version
76
+ segments:
77
+ - 1
78
+ - 2
79
+ - 4
56
80
  version: 1.2.4
57
- version:
81
+ type: :development
82
+ version_requirements: *id004
58
83
  - !ruby/object:Gem::Dependency
59
84
  name: activerecord
60
- type: :development
61
- version_requirement:
62
- version_requirements: !ruby/object:Gem::Requirement
85
+ prerelease: false
86
+ requirement: &id005 !ruby/object:Gem::Requirement
87
+ none: false
63
88
  requirements:
64
89
  - - ">="
65
90
  - !ruby/object:Gem::Version
91
+ segments:
92
+ - 2
93
+ - 2
94
+ - 2
66
95
  version: 2.2.2
67
- version:
96
+ type: :development
97
+ version_requirements: *id005
68
98
  description: |
69
99
  ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML.
70
100
  Using simple annotations, it enables Ruby classes to be mapped to XML. ROXML takes care
@@ -83,6 +113,7 @@ extra_rdoc_files:
83
113
  files:
84
114
  - .gitignore
85
115
  - .gitmodules
116
+ - .rspec
86
117
  - History.txt
87
118
  - LICENSE
88
119
  - README.rdoc
@@ -120,10 +151,10 @@ files:
120
151
  - spec/examples/twitter_spec.rb
121
152
  - spec/roxml_spec.rb
122
153
  - spec/shared_specs.rb
123
- - spec/spec.opts
124
154
  - spec/spec_helper.rb
125
155
  - spec/support/libxml.rb
126
156
  - spec/support/nokogiri.rb
157
+ - spec/xml/array_spec.rb
127
158
  - spec/xml/attributes_spec.rb
128
159
  - spec/xml/encoding_spec.rb
129
160
  - spec/xml/namespace_spec.rb
@@ -191,21 +222,25 @@ rdoc_options:
191
222
  require_paths:
192
223
  - lib
193
224
  required_ruby_version: !ruby/object:Gem::Requirement
225
+ none: false
194
226
  requirements:
195
227
  - - ">="
196
228
  - !ruby/object:Gem::Version
229
+ segments:
230
+ - 0
197
231
  version: "0"
198
- version:
199
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
+ none: false
200
234
  requirements:
201
235
  - - ">="
202
236
  - !ruby/object:Gem::Version
237
+ segments:
238
+ - 0
203
239
  version: "0"
204
- version:
205
240
  requirements: []
206
241
 
207
242
  rubyforge_project: roxml
208
- rubygems_version: 1.3.5
243
+ rubygems_version: 1.3.7
209
244
  signing_key:
210
245
  specification_version: 3
211
246
  summary: Ruby Object to XML mapping library
@@ -223,6 +258,7 @@ test_files:
223
258
  - spec/spec_helper.rb
224
259
  - spec/support/libxml.rb
225
260
  - spec/support/nokogiri.rb
261
+ - spec/xml/array_spec.rb
226
262
  - spec/xml/attributes_spec.rb
227
263
  - spec/xml/encoding_spec.rb
228
264
  - spec/xml/namespace_spec.rb