rexle 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +3 -2
  3. data.tar.gz.sig +0 -0
  4. data/lib/rexle.rb +18 -2
  5. metadata +15 -16
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29557ab937c5d51df26cebccf32feb7ddf8713c230858f5e9bda2bde53cf0439
4
- data.tar.gz: 556ba230305c4408c73efb5bb021f7b06831e38a5e999c1c26bf641f273395e4
3
+ metadata.gz: d73765c58699038a71ac8ee348f35eeb77b7eec544a9ec55bfb3d0d4d72d8d72
4
+ data.tar.gz: c19a473655d07389b9a9a71d24eea1619fd2f8f2beeb791c0caf5759ce703c12
5
5
  SHA512:
6
- metadata.gz: a91cb31a3ed6689f3fdbae798496a09d2a2764959fc1932d78ed0822dc0763502dba18fe18944fffc858116a24469c0c4c44bd10b4123d6a556cfdff026a4156
7
- data.tar.gz: d9e287db8504eabba3e9d92b835e6a5f6c8f1368b2bc55aa5ed77a92655f240f029ec207bad4ee3baf3885cb0c1c77aabb05f2563212e6d68ae60011cd70987a
6
+ metadata.gz: 10142a68bea68b462c83e84d60523b9376d311495db30844eed4169138baaccdb31762dd9a2c61f242a51a510eab8b50ad4ce31ec2caa0768556ef2bc8d71b5c
7
+ data.tar.gz: 90fb6b422a4086446041132c8c4bb28911fa61f442f08cb9a761134c99bc7e94437b2190c033f024103ac522becdd6996f690f29981e3c3a79484de0580057a5
@@ -1,2 +1,3 @@
1
- A��0`����� >�M��y$����H��)��)]쟱��<�SD���]쮼�|8#���34
2
- Z���Ó}��7O]׽� B��A��KL�$?A�+Ĺk,z�i�쌯d�F��X�; 5��<Wd�����E<!t�x#_�~J��u���FU%��ܡ2�%}��-DיL�[�;�h��6W�y����PU?�|v��$�?��-�v�j���oPLR�/�/����u�;��챑�ޢ���y0��$�� �!6�/ �������q��;�| �8����hYB]��A�-����]N��l��Y��V�%�~��DY������IU��\ѯ �6�F�aqu�Uml+
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
@@ -13,7 +13,8 @@ require 'backtrack-xpath'
13
13
 
14
14
  # modifications:
15
15
 
16
- # 03-Nov-2018: feature: Debug messages can now easily used coloured text
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-->" % @value
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.0
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: 2018-11-03 00:00:00.000000000 Z
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
- rubyforge_project:
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