ayril 0.1.0 → 0.1.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.
- data/CHANGES +6 -0
- data/lib/ayril/core_ext/core_ext.rb +0 -1
- data/lib/ayril/version.rb +1 -1
- data/lib/ayril/xml_document.rb +1 -0
- data/lib/ayril/xml_element/element_manipulation.rb +1 -1
- metadata +1 -1
data/CHANGES
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
v 0.1.2
|
2
|
+
===============================
|
3
|
+
* Removed core_ext any? (compatibility with sequel gem)
|
4
|
+
* Added test_append
|
5
|
+
* Added forward :root, :rootElement for XMLDocument (like REXML)
|
6
|
+
|
1
7
|
v 0.1.0
|
2
8
|
===============================
|
3
9
|
* Added a sanity check and fixed a bug where text nodes caused massive fail
|
data/lib/ayril/version.rb
CHANGED
data/lib/ayril/xml_document.rb
CHANGED
@@ -76,7 +76,7 @@ module Ayril
|
|
76
76
|
return id unless id.nil?
|
77
77
|
begin
|
78
78
|
id = "anonymous_element_#{XMLElement::id_counter += 1}"
|
79
|
-
end while self.rootDocument.select("##{id}").
|
79
|
+
end while !self.rootDocument.select("##{id}").empty?
|
80
80
|
self.write_attribute "id", id
|
81
81
|
id
|
82
82
|
end
|