rexle 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data.tar.gz.sig +0 -0
- data/lib/rexle.rb +18 -2
- metadata +15 -16
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d73765c58699038a71ac8ee348f35eeb77b7eec544a9ec55bfb3d0d4d72d8d72
|
4
|
+
data.tar.gz: c19a473655d07389b9a9a71d24eea1619fd2f8f2beeb791c0caf5759ce703c12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10142a68bea68b462c83e84d60523b9376d311495db30844eed4169138baaccdb31762dd9a2c61f242a51a510eab8b50ad4ce31ec2caa0768556ef2bc8d71b5c
|
7
|
+
data.tar.gz: 90fb6b422a4086446041132c8c4bb28911fa61f442f08cb9a761134c99bc7e94437b2190c033f024103ac522becdd6996f690f29981e3c3a79484de0580057a5
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
�
|
2
|
-
|
1
|
+
�MM2ҩ�\�RB�lC����g��|�7��UR��럲`/�:u�]���Q��]�i�$
|
2
|
+
<��K�:g=���+ũ���A�:D@��A�
|
3
|
+
���3K�wC�@ְO���)T��@-�&�J-���Ik��O֑�E=�*����@zi�V�9����2т�/T�;Bct�L*-��T=UV����o���f��N�m��e\��\�1���6Yk�J���P� 2�� �\J��� >&c��#���Ƥy��YMy�5TG'�5P���OT
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle.rb
CHANGED
@@ -13,7 +13,8 @@ require 'backtrack-xpath'
|
|
13
13
|
|
14
14
|
# modifications:
|
15
15
|
|
16
|
-
#
|
16
|
+
# 02-Feb-2019: feature: A comment tag can now have nested elements
|
17
|
+
# 03-Nov-2018: feature: Debug messages can now use coloured text
|
17
18
|
# 02-Oct-2018: feature: Added Rexle::Elements#last
|
18
19
|
# 18-Jan-2018: bug fix: An Element's attributes are now cloned too
|
19
20
|
# 16-Sep-2017: improvement: Multiple results are now returned if the
|
@@ -1326,20 +1327,35 @@ class Rexle
|
|
1326
1327
|
|
1327
1328
|
end
|
1328
1329
|
|
1330
|
+
|
1329
1331
|
class Comment
|
1330
1332
|
|
1333
|
+
|
1331
1334
|
def initialize(val='')
|
1335
|
+
@e = Element.new('_').add_text val
|
1332
1336
|
@value = val
|
1333
1337
|
end
|
1334
1338
|
|
1339
|
+
def add_element(e2)
|
1340
|
+
@e.add e2
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
def add_text(t)
|
1344
|
+
@e.add_text t
|
1345
|
+
end
|
1346
|
+
|
1335
1347
|
def inspect()
|
1336
1348
|
@value
|
1337
1349
|
end
|
1338
1350
|
|
1339
1351
|
def print()
|
1340
|
-
"<!--%s-->" % @
|
1352
|
+
"<!--%s-->" % @e.root.xpath('//./text()').join
|
1341
1353
|
end
|
1342
1354
|
|
1355
|
+
def texts()
|
1356
|
+
@e.texts
|
1357
|
+
end
|
1358
|
+
|
1343
1359
|
def to_s()
|
1344
1360
|
@value
|
1345
1361
|
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: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,28 +35,28 @@ cert_chain:
|
|
35
35
|
Zdf6ufm6l1fXtBUvl0XuKmNH8p6u/7SmI2oqJoV7Oiarx5i1LrpWL8Zc3q9MFaT4
|
36
36
|
pzftGMNXyXUyb9mSx4krfsRT
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2019-02-02 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: c32
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.1'
|
47
44
|
- - ">="
|
48
45
|
- !ruby/object:Gem::Version
|
49
46
|
version: 0.1.0
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.1'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - "~>"
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0.1'
|
57
54
|
- - ">="
|
58
55
|
- !ruby/object:Gem::Version
|
59
56
|
version: 0.1.0
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.1'
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: rexleparser
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,22 +81,22 @@ dependencies:
|
|
81
81
|
name: rexle-builder
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- - "~>"
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '0.3'
|
87
84
|
- - ">="
|
88
85
|
- !ruby/object:Gem::Version
|
89
86
|
version: 0.3.0
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.3'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.3'
|
97
94
|
- - ">="
|
98
95
|
- !ruby/object:Gem::Version
|
99
96
|
version: 0.3.0
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0.3'
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: rexle-css
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.7.6
|
166
|
+
rubygems_version: 3.0.2
|
168
167
|
signing_key:
|
169
168
|
specification_version: 4
|
170
169
|
summary: Rexle is an XML parser written purely in Ruby
|
metadata.gz.sig
CHANGED
Binary file
|