ratom-nokogiri 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06640ff352854d50d2219d982b47af0daec1aaa8
4
- data.tar.gz: 6608d57c3a58b27122229360020db6c05b8114f7
3
+ metadata.gz: 3a11b71dc8ee15dcf1015708f39239b3a1efaeb4
4
+ data.tar.gz: 4851bb21a72ae9d10ea86d8c3d8db134adbf82fb
5
5
  SHA512:
6
- metadata.gz: 5f2f5bb2738551d29ab93bf98bf768777730013dde2e9d68f1b2ff82a25913501b3905d32265adde58bd8b9737b336462b8f4138c1181c7086e28ae617e8c037
7
- data.tar.gz: 346b35890844018e0643e4ee4c78d62c5af03855a6c4b973e1abcf146ed887a43488cf693559faf6a7de5026fde6cb6c370a64b8c00a173289009c7fffe10883
6
+ metadata.gz: aac8d7bfd3a6a65a1d91d44ae3a7411163fe90e654e06079b4f2b5ed9f912701a34f206f34ac4864382d871544acdd131f8021cd6fdb7c013aa96a6848e533f2
7
+ data.tar.gz: 51d030180144481df92c3a437f6684711d5bc60f03a295efbbd75b1ad0f296598a9a9026841b60418264ed3500b214d9a458316d1fcdd59a4d6286e0f0d5793e
data/lib/atom.rb CHANGED
@@ -447,11 +447,6 @@ module Atom # :nodoc:
447
447
  elements :categories
448
448
  elements :entries
449
449
 
450
- # to_xml as a document, not just a root node
451
- def document?
452
- true
453
- end
454
-
455
450
  # Initialize a Feed.
456
451
  #
457
452
  # This will also yield itself, so a feed can be constructed like this:
data/lib/atom/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Atom
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
@@ -175,10 +175,6 @@ module Atom
175
175
  end
176
176
  end
177
177
 
178
- def document?
179
- false
180
- end
181
-
182
178
  def to_xml(builder = nil, root_name = self.class.name.demodulize.downcase, namespace = nil, namespace_handler = nil)
183
179
  orig_builder = builder
184
180
  builder ||= Nokogiri::XML::Builder.new(:encoding => 'UTF-8')
@@ -248,7 +244,7 @@ module Atom
248
244
  node[k] = v
249
245
  end
250
246
 
251
- document? ? builder.doc : builder.doc.root
247
+ builder.doc
252
248
  end
253
249
 
254
250
  module DeclarationMethods # :nodoc:
data/spec/atom_spec.rb CHANGED
@@ -1106,7 +1106,7 @@ describe Atom do
1106
1106
  end
1107
1107
 
1108
1108
  it "should write a simple extension attribute as an attribute" do
1109
- @entry.categories.first.to_xml['ns1:attribute'].should == 'extension'
1109
+ @entry.categories.first.to_xml.root['ns1:attribute'].should == 'extension'
1110
1110
  end
1111
1111
 
1112
1112
  it "should read an extension with the same local name as an Atom element" do
@@ -1222,8 +1222,8 @@ describe Atom do
1222
1222
  end
1223
1223
 
1224
1224
  it "should_write_custom_extensions_on_to_xml" do
1225
- @node.children.size.should == 2
1226
- ratom, custom_extensions = @node.children
1225
+ @node.root.children.size.should == 2
1226
+ ratom, custom_extensions = @node.root.children
1227
1227
  ratom.attributes["name"].value.should == "ratom"
1228
1228
  ratom.attributes["value"].value.should == "rocks"
1229
1229
  custom_extensions.attributes["name"].value.should == "custom extensions"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratom-nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peerworks