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 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
@@ -35,7 +35,6 @@ end
35
35
 
36
36
 
37
37
  class Array
38
- def any?; not self.empty? end
39
38
  def invoke(*args) self.map { |item| item.send *args } end
40
39
  def invoke!(*args) self.map! { |item| item.send *args } end
41
40
 
@@ -22,7 +22,7 @@ module Ayril
22
22
  module Version
23
23
  MAJOR = 0
24
24
  MINOR = 1
25
- PATCH = 0
25
+ PATCH = 2
26
26
  BUILD = nil
27
27
 
28
28
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -46,6 +46,7 @@ module Ayril
46
46
  end
47
47
 
48
48
  forward :to_s, :XMLString
49
+ forward :root, :rootElement
49
50
 
50
51
  def inspect
51
52
  "#<#{self.class}:0x#{self.object_id.to_s(16)}>"
@@ -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}").any?
79
+ end while !self.rootDocument.select("##{id}").empty?
80
80
  self.write_attribute "id", id
81
81
  id
82
82
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ayril
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Wilson Lee