ratom 0.3.6 → 0.3.7

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.7 2008-06-05
2
+
3
+ * Support XML in extension elements. (Min Kim)
4
+
1
5
  == 0.3.6 2008-05-15
2
6
 
3
7
  * Added categories to feeds.
data/lib/atom/version.rb CHANGED
@@ -2,7 +2,7 @@ module Atom #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -80,7 +80,7 @@ module Atom
80
80
  end
81
81
  end
82
82
  elsif self.respond_to?(:simple_extensions)
83
- self[xml.namespace_uri, xml.local_name] << xml.read_string
83
+ self[xml.namespace_uri, xml.local_name] << xml.read_inner_xml
84
84
  end
85
85
  end
86
86
  break unless !options[:once] && xml.next == 1 && xml.depth >= starting_depth
data/spec/atom_spec.rb CHANGED
@@ -995,6 +995,10 @@ describe Atom do
995
995
  end
996
996
 
997
997
  it_should_behave_like 'simple_single_entry.atom attributes'
998
+
999
+ it "should load simple extension 3 xml for entry" do
1000
+ @entry["http://example.org/example3", 'simple3'].should == ['<ContinuityOfCareRecord xmlns="urn:astm-org:CCR">Simple Entry Value (NS2)</ContinuityOfCareRecord>']
1001
+ end
998
1002
  end
999
1003
 
1000
1004
  describe 'writing simple extensions' do
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.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peerworks
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-16 00:00:00 +09:30
12
+ date: 2008-06-05 00:00:00 +09:30
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency