rexle 0.9.74 → 0.9.75

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: 590eb51dca93ee47c6f09424ac9c67ac0f93f08d
4
- data.tar.gz: e9cd05c97302109a4807d915ca2bfdd814905755
3
+ metadata.gz: 80d4c57004bf8626692cb507fc28d99344c92a8d
4
+ data.tar.gz: d57ee732b9526a055e40f3298e99e76817a87f11
5
5
  SHA512:
6
- metadata.gz: 2c44f01716888432242b46d564e4d9ffdc662e6dcfa799f7bf2d32997f973f9b653fcb5f9facbfbcca5e2611d07f2635c56a095f4f464a127271864d8b77fad0
7
- data.tar.gz: b30abeb74306a72468277b68bbb9538b6746a49929ef96646adccd681340fa852c927afae3e60c47a1d4ec19a6ac43e08458b0364a23154d77df794cd7f84673
6
+ metadata.gz: 090769e2a956701a209a593a7b2ee18fb477e2eb7d3b7aa1df5f081601d87f2df46b249aa9f63c524cdd6e514fa317d953eeb69c599473bcf09e004e1999f837
7
+ data.tar.gz: 45d9ecd4f123d6d0a2cd18a1b73208a6a1e246adc1acbebf958cf04737714561158c1bd6ffdfa8677c65db790afd303b83390fbdb0b0af7fb97861c75066b7a8
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- �/��4P2��m�c�&�
2
- �����I���K(��}Z���&/nm4�,2�XB�r����<���e�v��b_ni^�O6���[M�@O��Զ�O"w
3
- ����8疷ٺ��6N:�1�
1
+
2
+
data/lib/rexle.rb CHANGED
@@ -10,6 +10,7 @@ require 'cgi'
10
10
  include REXML
11
11
 
12
12
  # modifications:
13
+ # 22-sep-2013: feature: remove() is now an alias of delete()
13
14
  # 30-jul-2013: feature: Rexle::Element#xml now accepts an xpath
14
15
  # 25-jun-2013: bug fix: doc.root.delete(xpath) fixed
15
16
  # 10-Nov-2012: Elements can now be added starting from an empty document
@@ -515,6 +516,8 @@ class Rexle
515
516
  end
516
517
  end
517
518
 
519
+ alias remove delete
520
+
518
521
  def element(s)
519
522
  r = self.xpath(s)
520
523
  r.is_a?(Array) ? r.first : r
@@ -809,6 +812,8 @@ class Rexle
809
812
  e.delete if e
810
813
  end
811
814
 
815
+ alias remove delete
816
+
812
817
  def element(xpath) self.xpath(xpath).first end
813
818
  def elements(s=nil) @doc.elements(s) end
814
819
  def name() @doc.root.name end
@@ -892,4 +897,4 @@ class Rexle
892
897
  [node.name, node.text.to_s, attributes, *children]
893
898
  end
894
899
 
895
- end
900
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.74
4
+ version: 0.9.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,62 +29,62 @@ cert_chain:
29
29
  EgghkUCgC30KsgaYheoN5ILHCE52JXCfr1Qto26qUSdC49xWkxnQz2yrSq8z085Q
30
30
  h0bKDk/qqjLsNUnSPxhypj3wTgJNdHKX
31
31
  -----END CERTIFICATE-----
32
- date: 2013-07-30 00:00:00.000000000 Z
32
+ date: 2013-09-22 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexleparser
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: dynarex-parser
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: polyrex-parser
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  type: :runtime
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: rexle-builder
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  description:
@@ -104,12 +104,12 @@ require_paths:
104
104
  - lib
105
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
metadata.gz.sig CHANGED
Binary file